Token launches are critical events that distribute tokens to the public while raising capital. Different models offer varying levels of fairness, security, and decentralization.
Launch Methods Comparison
ICO (Initial Coin Offering)
ICO Structure
contract ICO {
IERC20 public token;
address public owner;
uint256 public tokenPrice;
uint256 public hardCap;
uint256 public softCap;
uint256 public totalRaised;
mapping(address => uint256) public contributions;
enum State { Active, Successful, Failed, Closed }
State public state;
constructor(
address _token,
uint256 _price,
uint256 _hardCap,
uint256 _softCap
) {
token = IERC20(_token);
tokenPrice = _price;
hardCap = _hardCap;
softCap = _softCap;
state = State.Active;
}
function contribute() external payable {
require(state == State.Active, "ICO not active");
require(totalRaised + msg.value <= hardCap, "Hard cap reached");
contributions[msg.sender] += msg.value;
totalRaised += msg.value;
if (totalRaised >= hardCap) {
state = State.Successful;
}
}
function claimTokens() external {
require(state == State.Successful, "ICO not successful");
require(contributions[msg.sender] > 0, "No contribution");
uint256 tokenAmount = contributions[msg.sender] * 10 ** token.decimals() / tokenPrice;
contributions[msg.sender] = 0;
token.transfer(msg.sender, tokenAmount);
}
function refund() external {
require(state == State.Failed, "ICO not failed");
require(contributions[msg.sender] > 0, "No contribution");
uint256 amount = contributions[msg.sender];
contributions[msg.sender] = 0;
payable(msg.sender).transfer(amount);
}
}
contract TokenVesting {
IERC20 public token;
address public beneficiary;
uint256 public totalAmount;
uint256 public releasedAmount;
uint256 public startTime;
uint256 public cliffDuration;
uint256 public vestingDuration;
constructor(
address _token,
address _beneficiary,
uint256 _amount,
uint256 _cliff,
uint256 _duration
) {
token = IERC20(_token);
beneficiary = _beneficiary;
totalAmount = _amount;
startTime = block.timestamp;
cliffDuration = _cliff;
vestingDuration = _duration;
}
function vestedAmount() public view returns (uint256) {
if (block.timestamp < startTime + cliffDuration) {
return 0;
}
uint256 elapsed = block.timestamp - startTime;
if (elapsed >= vestingDuration) {
return totalAmount;
}
return totalAmount * elapsed / vestingDuration;
}
function claim() external {
uint256 vested = vestedAmount();
uint256 releasable = vested - releasedAmount;
require(releasable > 0, "Nothing to claim");
releasedAmount += releasable;
token.transfer(beneficiary, releasable);
}
function revoke() external {
require(msg.sender == owner(), "Not owner");
uint256 remaining = totalAmount - releasedAmount;
token.transfer(owner(), remaining);
}
}
Vesting Schedule Parameters
Parameter
Typical Range
Purpose
Cliff
6-12 months
Prevent immediate dumping
Duration
2-4 years
Long-term alignment
Release Frequency
Monthly/Quarterly
Predictable unlocks
Milestone Bonus
Variable
Performance incentives
Revocation
Optional
Team protection
Anti-Rug Mechanisms
Rug Pull Types
Type
Description
Prevention
Liquidity Removal
Developer removes liquidity
Time-locked liquidity
Tax Increase
Hidden mint/tax functions
Verified contracts
Honeypot
Users can't sell
Automated testing
Mint Attack
Unlimited token minting
Capped supply
Proxy Upgrade
Hidden logic changes
Transparent proxies
Anti-Rug Implementation
contract AntiRugToken is ERC20 {
uint256 public constant MAX_SUPPLY = 1000000 * 10 ** 18;
bool public renounced;
constructor() ERC20("SafeToken", "SAFE") {
_mint(msg.sender, MAX_SUPPLY);
}
// Renounce ownership (irreversible)
function renounceOwnership() external {
require(msg.sender == owner(), "Not owner");
renounced = true;
_transferOwnership(address(0));
}
// Cannot mint more tokens
function mint(address, uint256) external pure override {
revert("Minting disabled");
}
// Cannot pause transfers
function pause() external pure {
revert("Pausing disabled");
}
// Cannot blacklist
function blacklist(address) external pure {
revert("Blacklisting disabled");
}
}
Liquidity Locking
// Time-locked liquidity
contract LiquidityLock {
IERC20 public lpToken;
uint256 public lockTime;
uint256 public lockDuration;
function lock(uint256 amount) external {
lpToken.transferFrom(msg.sender, address(this), amount);
lockTime = block.timestamp;
lockDuration = 365 days;
}
function withdraw() external {
require(block.timestamp >= lockTime + lockDuration, "Still locked");
lpToken.transfer(msg.sender, lpToken.balanceOf(address(this)));
}
}
Real-World Examples
Successful Launches
Project
Year
Method
Raised
Current Market Cap
Ethereum
2014
ICO
400B+
Uniswap
2020
Airdrop
5B+
Yearn
2020
Fair Launch
500M+
Optimism
2022
Airdrop
3B+
Arbitrum
2023
Airdrop
10B+
Failed Launches
Project
Year
Method
Issue
Result
DAO
2016
ICO
Hack
Hard fork
BitConnect
2017
ICO
Ponzi
Collapse
Terra
2022
Fair Launch
Algorithm failure
$40B loss
FTX
2022
IEO
Fraud
Bankruptcy
Trade-offs
Launch Method Comparison
Aspect
ICO
IEO
IDO
Fair Launch
Accessibility
High
Medium
High
High
Regulatory Risk
High
Medium
Medium
Low
Scam Risk
High
Low
Medium
Low
Liquidity
Low
High
Medium
Low
Decentralization
Medium
Low
High
High
Cost
Low
High
Medium
Low
Vesting vs No Vesting
Aspect
With Vesting
No Vesting
Sell Pressure
Lower initially
Immediate dump risk
Price Stability
Higher
Volatile
Long-term Alignment
Yes
No
Investor Confidence
Higher
Lower
Team Motivation
Maintained
May decrease
Interview Questions
How does an LBP differ from a traditional DEX launch?
Answer: LBPs start with a high token weight that gradually decreases, creating natural price discovery through sell pressure. This prevents front-running and whale dominance.
What are the key metrics to evaluate a token launch fairness?
Answer: Team allocation percentage, vesting schedule, liquidity lock duration, initial FDV, and distribution method. Lower team allocation and longer vesting indicate fairness.
How do anti-rug mechanisms protect investors in DeFi?
Answer: Through renounced ownership, locked liquidity, verified contracts, and capped supply. These prevent developers from extracting value or manipulating the token.
Quiz Questions
What is the main advantage of an IDO over an IEO?
A) Lower fees
B) Decentralized participation â
C) Better liquidity
D) Lower risk
What does "cliff" mean in token vesting?
A) Price floor
B) Lock period before any tokens unlock â
C) Maximum release
D) Milestone target
Which mechanism prevents liquidity removal scams?
A) KYC verification
B) Time-locked liquidity â
C) White listing
D) Maximum transaction limits
Practice
Deploy a simple token sale contract with whitelist and hard cap
Implement a vesting contract with cliff and linear release
Create a basic LBP simulation with price discovery
Analyze historical token launches and their outcomes
CW
ChatWhole Learn Editorial Team
Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.