Struct solana_stake_program::config::Config
pub struct Config {
pub warmup_cooldown_rate: f64,
pub slash_penalty: u8,
}
Fields§
§warmup_cooldown_rate: f64
how much stake we can activate/deactivate per-epoch as a fraction of currently effective stake
slash_penalty: u8
percentage of stake lost when slash, expressed as a portion of std::u8::MAX
Trait Implementations§
source§impl ConfigState for Config
impl ConfigState for Config
§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Config, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Config
impl Serialize for Config
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more