Struct solana_program::stake::config::Config
source · 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<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more