code-423n4 / 2021-12-yetifinance-findings

0 stars 0 forks source link

Gas: Unnecessary deadline increase #211

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

cmichel

Vulnerability details

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.

kingyetifinance commented 2 years ago

@LilYeti : Duplicate #92

alcueca commented 2 years ago

Taking as main