<p></p>
<p>Here are some tests I found useful:</p>
<h3>TEST 1 - sending full wallet balance minus 1 satoshi</h3>
<ul>
<li>Setup - you have funds in your wallet, potentially split into more than 1 UTXO</li>
<li>Send your complete wallet balance minus 1 satoshi, option "Amount includes fee".</li>
<li>Verify that the confirmation dialog displays: Warning about dust (1 sats) added to fees;<br>
Sending = the full amount of your wallet; Recipient will receive full amount of your wallet - fee</li>
<li>Click yes to make the transaction</li>
<li>Verify that the receiver gets full amount of your wallet - fee</li>
<li>Verify that the transaction gets confirmed on the blockchain.</li>
</ul>
<h3>TEST 2 - avoid dusty change output (amount excludes fee)</h3>
<ul>
<li>Setup - Set custom fee to 18 sats per byte</li>
<li>Setup - you have 1 UTXO in wallet = 1.0 BTC</li>
<li>Send 0.99995501, option "Amount excludes fee"</li>
<li>Verify that the confirmation dialog displays: Warning about dust (431 sats) added to fees; Sending 1.0 BTC; Recipient will receive 0.99995501 BTC; Fee is 4499 sats</li>
<li>Click yes to make the transaction</li>
<li>Verify that the receiver 0.99995501 BTC</li>
<li>Verify that the transaction gets confirmed on the blockchain.</li>
</ul>
<h3>TEST 3 - avoid dusty change output (amount includes fee)</h3>
<ul>
<li>Setup - Set custom fee to 18 sats per byte</li>
<li>Setup - you have 1 UTXO in wallet = 1.0 BTC</li>
<li>Send 0.99999999, option "Amount includes fee"</li>
<li>Verify that the confirmation dialog displays:Warning about dust (1 sats) added to fees; Sending 1.0 BTC; Recipient will receive 0.99995930 BTC; Fee is 4069 sats</li>
<li>Click yes to make the transaction</li>
<li>Verify that the receiver gets 0.99995931 BTC</li>
<li>Verify that the transaction gets confirmed on the blockchain.</li>
</ul>
<h3>TEST 4 - normal transaction with change output (amount excludes fee)</h3>
<ul>
<li>Setup - Set custom fee to 18 sats per byte</li>
<li>Setup - you have 1 UTXO in wallet = 1.0 BTC</li>
<li>Send 0.99990000, option "Amount excludes fee"</li>
<li>Verify that the confirmation dialog displays: Sending 0.99994050 BTC; Recipient will receive 0.9999 BTC; Fee is 4050 sats</li>
<li>Click yes to make the transaction</li>
<li>Verify that the receiver gets 0.9999 BTC</li>
<li>Verify that the transaction gets confirmed on the blockchain.</li>
</ul>
<h3>TEST 5 - normal transaction with change output (amount includes fee)</h3>
<ul>
<li>Setup - Set custom fee to 18 sats per byte</li>
<li>Setup - you have 1 UTXO in wallet = 1.0 BTC</li>
<li>Send 0.99990000, option "Amount includes fee"</li>
<li>Verify that the confirmation dialog displays: Sending 0.9999 BTC; Recipient will receive 0.99985950 BTC; Fee is 4050 sats</li>
<li>Click yes to make the transaction</li>
<li>Verify that the receiver gets 0.9999 BTC</li>
<li>Verify that the transaction gets confirmed on the blockchain.</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#issuecomment-605550112">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNQSJTZOJKTINAXIFXDRJ2ZIJANCNFSM4LSWP43Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNVDCWGMN3WN5VRODETRJ2ZIJA5CNFSM4LSWP432YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQL7MIA.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#issuecomment-605550112",
"url": "https://github.com/bisq-network/bisq/pull/4093#issuecomment-605550112",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>