Oracle Aggregator
Switchboard can fetch data from a number of oracles. Here's how to use them.
Pyth
// SNX/USD Task with accepted confidence interval of 1.2%
{
oracleTask: {
pythAddress: "0x39d020f60982ed892abbcd4a06a276a9f9b7bfbce003204c110b6e488f502da3",
pythAllowedConfidenceInterval: 1.2,
},
}Chainlink
// AAVE/USD Task with accepted confidence interval of 1.2%
{
oracleTask: {
chainlinkAddress: "0x3c6AbdA21358c15601A3175D8dd66D0c572cc904"
},
}Switchboard V2
Last updated