CDR | Macro Millions | Token Price Feed

INTRODUCTION

Protocol: Macro Millions

Website: https://macromillions.io

Integration: Custom Oracle

Use case: Lending and DeFi protocols using assets on Base

Blockchain: Base

REQUEST INFORMATION

Assets

The following assets will be included in the Oracle:

$TOSHI, Base, CA: 0xAC1Bd2486aAf3B5C0fc3Fd868558b082a531B2B4, https://www.diadata.org/app/price/asset/Base/0xAC1Bd2486aAf3B5C0fc3Fd868558b082a531B2B4/

Methodology

Select the methodologies that will define the feeds:

  • VWAP: Volume Weighted Average Price will be used to calculate the price for the assets
  • .1% 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 Base
  • Testnet required: No

See delivery options

NOTES

Additional relevant information:


Learn more about DIA CDRs here

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
Base Mainnet 0x1B65692580bdF760CeB86F4c91D0389D3C1E0767

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
Base Mainnet 0xB14F502634037084C2B7Fe2a8530eF2986D773b4

Oracle Configuration

Settings that dictate how the oracle computes and updates data

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

Asset Feeds

Asset Ticker getValue(key) Asset Markets Overview
TOSHI TOSHI/USD TOSHI 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 TOSHI/USD as the key, it will return the most recent price of TOSHI in USD with 8 decimal places (e.g. 79844 is $0.00079844) along with the Unix timestamp of the last price update.

See the full example here.

Thank you for requesting a data feed. The following assets have been added to the oracle on Base Mainnet:

Asset Ticker getValue(key) Asset Markets Overview
DEGEN DEGEN/USD DEGEN Markets
KTA KTA/USD KTA Markets
doginme doginme/USD Doginme Markets

Thank you for requesting a data feed. The following assets have been added to the oracle:

Asset Ticker getValue(key) Asset Markets Overview
WMTX WMTX/USD WMTX Markets
SKI SKI/USD SKI Markets