pub struct BasePoolState {
pub pool_address: String,
pub pool_type: String,
pub tokens: Vec<String>,
pub scaling_factors: Vec<BigInt>,
pub token_rates: Vec<BigInt>,
pub balances_live_scaled_18: Vec<BigInt>,
pub swap_fee: BigInt,
pub aggregate_swap_fee: BigInt,
pub total_supply: BigInt,
pub supports_unbalanced_liquidity: bool,
pub hook_type: Option<String>,
}
Expand description
Base pool state shared by all pool types
Fields§
§pool_address: String
Pool address
pool_type: String
Pool type (e.g., “WEIGHTED”, “STABLE”, etc.)
tokens: Vec<String>
Token addresses
scaling_factors: Vec<BigInt>
Scaling factors for each token
token_rates: Vec<BigInt>
Token rates (scaled 18)
balances_live_scaled_18: Vec<BigInt>
Balances (scaled 18)
swap_fee: BigInt
Swap fee (scaled 18)
aggregate_swap_fee: BigInt
Aggregate swap fee (scaled 18)
total_supply: BigInt
Total supply (scaled 18)
supports_unbalanced_liquidity: bool
Whether pool supports unbalanced liquidity
hook_type: Option<String>
Optional hook type
Trait Implementations§
Source§impl AsRef<BasePoolState> for WeightedState
impl AsRef<BasePoolState> for WeightedState
Source§fn as_ref(&self) -> &BasePoolState
fn as_ref(&self) -> &BasePoolState
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for BasePoolState
impl Clone for BasePoolState
Source§fn clone(&self) -> BasePoolState
fn clone(&self) -> BasePoolState
Returns a duplicate of the value. Read more
1.0.0 · 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 BasePoolState
impl Debug for BasePoolState
Source§impl<'de> Deserialize<'de> for BasePoolState
impl<'de> Deserialize<'de> for BasePoolState
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
Source§impl From<WeightedState> for BasePoolState
impl From<WeightedState> for BasePoolState
Source§fn from(weighted_state: WeightedState) -> Self
fn from(weighted_state: WeightedState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BasePoolState
impl PartialEq for BasePoolState
Source§impl Serialize for BasePoolState
impl Serialize for BasePoolState
impl StructuralPartialEq for BasePoolState
Auto Trait Implementations§
impl Freeze for BasePoolState
impl RefUnwindSafe for BasePoolState
impl Send for BasePoolState
impl Sync for BasePoolState
impl Unpin for BasePoolState
impl UnwindSafe for BasePoolState
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