- 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
Recommended
pnpm deps
pnpm deploy:<mumbai | fuji>
See npx hardhat deploy --help
for more options
pnpm test
npx hardhat compile | forge compile
P.S: This code is un-audited and not to be used in production