CDR #024: Sylva | stDOT Price feed oracle

INTRODUCTION

Protocol: SYLVA

Website: https://sylva.xyz/

Integration: stDOT price feed oracle

Blockchain: Moonbeam

Use case: Lending and borrowing

REQUEST INFORMATION

Assets

Following assets will be included in the Oracle:

Asset Ticker Asset Blockchain Asset Address Asset Markets Overview Comments
stDOT (market price) Moonbeam 0xFA36Fe1dA08C89eC72Ea1F0143a35bFd5DAea108 Link to app Market price - price derived from traded pairs
stDOT (fair value) Fair value - price derived from base asset and adjusted by contract state

Methodology

  • stDOT (market price)
    • Moving Average with Interquartile Range (MAIR) will be used to calculate the price of stDOT
  • stDOT (fair value)
    • Collateral ratio will be submitted as additional value based on the following formula:
    • stDOT = (DOTPriceInUSD * xcDOTTotalSupplyOnLido) / stDOTTotalSupply
  • 0.5% deviation threshold updates trigger will be applied for both feeds

DELIVERY INFORMATION

Delivery Method Oracle on Moonbeam Network
Is testnet deploy required? No

Integration: stDOT and xcDOT price feeds

REQUEST INFORMATION

Assets

Following assets will be included in the Oracle:

Asset Ticker Asset Blockchain Asset Address Asset Markets Overview Comments
stDOT / ETH Moonbeam 0xFA36Fe1dA08C89eC72Ea1F0143a35bFd5DAea108 stDOT markets Two separate values will be submitted:
  1. stDOT market price
  2. stDOT collateral derived value|
    |xcDOT|Moonbeam|0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080|DOT markets|DOT price will be used as basis for xcDOT evaluation|

Methodology

  • 0.5% deviation threshold for updates trigger will be applied for each asset
  • 120sec time window for trades aggregation will be applied for each asset

stDOT (market price):

  • Volume Weighted Average Price with Interquartile Range (VWAPIR) will be used to calculate the price for the assets.

stDOT (fair value):

  • Collateral ratio will be submitted as additional value based on the following formula:
  • stDOT = (DOTPriceInUSD * xcDOTTotalSupplyOnLido) / stDOTTotalSupply

xcDOT (market price):

  • DOT price and sources will be used for the price feed
  • Volume Weighted Average Price with Interquartile Range (VWAPIR) will be used to calculate the price for the assets.

DELIVERY INFORMATION

Delivery Method Oracles on Moonbeam network
Is testnet deploy required? No
Delivery Estimate 14 days

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 stDOTPrice to receive the stDOT fair value.

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 “stDOT/USD”. It will return two values:

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

For the xcDOT market price, please query “DOT/USD”.

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

Also make sure it always has sufficient funding.