DIA Nexus Documentation
  • Nexus Overview
  • Intro to Nexus
    • How it works
    • Nexus vs. Lumina
    • Integrated Chains
  • Data products
    • Token Price Feeds
    • RWA Price Feeds
    • Randomness
    • Fair-value Feeds
  • How-to Guides
    • Fetch Price Data
      • Solidity
      • Vyper
      • Demo Oracles
      • Chain-specific Guide
        • Aleph Zero
        • Alephium
        • Edu Chain
        • Hydration
        • Kadena
        • LUKSO
        • Somnia
        • Stacks
        • Superseed
        • XRP Ledger (XRPL)
    • Generate Randomness
      • Solidity
      • WASM
      • Demo Oracles
      • Chain-specific Guide
        • Alephium
    • Migrate to DIA
    • Fund the Oracle
    • Build a Scraper
      • Development Cluster Stack
      • DIA Test‐Space with Docker Compose
      • DIA Test‐Space with Minikube
      • Add a new exchange scraper
      • Add a new foreign scraper
      • Add a new liquidity scraper
      • Additional notes
  • Request a Custom Oracle
  • Reference
    • Architecture
      • Data sourcing
      • Data computation
      • Data delivery
    • APIs
      • Token prices
        • RestAPI
          • Request Samples
        • GraphQL
          • Request Samples
      • RWA prices
    • Pricing Methodologies
      • IR: Interquartile Range Filter
      • MAIR: Moving Average with Interquartile Range Filter
      • VWAP: Volume Weighted Average Price
      • VWAPIR: Volume Weighted Average Price with Interquartile Range Filter
      • LST fair price
    • Data Sources
      • CEXes Data
      • DEXes Data
    • Smart Contracts
      • DIAOracleV2.sol
      • DIARandomOracle.sol
    • Randomness Protocol
  • Resources
    • Audits
    • Community & Support
    • Security Bounty Program
    • Research
      • Return Rates in Crypto Farming
      • Crypto Volatility Index
      • Compounded Rates
      • Polkadot Medianizer
    • T&C
      • Licence Agreement
      • Contributor Covenant Code of Conduct
      • Disclaimer
Powered by GitBook
On this page
Export as PDF
  1. Reference
  2. Pricing Methodologies

LST fair price

PreviousVWAPIR: Volume Weighted Average Price with Interquartile Range FilterNextData Sources

Last updated 1 month ago

The usual structure for calculating fair price of Liquid Staked Tokens (LST) is as follows:

LSTfairprice=BaseAssetPrice∗(LockedBaseAssset/IssuedLST)LST fair price = BaseAssetPrice *(LockedBaseAssset/IssuedLST)LSTfairprice=BaseAssetPrice∗(LockedBaseAssset/IssuedLST)

The main components of the formula are:

  1. BaseAssetPrice - price of the non-staked asset which is locked against LST (e.g. for stETH, ETH acts as a base asset)

  2. LockedBaseAsset - number of base assets locked in the LST smart contract (e.g. for stETH, quantity of ETH locked in stETH smart contract)

  3. IssuedLST - amount of LST tokens issued (e.g. for stETH, total supply of stETH represents it)

This is the standard methodology and the data is queried directly from the Smart Contract of the LST issuer. It allows sudden devaluation in case malicious actor manages to mint a large amount of LST tokens and ensures that the issuer is keeping the funds safe.

Depending on the contract type we apply the following logic for valuation:

  • If the assets can be redeemed 1:1 (e.g. stETH), price will always be the same as the base asset, even though the collateralization rate is higher (if collateralization ratio is lower, the price will be adjusted to negative side)

  • If the LST asset increases in value against the base asset because rewards are not paid out directly but rather represent a share of the total pool, the pricing will be dynamic depending on the reewards accrued in the pool (e.g. rETH)

These are the standard methodologies applied to the feeds but some assets might require custom methodologies.