Trading Methods
CoinFactory provides separate methods for ERC-20 reserve tokens and native ETH.
Buy with an ERC-20 Reserve Token
/**
* @dev Mint new tokens by depositing reserve tokens.
* @param token The address of the token to mint.
* @param tokensToMint The amount of tokens to mint.
* @param maxReserveAmount The maximum reserve amount allowed for the minting operation.
* @param receiver The address to receive the minted tokens.
*/
function mint(
address token,
uint256 tokensToMint,
uint256 maxReserveAmount,
address receiver
) external returns (uint256 reserveAmount);
Buy with ETH
Sell for an ERC-20 Reserve Token
Sell for ETH
Last updated