The contract contains several state variables and functions that are either unused or redundant. These unused elements add unnecessary complexity to the contract and could lead to higher gas costs, making the code harder to maintain and audit.
useOracle: Declared as a state variable, but never used in the contract. This variable increases complexity without adding functionality.
_tend(): This function is marked as an optional override for strategists but is not implemented or called within the contract.
_tendTrigger(): Similar to _tend(), this function is not implemented or invoked.
_emergencyWithdraw(): This function is a placeholder for emergency withdrawal logic but is not implemented.
availableDepositLimit(): This function is designed to implement a deposit limit but lacks logic and is not used.
Gas Costs: Storing and maintaining unused state variables and functions could unnecessarily increase deployment and transaction costs.
Code Maintenance: Unused functions and variables make the contract harder to read, maintain, and audit.
Potential Confusion: Developers or auditors might mistakenly assume these variables and functions are part of the logic and impact the contract’s behavior.
Remove Unused Variables and Functions: Remove useOracle, unused mappings (nRoutes, routes, swapParams, pools), and unused functions (_tend(), _tendTrigger(), _emergencyWithdraw(), availableDepositLimit()) from the contract to simplify the code and reduce gas costs.
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.