Dust Token Balances Cannot Be Claimed By An admin Account
Small reward claims may be too costly to claim due to gas fees, causing dust balances to accumulate. The report suggests allowing an admin to skim these unclaimed tokens after a period of inactivity.
Submitted by leastwood, also found by 0x0x0x
Impact
Users who have a small claim on rewards for various promotions, may not feasibly be able to claim these rewards as gas costs could outweigh the sum they receive in return. Hence, it is likely that a dust balance accrues overtime for tokens allocated for various promotions. Additionally, the _calculateRewardAmount calculation may result in truncated results, leading to further accrual of a dust balance. Therefore, it is useful that these funds do not go to waste.
Proof of Concept
Recommended Mitigation Steps
Consider allowing an admin account to skim a promotion’s tokens if it has been inactive for a certain length of time. There are several potential implementations, in varying degrees of complexity. However, the solution should attempt to maximise simplicity while minimising the accrual of dust balances.
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 reward calculation truncates amounts and users are disincentivised by gas costs, leading to unclaimable dust.
Impact
Dust balances accumulate and cannot be claimed by users, potentially locking funds indefinitely.
What the attacker needed
Small reward amounts; high gas costs
The fix
Consider allowing an admin account to skim a promotion’s tokens if it has been inactive for a certain length of time.
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.
When rewards are very small, the cost to claim them (gas fees) can be higher than the reward itself, so people don't claim them. These tiny amounts pile up as 'dust'. The report suggests letting an admin recover these funds after some time.
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.