Multicall
contracts/Multicall.sol:Multicall
Last updated
contracts/Multicall.sol:Multicall
Last updated
The address of the oracle contract. The multicall currently supports Chainlink and Pyth. Keep in mind that the oracle is only for showing prices on the UI and does not affect the protocol. Use the oracle that is available on your chain.
The Feed ID is only for Pyth price feeds. If using chainlink do not upate the Feed ID. If using Pyth then the Feed ID can be obtained from Pyth's website, see the example below.
Chainlink only needs an oracle address so do not change the FEED_ID.
Go to Chainlink's price feeds: https://docs.chain.link/data-feeds/price-feeds/addresses?network=ethereum&page=1
Select the network:
Copy the oracle address for the base token USD price and set ORACLE to that address:
The Multicall settings should look like this:
The Pyth oracle requires both the oracle contract address and feed ID.
Go to Pyth's price feeds, copy the contract address for your network and paste it in ORACLE: https://docs.pyth.network/documentation/pythnet-price-feeds/evm
Go to the Pyth feed ID page and search for your BASE token paired with USD. Make sure you are set to Pyth EVM Mainnet: https://pyth.network/developers/price-feed-ids. Copy the Price Feed ID and paste it in FEED_ID.
The Multicall settings should look like this: