Platform: Code4rena
Start Date: 28/06/2022
Pot Size: $25,000 USDC
Total HM: 14
Participants: 50
Period: 4 days
Judge: GalloDaSballo
Total Solo HM: 7
Id: 141
League: ETH
Rank: 24/50
Findings: 1
Award: $70.47
🌟 Selected for report: 0
🚀 Solo Findings: 0
The ensure(uint deadline) modifier is used in multiple functions such as addLiquidity and removeLiquidity but the require statement is commented out, the modifier is essentially usesless.
modifier ensure(uint deadline) { //require(deadline >= block.timestamp, "BaseV1Router: EXPIRED"); _; }
The modifier checks if deadline has already expired. In all cases of its use, the deadline is passed as an argument to the function. Even if it is used, it can be bypassed by supplying a wrong deadline. It depends if you want to keep the ensure modifier and uncomment the require statement or outright remove it as it serves no purpose.
#0 - GalloDaSballo
2022-08-14T19:48:44Z
Dup of #90