Snake Finance | Token Price Feed

INTRODUCTION

Protocol: Snake Finance

Website: https://snake.finance/

Integration: Oracles for price feeds for $SNAKE & $gSNAKE

Use case: Lending & Borrowing, Silo Vaults

Blockchain: Sonic

REQUEST INFORMATION

Assets

Following assets will be included in the Oracle:

Asset Ticker Asset Blockchain Asset Address
SNAKE SONIC 0x3a516e01f82c1e18916ed69a81dd498ef64bb157

Methodology

Select the methodologies that will define the feeds:

  • Volume Weighted Average Price with Interquartile Range (VWAPIR) will be used to calculate the price for the assets. Learn more about it here
  • 5% deviation threshold for updates trigger will be applied for each asset
  • 120 secs update frequency check will be applied
  • 24-hour time-based update frequency will be applied for all assets

See all methodologies for: Cryptocurrencies, NFT collections, Liquid Staked Derivatives

DELIVERY INFORMATION

Select if the feed should be delivered on-chain via oracle and if so, which network:

  • Delivery method: Oracle on Sonic
  • Testnet required: No

NOTES

Additional relevant information: Price Feeds required for Silo Vaults, lending & borrowing on Sonic dApps

Thank you for requesting a data feed via DIA CDR. Please find the oracle information below:

Contracts

The contracts to fetch data from

Network Contract Address
Sonic Mainnet 0x73c4845b066cbba193fd5130554918ce67091a0e

Gas Wallets

The gas wallet is used for pushing data to your contracts. To ensure uninterrupted oracle operation, please maintain sufficient funds in the gas wallet. You can monitor the wallets below to ensure they remain adequately funded at all times.

Network Gas Wallet Address
Sonic Mainnet 0x3D5c8c465BD4A1B0749fcFc4DA5De3AEA0858098

Oracle Configuration

Settings that dictate how the oracle computes and updates data

Pricing Methodology VWAPIR
Deviation (%) & Refresh Frequency 0.5% and 120 seconds
Heartbeat 24h

Asset Feeds

Asset Ticker getValue(key) Asset Markets Overview
SNAKE SNAKE/USD SNAKE Markets

To consume price data, you’ll need to invoke the getValue method on the oracle contract which you can access through the DIA Oracle library or the interface.

If you pass SNAKE/USD as the key, it will return the most recent price of SNAKE in USD with 8 decimal places (e.g. 37329094 is $0.37329094) along with the Unix timestamp of the last price update.

See the full example here.