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>);

Last updated