How To Use Witnet Price Feeds
Witnet price feeds can be integrated into your own Celo Mainnet contracts in two different ways:- Integrate through proxy Recommended for testing and upgradability. This is the preferred way to consume the Witnet-powered price feeds. Through using the Price Feeds Router.
- Integrate directly Optimized for gas cost and decentralization
Reading multiple price pairs from the router
WitnetProxy Copy the currentWitnetProxy address for your network from Witnetâs Celo price feeds page; live feeds and their update history are on feeds.witnet.io/celo. Witnet rotates these contracts, so always read the address from their catalog rather than hardcoding one.
The Witnet Proxy contract is the easiest and most convenient way to consume Witnet price feeds on any of the supported chains.