<p>Here's a brain teaser that I am struggling to explain at the moment. I need to review it tomorrow with a fresh mind, but creating an issue so as not to lose track of it (and maybe get another mind to review it).</p>
<p>I was testing a scenario where I had submitted a compensation request for 100 BSQ and had just enough BSQ to cover the fees, but not enough to vote (where I found <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="428606923" data-permission-text="Issue title is private" data-url="https://github.com/bisq-network/bisq/issues/2622" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bisq/pull/2622/hovercard" href="https://github.com/bisq-network/bisq/pull/2622">#2622</a>).</p>
<p>Here is the sequence of events (starting from a balance of 0 BSQ):</p>
<ul>
<li>Receive 10 BSQ</li>
<li>Submit compensation request for 100 BSQ, minus 2 BSQ for fee<br>
[balance of 8 BSQ]</li>
<li>Send remaining 8 BSQ<br>
[balance of 0 BSQ]</li>
<li>Compensation request approved, BSQ issued<br>
[at this point I would expect to have a balance of 98 BSQ, but the wallet balance indicates 100]</li>
</ul>
<p>Adding up the amounts shown below (10+98-8) gives us 100. But calculating it based on the sequence of events (10-2-8+98), gives us 98.</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/603793/55461649-cf769580-55a9-11e9-996b-54198a52fed0.png"><img src="https://user-images.githubusercontent.com/603793/55461649-cf769580-55a9-11e9-996b-54198a52fed0.png" alt="image" style="max-width:100%;"></a></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/issues/2623">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtpsLNNg8lHVnRpKE1VbBvhQ5Vmqiks5vdGGJgaJpZM4cZ3nh">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtvHscdflp5iG44bvKuT85vAr6eXbks5vdGGJgaJpZM4cZ3nh.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bisq","title":"bisq-network/bisq","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bisq"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Incorrect wallet balance after compensation request issuance? (#2623)"}],"action":{"name":"View Issue","url":"https://github.com/bisq-network/bisq/issues/2623"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/2623",
"url": "https://github.com/bisq-network/bisq/issues/2623",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>