Links
💲

Oracle Funding

Here we explain how oracle gas costs funding works

Overview of funding

Oracles require constant stream of updates, thus gas costs reimbursement for updates is needed. To achieve this, all oracles deployed by DIA have a dedicated wallet which calls oracle contracts for updates.

How it works

Each deployed oracle has a proxy wallet which is the only entity that can call for an oracle update. Based on data feed update parameters, wallet initiates the transaction with a new value in the oracle smart contract.
In order for the wallet to call oracle contract updates, it requires that the wallet balance includes required amount of native blockchain token to cover the gas costs. It can be funded in one time lump sum and left for a while to keep updating, however monitoring wallet balance is required in order to ensure continuity in oracle operations.
DIA has set-up internal wallet balances trackers and we recommend protocols to also actively monitor the situation and ensure the wallet balance is sufficient.

Estimate Updates Count for Oracles

DIA has a dedicated endpoint for asset historical updates count to help you estimate number of oracle updates. This allows to foresee potential gas costs that would be required for running the oracle.
get
https://api.diadata.org
/v1/assetUpdates/:blockchain/:address/:deviation/:updateFreq
Get historical Oracle updates count