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