nftPool[tokenID] is not reset after lpNFT.burn(feeDataArray[i].tokenID); in onAfterRemoveLiquidity
After burning lpNFT token, variables related to it (such as nftPool[tokenID]) should also be reset value to avoid confusion. But the onAfterRemoveLiquidity function does not do that. UpliftOnlyExample.sol#L499
This causes confusion and affects the operations of other parties when performing operations related to nftPool.
Place this test into UpliftExample.t.sol.
Then in /2024-12-quantamm/pkg/pool-hooks run forge test --mt test_RemoveLiquidityDoesNotReset_nftPool. It passes.
After burn, nftPool[TokenId] = pool.
Manual review
Foundry
Reset nftPool value atfer burn
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.