getLockups

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

μ†Œμœ μ€‘μΈ Lockup ν˜„ν™© 보기

Return Values

struct LockupResultInfo{
    uint256 timestamp;     // Lockup μ‹œκ°„
    uint256 amount;        // Lockup 토큰 개수
    uint256 duration;      // Lockup κΈ°κ°„
    uint256 index;         // Lokcup Index 
}
TypeValueDescription

LockupResultInfo[]

_mintInfo

Lockup 정보듀

uint256

_totalBalance

전체 λ―ΌνŒ… 개수

uint256

_currentBalance

ν˜„μž¬ λ―ΌνŒ… 개수

Example

    // exec    
    await lockupContract.getLockups();

    // Result
   [
    [
      '0x69f57ccEF1C2c26d2B328F2EB1BD4377742f90F3',
      BigNumber { value: "1662083022" },
      BigNumber { value: "1000000000000000000" },
      BigNumber { value: "0" },
      BigNumber { value: "0" },
      account: '0x69f57ccEF1C2c26d2B328F2EB1BD4377742f90F3',
      timestamp: BigNumber { value: "1662083022" },
      amount: BigNumber { value: "1000000000000000000" },
      duration: BigNumber { value: "0" },
      index: BigNumber { value: "0" }
    ]
  ]

Last updated