iGain Protocol
  • iGain Protocol
  • Introduction
    • Basic Concepts of Options
    • A Decentralized Approach
  • The Core Protocol
    • Long and Short Tokens
    • Built-in DEX
      • Liquidity Provider
      • Advanced: Customized Proportion
    • Buy/Sell Options
    • Redemption
  • System Properties
    • Protocol Fee & Dynamic Trading Fee
  • iGain Universe
    • Impermanent Gain
      • Background: AMM & IL
      • Price Settlement
      • Hedge with Impermanent Gain
      • Gain with iGain
    • Interest Rate Synth
      • Introduction
      • Price Settlement
      • Fixed APY Borrowing/Lending
        • Examples
      • All-in-one Proxy
      • Underlying Token
  • Contracts
  • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. iGain Universe
  2. Impermanent Gain

Price Settlement

Add Leverage for Better Capital Utilization

PreviousBackground: AMM & ILNextHedge with Impermanent Gain

Last updated 2 years ago

Was this helpful?

Impermanent Gain is the flagship of the iGain Universe. Options are targetting at the IL of certain token pairs. The settled price of Long and Short tokens will be determined by the IL degree at the expiration date.

The huger the degree of the IL is, the higher the settled price of the Long token. Through holding a corresponding amount of the Long tokens may perfectly offset the impermanent loss of the entire position. The real-time price of the Long tokens before expiration is determined by the market forces.

Each option lasts a month. To determine the settled prices of Long/Short tokens, we might find some clues in the historical data.

We extract the ETH/DAI price data from 2020/1/1 to 2020/12/21, and we present the impermanent loss data of providing liquidity for a month at each time.

From the above chart, we can find out that the impermanent loss of serving as the liquidity provider for a month is within 0 to -10% at all times. There is no such case that IL is above -10%. Most of time, It was between 0 to -5%. Therefore, we can add 20x leverage to Impermanent Gain, narrowing the IL range from (-100%, 0) to (-5%, 0), effectively increasing capital utilization.

The correlation between the settled price of Long/Short tokens and the IL is shown below:

If IL is 0% after a month, then the price of 1 Long will be settled at 0 DAI; the price of 1 Short will be settled at 1 DAI.

If IL is 10% after a month, then the price of 1 Long will be settled at 1 DAI; 1 Short will be settled at 0 DAI.

We can also express it in the mathematic formula:

The setting of the leverage ratio varies with the pair and the duration. The greater the price volatility and the longer the duration, the lower the leverage ratio, and vice versa.

We will determine a reasonable leverage ratio based on historical prices backtesting.

*Price feeds will be pulled from Chainlink Oracle

Dynamic Trading Fee

As the option expiration date approaches, the market price will converge to the actual |IL| by arbitrage trading; that is to say, some people will definitely come to arbitrage and generate trading volume when there's a spread between market price and index price.

In order to increase the revenue of liquidity providers, we will adopt the “dynamic transaction fee” in the future, and the fee will be linearly adjusted from 0.3% to 3% over time.

1 Long={20×∣IL∣ DAI,0≤∣IL∣≤0.051 DAI,∣IL∣≥0.05       ,  Short=1−Long1\ Long=\left\{\begin{matrix} 20\times |IL| \ DAI& ,0\leq|IL|\leq0.05 \\ 1 \ DAI& ,|IL|\geq0.05\ \ \ \ \ \ \ \end{matrix}\right., \ \ Short = 1-Long1 Long={20×∣IL∣ DAI1 DAI​,0≤∣IL∣≤0.05,∣IL∣≥0.05       ​,  Short=1−Long