Developers
Search…
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
qScore
The qScore is time-weighted balance of QBT in locker. The following is the formula for calculating qScore for each user.
1
qScore
=
remaining lockup period
/
max lockup period
*
Locked
QBT
Copied!
QubitLocker
1
function
scoreOf
(
address account
)
external view
returns
(
uint
);
Copied!
account: The address of the account to get the qScore for.
RETURN : The current qScore value, scaled by 1e18, of the requested account.
Solidity
1
QubitLocker qubitLocker
=
QubitLocker
(
<
qubitLockerAddress
>
);
2
qubitLocker
.
scoreOf
(
<
account
>
);
Copied!
Ethers.js
1
const
qubitLocker
=
await
ethers
.
getContractAt
(
<
lockerABI
>
,
<
lockerAddress
>
);
2
const
score
=
await
qubitLocker
.
scoreOf
(
<
account
>
);
Copied!
Qore - Previous
Key Events
Next - Qubit Locker
Total qScore
Last modified
8mo ago
Copy link
Contents
QubitLocker
Solidity
Ethers.js