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
When doing swaps with a Uniswap router from within a contract, there's no need to compute any offset from the current block for the deadline parameter.
The router just checks if deadline >= block.timestamp.
Handle
defsec
Vulnerability details
Impact
When doing swaps with a Uniswap router from within a contract, there's no need to compute any offset from the current block for the deadline parameter.
The router just checks if deadline >= block.timestamp.
Proof of Concept
Tools Used
None
Recommended Mitigation Steps
The most efficient way to provide deadlines for a router swap is to use a hardcoded value that is far in the future, for example,
1e10
.The text was updated successfully, but these errors were encountered: