the quantamm admin has the ability to set swap fee to 100% (1e18), thereby not releasing any ownerfee
UpdateWeightRunner.sol
the line require(_quantAMMUpliftFeeTake <= 1e18, "Uplift fee must be less than 100%");permits the quantammAdmin to set _quantAMMUpliftFeeTaketo 1e18 even though the require statement states otherwise.
UpliftOnlyExample.sol
the function setHookSwapFeePercentageallows the owner in UpliftOnlyExample.sol to set its hookFeePercentage, regardless of the hookFeePercentage set by the owner, the quantammAdmin can claim the all fees in the onAfterSwapin UpliftOnlyExample.solas shown below
if the quantAmmfee is set to 1e18 by the quantAmmfee, the ownerFee is zero
the owner losses it fees if the quantAmm admin sets the swap fee too 100%
Manual review
the quantAmm admin should be given a fixed swap fee percentage , this way the fee could split appropraitely between the owner and quantAmm admin
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.