setLockups

function setLockups(
    bytes _lockups
)

Lockup ν•œλ²ˆμ— 등둝

Parameters

TypeValueDescription

bytes

_lockups

lockup 정보듀

β€» ABI Encode ν˜•νƒœ

struct LockupRequest{
    address account;
    uint256 amount;
}
TypeValueDescription

address

account

계정 μ£Όμ†Œ

uint256

amount

lockup 토큰 μˆ˜λŸ‰

β€» 락업 토큰은 μ΅œμ†Œ 12 Ether 이상

Example

let lockupInfo = [
    [accounts[1].address, ethers.utils.parseEther("100")],
    [accounts[2].address, ethers.utils.parseEther("200")],
    [accounts[3].address, ethers.utils.parseEther("300")],
]

// Encode ν˜•νƒœλ‘œ μΉ˜ν™˜
const abiCoder = ethers.utils.defaultAbiCoder
const encodeLockupInfo= abiCoder.encode(["tuple(address, uint256)[]"], [mintInfo])

// exec
await lockupContract.setLockups(encodeLockupInfo)

2023.03.22

Last updated