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.
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.
QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
uint balance = qubitLocker.balanceOf(<account>);
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
const balance = await qubitLocker.balanceOf(<account>);
Last modified 2yr ago