Reward
Last updated
Last updated
The Reward contract contains the logic for distributing INJ delegation rewards to holders of stINJ. After the Hub contract withdraws INJ delegation rewards to the Reward contract, the Hub contract can request all rewards to be redelegated, which then updates the stINJ vs INJ exchange rate.
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Claims bINJ holder's accrued rewards to the specified address. Sends rewards to the message sender if the recipient
is not specified.
* = optional
* = optional
Transfer ownership permissions to a new owner address.
The new owner accepts ownership permissions.
Swaps all withdrawn delegation rewards to reward_denom
. Can only be issued by the Hub
Updates the global reward index based on the newly withdrawn rewards. Can only be issued by the Rewards Dispatcher
Increases stored user's bINJ balance. Stores the user's accrued rewards to pending rewards and updates user's reward index to the current global reward index. Can only be issued by the Token
.
Decreases stored user's bINJ balance. Stores the user's accrued rewards to pending rewards and updates user's reward index to the current global reward index. Can only be issued by the Token
.
Add or remove Native token denomination types supported by the Swap Extension.
Gets the contract configuration of Reward
.
Gets information about the contract's current state.
Gets the amount of rewards accrued to the specified bINJ holder.
Gets information about the specified bINJ holder.
Gets information about all bINJ holders.
* = optional
Query the address of the new owner.
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Desciption |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
owner
CanonicalAddr
The owner's address of the contract
hub_contract
CanonicalAddr
Contract address of Hub
reward_denom
String
Native token denomination for distributed bINJ rewards
swap_contract
CanonicalAddr
Contract address of Swap Extension
swap_denoms
Vec<String>
The supported swap denoms type is configured as "inj"
hub_contract
String
Contract address of Hub
reward_denom
String
Native token denomination for distributed bINJ rewards
swap_contract
String
Contract address of Swap Extension
swap_denoms
Vec<String>
The supported swap denoms type is configured as "inj"
recipient*
String
Recipient address of claimed bINJ rewards
hub_contract*
String
Contract address of Hub
reward_denom*
String
Native token denomination for distributed bINJ rewards
swap_contract*
String
Contract address of Swap Extension
new_owner_addr
String
The address of new owner
address
String
Address of user whose balance has increased
amount
Uint128
Amount of bINJ balance increased
address
String
Address of user whose balance has decreased
amount
Uint128
Amount of bINJ balance decreased
swap_denom
String
Add or remove Native token denomination types
is_add
bool
"true" represents "add", and "false" represents "remove"
hub_contract
String
Contract address of Hub
reward_denom
String
Native token denomination for distributed bINJ rewards
owner
String
The owner's address of the contract
swap_contract
String
The supported swap denoms type is configured as "inj"
global_index
Decimal
Current global reward index of bINJ
total_balance
Uint128
Total bINJ balance of all holders
prev_reward_balance
Uint128
nUSD balance of Reward contract at the end of last UpdateGlobalIndex
address
String
Address of bINJ holder
rewards
Uint128
Amount of reward_denom
rewards accrued
address
String
Address of bINJ holder
address
String
Address of bINJ holder
balance
Uint128
bINJ balance of holder
index
Decimal
Holder's reward index value
pending_rewards
Decimal
Amount of holder's pending rewards
start_after*
String
Address of bINJ holder to start query
limit*
u32
Maximum number of query entries
holders
Vec<HolderResponse>
Vector of holder informations
address
String
Address of bINJ holder
balance
Uint128
bINJ balance of holder
index
Decimal
Holder's reward index value
pending_rewards
Decimal
Amount of holder's pending rewards
new_owner
String
The address of new owner