<p>At mediation we require a min. payout to the losing party to keep<br>
incentive for the trader to accept the mediated payout. For Refund<br>
agent cases we do not have that restriction.</p>
<p>There is a change in the adjustment behaviour for custom payout. The previous adjustment at keystroken does not work anymore as when one enters 0.1 the first 0 key stroke would trigger already the min refund value. I changed the event type to focus out, so the adjustment is only done at focus out. Clicking on the background does not trigger a focus out, only if you click on a control (text field, button, toggle,...).</p>
<p>I also added a check to not allow that both outputs are 0 at refund agent case. That was previously possible but caused an exception in the wallet class. Not the button will stay deactivated if both are 0 BTC.</p>
<p>Testing:<br>
Run test case with mediation and refund agent and toggle between the 4 predefined payout distributions as well as a custom payout. Use diff. values including 0, negative and too high to see if it auto-adjusts after focus out. Note that mediation and refund agent have differnet policy here.</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/3827'>https://github.com/bisq-network/bisq/pull/3827</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Use min. refund at mediated payout</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3827/files#diff-0">core/src/main/java/bisq/core/btc/wallet/Restrictions.java</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3827/files#diff-1">desktop/src/main/java/bisq/desktop/main/overlays/windows/DisputeSummaryWindow.java</a>
    (173)
  </li>
</ul>

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