pub struct LiquidStakingConfig {
pub protocol_fee_bps: u32,
pub min_deposit: u128,
pub max_total_deposits: u128,
pub unbonding_period_ms: i64,
pub max_validators: usize,
}Expand description
Liquid staking pool configuration
Fields§
§protocol_fee_bps: u32Protocol fee on rewards (basis points)
min_deposit: u128Minimum deposit amount (in TNZO smallest unit)
max_total_deposits: u128Maximum total deposits (pool cap, 0 = unlimited)
unbonding_period_ms: i64Unbonding period in milliseconds (mirrors native staking)
max_validators: usizeMaximum number of validators to delegate to
Trait Implementations§
Source§impl Clone for LiquidStakingConfig
impl Clone for LiquidStakingConfig
Source§fn clone(&self) -> LiquidStakingConfig
fn clone(&self) -> LiquidStakingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LiquidStakingConfig
impl Debug for LiquidStakingConfig
Source§impl Default for LiquidStakingConfig
impl Default for LiquidStakingConfig
Source§impl<'de> Deserialize<'de> for LiquidStakingConfig
impl<'de> Deserialize<'de> for LiquidStakingConfig
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
Auto Trait Implementations§
impl Freeze for LiquidStakingConfig
impl RefUnwindSafe for LiquidStakingConfig
impl Send for LiquidStakingConfig
impl Sync for LiquidStakingConfig
impl Unpin for LiquidStakingConfig
impl UnsafeUnpin for LiquidStakingConfig
impl UnwindSafe for LiquidStakingConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more