<p>In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="611105359" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/4223" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bisq/pull/4223/hovercard" href="https://github.com/bisq-network/bisq/pull/4223">/pull/4223</a> a fix was made to the QRCode display of amount needed to fund an offer.  This accidentally introduced a bug whereby if the user overpaid the funding, then the QRCode would throw an error <code>Coin must be positive</code>.  This is due to a race condition in OfferDataModel which was setting a property first to a negative amount before checking if it was negative and if so then setting it to zero.  The fix here is to check for negative before setting the property so that any listeners do not get an event (negative) followed by another event (zero).</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/4258'>https://github.com/bisq-network/bisq/pull/4258</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Prevent transient negative missingCoin amount sent to QRCode display</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4258/files#diff-8274825e56afbe8b4605768f51d7f04d">desktop/src/main/java/bisq/desktop/main/offer/OfferDataModel.java</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/4258.patch'>https://github.com/bisq-network/bisq/pull/4258.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/4258.diff'>https://github.com/bisq-network/bisq/pull/4258.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/4258">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNVJTC4OH2KOH2WDHP3RRSMKZANCNFSM4NBFPZMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNU354WCJAIORXABHBDRRSMKZA5CNFSM4NBFPZMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JG7UXAA.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/4258",
"url": "https://github.com/bisq-network/bisq/pull/4258",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>