Something.cool
  • Getting started
    • Why Something.cool?
    • 1st stage - Bonding curve
    • 2nd stage - CoolDEX trading
  • Zero-fee coins
    • What is Zero-fee coin?
    • How to launch Zero-fee coin
  • Community coins
    • What is Community coin?
    • Community contribution / How it works?
      • Holders
      • Liquidity providers
      • Burning
    • How to launch Сommunity coin
  • Features
    • Coin Explore
      • New Pairs
      • Coin Vision
    • Spaces
    • Rewards
  • Community
    • Referral program
    • X
    • Media kit
  • Developer Resources
  • Platform Architecture
    • Technical Introduction
    • Overview
    • Components
  • SC Bonding Curve
    • Overview
    • Functions
      • Create Token
      • Buy Token
      • Sell Token
      • Migrate
      • Admin Set Properties
    • Price Calculation
    • Fees
  • CoolDEX
    • Overview
    • Functions
      • Initialize Pool
      • Swap Base In
      • Swap Base Out
      • Deposit
      • Withdraw
      • Withdraw PnL
    • Price Calculation
    • Fees
  • Token Types
    • Token Types
  • Migration Process
    • Migration Process
  • Rewards Claiming
    • Overview
    • Authentication
    • Endpoints
    • Errors
    • Example
  • Reference
    • SC Bonding Curve IDL
    • CoolDEX IDL
    • Log Structure
    • DEVNET EXAMPLES
  • INTERNAL API
    • Overview
    • Register
  • Example: Registering a User via Internal API (JavaScript)
Powered by GitBook
On this page
  • Migration Overview
  • Step 1: Finalization
  • Automatic Finalization
  • Finalization Effects
  • Step 2: Migration Execution
  • Requirements
  • Migration Process
  • Post-Migration
  • Migration Benefits
  1. Migration Process

Migration Process

The migration process is a key feature of the Something Cool platform, enabling tokens to transition smoothly from the SC Bonding Curve bonding curve to the CoolDEX. This page explains the complete migration process, requirements, and technical details.

Migration Overview

Migration is a two-step process:

  1. Finalization: The token sale on SC Bonding Curve must be finalized

  2. Migration Execution: The token and its liquidity are transferred to CoolDEX

Step 1: Finalization

Automatic Finalization

A token sale is automatically finalized when:

  • The available token amount in the bonding curve falls below the POOL_MIGRATION_RESERVES threshold

  • Current threshold: 2,069,000,000 tokens

When this occurs, the token's status is automatically changed to "Finalized" (status = 2).

Finalization Effects

Once finalized:

  • Trading on the bonding curve is disabled

  • The token is marked as ready for migration

  • No more buys or sells can occur on SC Bonding Curve

Step 2: Migration Execution

Requirements

To execute migration:

  • The token must be in the "Finalized" state (status = 2)

  • The migration must be initiated by the admin fee account

  • The proper accounts must be provided to the migration instruction

Migration Process

  1. Extract Tokens and SOL:

    • The Migrate function is called on the SC Bonding Curve contract

    • Remaining tokens in the bonding curve are transferred to the fee account

    • SOL balance (minus a small rent amount) is transferred to the fee account

    • Token status is changed to "Migrated" (status = 3)

  2. Create DEX Pool:

    • In a separate transaction, a pool is created on CoolDEX using the extracted tokens and SOL

    • The Initialize2 function is called on the CoolDEX contract

    • Initial liquidity is established with the migrated assets

    • Token fee parameters are applied according to the original token configuration

Post-Migration

After successful migration:

  • The token is tradable on CoolDEX with its specified fee structure

  • If it's a community contribution token, the fee distribution mechanism is activated

  • LP tokens for the pool are issued to the platform

Migration Benefits

The migration process offers several benefits:

  1. Smooth Transition: Users experience a seamless transition from initial token distribution to active trading

  2. Liquidity Preservation: Liquidity accumulated during the bonding curve phase is transferred to the DEX

  3. Fee Customization: The token's predefined fee structure is applied on the DEX

  4. Price Continuity: The initial DEX price closely matches the final bonding curve price

This two-phase approach provides a complete token lifecycle, from initial distribution through the bonding curve to active trading on a liquidity pool DEX.

PreviousToken TypesNextOverview

Last updated 2 months ago