burnFromUser

function burnFromUser(
    uint256 _domainId,
    uint8   _burnType,
    uint256 _destinationChainId,
    string memory _destinationAccount, 
    uint256 _amount,
    uint256 _amountMin
)external nonReentrant

λΈŒλ¦Ώμ§€ 토큰 제거(κ΅ν™˜), λž˜ν•‘ 된 토큰에 λŒ€ν•΄

Parameters

TypeValueDescription

uint256

_domainId

도메인ID

uint8

_burnType

전솑(0), 제거(1)

uint256

_destinationChainId

λͺ©μ μ§€ ChainId

string

_destinateionAccount

수령 EOA

uint256

_amount

λ³€κ²½ ν•  μˆ˜λŸ‰

uint256

_amountMin

λ³€κ²½ ν•  μ΅œμ†Œ μˆ˜λŸ‰

β€» μ΅œμ†Œ μˆ˜λŸ‰μ— λŒ€ν•΄μ„œλŠ” ν˜„μž¬ μ‚¬μš©ν•˜μ§€ μ•ŠμŒ (0)

Example

await paggedChainBContract.connect(accounts[0]).burnFromUser(
    DOMAIN_ID_1,
    TYPE_BURN,
    CHAIN_ID_A, 
    accounts[1].address,
    ethers.utils.parseEther("50"),
    0
)

2023.05.03

Last updated