In StrategyOp.sol
and StrategyArb.sol
, there is no function that allows to add routes for token swap or sets the routes for token swap.
For example: In StrategyMainnet.sol
, its having a function named as addRoute
Allows to add a new path to be passed into Router for swap.
The current design relies on the keeper to supply the swap path (_path) during the claimAndSwap function. If this path is incorrect or malicious, it could cause:
Inefficient swaps.
Loss of funds.
Direct exploitation by routing swaps to malicious pools.
Manual Review
Introduce a function for authorized actors (e.g., onlyManagement) to add or update paths for the Ramses Router. A function similar to addRoute
implemented in StrategyMainnet.sol
can be added to StrategyOp.sol
and StrategyArb.sol
.
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.