QuantAMM

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

Uplift fee setter and getter are setting and getting the wrong state variable.

Summary

The setQuantAMMUpliftFeeTake and getQuantAMMUpliftFeeTake functions are using the swap fee state variable quantAMMSwapFeeTake instead of their own uplift fee state variable.

Impact

Depending on the eventual implementation of the swap fee the use of one variable will make it imposible to configure a separate uplift fee %.

Tools Used

Manual review

Recommendations

Create an uplift fee state variable and implement it in it's setter and getter functions.

Updates

Lead Judging Commences

n0kto Lead Judge 11 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.

Give us feedback!