Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ready for Audit] Create MerkleTreeAirdropForERC20 module #16

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

deep-quality-dev
Copy link

No description provided.

MerkleTreeAirdrop/README.md Outdated Show resolved Hide resolved
MerkleTreeAirdrop/README.md Outdated Show resolved Hide resolved
@solcmoon
Copy link

solcmoon commented Feb 2, 2023

@deep-quality-dev
Can you override connectToOtherContracts function?
So users can integrate ERC20 module and this module when they deploy smart contracts.

@deep-quality-dev deep-quality-dev changed the title Create MerkleTreeAirdrop Module Create MerkleTreeAirdropForERC20 Module Feb 5, 2023
@@ -0,0 +1,7 @@
GOERLI_INFURA_API_KEY=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove file

MerkleTreeAirdrop/.prettierrc Outdated Show resolved Hide resolved
address public token;

constructor(address token_, bytes32 merkleRoot_) {
token = token_;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low Severity (Information): Zero Address Check

MerkleTreeAirdrop.constructor(address,bytes32).token_ lacks a zero-check on :
                - token = token_

Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#missing-zero-address-validation

Recommendation: if (token_ == address(0)) { /* DO SOMETHING */ }

@oselezi
Copy link
Contributor

oselezi commented Feb 13, 2023

After you fix those three, you can change this PR title to [Ready for Audit] Create MerkleTreeAirdropForERC20 module.

MerkleTreeAirdrop/hardhat.config.ts Outdated Show resolved Hide resolved
MerkleTreeAirdrop/package.json Outdated Show resolved Hide resolved
@@ -0,0 +1,46 @@
import { ethers, run } from "hardhat";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove entire scripts folder

MerkleTreeAirdrop/tsconfig.json Outdated Show resolved Hide resolved
@deep-quality-dev deep-quality-dev changed the title Create MerkleTreeAirdropForERC20 Module [Ready for Audit] Create MerkleTreeAirdropForERC20 module Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants