getLockups

function getLockups(
)external returns(LockupResultInfo[] memory list)

소유중인 Lockup 현황 보기

Return Values

struct LockupResultInfo{
    uint256 timestamp;
    uint256 amount;
    uint256 duration;
    uint256 index;
}
TypeValueDescription

LockupResultInfo[]

list

lockup 정보

LockupResultInfo.uint256

timestamp

lockup 시간

LockupResultInfo.uint256

amount

lockup 토큰 개수

LockupResultInfo.uint256

duration

lockup 기간

LockupResultInfo.uint256

index

lockup index

Example

await lockupContract.getLockups()

// 결과
[
  [
    BigNumber { value: "1662083022" },
    BigNumber { value: "1000000000000000000" },
    BigNumber { value: "0" },
    BigNumber { value: "0" },
    timestamp: BigNumber { value: "1662083022" },
    amount: BigNumber { value: "1000000000000000000" },
    duration: BigNumber { value: "0" },
    index: BigNumber { value: "0" }
  ]
]

Last updated