Opus
  • Meet Opus and CASH
  • Rewards
  • Borrowing
  • Liquidations
  • Peg Stability
  • Recovery Mode
  • Global Settlement
  • Risks
  • Resources
  • Glossary
  • Technical Documentation
    • Overview
    • Smart Contracts
      • Shrine Module
      • Abbot Module
      • Gate Module
      • Sentinel Module
      • Purger Module
      • Absorber Module
      • Controller Module
      • Equalizer Module
      • Stabilizer Module
      • Seer Module
      • Receptor Module
      • Flash Mint Module
      • Caretaker Module
      • Transmuter Module
    • Security
      • Internal
      • External
      • Emergency Procedures
    • Governance
      • Onboarding collateral
      • Monitoring collateral
      • Onboarding a reward to the Absorber
    • Deployed Contracts
Powered by GitBook
On this page
  • Description of key functions
  • Calculation of accrued yield
  1. Technical Documentation
  2. Smart Contracts

Stabilizer Module

Enshrining incentivized liquidity

PreviousEqualizer ModuleNextSeer Module

Last updated 2 months ago

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 .

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 . 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.

page
Ekubo