<p>In this tutorial we're going to cover how the Haveno DEX handles trade disputes, which can happen as, after all it's decentralised, and anonymous by default.</p>
<p>Check out <ahref="../haveno-client-f2f/index.html">this tutorial</a> if you want to know how to install Haveno DEX on your device.</p>
<li><p>Virtual Machine: <ahref="../hypervisorsetup/index.html">Linux</a> or <ahref="../whonixqemuvms/index.html">Whonix</a> or <ahref="../tailsqemuvm/index.html">Tails</a></p></li>
<p>I recommend using this setup into one of the above mentionned VMs, either for <ahref="../privacy/index.html">Private use</a>, or <ahref="../anonymityexplained/index.html">Anonymous use</a>, as per the <ahref="../opsec4levels/index.html">4 basic OPSEC levels</a>. (Note that Deanonymization will happen during the Fiat transaction, but it is minimized as you're revealing your identity to an other peer, rather than to a centralised exchange)</p>
<h2><b>What protects the Buyer or the Seller ? </b></h2>
<p>Back on localmonero, what was at stake was the reputation of the Buyer or the Seller, because if any of their trades go wrong, their reputation would not be a clean 100% successful trades anymore. Problem is, on the Haveno DEX, where there is no centralisation to keep everyone's reputation in check, it could be very easy to give yourself a ton of positive reputation points, by spinning up 2 haveno dex instances, to simulate trades with yourself.</p>
<p>So there was this need to have something else at stake to prevent people from scamming each other. That is <b>the Security deposit system</b> that we described in the <ahref="../haveno-client-f2f/index.html">previous tutorial</a>.</p>
<imgsrc="1.png"class="imgRz">
<p>In short, <b>both Bob and Alice need to put some XMR into the trade initially, so that if they try to scam each other, they will loose something in the process.</b></p>
<p>In this example, The trade will go wrong as <b>Bob will try to scam Alice with an invalid Amazon giftcard code</b>.</p>
<h2><b>What happens when there's a scammer?</b></h2></br></br>
<imgsrc="alice.png">
<p>Here, in this case we're Alice, and we want to sell our XMR for an amazon giftcard (which is typically just a code you need to redeem). So here Alice creates her amazon egift card haveno account to be able to trade just that, she needs to mention her email and the country (because a german amazon giftcard code doesnt work on the french amazon website!) </p>
<imgsrc="2.png"class="imgRz">
<imgsrc="3.png"class="imgRz">
<imgsrc="4.png"class="imgRz">
<p>Read carefully what exchanging an Amazon egift card to XMR implies then click "I understand"</p>
<imgsrc="5.png"class="imgRz">
<p>Then create a selling offer like so:</p>
<imgsrc="6.png"class="imgRz">
<p>Mention the amount of XMR you want to sell, and the % above the market price you want to sell it for, currently 0.2018 XMR at market price will give you 25 euros. <b>Then you need to fund your offer with the additional 0.101009 XMR security deposit. Meaning you need to put in 0.302809 XMR total</b></p>
<imgsrc="7.png"class="imgRz">
<p>Once funded, wait for the funds to appear as available balance on your haveno client (can take 20 minutes)</p>
<imgsrc="8.png"class="imgRz">
<imgsrc="9.png"class="imgRz">
<p>Then click Place offer to sell monero:</p>
<imgsrc="10.png"class="imgRz">
<p>and then click confirm offer to sell monero.</p>
<imgsrc="11.png"class="imgRz">
<imgsrc="12.png"class="imgRz">
<p>Here you can see that your offer is enabled from the portfolio tab, and people can see it appear on the Buy tab:</p>
<imgsrc="13.png"class="imgRz">
<imgsrc="bob.png">
<p>Now let's switch sides. We're now Bob the scammer, we want to scam Alice. We see her offer on the buy tab, and we take the offer:</p>
<imgsrc="14.png"class="imgRz">
<p>Then, just like Alice did, we also fund the offer with the monero security deposit:</p>
<imgsrc="15.png"class="imgRz">
<imgsrc="16.png"class="imgRz">
<p>Wait for it to show up as available in your haveno balance:</p>
<imgsrc="17.png"class="imgRz">
<imgsrc="18.png"class="imgRz">
<p>Then click confirm to take the offer to buy Monero:</p>
<p>When opening the trade window, Alice sees that <b>Bob not only does not respect the trade protocol of sending the gift card by mail by just sending the code over chat, but the code is also invalid!</b></p>
<imgsrc="21.png"class="imgRz">
<imgsrc="22.png"class="imgRz">
<imgsrc="23.png"class="imgRz">
<p>Alice sees that she cannot redeem the code as it is invalid. <b>In short, she didn't get paid!</b></p>
<imgsrc="bob.png">
<p>Back to Bob's perspesctive as we are one kind of an asshole, we don't care that Alice didn't get paid and declare that we sent payment anyway.</p>
<imgsrc="24.png"class="imgRz">
<imgsrc="25.png"class="imgRz">
<imgsrc="26.png"class="imgRz">
<imgsrc="alice.png">
<p>Back to Alice's perspective, Now the ball is in her park, what does she do ? </p>
<p>In this case, the trade should not take more than 24 hours, so she waits until the next day, and when it expires, she'll be able to open up a dispute.</p>
</div>
</div><!-- /row -->
</div><!-- /container -->
</div><!-- /white -->
<!-- +++++ Second Post +++++ -->
<divid="anon1">
<divclass="container">
<divclass="row">
<divclass="col-lg-8 col-lg-offset-2">
<h2><b>Arbitrator Resolution</b></h2></br></br>
<p>Now that the trade time expired (24hrs), Alice can now open up a dispute, for the Arbitrator to step in:</p>
<imgsrc="31.png"class="imgRz">
<p>Here, Alice clicks on "open support ticket", and she goes to the support tab to view her support ticket: </p>
<imgsrc="32.png"class="imgRz">
<imgsrc="33.png"class="imgRz">
<imgsrc="34.png"class="imgRz">
<p>Then the Arbitrator reviews the exchange from Alice's point of view:</p>
<imgsrc="36.png"class="imgRz">
<p>Here the arbitrator sees that the trade protocol has not been respected, both parties need to make sure they follow the trade protocol for said payment option correctly for the trade to be considered as valid from the arbitrator's point of view.</p>
<imgsrc="bob.png">
<p>Then the Arbitrator sees the exchange from Bob's point of view too:</p>
<imgsrc="38.png"class="imgRz">
<p>Obviously, Bob explains that he got his very legit amazon giftcard code from his hat, and he naively thinks that the arbitrator will rule in his favor. </p>
<imgsrc="alice.png">
<p>And finally, back to Alice's POV: the Arbitrator decides that it is Alice who's in the Right, and therefore Bob does not get his Monero security deposit back, hence he's loosing 0.101009 XMR in the process.</p>
<imgsrc="37.png"class="imgRz">
<p>So here, Bob just lost some XMR, and Alice is getting her 0.2018 XMR back, she gets her security deposit back (0.101009 XMR) but also she gets Bob's security deposit (0.101009 XMR), <b>so in total she gets 0.40011456 XMR back (0.101009 XMR more than when she started using Haveno)</b>. In the end, it is Bob that ended up giving her some monero against his will.</p>
<imgsrc="41.png"class="imgRz">
<p>Now keep in mind that not all payment options are safe, some can come with easy chargebacks (ex: paypal), and some are just next to impossible for an arbitrator to decide who's in the right or wrong (face-to-face trades for instance). Be very careful to know the risks associated with each payment option, along with what precautions need to be taken. </p>
<p>Check out my other tutorials on Decentralised Finances below:</p>
<ol>
<li><ahref="../monero2024/index.html">✅ How to acquire and use Monero </a></li>
Until there is Nothing left.</p></br></br><p>Creative Commons Zero: <ahref="../../../../opsec/runtheblog/index.html">No Rights Reserved</a></br><imgsrc="\CC0.png">