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
On this page
  • QubitLocker
  • Solidity
  • Ethers.js

Was this helpful?

  1. Qubit Locker

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

function availableOf(address account) external view returns (uint);
  • 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

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
uint amount = qubitLocker.availableOf(<account>);

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
const amount = await qubitLocker.availableOf(<account>);
PreviousExtend Lock PeriodNextWithdraw

Last updated 3 years ago

Was this helpful?