Staking
Config
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct StakingConfig {
pub gov: Addr,
// Immutable variables for staking and rewards tokens
pub staking_token: Addr,
pub rewards_token: Addr,
pub boost: Addr,
pub fund: Addr,
pub reward_controller_addr: Addr,
pub new_gov: Option<Addr>,
}
Key
Type
Description
InitMsg
Key
Type
Description
ExecuteMsg
Receive
Key
Type
Description
UpdateStakingConfig
Key
Type
Description
UpdateStakingState
Key
Type
Description
GetReward
Withdraw
Key
Type
Description
NotifyRewardAmount
Key
Type
Description
QueryMsg
RewardPerTokenResponse
Key
Type
Description
LastTimeRewardApplicable
LastTimeRewardApplicableResponse
Key
Type
Description
GetBoost
GetBoostResponse
Key
Type
Description
Earned
Key
Type
Description
EarnedResponse
Key
Type
Description
QueryStakingConfig
StakingConfigResponse
Key
Type
Description
QueryStakingState
StakingStateResponse
Key
Type
Description
GetUserUpdatedAt
Key
Type
Decription
GetUserUpdatedAtResponse
Key
Type
Description
GetUserRewardPerTokenPaid
Key
Type
Description
GetUserRewardPerTokenPaidResponse
Key
Type
Description
BalanceOf
Key
Type
Description
BalanceOfResponse
Key
Type
Description
Last updated