The TSender
contract performs redundant length checks in the airdropERC20
function. This redundancy results in unnecessary gas consumption.
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.
The redundant checks lead to increased gas costs.
Manual Review
Remove the length check from the TSender::airdropERC20
function and rely on the TSender::areListsValid
function to perform this validation.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.