For the complete documentation index, see llms.txt. This page is also available as Markdown.

Migrating Coins

This guide covers how to migrate graduated coins to Liquidity pool (DEX) using the Basememe Factory contract.

Migrate Graduated Coin

To migrate a graduated coin, you send a transaction to call the migrate method.

Method Interface

// solidity interface 

/// @notice Migrate a graduated token to Liquidity pool (DEX)
///
/// @param _token The graduated token address

function migrate(address _token) external nonReentrant;

Events

Successful migration will emit a Migrated event.

/// @notice emitted when a graduated token is migrated
///
/// @param addr The token contract address
event Migrated(
    address token,
    uint256 tokenId,
    uint128 liquidity,
    uint256 amount0,
    uint256 amount1,
    uint256 migrationFee
);

Last updated