Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Broken financial logic in `claimFees` function

Summary

Description: In MerkleAirdrop contract the fee for claiming an airdrop is only 1e9and it
is not economically profitable to call claimFees function for contarct owner.

Vulnerability Details

Proof of Concept:

As we know this contract is designed to airdrop 25 usdc to 4 lucky winners and the fee for claiming this reward is only 1e9 or 1 GWEI. So expected balance will be 4 GWEI but calling claimFees even with gas price 1 gwei we will spend 21000 gwei for transfering 4 GWEi to the contract owner. Sounds weird for me.

Impact

We have useless function claimFees that will never be called by contract owner.

Tools Used

Manual review.

Recommendations

I propose to remove fee for claiming the airdrop or make it higher.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice
inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Economically Impractical Fee

Support

FAQs

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