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
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 bSei rewards
swap_contract
CanonicalAddr
Contract address of Swap Extension
swap_denoms
Vec<String>
The supported swap denoms type is configured as "usei"
Native token denomination for distributed bSei rewards
swap_contract
String
Contract address of Swap Extension
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.
Key
Type
Description
recipient*
String
Recipient address of claimed bSei rewards
* = optional
UpdateConfig
Key
Type
Description
hub_contract*
String
Contract address of Hub
reward_denom*
String
Native token denomination for distributed bSei rewards
swap_contract*
String
Contract address of Swap Extension
* = optional
SetOwner
Transfer ownership permissions to a new owner address.
Key
Type
Description
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
Key
Type
Desciption
[Internal] UpdateGlobalIndex
Updates the global reward index based on the newly withdrawn rewards. Can only be issued by the Rewards Dispatcher
Key
Type
Description
[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.
Key
Type
Description
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.
Key
Type
Description
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.
Key
Type
Description
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
Key
Type
Description
hub_contract
String
Contract address of Hub
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
Key
Type
Description
global_index
Decimal
Current global reward index of bSei
total_balance
Uint128
Total bSei balance of all holders
prev_reward_balance
Uint128
kUSD balance of Reward contract at the end of last UpdateGlobalIndex
AccruedRewards
Gets the amount of rewards accrued to the specified bSei holder.