Open code423n4 opened 2 years ago
cmichel
The sYETIToken.buyBack calls the Uniswap-like router with a deadline parameter of block.timestamp + 5 minutes. This addition is unnecessary and a simple block.timestamp can be used as the deadline.
sYETIToken.buyBack
block.timestamp + 5 minutes
block.timestamp
@LilYeti : Duplicate #92
Taking as main
Handle
cmichel
Vulnerability details
The
sYETIToken.buyBack
calls the Uniswap-like router with a deadline parameter ofblock.timestamp + 5 minutes
. This addition is unnecessary and a simpleblock.timestamp
can be used as the deadline.