User cannot remove liquidity from vault when poolData.poolConfigBits.shouldCallAfterRemoveLiquidity() == true and pool is disabled for donation.
https://github.com/Cyfrin/2024-12-quantamm/blob/a775db4273eb36e7b4536c5b60207c9f17541b92/pkg/pool-hooks/contracts/hooks-quantamm/UpliftOnlyExample.sol#L557
UpliftOnlyExample.sol#L557~566 which is called when adding liquidity to vault is as follows.
But the pool is disabled for donation.
In that case, above call is reverted by following code snippet.
As a result, user cannot remove liquidity from vault when the pool is configured with poolData.poolConfigBits.shouldCallAfterRemoveLiquidity() == true and config.supportsDonation() == false.
Manual review
We have to modify codes so that the call from hook to add liquidity is not reverted even if config.supportsDonation() == false.
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.