TSender

Cyfrin
DeFiFoundry
15,000 USDC
View results
Submission Details
Severity: low
Invalid

Redundant Length Check

Summary

The TSender contract performs redundant length checks in the airdropERC20 function. This redundancy results in unnecessary gas consumption.

Vulnerability Details

The contract contains two separate checks for the equality of the lengths of recipients and amounts arrays: one in TSender::areListsValid and another in TSender::airdropERC20. This duplication is not needed and can be optimized to reduce gas usage.

Impact

The redundant checks lead to increased gas costs.

Tools Used

Manual Review

Recommendations

Remove the length check from the TSender::airdropERC20 function and rely on the TSender::areListsValid function to perform this validation.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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