Developers
Search…
Developers
Introduction
QTokens
Transfer
Total Supply
Underlying Balance
Exchange Rate
Get Cash
Total Borrow
Borrow Balance
Borrow Rate
Supply Rate
Total Reserve
Reserve Factor
Key Events
Qore
Market List
Enter Markets
Exit Markets
Get Markets In
Supply
Redeem with QToken
Redeem with Underlying
Borrow
Repay Borrow
Repay Borrow Behalf
Liquidate Borrow
Get Account Liquidity
Market Information
Close Factor
Liquidation Incentive
Qubit Distribution Speeds
Pending Qubit (or Accrued Qubit)
Claim Qubit
Key Events
Qubit Locker
qScore
Total qScore
Deposit
Locked Balance
Locked Period
Extend Lock Period
Unlocked Balance
Withdraw
Powered By
GitBook
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
1
function
expiryOf
(
address account
)
external view
returns
(
uint
);
Copied!
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
1
QubitLocker qubitLocker
=
QubitLocker
(
<
qubitLockerAddress
>
);
2
uint expiry
=
qubitLocker
.
expiryOf
(
<
account
>
);
Copied!
Ethers.js
1
const
qubitLocker
=
await
ethers
.
getContractAt
(
<
lockerABI
>
,
<
lockerAddress
>
);
2
const
expiry
=
await
qubitLocker
.
expiryOf
(
<
account
>
);
Copied!
Qubit Locker - Previous
Locked Balance
Next - Qubit Locker
Extend Lock Period
Last modified
8mo ago
Copy link
Contents
QubitLocker
Solidity
Ethers.js