depositFromUser

function depositFromUser(
    uint256 _domainId,
    uint256 _destinationChainId,
    string memory _destinationAccount,
    uint256 _amount,
    uint256 _amountMin
)external nonReentrant

브릿지 토큰 입금(교환), 오리지널 토큰에 대한 처리

Parameters

TypeValueDescription

uint256

_domainId

도메인ID

uint256

_destinationChainId

목적지 ChainId

string

_destinateionAccount

수령 EOA

uint256

_amount

변경 할 수량

uint256

_amountMin

변경 할 최소 수량

※ 최소 수량에 대해서는 현재 사용하지 않음 (0)

Example

await paggedChainAContract.connect(accounts[0]).depositFromUser(
    DOMAIN_ID_1,
    CHAIN_ID_B, 
    accounts[1].address,
    ethers.utils.parseEther("50"),
    0
)

2023.05.03

Last updated