Comment on page
Locked Period
The expiry of given account is the unlock time for locked QBT balance. If the account has no lock, it returns 0.
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.
QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
uint expiry = qubitLocker.expiryOf(<account>);
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
const expiry = await qubitLocker.expiryOf(<account>);
Last modified 2yr ago