pub struct EthereumYieldPositionResponse {
pub asset: EthereumYieldPositionResponseAsset,
pub assets_in_vault: String,
pub shares_in_vault: String,
pub total_deposited: String,
pub total_withdrawn: String,
}Expand description
A user’s position in a yield vault.
JSON schema
{
"title": "EthereumYieldPositionResponse",
"description": "A user's position in a yield vault.",
"examples": [
{
"asset": {
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC"
},
"assets_in_vault": "1050000",
"shares_in_vault": "1000000000000000000",
"total_deposited": "1000000",
"total_withdrawn": "0"
}
],
"type": "object",
"required": [
"asset",
"assets_in_vault",
"shares_in_vault",
"total_deposited",
"total_withdrawn"
],
"properties": {
"asset": {
"type": "object",
"required": [
"address",
"symbol"
],
"properties": {
"address": {
"description": "Token contract address.",
"type": "string"
},
"symbol": {
"description": "Token symbol (e.g., \"USDC\").",
"type": "string"
}
}
},
"assets_in_vault": {
"description": "Current asset value in the vault (realtime from
ERC4626), in smallest unit.",
"type": "string"
},
"shares_in_vault": {
"description": "Current vault shares held (realtime from
ERC4626).",
"type": "string"
},
"total_deposited": {
"description": "Total amount deposited into the vault, in smallest
unit.",
"type": "string"
},
"total_withdrawn": {
"description": "Total amount withdrawn from the vault, in smallest
unit.",
"type": "string"
}
},
"x-stainless-model": "yield.ethereum_yield_position_response"
}Fields§
§asset: EthereumYieldPositionResponseAsset§assets_in_vault: StringCurrent asset value in the vault (realtime from ERC4626), in smallest unit.
Current vault shares held (realtime from ERC4626).
total_deposited: StringTotal amount deposited into the vault, in smallest unit.
total_withdrawn: StringTotal amount withdrawn from the vault, in smallest unit.
Trait Implementations§
Source§impl Clone for EthereumYieldPositionResponse
impl Clone for EthereumYieldPositionResponse
Source§fn clone(&self) -> EthereumYieldPositionResponse
fn clone(&self) -> EthereumYieldPositionResponse
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 EthereumYieldPositionResponse
impl<'de> Deserialize<'de> for EthereumYieldPositionResponse
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<&EthereumYieldPositionResponse> for EthereumYieldPositionResponse
impl From<&EthereumYieldPositionResponse> for EthereumYieldPositionResponse
Source§fn from(value: &EthereumYieldPositionResponse) -> Self
fn from(value: &EthereumYieldPositionResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumYieldPositionResponse
impl RefUnwindSafe for EthereumYieldPositionResponse
impl Send for EthereumYieldPositionResponse
impl Sync for EthereumYieldPositionResponse
impl Unpin for EthereumYieldPositionResponse
impl UnsafeUnpin for EthereumYieldPositionResponse
impl UnwindSafe for EthereumYieldPositionResponse
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