Skip to content

ihamzapped/crowdfunding-ido

Repository files navigation

Crowd Funding IDO

Traits

  • The contract assumes token and IDO contract owner are same
  • Token owner must approve at least the hardcap amount to Ido contract
  • The contract deducts and holds tokens from erc20 owner's account when the user invests in IDO
  • Funds are locked in contract until claim time
  • If hardcap is not met, excess tokens can be burned by any user after sale ends

Setup

Recommended

  1. Create .env from example file
  2. Install pnpm and foundry.
  3. Run the following command in project root:
 pnpm deps

Deploy

 pnpm deploy:<mumbai | fuji>

See npx hardhat deploy --help for more options

Test Contract

 pnpm test

Compile

 npx hardhat compile | forge compile

P.S: This code is un-audited and not to be used in production

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages