Maximum Swap Fee Percentage is Too High
_MAX_SWAP_FEE_PERCENTAGE is set to 10e16, which is equivalent to 10%. This limit may be too high and may cause users to incur excessive fees when making swaps.
https://github.com/Cyfrin/2024-12-quantamm/blob/main/pkg/pool-hooks/contracts/hooks-quantamm/UpliftOnlyExample.sol
If the contract owner sets hookSwapFeePercentage close to the maximum value, users will lose a large amount of funds on each swap. This may seriously affect the usage and liquidity of the protocol.
vscode
Consider lowering the value of _MAX_SWAP_FEE_PERCENTAGE, such as setting it to 1e16 (1%) or 5e15 (0.5%).
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.