The setAssetPricer
, setLockingPeriod,
and setDisputePeriod
functions of the Oracle contract execute actions that are always expected to be performed atomically.
Failing to do so can lead to inconsistent states in the system.
Consider implementing an additional function that calls the setAssetPricer
, setLockingPeriod
, and setDisputePeriod
functions, so that these actions can be executed atomically in a single transaction.
- OpenZeppelin Opyn Gamma Finding L08
- Timing
- Non-Atomic Functions
- Inconsistent State
- Combine Functions
- Same Tx -> Atomic Effects