⚙️How LocalSolana Works

Learn how LocalSolana works behind the scenes

Escrow Account Creation

Most peer-to-peer trades today happen through the US dollar pegged stablecoin USDT (Tether). Though LocalSolana is a self-custody platform, it is built to compete with centralised platforms in terms of user experience. Solana's low gas-fees and blazing fast speeds allow LocalSolana to maintain full self-custody while being as easy-to-use as any centralized exchange

In order to deploy an escrow contract, a seller interacts with the LocalSolana Deployer contract. The LocalSolana Deployer contract then automatically deploys the users individual escrow account contract holding their funds. By requiring escrow accounts to be deployed through the deployer contract, LocalSolana can identify which contracts are created through the protocol and ensure no phishing functions are added by bad actors.

A LocalSolana Trade

As LocalSolana never holds funds, the experience differs from centralized exchanges and escrow providers. Exchanging fiat money for crypto assets on LocalSolana looks like the scenarios below:

  1. Alice (The Seller) posts an ad to sell USDT, she deploys an escrow contract through the LocalSolana protocol and deposits USDT into her escrow account. Based on her deposit and other parameters she sets, the ad states the available USDT to sell in her account, the minimum and maximum trade sizes, acceptable fiat payment methods, and the price she is willing to sell at.

  2. Bob (The Buyer) responds to the ad to exchange his EUR for USDT. When Bob selects the ad he makes a transaction that locks the funds in Alice's contract in escrow for a time limit set by Alice. By making the transaction Alice's payment details are also revealed to Bob to make the fiat payment.

  3. Bob makes the fiat payment to Alice's account and makes a transaction to confirm he made the payment. He must make the payment within the time limit set on the ad. If payment is not made within that time, the crypto escrowed in the account can be unlocked. By confirming the payment, Bob ensures the escrowed crypto cannot be withdrawn back to the seller without arbitration.

  4. Alice receives a notifcation that Bob has made the fiat payment to her bank account.

  5. Upon receipt of EUR in her account, Alice makes a transaction to release the escrowed funds from the contract, and Bob receives USDT.

A Dispute

After crypto for sale has been locked in escrow, either the buyer or the seller can initiate a dispute if they believe the other party has violated the agreed upon terms. Disputes can be initiated by clicking on the “Initiate Dispute” button Once a dispute has been initiated, both parties are notified and a resolution process is initiated.

First, the LocalSolana provides a mechanism for dispute resolution by facilitating communication between the two parties. Both parties are encouraged to work out their differences and come to an agreement. This can be done through direct messaging through a wallet-to-wallet chat integrated into the LocalSolana platform.

If the dispute cannot be resolved through communication, the LocalSolana team provides a final dispute resolution process that involves a currently centralised arbitration system. The arbitration system consists of a panel of arbitrators including the LocalSolana team and community members who have been selected. The panel of arbitrators has the final say in resolving the dispute. The decision is binding and cannot be appealed.

If the decision favors the buyer, the escrowed crypto is released to the buyer. If the decision favors the seller, the escrowed crypto is released to the seller. If the decision is split, the escrowed crypto is split accordingly.

In the future, the arbitration mechanism will be fully decentralised where community members can contribute to dispute resolution in return for fees removing the need for arbitration by a centralised party.

Last updated