Unlocked Balance

Unlocked Balance is the amount of QBT currently unlocked from the locker since the expiry time of the lock has already expired.


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.


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


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

Last updated