BreakerBox

BreakerBox is an on-chain circuit breaker for oracles. It maintains a state for each price feed, whether trading is allowed or suspended. It is modular by design and allows for flexible addition and deletion of price feeds and individual breaking logic. Its conditions are checked and breakers are triggered if necessary by newly added rates in SortedOracles.sol. For each requested swap, BiPoolManager.sol checks against this contract whether trading a specific pair is currently allowed or suspended.

BreakerBox.sol

MedianDeltaBreaker

MedianDeltaBreaker is a circuit breaker that trips if the median oracle report changes by a configured threshold.

MedianDeltaBreaker.sol

ValueDeltaBreaker

MedianDeltaBreaker is a circuit breaker that trips if the median oracle report isn't in a threshold around a static value.

ValueDeltaBreaker.sol

Last updated

#6: 's Mar 28 changes

Change request updated