Krystal ILO
  • Welcome
    • 👋Introduction
    • 💭ILO Flow
    • ❓FAQs
  • For Projects
    • 🛠️Set up an ILO project
    • ⚒️Deploy a Liquidity Range
    • 📢Manage Liquidity Sale
    • 💱Whitelist Trading Phase
    • 🪙Deploy Token
    • 🔏Launch Liquidity
  • FOR ILO PARTICIPANTS
    • 🏃‍♂️Purchase Liquidity
    • 🔱Purchase Token
    • 💰Vesting Mechanism
    • ⛏️LP Position Tracking & Claiming
  • Resources
    • 🔗Official links
      • Krystal Website
      • Krystal ILO Website
      • Krystal ALM Website
      • Twitter
      • Telegram
      • Krystal Master Docs
      • Krystal ALM Docs
    • 🗒️Smart Contract
Powered by GitBook
On this page
  1. For Projects

Whitelist Trading Phase

PreviousManage Liquidity SaleNextDeploy Token

Last updated 8 months ago

The project could optionally set up a whitelist trading phase for their users.

  • An _beforeTokenTransfer is set up so that only Trading Whitelisted users can purchase tokens on DEX with a preset allocation.

  • The project manages the whitelist trading phase timeline.

/// @notice Before token transfer hook
/// @dev It will call `checkWhitelist` function and if it's succsessful, it will transfer tokens, unless revert
function _beforeTokenTransfer(address from, address to, uint256 amount) internal override {
    if (_whitelistContract != address(0)) {
        IWhitelist(_whitelistContract).checkWhitelist(from, to, amount);
    }
    super._beforeTokenTransfer(from, to, amount);
}

Projects could customize their own initial trading mechanism by forking our repo .

We also provide an in-app Token Deployment tool Deploy Token.

💱
https://github.com/KYRDTeam/ilo-contracts/tree/master