When swapping WETH to ALETH, the function uses Ramses/Velo router to swap, and sets block.timestamp
as the deadline.
Protocols shouldn't set the deadline to block.timestamp [more on this] as a validator can hold the transaction and the block it is eventually put into will be block.timestamp, so this offers no protection.
Ref:
https://dacian.me/defi-slippage-attacks#heading-no-expiration-deadline
block.timestamp
is not good enough.
Manual Review
Recommend setting deadline as a parameter instead.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.