<p>This change fixes an issue whereby dust change outputs are inadvertently created when users make withdrawals from their wallets.  (Funds -> Send Funds)</p>
<p>The solution taken here is to detect a dust TXO during the withdrawal fee estimation process and add that amount to the fee thus eliminating the dust output.</p>
<p>For example if the user has 1 BTC and goes to withdraw 0.99999900 BTC it will detect a change TXO of 100 sats which is below the dust limit, increase the fee by 100 sats and therefore withdraw 1 BTC.</p>
<p>This fix only applies to user withdrawals from their wallet.  Other use cases such as P2P trading, deposits and fees will be handled separately.</p>
<p>Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="578316623" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/4039" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/4039/hovercard" href="https://github.com/bisq-network/bisq/issues/4039">#4039</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/4093'>https://github.com/bisq-network/bisq/pull/4093</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Remove dust outputs created during withdraw from wallet</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4093/files#diff-ff484a282dd668b4e76956ad0b761971">desktop/src/main/java/bisq/desktop/main/funds/withdrawal/WithdrawalView.java</a>
    (17)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/4093.patch'>https://github.com/bisq-network/bisq/pull/4093.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/4093.diff'>https://github.com/bisq-network/bisq/pull/4093.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/4093">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNSARWS3CUIGWVZ6QODRJDCGXANCNFSM4LSWP43Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNWWBBNHGXJKC74HQ3LRJDCGXA5CNFSM4LSWP432YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IX5FXYA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/4093",
"url": "https://github.com/bisq-network/bisq/pull/4093",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>