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
Say on an L2 (e.g. Arbitrum), if the sequencer goes down for a few hours, no swap would be able to take place. As such, the first swap that happens can swing the instant clamped (and of course raw) price a lot. In other words, the clamp becomes quite useless if there are no swaps for an extended period of time, or put it inversely, the clamp works best when there are frequent swaps.
e.g. with a 1bp/s rate of change, if there are no swaps for 2 hours (7200 s), the swap can move the price by 72% and it would not exceed the clamp.
Potential mitigations:
New borrows use the instant price in the case where there has been no oracle observation for X period
Liquidations use a longer TWAP (e.g. 1-hr TWAP) instead of the normal TWAP (10-15 mins)
Clamp the max change within one trade
5% ?
The text was updated successfully, but these errors were encountered:
Say on an L2 (e.g. Arbitrum), if the sequencer goes down for a few hours, no swap would be able to take place. As such, the first swap that happens can swing the instant clamped (and of course raw) price a lot. In other words, the clamp becomes quite useless if there are no swaps for an extended period of time, or put it inversely, the clamp works best when there are frequent swaps.
e.g. with a 1bp/s rate of change, if there are no swaps for 2 hours (7200 s), the swap can move the price by 72% and it would not exceed the clamp.
Potential mitigations:
The text was updated successfully, but these errors were encountered: