CCIP v1.5.0 BurnFromMintTokenPool Contract API Reference

BurnFromMintTokenPool

BurnFromMintTokenPool is a concrete implementation that inherits from BurnMintTokenPoolAbstract. It is designed to mint and burn a 3rd-party token, using the burnFrom(address, amount) function for burning tokens, where the contract burns tokens from its own balance. When allowlist is enabled, it ensures only token-developer specified addresses can transfer tokens.

Variables

typeAndVersion

string typeAndVersion

Functions

constructor

constructor(contract IBurnMintERC20 token, address[] allowlist, address rmnProxy, address router) public

Parameters

NameTypeDescription
tokenIBurnMintERC20The token that will be burned and minted.
allowlistaddress[]List of addresses allowed to be original senders for token transfers.
rmnProxyaddressThe RMN proxy address.
routeraddressThe router address.

_burn

function _burn(uint256 amount) internal virtual

Contains the specific burn call for a pool using the token's burnFrom(address, amount) function.

Parameters

NameTypeDescription
amountuint256The amount of tokens to burn.

Get the latest Chainlink content straight to your inbox.