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

Locked Balance

Locked balance is the amount of QBT balance locked by the QubitLocker contract. One may query the amount of locked balance for specific user account. Unlike qScore value, locked balance is not time-weighted value.

QubitLocker

function balanceOf(address account) external view returns (uint);
  • account : The address of the account to get the locked balance for.

  • RETURN : The quantity of QBT locked by the contract for the given account.

Solidity

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
uint balance = qubitLocker.balanceOf(<account>);

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
const balance = await qubitLocker.balanceOf(<account>);
PreviousDepositNextLocked Period

Last updated 3 years ago

Was this helpful?