Use cases

Use case #1 - exchange contract

"If you give me $100 in BTC, I'll give you $100 in ETH"

Side A offers to exchange assets with side B for $100. Side A wants to sell BTC to Side B and receives ETH as a result of the transaction. Side A creates a contract in a no-code smart contract constructor, specifying the currencies involved in the transaction and the exchange rate, and offers the contract

to Side B. The contract is signed by Side A. Side B agrees to honor this contract. Side A is then given an address on the Bitcoin network to which it can send BTC in a specified amount, and Side B is given an address on the Ethereum network and the amount to send in ETH. After sides A and B send assets, the smart contract verifies receipt of the assets and mints wrapped tokens in the amount received to the addresses of the sides.

Use case #2 - crowdfunding contract

Side A announces a round of contributions in BTC, ETH, LTC, and TRX. At the same time, Side A issues tokens on the BSC blockchain and sends 30% of the collected funds to the liquidity pool of the TOKEN /USDC pair on PancakeSWAP.

Side B wants to buy a token. To do so, it selects the currency in which it wants to make a payment and the address of the wallet on the BSC network to which it wants to receive tokens in the smart contract interface. Before starting the smart contract, it checks the availability of funds for transactions on the BSC network. Then, the contract creates an address on the Bitcoin network to which the money should be transferred. After side B sends the amount, it recalculates the amount received by the number of tokens, sends it to side B at the previously specified address, and coins the wrapped BTC into side B's wallet. 30% of the amount is exchanged for USDC and sent in pairs to the smart contract in PancakeSWAP, which in return receives LP tokens and coins them into side A's wallet in the YAR chain.

Use case #3 - real estate sale contract

Side A announces the sale of 100 apartments. Each apartment has several unique characteristics, such as the floor, the area, the view from the window, the degree of readiness for occupancy, etc. Therefore, each apartment is issued in the form of an NFT, with the transfer of rights through the sale utilizing a corresponding contract. At the same time, Side A offers authorized intermediaries (from a predetermined list) a commission of 5% of the price if the sale is made with their help. Side A announces the supported currencies for payment and the currency in which the final payment will be made.

An authorized broker prepares an offer for side B, which is interested in buying a certain apartment. If everything is in order, the smart contract creates an address in the external network (if necessary), to which the client transfers money. 5% of the amount received is sent to the agent's wallet and 95% is converted into the final currency of the transaction, after which the closing documents of the transaction are published and available for all sides to review, download, etc. Upon receipt of the "Closing Documents", the transaction is considered complete, Side B receives the NFT token for the apartment and the apartment disappears from the sales list.

Use case #4 - freelance contract with the man in the middle

Side A orders the service, Side B agrees to provide it, specifying the task, the implementation period, and the agreed-upon motivation amount, and Side A and B enter into a model contract on Site C with payment in one of the currencies, coins, or tokens available in the YAR protocol. This contract specifies the compensation for Site C, the task schedule, task performance facilitation, reporting periods, the expected outcome of the task, payment terms, and dispute resolution terms - with or without an escrow account. Side A and B agree to the terms of the contract, and Side A transfers the funds for the contract, whereupon Side B agrees to begin the task and to contractually report the interim results of its work at specified intervals. When the contract has been satisfactorily fulfilled, Side B receives compensation in the desired currency, Site C receives its commission, and Side A receives the result of the work and the transfer of intellectual rights to the result. At the same time, Site C through the API requests publication of the contract on the YARchain network via the API and processes the result of its work via GET and POST. Everything else is automated via the YAR. If you need to share files, the download and transfer are handled through a contract by connecting FileCoin or a similar service to the contract.

Last updated