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

Fees are too low, transaction to retrieve them costs more than the earnings

Description

The protocol asks for 1e9 fees per claim, which lead at most at 4 Gwei if all users claim their airdrop before the claimFees function is called. However price of the transaction on ZkSync will be higher. The price per used gas is 0.025 gwei on ZkSync (recently this has been a pretty constant number) and the function will consume about 8700 gas according to Foundry. So, the transaction will cost about 217 Gwei, which is 57 times larger than the collected fees.

Risk

Likelyhood: High

  • The owner will always lose money collecting the fees.

Impact: Low/Medium

  • No earning for the protocol

  • Loss of funds to collect fees.

Recommended Mitigation

Increase the fees or remove this functionnality.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice
n0kto Submitter
about 1 year ago
inallhonesty Lead Judge
about 1 year ago
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.