QuantAMM

QuantAMM
49,600 OP
View results
Submission Details
Severity: medium
Valid

Wrong Uplift Fee Take

Summary

In UpdateWeightRunner we should have both quantAMMUpliftFeeTake and quantAMMSwapFeeTake. However, currently that is not the case.

Vulnerability Details

Setting quantAMMUpliftFeeTake is currently setting quantAMMSwapFeeTake and fetching it is fetching also the swap fee take which should not be the case.

Impact

Confusion of the fee structure and also wrong accounting of quantAMMSwapFeeTake when it is changed from setQuantAMMUpliftFeeTake.

Tools Used

Manual Review

Recommendations

Add the quantAMMUpliftFeeTake and fix the functionality of setting it and fetching it.

Updates

Lead Judging Commences

n0kto Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

finding_quantAMMSwapFeeTake==quantAMMUplfitFeeTake

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.