Reward
The Reward contract contains the logic for distributing Sei delegation rewards to holders of stSei. After the Hub contract withdraws Sei delegation rewards to the Reward contract, the Hub contract can request all rewards to be redelegated, which then updates the stSei vs Sei exchange rate.
Config
owner
CanonicalAddr
The owner's address of the contract
hub_contract
CanonicalAddr
reward_denom
String
Native token denomination for distributed bSei rewards
swap_contract
CanonicalAddr
swap_denoms
Vec<String>
The supported swap denoms type is configured as "usei"
InitMsg
hub_contract
String
reward_denom
String
Native token denomination for distributed bSei rewards
swap_contract
String
swap_denoms
Vec<String>
The supported swap denoms type is configured as "usei"
ExecuteMsg
ClaimRewards
Claims bSei holder's accrued rewards to the specified address. Sends rewards to the message sender if the recipient
is not specified.
recipient*
String
Recipient address of claimed bSei rewards
* = optional
UpdateConfig
hub_contract*
String
reward_denom*
String
Native token denomination for distributed bSei rewards
swap_contract*
String
* = optional
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.
[Internal] SwapToRewardDenom
Swaps all withdrawn delegation rewards to reward_denom
. Can only be issued by the Hub
[Internal] UpdateGlobalIndex
Updates the global reward index based on the newly withdrawn rewards. Can only be issued by the Rewards Dispatcher
[Internal] IncreaseBalance
Increases stored user's bSei 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
.
address
String
Address of user whose balance has increased
amount
Uint128
Amount of bINJ balance increased
[Internal] DecreaseBalance
Decreases stored user's bSei 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
.
address
String
Address of user whose balance has decreased
amount
Uint128
Amount of bINJ balance decreased
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"
QueryMsg
Config
Gets the contract configuration of Reward
.
ConfigResponse
hub_contract
String
reward_denom
String
Native token denomination for distributed bSei rewards
owner
String
The owner's address of the contract
swap_contract
String
The supported swap denoms type is configured as "usei"
State
Gets information about the contract's current state.
StateResponse
global_index
Decimal
Current global reward index of bSei
total_balance
Uint128
Total bSei balance of all holders
prev_reward_balance
Uint128
AccruedRewards
Gets the amount of rewards accrued to the specified bSei holder.
address
String
Address of bSei holder
AccruedRewardsResponse
rewards
Uint128
Amount of reward_denom
rewards accrued
Holder
Gets information about the specified bSei holder.
address
String
Address of bSei holder
HolderResponse
address
String
Address of bSei holder
balance
Uint128
bSei balance of holder
index
Decimal
Holder's reward index value
pending_rewards
Decimal
Amount of holder's pending rewards
Holders
Gets information about all bSei holders.
start_after*
String
Address of bSei holder to start query
limit*
u32
Maximum number of query entries
* = optional
HoldersResponse
holders
Vec<HolderResponse>
Vector of holder informations
address
String
Address of bSei holder
balance
Uint128
bSei balance of holder
index
Decimal
Holder's reward index value
pending_rewards
Decimal
Amount of holder's pending rewards
NewOwner
Query the address of the new owner.
NewOwnerResponse
new_owner
String
The address of new owner
Last updated