Struct so_defi_config::whirlpool::Whirlpool
source · pub struct Whirlpool {
pub address: String,
pub token_a: TokenInfo,
pub token_b: TokenInfo,
pub whitelisted: bool,
pub tick_spacing: i64,
pub price: f64,
pub lp_fee_rate: f64,
pub protocol_fee_rate: f64,
pub whirlpools_config: String,
pub modified_time_ms: Option<i64>,
pub name: Option<String>,
pub formatted_name: Option<String>,
}
Fields§
§address: String
§token_a: TokenInfo
§token_b: TokenInfo
§whitelisted: bool
§tick_spacing: i64
§price: f64
§lp_fee_rate: f64
§protocol_fee_rate: f64
§whirlpools_config: String
§modified_time_ms: Option<i64>
§name: Option<String>
this field is not included in the response from orca’s api so we include it here as an option to prevent (se|dese)rialization issues
formatted_name: Option<String>
same thing as above, but includes the sum of lp and protocol fee rate for example: SOL-USDC-500
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Whirlpool
impl<'de> Deserialize<'de> for Whirlpool
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