In the setQuantAMMUpliftFeeTake
function, the quantAMMSwapFeeTake
variable is updated, and the getQuantAMMUpliftFeeTake
function returns the value of quantAMMSwapFeeTake
. However, there is no dedicated quantAMMUpliftFee
variable, leading to potential overwriting and overreading of quantAMMSwapFeeTake
. This causes the protocol to deviate from the intended behavior set by the admin.
The absence of a quantAMMUpliftFee
variable results in the incorrect use of quantAMMSwapFeeTake
for uplift fee operations. This overlap leads to unintended behavior, preventing the protocol from functioning as designed.
The protocol fails to collect uplift fees as intended, potentially reducing revenue and causing operational inconsistencies.
Manual Review
Introduce a dedicated quantAMMUpliftFee
variable
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.