The Rewards Dispatcher contract accumulates the rewards from Hub's delegations and manages the rewards.
All rewards from stSei tokens (the share of all rewards proportional to the amount of stSei tokens minted) are converted to Luna and are re-delegated back to the validators pool.
All rewards from bSei (the share of all rewards proportional to the amount of bSei tokens minted) are sent to the Reward Contract and handled the old way.
Copy #[ derive ( Serialize , Deserialize , Clone , Debug , PartialEq , JsonSchema )]
pub struct Config {
pub owner : CanonicalAddr ,
pub hub_contract : CanonicalAddr ,
pub bsei_reward_contract : CanonicalAddr ,
pub stsei_reward_denom : String ,
pub bsei_reward_denom : String ,
pub krp_keeper_address : CanonicalAddr ,
pub krp_keeper_rate : Decimal ,
pub swap_contract : CanonicalAddr ,
pub swap_denoms : Vec < String >,
pub oracle_contract : CanonicalAddr ,
} Contract address of bSei Reward
Native token denomination for distributed stSei rewards
Native token denomination for distributed bSei rewards
Address for fee distribution
Amount of fees which goes to Fee Address
Contract address of Swap Extension
The supported swap denoms type is configured as "usei"
Contract address of Oracle
Contract address of bSei Reward
Native token denomination for distributed stSei rewards
Native token denomination for distributed bSei rewards
Address for fee distribution
Amount of fees which goes to Fee Address
Contract address of Swap Extension
The supported swap denoms type is configured as "usei"
Contract address of Oracle
[Internal] SwapToRewardDenom
Swaps all native tokens on his balance to Sei and kUSD proportional to the minted stSei and bSei amount.
Can only be executed by the Hub .
Total amount of minted bSei
Total amount of minted stSei
[Internal] DispatchRewards
Re-stakes the stSei rewards (with subtracted Fee) and sends the bSei rewards to the old bSei Rewards contract (with subtracted Fee).
Can only be executed by the Hub .
Updates the dispatcher's configuration. Can only be executed by the owner.
Contract address of bSei Reward
Native token denomination for distributed stSei rewards
Native token denomination for distributed bSei rewards
Address for fee distribution
Amount of fees which goes to Fee Address
Transfer ownership permissions to a new owner address.
AcceptOwnership
The new owner accepts ownership permissions.
UpdateSwapContract
Update the contract address of the Swap Extension , which can only be modified by the owner.
The new address of Swap Extension
UpdateSwapDenom
Add or remove Native token denomination types supported by the Swap Extension .
Add or remove Native token denomination types
"true" represents "add", and "false" represents "remove"
UpdateOracleContract
Update the contract address of the Oracle , which can only be modified by the owner.
The new address of Oracle
Returns the current configuration of the contract.
Contract address of bSei Reward
Native token denomination for distributed stSei rewards
Native token denomination for distributed bSei rewards
Address for fee distribution
Amount of fees which goes to Fee Address
Contract address of Swap Extension
The supported swap denoms type is configured as "usei"
Contract address of Oracle
Query the address of the new owner.
NewOwnerResponse