The UpliftOnlyExample hardcodes critical fee parameters (minWithdrawalFeeBps & upliftFeeBps) in the constructor without providing setter functions, limiting the protocol's ability to adapt to market conditions or business requirements.
Protocol cannot adjust fee parameters post-deployment, potentially leading to economic inefficiencies and lost revenue opportunities.
Add testUpliftFeesAreImmutable
in pkg/pool-hooks/test/foundry/UpliftExample.t.sol
and run it :)
Add setter functions with appropriate access control and boundary checks:
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.
Likelihood: Low, it cannot be changed but should not need to be changed often. Impact: Low, the code still works with fees.
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.