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
  • Qore
  • Solidity
  • Ethers.js

Was this helpful?

  1. Qore

Qubit Distribution Speeds

The "Qubit speeds" are unsigned integers that specify the amount of QBT that is distributed, per second, to suppliers and borrowers in each market. This numbers can be changed for individual markets by calling setQubitDistributionSpeed through a Qubit Governance.

The function distributionSpeedOf of Qore gives unsigned integers that indicate the rate at which the protocol distributes QBT to markets' suppliers or borrowers, every second. The value is the amount of QBT (in wei), per second, allocated for the supply, borrow markets.

The Qubit Distribution Speeds indicate how much QBT goes to the suppliers or borrowers.

Qore

function distributionSpeedOf(address qToken) external view returns (uint supplySpeed, uint borrowSpeed);

Solidity

Qore qore = Qore(<qoreAddress>);
(uint supplySpeed, uint borrowSpeed) = qore.distributionSpeedOf(<qTokenAddress>);

// Approximate QBT issued per day to suppliers
uint qbtSupplySpeedPerDay = supplySpeed * 1 days;

// Approximate QBT issued per day to borrowers
uint qbtBorrowSpeedPerDay = borrowSpeed * 1 days;

Ethers.js

const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
const {supplySpeed, borrowSpeed} = await qore.distributionSpeedOf(<qTokenAddress>);
PreviousLiquidation IncentiveNextPending Qubit (or Accrued Qubit)

Last updated 3 years ago

Was this helpful?