pub struct YieldAggregation {
pub total_pools: usize,
pub curve_pools: usize,
pub llama_pools: usize,
pub uniswap_pools: usize,
pub uniswap_v2_pools: usize,
pub uniswap_v3_pools: usize,
pub uniswap_v4_pools: usize,
pub yearn_vaults: usize,
pub max_apy: Option<f64>,
pub avg_apy: Option<f64>,
pub total_tvl_usd: Option<f64>,
}Expand description
Yield aggregation statistics
Fields§
§total_pools: usizeTotal pools found
curve_pools: usizeNumber of pools from Curve
llama_pools: usizeNumber of pools from DefiLlama
uniswap_pools: usizeNumber of pools from Uniswap (all versions combined)
uniswap_v2_pools: usizeNumber of V2 pools from Uniswap
uniswap_v3_pools: usizeNumber of V3 pools from Uniswap
uniswap_v4_pools: usizeNumber of V4 pools from Uniswap
yearn_vaults: usizeNumber of vaults from Yearn (Kong API)
max_apy: Option<f64>Highest APY found
avg_apy: Option<f64>Average APY across all pools
total_tvl_usd: Option<f64>Total TVL across all pools
Trait Implementations§
Source§impl Clone for YieldAggregation
impl Clone for YieldAggregation
Source§fn clone(&self) -> YieldAggregation
fn clone(&self) -> YieldAggregation
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 YieldAggregation
impl Debug for YieldAggregation
Source§impl<'de> Deserialize<'de> for YieldAggregation
impl<'de> Deserialize<'de> for YieldAggregation
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 YieldAggregation
impl RefUnwindSafe for YieldAggregation
impl Send for YieldAggregation
impl Sync for YieldAggregation
impl Unpin for YieldAggregation
impl UnwindSafe for YieldAggregation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more