Locked Period

The expiry of given account is the unlock time for locked QBT balance. If the account has no lock, it returns 0.

QubitLocker

function expiryOf(address account) external view returns (uint);
  • account : The address of the account to get the lock expiry for.

  • RETURN : The expiry time of the lock for given account. The value is in a format of epoch time.

Solidity

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
uint expiry = qubitLocker.expiryOf(<account>);

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
const expiry = await qubitLocker.expiryOf(<account>);

Last updated