Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 2.9 KB

p2p_derivatives.md

File metadata and controls

48 lines (30 loc) · 2.9 KB

P2P derivatives

This tool is for making smart contracts.

Here you can see a place where you can publish offers to trade p2p derivatives.

You can make a offer for a smart contract, and post it to a forum. Anyone else can accept your offer and participate on the opposite side of the contract.

Examples

If there is a football game, Alice can post an offer to bet $100 on team A. Then anyone can take that offer, and make a tx that locks the $100 from Alice with $100 of their own money so that they are betting with Alice on the outcome of the football game in a new channel.

If Bob thinks that the price of VEO will go up, he can sell stablecoins on Amoveo, and this will give him long-veo. An asset that has higher leverage, so Bob can have even more exposure to Veo price risk. If the price of Veo increases 10%, Bob's contract increases in value 20%. If the price of Veo decreases 20%, Bob's contract decreases in value 40%.

Browser Light Node

The p2p derivatives tool is a feature supported by Amoveo's browser light node

You can download the light node onto your own computer from here. This is the most secure way to run the light node:

I am serving this light node from my server, you can see it here This is the home page that links to all the other pages in the light node.

Smart contract timeline of all steps

  1. We need some question to bet on. We can use the new oracle page to select new topics to bet on. Binary oracles are true/false questions. Scalar oracles can measure a price, or some other value in a range. documentation for making good oracles

Once you have created the oracle, you will receive the oracle ID. You use this so the smart contract knows which oracle will determine who gets the money.

  1. Someone creates an offer for a new smart contract. this page can be used for making new contract offers. Once you have a contract offer, you can publish it in Amoveo discord #trading channel or anywhere you think someone who wants to bet against you will see it.

  2. Someone accepts the offer of a smart contract. this page can be used to accept a smart contract offer.

  3. the event occurs. Now we know who won the football game or election, or whatever we are betting on.

  4. we close the smart contract to get our money out. this page can be used to close the channel. If both participants work together, closing the channel takes only 1 block. If one participant refuses to cooperate, then you have to wait for the oracle to settle, and return to the otc_finisher.html page a couple times to completely get your money out.