StrategyMainnet
lacks deadline protection over router exchange
Unlike StrategyOp
and StrategyArb
contracts, where swap operations are protected by deadline, StrategyMainnet
lacks deadline protection over router exchange.
Here's the implementation of claimAndSwap
function of StrategyMainnet contract:
As seen above, router.exchange
function doesn't have any deadline paramter passed which makes it vulnearble to malicious attackers either through front-running or pool manipulation.
As opposed to that, StrategyOp
and StrategyArb
contracts have the deadline protection in place:
This discrepancy highlights not only inconsistencies in strategy implementation but also the absence of a slippage protection mechanism during router exchanges, potentially resulting in fund losses from premium swaps and affecting overall strategy operations.
The lack of consistency in StrategyMainnet
implementation and the absence of slippage protection expose the protocol to significant risks, including potential fund losses during premium swaps and compromised strategy operations, which could severely impact user assets and overall protocol reliability.
Manual Review
Consider adding deadline protection like in StrategyOp
contract.
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.