Rewards Dispatcher
The Rewards Dispatcher contract accumulates the rewards from Hub's delegations and manages the rewards.
All rewards from stINJ tokens (the share of all rewards proportional to the amount of stINJ tokens minted) are converted to INJ and are re-delegated back to the validators pool.
All rewards from bINJ (the share of all rewards proportional to the amount of bINJ tokens minted) are sent to the Reward Contract and handled the old way.
Config
owner
CanonicalAddr
Owner of the contract
hub_contract
CanonicalAddr
binj_reward_contract
CanonicalAddr
stinj_reward_denom
String
Native token denomination for distributed stINJ rewards
binj_reward_denom
String
Native token denomination for distributed bINJ rewards
ninja_keeper_address
CanonicalAddr
Address for fee distribution
ninja_keeper_rate
Decimal
Amount of fees which goes to Fee Address
swap_contract
CanonicalAddr
swap_denoms
Vec<String>
The supported swap denoms type is configured as "inj"
oracle_contract
CanonicalAddr
InitMsg
hub_contract
CanonicalAddr
binj_reward_contract
CanonicalAddr
stinj_reward_denom
String
Native token denomination for distributed stINJ rewards
binj_reward_denom
String
Native token denomination for distributed bINJ rewards
ninja_keeper_address
CanonicalAddr
Address for fee distribution
ninja_keeper_rate
Decimal
Amount of fees which goes to Fee Address
swap_contract
CanonicalAddr
swap_denoms
Vec<String>
The supported swap denoms type is configured as "inj"
oracle_contract
CanonicalAddr
ExecuteMsg
[Internal] SwapToRewardDenom
Swaps all native tokens on his balance to INJ and kUSD proportional to the minted stINJ and bINJ amount.
Can only be executed by the Hub.
binj_total_bonded
Uint128
Total amount of minted bINJ
stinj_total_bonded
Uint128
Total amount of minted stINJ
[Internal] DispatchRewards
Re-stakes the stINJ rewards (with subtracted Fee) and sends the bINJ rewards to the old bINJ Rewards contract (with subtracted Fee).
Can only be executed by the Hub.
UpdateConfig
Updates the dispatcher's configuration. Can only be executed by the owner.
hub_contract
String
binj_reward_contract
String
stinj_reward_denom
String
Native token denomination for distributed stINJ rewards
binj_reward_denom
String
Native token denomination for distributed bINJ rewards
krp_keeper_addres
String
Address for fee distribution
ninja_keeper_rate
Decimal
Amount of fees which goes to Fee Address
SetOwner
Transfer ownership permissions to a new owner address.
new_owner_addr
String
The address of new owner
AcceptOwnership
The new owner accepts ownership permissions.
UpdateSwapContract
Update the contract address of the Swap Extension, which can only be modified by the owner.
swap_contract
String
UpdateSwapDenom
Add or remove Native token denomination types supported by the Swap Extension.
swap_denom
String
Add or remove Native token denomination types
is_add
bool
"true" represents "add", and "false" represents "remove"
UpdateOracleContract
Update the contract address of the Oracle, which can only be modified by the owner.
oracle_contract
String
QueryMsg
Config
Returns the current configuration of the contract.
ConfigResponse
owner
CanonicalAddr
Owner of the contract
hub_contract
CanonicalAddr
binj_reward_contract
CanonicalAddr
stinj_reward_denom
String
Native token denomination for distributed stINJ rewards
binj_reward_denom
String
Native token denomination for distributed bINJ rewards
ninja_keeper_address
CanonicalAddr
Address for fee distribution
ninja_keeper_rate
Decimal
Amount of fees which goes to Fee Address
swap_contract
CanonicalAddr
swap_denoms
Vec<String>
The supported swap denoms type is configured as "inj"
oracle_contract
CanonicalAddr
NewOwner
Query the address of the new owner.
NewOwnerResponse
new_owner
String
The address of new owner
Last updated