CDR #023: Lido on Polkadot (stDOT & wstDOT) | asset price

Lido on Polkadot

Lido lets users stake their assets for daily staking rewards. MixBytes is a team of engineers, auditors and analysts, experienced in decentralized systems and blockchain technology. MixBytes are the creators of liquid staked DOT on Lido.

Feed usage

Data type: Liquid staked fair asset value

Use case: Providing price feed for staked assets based on the base asset value and collateral ratio

Specifications

Delivery method: Moonbeam mainnet

Update mechanism: Deviation based

Threshold: 1% of base asset

Methodology: DOT calculated with MAIR120; for stDOT and wstDOT see “Other relevant information” below

Frequency: 120s

Sources (by chain/version): All available markets for DOT

Asset information:

DOT/USD

stDOT/USD

wstDOT/USD

Other relevant information:

stDOT = (DOTPriceInUSD * xcDOTTotalSupplyOnLido) / stDOTTotalSupply

wstDOT= (xcDOTTotalSupplyOnLido * stDOTPrice) / stDOTTotalShares

Oracle provides these values apart from asset information:

stDOTTotalShares

stDOTTotalSupply

xcDOTTotalSupplyonLido

2 Likes

Thanks for submitting your Custom Delivery Request!

The DIA DAO will review your requirements shortly and if all information is correctly provided, a core developer will proceed and deliver the API endpoint. If the requirements are partially or incorrectly requested, a DAO member will get in touch with you again.

Thank you for requesting a DIA CDR. We confirm the CDR specifications were requested correctly. Find the oracle / API endpoint below:

Markets

By querying for blockchain and asset, the API provides the markets used for calculating this feed.

API endpoint

By querying for blockchain and asset, the API provides the asset quotation for each asset in the feed.

Oracle

The oracle adapter is deployed and can be accessed here.

It can be queried for DOT, stDOT and wstDOT values.

The underlying DOT/USD feed is retrieved from this oracle:

You can query for assets by calling the read function getValue() with parameters such as “DOT/USD”. It will return two values:

  1. The price of the asset queried with 8 decimals
  2. The timestamp of the last update

Please make sure to top up the gas wallets very soon, as we only put in some gas to deploy and start the oracle: 0x97cE20f4B7C26C49EBf27B00f0F000D21ab4Ab26

Also make sure it always has sufficient funding.

1 Like