Fees from delisted pool still in reward handler will become stuck after delisting
When a pool is delisted, its reference is removed from the address provider, so the reward handler's dynamic list of pools no longer includes it. Consequently, unclaimed fees for that pool remain stuck in the contract and cannot be burned or distributed.
Submitted by 0x52
Unclaimed fees from pool will be stuck.
Proof of Concept
When delisting a pool the pool’s reference is removed from address provider:
Burning fees calls a dynamic list of all pools which no longer contains the delisted pool:
Since the list no longer contains the pool those fees will not be processed and will remain stuck in the contract
Recommended Mitigation Steps
Call burnFees() before delisting a pool.
Alex the Entreprenerd (judge) commented:
The warden has shown how, by removing a pool before calling
burnFees, the removed pool will not receive the portion of fees that it should.Because this finding related to loss of yield, I believe Medium Severity to be appropriate.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the delisting process removes the pool from the address provider before its accumulated fees are burned, so the reward handler's dynamic list no longer includes the pool and its fees are skipped.
Impact
Unclaimed fees from a delisted pool become permanently stuck in the reward handler contract, resulting in a loss of yield for that pool.
What the attacker needed
Pool must be delisted; fees must be unclaimed
The fix
The delisting process should call burnFees() before removing the pool from the address provider.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A smart contract holds fees for various pools. When a pool is removed from the list of active pools, the function that processes fees no longer sees it, so the fees already collected for that pool are never processed and stay locked in the contract.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.