Skip to main content
grasp.study
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Blockchain cryptocurrency investment course
·
Module 7
Building a Token Sale Contract
1
Token Supply Models Explained
Compare different token supply models (fixed, mintable, deflationary).
2
Crowdsale Contract Design: State Variables & Logic
Design the state variables and logic for a crowdsale contract.
3
Crowdsale Contribution Function
Implement a function to accept ETH from investors and calculate token amounts.
4
ERC-20 Crowdsale Integration
Integrate the crowdsale with your ERC-20 token to distribute tokens upon purchase.
5
Setting a Funding Cap
Add a funding cap to limit the total investment amount.
6
Setting Crowdsale Start and End Times
Enforce a sale period by defining start and end times for the crowdsale.
7
Whitelist for Restricted Participation
Implement a whitelist to restrict participation to specific addresses.
8
Testing Crowdsale Contracts
Write tests to ensure the crowdsale contract handles funds and token distribution correctly.
Previous module
Smart Contract Security Principles
Next module
Implementing Staking & Rewards