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

Wrong hardcoded USDC address

Summary

In Deploy.s.sol the hardcoded USDC addres, stored in the s_zkSyncUSDC variable has a typo in it. The

Impact

High, as the run function will create a MerkleAirdrop with a wrong IERC20 token. Afterwards in the same function, real USDC will be sent, which will be forever locked in the MerkleAirdrop, since MerkleAirdrop won't be capable of sending it back in any way.

Tools Used

Manual Review

Recommendations

Two actions would make the script working properly and behave better:

  1. Paste the correct USDC address in the s_zkSyncUSDC variable

  2. Use s_zkSyncUSDC in the transfer of USDC down the function.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

usdc-wrong-address

Support

FAQs

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