<p></p>
<h3>TEST - Editing an offer should not change the BTC amount due to rounding.</h3>
<p>Setup - Using bisq <strong>prior to the fix</strong>.</p>
<ul>
<li>Create and save an offer to sell 0.0625 BTC for a price of 7500 (469 USD)</li>
<li>Go to Open Offers and click on the edit icon</li>
<li>Verify that the edit dialog shows 0.0625 BTC and price of 7500 (469 USD)</li>
<li>Change the price to 7400 and press tab.  The amount of BTC changes to 0.0626 (463 USD)</li>
<li>Change the price to 1111 and press tab.  The amount of BTC changes to 0.0630 (70 USD)</li>
<li>Change the price to 1024 and press tab.  The amount of BTC changes to 0.0635 (65 USD)</li>
<li>Change the price to 7400 and press tab.  The amount of BTC remains at 0.0635 (470 USD)</li>
<li>Save the offer.</li>
<li>It is now a sell of 0.0635 at 7400 (470 USD).</li>
<li>The BTC amount has changed from 0.0625 to 0.0635 when you only wanted to edit the price of the offer.  Bug.</li>
</ul>
<p>Setup - Using bisq <strong>incorporating this fix</strong>.</p>
<ul>
<li>Create and save an offer to sell 0.0625 BTC for a price of 7500 (469 USD)</li>
<li>Go to Open Offers and click on the edit icon</li>
<li>Verify that the edit dialog shows 0.0625 BTC and price of 7500 (469 USD)</li>
<li>Change the price to 7400 and press tab.  The amount of BTC remains 0.0625 (463 USD)</li>
<li>Change the price to 1111 and press tab.  The amount of BTC remains 0.0625 (69 USD)</li>
<li>Change the price to 1024 and press tab.  The amount of BTC remains 0.0625 (64 USD)</li>
<li>Change the price to 7400 and press tab.  The amount of BTC remains 0.0625 (463 USD)</li>
<li>Save the offer.</li>
<li>It is now a sell of 0.0625 at 7400 (463 USD).</li>
<li>The BTC amount has remained the same, you've changed the price and the resultant USD amount.  This is good.</li>
</ul>
<p><em>These examples use USD but it works the same using EUR or other currencies.</em></p>

<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/4182#issuecomment-616168218">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNSF25PI3EIDVMQMIWDRNMNCBANCNFSM4MLUJN4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNSPMQ6YIZZMMGWS4G3RNMNCBA5CNFSM4MLUJN42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOES47WGQ.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/4182#issuecomment-616168218",
"url": "https://github.com/bisq-network/bisq/pull/4182#issuecomment-616168218",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>