pub struct EthereumVaultDetailsResponse {
pub app_apy: Option<f64>,
pub asset_address: String,
pub available_liquidity_usd: Option<f64>,
pub caip2: String,
pub id: String,
pub name: String,
pub provider: EthereumYieldProvider,
pub tvl_usd: Option<f64>,
pub user_apy: Option<f64>,
pub vault_address: String,
}Expand description
Detailed vault information including current APY and liquidity.
JSON schema
{
"title": "EthereumVaultDetailsResponse",
"description": "Detailed vault information including current APY and
liquidity.",
"examples": [
{
"app_apy": 50,
"asset_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"available_liquidity_usd": 500000,
"caip2": "eip155:1",
"id": "cm7oxq1el000e11o8iwp7d0d0",
"name": "Gauntlet USDC Prime",
"provider": "morpho",
"tvl_usd": 1000000,
"user_apy": 500,
"vault_address": "0x04422053aDDbc9bB2759b248B574e3FCA76Bc145"
}
],
"type": "object",
"required": [
"asset_address",
"caip2",
"id",
"name",
"provider",
"vault_address"
],
"properties": {
"app_apy": {
"description": "Annual percentage yield earned by the app from fee
wrapper fees, in basis points. Null when APY data is unavailable.",
"type": "number"
},
"asset_address": {
"description": "Underlying asset token address.",
"type": "string"
},
"available_liquidity_usd": {
"description": "Assets available for instant withdrawal in USD.",
"type": "number"
},
"caip2": {
"description": "Chain identifier (e.g., eip155:8453).",
"type": "string"
},
"id": {
"description": "Vault identifier.",
"type": "string"
},
"name": {
"description": "Human-readable vault name from the yield
provider.",
"type": "string"
},
"provider": {
"$ref": "#/components/schemas/EthereumYieldProvider"
},
"tvl_usd": {
"description": "Total value locked in USD.",
"type": "number"
},
"user_apy": {
"description": "Current annual percentage yield in basis points
(e.g., 500 for 5%). 1 basis point = 0.01%.",
"type": "number"
},
"vault_address": {
"description": "On-chain vault contract address.",
"type": "string"
}
},
"x-stainless-model": "yield.ethereum_vault_details_response"
}Fields§
§app_apy: Option<f64>§asset_address: StringUnderlying asset token address.
available_liquidity_usd: Option<f64>§caip2: StringChain identifier (e.g., eip155:8453).
id: StringVault identifier.
name: StringHuman-readable vault name from the yield provider.
provider: EthereumYieldProvider§tvl_usd: Option<f64>§user_apy: Option<f64>§vault_address: StringOn-chain vault contract address.
Trait Implementations§
Source§impl Clone for EthereumVaultDetailsResponse
impl Clone for EthereumVaultDetailsResponse
Source§fn clone(&self) -> EthereumVaultDetailsResponse
fn clone(&self) -> EthereumVaultDetailsResponse
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 EthereumVaultDetailsResponse
impl Debug for EthereumVaultDetailsResponse
Source§impl<'de> Deserialize<'de> for EthereumVaultDetailsResponse
impl<'de> Deserialize<'de> for EthereumVaultDetailsResponse
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<&EthereumVaultDetailsResponse> for EthereumVaultDetailsResponse
impl From<&EthereumVaultDetailsResponse> for EthereumVaultDetailsResponse
Source§fn from(value: &EthereumVaultDetailsResponse) -> Self
fn from(value: &EthereumVaultDetailsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumVaultDetailsResponse
impl RefUnwindSafe for EthereumVaultDetailsResponse
impl Send for EthereumVaultDetailsResponse
impl Sync for EthereumVaultDetailsResponse
impl Unpin for EthereumVaultDetailsResponse
impl UnsafeUnpin for EthereumVaultDetailsResponse
impl UnwindSafe for EthereumVaultDetailsResponse
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