You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since our DEX's liquidity pool is guided by an oracle, the biggest risk is the oracle reports incorrect data.
To prevent this, we should set circuit breakers. If any of these conditions are triggered, the liquidity pool won't place any order in the order book:
The price is too old (older than a preset threshold).
The price is too much higher or lower than a moving average. Note we should compute a moving average ourselves, instead of using Pyth's EMA feed, since the entire purpose of this circuit breaker is to prevent irregularities in Pyth feeds.
The text was updated successfully, but these errors were encountered:
Since our DEX's liquidity pool is guided by an oracle, the biggest risk is the oracle reports incorrect data.
To prevent this, we should set circuit breakers. If any of these conditions are triggered, the liquidity pool won't place any order in the order book:
The text was updated successfully, but these errors were encountered: