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
Assert that a swap does not get executed beyond a certain delta from a recent price.
Motivation
If a client sets the wrong uint256 minimumAmountOut parameter in a swap call, the call can be MEV-arbitraged. To prevent the wrong parameter set at an interface level, we can accept a swap execution gas increase and add a check of maximum delta against an oracle price, say 9116 ticks (~2.5x oracle price) just as an example.
Specification
TBD.
Rationale
Improve safety.
The text was updated successfully, but these errors were encountered:
Summary
Assert that a swap does not get executed beyond a certain delta from a recent price.
Motivation
If a client sets the wrong
uint256 minimumAmountOut
parameter in a swap call, the call can be MEV-arbitraged. To prevent the wrong parameter set at an interface level, we can accept a swap execution gas increase and add a check of maximum delta against an oracle price, say 9116 ticks (~2.5x oracle price) just as an example.Specification
TBD.
Rationale
Improve safety.
The text was updated successfully, but these errors were encountered: