Currency hedging made easy. Create / Trade / Settle tokenized long / short positions on exchange rates.
This project implements a web interface that allows the user to on-chain derivatives for currency-hedging / speculation.
Before the expiry of a contract a user can:
At the time of expiry the user can:
Once the price oracle (see details below) has settled on a price the user can:
Since both long and short positions are represented by ERC-20 tokens they can be traded / transfered at will. Once a liquid secondary market for these contracts has been established (e.g. on uniswap) taking a long / short position is as simple as buying one of these tokens.
The main technology we used were UMA's Long Short Pair (LSP) contracts in particular the Linear version which is configured using an upper / lower price bound.
The higher the value of the Pricefeed returned by the "Optimistic Oracle" at time of expiry is the more collateral is going to be allocated to the long token and vice versa.
Due to the design of the LSP contracts this setup does not need any Liquidation mechanism making the whole workflow a lot easier and less risky for Liquidity Providers (Token Sponsors).