STRK Distribution Speeds
STRK Speed
The "STRK speed" unique to each market is an unsigned integer that specifies the amount of STRK that is distributed, per block, to suppliers and borrowers in each market. This number can be changed for individual markets by calling the _setStrikeSpeed
method through a successful Strike Governance proposal.
The following is the formula for calculating the rate that STRK is distributed to each supported market.
STRK Distributed Per Block (All Markets)
The Comptroller contract’s strikeRate
is an unsigned integer that indicates the rate at which the protocol distributes STRK to markets’ suppliers or borrowers, every Ethereum block. The value is the amount of STRK (in wei), per block, allocated for the markets. Note that not every market has STRK distributed to its participants (see Market Metadata).
The strikeRate indicates how much STRK goes to the suppliers or borrowers, so doubling this number shows how much STRK goes to all suppliers and borrowers combined. The code examples implement reading the amount of STRK distributed, per Ethereum block, to all markets.
Comptroller
Solidity
Web3 1.2.6
STRK Distributed Per Block (Single Market)
The Comptroller contract has a mapping called strikeSpeeds
. It maps sToken addresses to an integer of each market’s STRK distribution per Ethereum block. The integer indicates the rate at which the protocol distributes STRK to markets’ suppliers or borrowers. The value is the amount of STRK (in wei), per block, allocated for the market. Note that not every market has STRK distributed to its participants (see Market Metadata).
The speed indicates how much STRK goes to the suppliers or the borrowers, so doubling this number shows how much STRK goes to market suppliers and borrowers combined. The code examples implement reading the amount of STRK distributed, per Ethereum block, to a single market.
Comptroller
Solidity
Web3 1.2.6
Last updated