CCIP v1.5.1 BurnFromMintTokenPool Contract API Reference

The BurnFromMintTokenPool contract extends BurnMintTokenPoolAbstract to implement burn/mint functionality for third-party tokens using the burnFrom(from, amount) signature.

Functions

constructor

constructor(
    IBurnMintERC20 token,
    uint8 localTokenDecimals,
    address[] memory allowlist,
    address rmnProxy,
    address router
) TokenPool(token, localTokenDecimals, allowlist, rmnProxy, router)

Initializes the token pool with the specified parameters and approves the pool to burn from itself.

Parameters

NameTypeDescription
tokenIBurnMintERC20The token managed by this pool
localTokenDecimalsuint8The number of decimals for the token on the local chain
allowlistaddress[]List of addresses allowed to be original senders for token transfers. When allowlist is enabled, it ensures only token-developer specified addresses can transfer tokens
rmnProxyaddressAddress of the RMN proxy
routeraddressAddress of the router

_burn

function _burn(
    uint256 amount
) internal virtual override

Burns the specified amount of tokens using the burnFrom(from, amount) signature.

Parameters

NameTypeDescription
amountuint256Amount of tokens to burn

typeAndVersion

string public constant override typeAndVersion = "BurnFromMintTokenPool 1.5.1"

Returns the type and version of the contract.

Return Value

TypeDescription
stringThe string "BurnFromMintTokenPool 1.5.1"

Get the latest Chainlink content straight to your inbox.