The-Poolz core decentralized application for creating Initial DEX Offerings.
npm install
truffle run coverage
truffle dashboard
truffle migrate --f 1 --to 1 --network dashboard
_Token - ERC20 token address for sale.
_FinishTime - after the time finished the pool expired. PO can withdraw remaining tokens.
_Rate - during the investment period, the rate will be multiplied by the investment amount.
_POZRate - rate for whitelisted users. _POZRate must be greater than the regular rate.
_StartAmount - total amount of the tokens to sell in the IDO. The contract will lock the tokens until the investment time.
_LockedUntil - set to zero to use Direct Sales Pools, or enter a time in the future to use Time-Locked Pools.
_MainCoin - trading token address. Investors will use this token/coin to purchase IDO tokens.
_Is21Decimal - If true, the rate will be rate*10^-21.
_Now - start pool time. Tokens can only be purchased after the start time.
_WhiteListId - the whitelist ID we will be working with. The white list contains a list of users with primary access to sales.
The main types are Direct Selling Pools (DSP) and Time Locked Pools (TLP).
Created: the pool is exclusively available for $POOLZ token holders.
Open: the pool is available for all Poolz users.
Out of Stock: the predefined supply of auctioning tokens has been sold-out, but the pool’s duration has not ended. In the case of TLP, tokens will be locked for the remaining duration.
Finished: the pool has reached the end of its stipulated duration. Both for DSP and TLP, the leftover tokens are returned to the PO’s wallet at this point. Investors, on the other hand, get their tokens purchased (swapped) through TLP.
Closed: the pool is complete and tokens have been duly disbursed.
The-Poolz Contracts is released under the MIT License.