TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: high
Invalid

Token recovery does not decrement allocation

Vulnerability Details

The recoverTokens function does not decrement the _totalAuctionTokenAllocation after token recovery. This oversight can lead to more tokens being recovered than intended, potentially depleting the auction's token allocation and causing an imbalance in the contract's token management.

Impact

High, depletion of auction tokens

Tools Used

Manual Review

Recommendations

After recovering tokens in the recoverTokens function, ensure to decrement the _totalAuctionTokenAllocation by the recovered amount. This adjustment will maintain the correct allocation balance and prevent excessive token recovery.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.