pub struct EthereumEarnVaultDetailsResponse {
pub app_apy: Option<f64>,
pub asset: EarnAsset,
pub available_liquidity_usd: Option<f64>,
pub caip2: String,
pub id: String,
pub name: String,
pub provider: EthereumEarnProvider,
pub tvl_usd: Option<f64>,
pub user_apy: Option<f64>,
pub vault_address: String,
}Expand description
Detailed vault information including current APY, liquidity, and asset metadata.
JSON schema
{
"title": "EthereumEarnVaultDetailsResponse",
"description": "Detailed vault information including current APY,
liquidity, and asset metadata.",
"examples": [
{
"app_apy": 50,
"asset": {
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"decimals": 6,
"symbol": "usdc"
},
"available_liquidity_usd": 64000000,
"caip2": "eip155:8453",
"id": "cm7oxq1el000e11o8iwp7d0d0",
"name": "Gauntlet USDC Prime",
"provider": "morpho",
"tvl_usd": 64000000,
"user_apy": 500,
"vault_address": "0x460b523b670e751c1d7c85f24504825e24f64700"
}
],
"type": "object",
"required": [
"asset",
"caip2",
"id",
"name",
"provider",
"vault_address"
],
"properties": {
"app_apy": {
"description": "Annual percentage yield earned by the app from fee
wrapper fees, in basis points.",
"type": "number"
},
"asset": {
"$ref": "#/components/schemas/EarnAsset"
},
"available_liquidity_usd": {
"description": "Available liquidity in USD.",
"type": "number"
},
"caip2": {
"description": "CAIP-2 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/EthereumEarnProvider"
},
"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": "Onchain vault contract address.",
"type": "string"
}
},
"x-stainless-model":
"wallet_actions.ethereum_earn_vault_details_response"
}Fields§
§app_apy: Option<f64>§asset: EarnAsset§available_liquidity_usd: Option<f64>§caip2: StringCAIP-2 chain identifier (e.g. “eip155:8453”).
id: StringVault identifier.
name: StringHuman-readable vault name from the yield provider.
provider: EthereumEarnProvider§tvl_usd: Option<f64>§user_apy: Option<f64>§vault_address: StringOnchain vault contract address.
Trait Implementations§
Source§impl Clone for EthereumEarnVaultDetailsResponse
impl Clone for EthereumEarnVaultDetailsResponse
Source§fn clone(&self) -> EthereumEarnVaultDetailsResponse
fn clone(&self) -> EthereumEarnVaultDetailsResponse
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<'de> Deserialize<'de> for EthereumEarnVaultDetailsResponse
impl<'de> Deserialize<'de> for EthereumEarnVaultDetailsResponse
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<&EthereumEarnVaultDetailsResponse> for EthereumEarnVaultDetailsResponse
impl From<&EthereumEarnVaultDetailsResponse> for EthereumEarnVaultDetailsResponse
Source§fn from(value: &EthereumEarnVaultDetailsResponse) -> Self
fn from(value: &EthereumEarnVaultDetailsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumEarnVaultDetailsResponse
impl RefUnwindSafe for EthereumEarnVaultDetailsResponse
impl Send for EthereumEarnVaultDetailsResponse
impl Sync for EthereumEarnVaultDetailsResponse
impl Unpin for EthereumEarnVaultDetailsResponse
impl UnsafeUnpin for EthereumEarnVaultDetailsResponse
impl UnwindSafe for EthereumEarnVaultDetailsResponse
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