pub struct YieldConfig {
pub enabled: bool,
pub protocol: String,
pub chain: String,
pub min_deposit: f64,
pub withdrawal_threshold: f64,
pub chain_rpc_url: Option<String>,
pub pool_address: String,
pub usdc_address: String,
pub atoken_address: Option<String>,
}Fields§
§enabled: bool§protocol: String§chain: String§min_deposit: f64§withdrawal_threshold: f64§chain_rpc_url: Option<String>RPC URL for yield chain (e.g. Base Sepolia). If unset, deposit/withdraw use mock behavior.
pool_address: StringAave V3 Pool address. Default: Base Sepolia.
usdc_address: StringUnderlying asset (e.g. USDC) address for supply/withdraw. Default: Base Sepolia USDC.
atoken_address: Option<String>aToken address for balance checks (e.g. aBase Sepolia USDC).
When None, falls back to the Base Sepolia aUSDC default.
Trait Implementations§
Source§impl Clone for YieldConfig
impl Clone for YieldConfig
Source§fn clone(&self) -> YieldConfig
fn clone(&self) -> YieldConfig
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 YieldConfig
impl Debug for YieldConfig
Source§impl Default for YieldConfig
impl Default for YieldConfig
Source§impl<'de> Deserialize<'de> for YieldConfig
impl<'de> Deserialize<'de> for YieldConfig
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 YieldConfig
impl RefUnwindSafe for YieldConfig
impl Send for YieldConfig
impl Sync for YieldConfig
impl Unpin for YieldConfig
impl UnsafeUnpin for YieldConfig
impl UnwindSafe for YieldConfig
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