Struct so_defi_config::atrix::pools_list::PoolsList
source · pub struct PoolsList {
pub pools: Vec<Pool>,
}
Fields§
§pools: Vec<Pool>
Implementations§
source§impl PoolsList
impl PoolsList
sourcepub async fn initialize() -> Result<PoolsList>
pub async fn initialize() -> Result<PoolsList>
intiailizes the PoolList object, populating with all values returned from atrix’s API
sourcepub async fn guess_names(&mut self, farms_list: &mut FarmsList) -> Result<()>
pub async fn guess_names(&mut self, farms_list: &mut FarmsList) -> Result<()>
attempts to fill in the missing pool and farm name information using the solana token list to map coin/pc mints -> names
Trait Implementations§
source§impl<'de> Deserialize<'de> for PoolsList
impl<'de> Deserialize<'de> for PoolsList
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