Skip to content

Derivative Swap by using UMA's Priceless Synthetic Tokens

Notifications You must be signed in to change notification settings

masaun/derivative-swap

Repository files navigation

Derivative Swap by using UMA's Priceless Synthetic Tokens


【Introduction of Derivative Swap by using UMA's Priceless Synthetic Tokens】

  • This repos is dApp for derivative swap by using UMA's Priceless Synthetic Tokens.
    • One of UMA's Priceless Synthetic Tokens feature is tracking price of various assets. That is able to track price not only cryptocurrency, but also stock prices(Such as the stock price of TSLA, etc...) and commodity prices(Such as the commodity price of Oil)
    • Following a feature above, I have tried to build derivative swap to trade various assets which are created by using UMA's Priceless Synthetic Tokens.
    • It has potential to be involved stock and bond and commodity into DeFi(decentralized finance) market and be able to trade them with various pair. In case it is realized, it can bring more liquidity and connectivity (between crypto assets and traditional assets) into DeFi market.

 

【User Flow】(※ Implementation is in progress)

  • ① User creates Priceless Synthetic Tokens on this dApp.
    • User select token's price index they want to track. (Such as ETH/BTC, the stock price of TSLA, the commodity price of Oil, etc...)
    • User select token expiry.
    • User deposit DAI as collateral.
    • User bollow Priceless Synthetic Tokens

  • ② User trades Priceless Synthetic Tokens on this dApp.
    • My plan of trading implementation is utilizing Uniswap contract.

 


【Setup】

Setup wallet by using Metamask

  1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
    https://metamask.io/

  2. Adjust appropriate newwork below

Kovan Test Network

 

Setup backend

  1. Deploy contracts to Kovan Test Network
(root directory)

$ npm run migrate:Kovan

 

Setup frontend

  1. Add an .env file under the directory of ./client.

  2. Add SKIP_PREFLIGHT_CHECK=true to an .env file under the directory of ./client.
    (Recommend to reference from ./client/.env.example

  3. Execute command below in root directory.

$ npm run client
  1. Access to browser by using link
http://127.0.0.1:3000/derivative-swap

 


【References】

About

Derivative Swap by using UMA's Priceless Synthetic Tokens

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages