Bonding Curve Stage Trading

This guide covers coins trading during Bonding Curve stage which are execute through Basememe Factory contract. There are 4 methods available for trading.

Buy Coins with Exact Collateral Value

The buyExactIn method accepts a specified collateral amount (Base ETH) and buy the maximum possible number of coins for that input.

Method Interface

// solidity interface 

/// @notice Buy maximum coin with specified collateral amount
///
/// @param _token The token contract address
/// @param _amountOutMin The minimum amount of token expected to receive for collateral amount sending in
/// @param _tradeReferrer The Trade Referrer address to receive reward
function buyExactIn(
    address _token,
    uint256 _amountOutMin,
    address _tradeReferrer
)
    external
    payable;

Events

A Buy event will be emitted upon successful coin purchase.


Buy Exact Coin Amount

The buyExactOut method allows the buyer to specify the exact number of coins to purchase with the collateral amount (Base ETH) sent in.

Method Interface

Events

A Buy event will be emitted upon successful coin purchase.


Sell Exact Coin Amount

The sellExactIn method accept the exact number of coins to sell and receives at least the minimum expected collateral (Base ETH) in return.

Events

A Sell event will be emitted upon successful coin sale.


Sell Coins for Exact Collateral Value

The sellExactOut method allows accept the exact collateral amount to receive upon coin sale, with the required coin amount (up to a maximum) specified.

Events

A Sell event will be emitted upon successful coin sale.

Last updated