Switchboard
Last updated
Was this helpful?
Last updated
Was this helpful?
Switchboard provides a trusted execution environment to ensure off-chain oracles are not tempered with.It also allows for developers to deploy custom oracles.
A dynamic field key to store the address of the switchboard::aggregator::Aggregator
that can that provide data to the oracle.
A witness that is added to the suitears::oracle::Request
to prove that it collected data from Coin X Oracle's Pyth Network module.
It requests a price from Pyth Network and submits the information to a Coin X oracle request.
@param self. A suiterars::oracle::Oracle
with this module's witness.
@param request. A hot potato issued from the self
to create a suiterars::oracle::Price
.
@param aggregator. switchboard::aggregator::Aggregator
that the self
will use to fetch the price.
Aborts
the aggregator
is not whitelisted.
the aggregator
price is negative or zero.