Developers
Search…
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

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

Solidity

1
Qore qore = Qore(<qoreAddress>);
2
(uint supplySpeed, uint borrowSpeed) = qore.distributionSpeedOf(<qTokenAddress>);
3
4
// Approximate QBT issued per day to suppliers
5
uint qbtSupplySpeedPerDay = supplySpeed * 1 days;
6
7
// Approximate QBT issued per day to borrowers
8
uint qbtBorrowSpeedPerDay = borrowSpeed * 1 days;
Copied!

Ethers.js

1
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
2
const {supplySpeed, borrowSpeed} = await qore.distributionSpeedOf(<qTokenAddress>);
Copied!
Last modified 2mo ago
Copy link