LST Oracles
Last updated
Last updated
LST (Liquid Staking Token) oracles are crucial components in decentralized finance (DeFi) platforms like iLoop, which determine the theoretical price of each LST on the platform. These oracles help ensure the accuracy and security of the pricing mechanism, which is fundamental for various DeFi operations, including the looping process.
Theoretical Price Calculation:
Formula: The price of an LST is calculated using the formula:
Components:
SOLStaked: The total amount of SOL staked in the pool.
LSTminted: The total amount of LST tokens minted.
Price Increase Mechanism:
Epoch-Based Adjustments: Each epoch, the amount of SOL in the stake pool increases due to:
SOL Proof of Stake Emissions: Rewards from staking SOL.
Transaction Fees: Fees collected from transactions processed by the network.
Stable LST Supply: The number of LST minted remains relatively stable, while the amount of staked SOL increases. This results in the LST price increasing relative to SOL over each epoch.
Decoupling from Market Liquidity: By relying on the theoretical price rather than the market price, the platform does not depend on external liquidity conditions to determine the price of an LST. This reduces the risk of price manipulation and ensures a more stable and predictable pricing mechanism.
The looping process involves leveraging LSTs by depositing them as collateral and borrowing against them. Here’s how the LST oracles integrate into this process:
Initial Deposit: A user deposits SOL and receives LSTs with a theoretical price determined by the oracle.
Borrowing: The user can then borrow SOL against the deposited LSTs, with the loan amount calculated based on the theoretical price provided by the oracle.
Looping: The borrowed SOL can be redeposited to mint more LSTs, repeating the process to achieve higher leverage.
Security: The oracle ensures that the price used for calculations is accurate and not subject to market fluctuations, providing a secure basis for the collateral value.
Liquidation: In the event of a market downturn, the oracle’s accurate pricing helps in the timely identification and liquidation of undercollateralized positions, protecting the protocol from bad debt.