The official smart contracts for StellaSwap IDO. The repository contains two contracts:
- IDOLocker.sol - The contract responsible to lock xStella for getting allocation on Presale.
- IDOSale.sol - The actual IDO contract to get xStella details from Locker and calculate Max Cap of user.
- Create or Update Pools
- Each Pool will have settings such as:
- Start Time - The time to start locking from - usually 5 days before presale.
- End Time - The time to stop locking till - usually 24 hours before pre-sale.
- Unlock time - The time when users will be able to unlock tokens - usually 10 days after presale.
Steps to Perform IDO
- Initialize contract with correct details
- Initialize settings with correct details
- Presale owner to send Sale Tokens
- White list users if whitelist sale
- Add Tiers ( Tier includes two params, locked token and max cap)
yarn test test/1-ido-locker-test.js