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
Unlocked Balance
Unlocked Balance is the amount of QBT currently unlocked from the locker since the expiry time of the lock has already expired.
QubitLocker
1
function
availableOf
(
address account
)
external view
returns
(
uint
);
Copied!
account : The address of the account to get the unlocked balance for.
RETURN : The quantity of QBT unlocked by the contract for the given account. If the lock has not expired yet, the resulting value is 0.
Solidity
1
QubitLocker qubitLocker
=
QubitLocker
(
<
qubitLockerAddress
>
);
2
uint amount
=
qubitLocker
.
availableOf
(
<
account
>
);
Copied!
Ethers.js
1
const
qubitLocker
=
await
ethers
.
getContractAt
(
<
lockerABI
>
,
<
lockerAddress
>
);
2
const
amount
=
await
qubitLocker
.
availableOf
(
<
account
>
);
Copied!
Qubit Locker - Previous
Extend Lock Period
Next - Qubit Locker
Withdraw
Last modified
8mo ago
Copy link
Contents
QubitLocker
Solidity
Ethers.js