In the UpdateWeightRunner Contract, we are setting two different types of protocol fees: one for swapping and the other for withdrawal. However, in the setQunatAMMUpliftFeeTake() function, we are setting the fee for Swapping, which is incorrect.
The quantAMMSwapFeeTake state variable is being changed in two functions: setQuantAMMSwapFeeTake and setQuantAMMUpliftFeeTake. Both functions are made to change distinct state variables, but they are changing the same state variable. However, the quantAMMSwapFeeTake should only be changed by the setQuantAMMSwapFeeTake function.
AFFECTED CODE:
Incorrect Settings can lead to financial loss to both the users and the platform.
Manual Review
Add another state variable called quantAMMUpliftFeeTake and change the state variable in the setQuantAMMUpliftFeeTake function.
Likelyhood: High, calling setters or getters Impact: Low/Medium, both getters return `quantAMMSwapFeeTake` and `setQuantAMMUpliftFeeTake` modify `quantAMMUplfitFeeTake`. Real impact: those 2 values will be always the same.
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.