Dapp Use Cases
Intra-tx Oracle Deviation
Description
This assertion checks if the price of an oracle has changed more than 10% within a transaction that requests several price updates from an oracle.
Use Case
Many protocols rely on oracles to get the price of assets. If the price of an asset is manipulated within a transaction, it can lead to losses for the protocol. This assertion analyzes all calls to updatePrice from an oracle in order to make sure that the price isn’t deviating more than X% within a transaction.