Distribution Model
The Distribution Model contract manages the calculation of the ANC emission rate, using fed in deposit rate information. At the time of protocol genesis, the emission rate adjusts to double when the deposit rate is below the targeted rate and decreases by 10% if the deposit rate is above the targeted rate. Further descriptions on the ANC emission rate control mechanism can be found here.
Config
Key
Type
Description
owner
CanonicalAddr
Address of contract owner
emission_cap
Decimal256
Maximum per-block ANC emission rate
emission_floor
Decimal256
Minimum per-block ANC emission rate
increment_multiplier
Decimal256
Rate multiplier when increasing emission
decrement_multiplier
Decimal256
Rate multiplier when decreasing emission
InstantiateMsg
Key
Type
Description
owner
String
Address of contract owner
emission_cap
Decimal256
Maximum per-block ANC emission rate
emission_floor
Decimal256
Minimum per-block ANC emission rate
increment_multiplier
Decimal256
Rate multiplier when increasing emission
decrement_multiplier
Decimal256
Rate multiplier when decreasing emission
ExecuteMsg
UpdateConfig
UpdateConfig
Updates the Distribution Model contract configuration.
Key
Type
Description
owner
*
String
Address of new owner
emission_cap
*
Decimal256
New maximum per-block ANC emission rate
emission_floor
*
Decimal256
New minimum per-block ANC emission rate
increment_multiplier
*
Decimal256
New rate multiplier when increasing emission
decrement_multiplier
*
Decimal256
New rate multiplier when decreasing emission
* = optional
QueryMsg
Config
Config
Gets the Distribution Model contract configuration
Key
Type
Description
ConfigResponse
ConfigResponse
Key
Type
Description
owner
String
Address of contract owner
emission_cap
Decimal256
Maximum per-block ANC emission rate
emission_floor
Decimal256
Minimum per-block ANC emission rate
increment_multiplier
Decimal256
Rate multiplier when increasing emission
decrement_multiplier
Decimal256
Rate multiplier when decreasing emission
ANCEmissionRate
ANCEmissionRate
Gets the ANC emission rate, calculated based on deposit rate situations.
Key
Type
Description
deposit_rate
Decimal256
Average per-block deposit rate during the last epoch
target_deposit_rate
Decimal256
Target per-block deposit rate of Anchor
threshold_deposit_rate
Decimal256
Minimum per-block deposit rate supported by Anchor
current_emission_rate
Decimal256
Current per-block ANC emission rate
ANCEmissionRateResponse
ANCEmissionRateResponse
Key
Type
Description
emission_rate
Decimal256
Calculated per-block ANC emission rate
Last updated