Stabilizer Module

Enshrining incentivized liquidity

The Stabilizer module aims to natively incentivize liquidity depth for yinaround its peg price so as to stabilize its spot price in the market. Users can stake their CASH/USDC liquidity positions on Ekubo and receive a portion of protocol income (distributed by the Equalizer) as additional yield. Only CASH/USDC liquidity positions that correspond exactly to these parameters can be staked. Alternatively, users can create their positions directly at this Ekubo page.

Parameter
Value

Pool fee

0.002%

Tick spacing

0.002%

Min price

0.990084

Max price

1.00505

Description of key functions

  1. stake: Transfers an Ekubo liquidity position NFT with the accepted parameters from the caller to the Stabilizer.

  2. unstake: Transfers an Ekubo liquidity position NFT that was stake d by the caller previously from the Stabilizer to the caller, and withdraws all accrued yield.

  3. claim: Withdraw accrued yield for a staked Ekubo liquidity position NFT.

Calculation of accrued yield

The Stabilizer module checks its yinbalance against a snapshot of the last known balance to determine if there is any yield to be distributed. Yield is in turn distributed by incrementing an accumulator value based on per unit of liquidity monotonically over time. Liquidity is tracked as a u128value in Ekubo. Therefore, a user's accrued yield can be determined by multiplying its staked Ekubo position NFT's liquidity with the difference in the current accumulator value and a snapshot of the user's last known accumulator value.

Last updated