Developers
Search…
Pending Qubit (or Accrued Qubit)
Every Qubit user accrues QBT for each second they are supplying to or borrowing from the protocol. Users may call the Qore's accruedQubit method at any time to get amount of accrued QBT.

Qore

// Get accrued QBT by holder in all markets
function accruedQubit(address account) external view returns (uint);
// Get accrued QBT by holder in specific market
function accruedQubit(address market, address account) external view returns (uint);

Solidity

Qore qore = Qore(<qoreAddress>);
uint accruedQubit = qore.accruedQubit(<account>);

Ethers.js

const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
const accruedQubit = await qore.accruedQubit(<account>);
Copy link
On this page
Qore
Solidity
Ethers.js