In UpliftOnlyExample.sol, when calculating swap fees in onAfterSwap(), the contract calls getQuantAMMUpliftFeeTake() instead of getQuantAMMSwapFeeTake(). This is incorrect because:
Looking at the UpdateWeightRunner contract, there are two separate fee take percentages:
quantAMMSwapFeeTake - For swap fees (accessed via getQuantAMMSwapFeeTake())
An uplift fee take intended for withdrawal uplift fees (accessed via getQuantAMMUpliftFeeTake())
The context is clearly for swap fees since this occurs in onAfterSwap(), so it should have used getQuantAMMSwapFeeTake().
The bug causes the wrong fee percentage to be used for swap fee calculations.
Manual Review
Fix the function call in UpliftOnlyExample.sol in the onAfterSwap function:
Likelihood: High, incorrect fees used everytime during swaps. Impact: Low, fees are still collected but not the right amount. But currently both fees are the same due to another bug.
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.