One of the major features of iGain is its built-in secondary market. There will be no need to integrate or launch on other protocols. The built-in secondary market of iGain protocol is a decentralized exchange (DEX) that supports the automated market making of Long and Short tokens. After minting Long and Short tokens with DAI, users can serve as liquidity providers of the market by adding liquidity. While there is liquidity, Long and Short token holders may swap them in between at the pool.
The market prices of Long and Short tokens are determined by their real-time proportion. Given
a Long tokens and
b Short tokens in the pool, they will follow a Constant Product Market Maker law:
Given the condition of
1 Long + 1 Short = 1 DAI, we can get the marginal price of the Long/Short token by solving simultaneous equations below: