pub struct KaminoReserveConfig {
pub loan_to_value_pct: u8,
pub liquidation_threshold_pct: u8,
pub protocol_take_rate_pct: u8,
pub protocol_liquidation_fee_pct: u8,
pub borrow_factor_pct: u64,
pub deposit_limit: u64,
pub borrow_limit: u64,
pub fees: KaminoReserveFees,
pub borrow_rate_curve: KaminoBorrowRateCurve,
pub deposit_withdrawal_cap: KaminoWithdrawalCaps,
pub debt_withdrawal_cap: KaminoWithdrawalCaps,
pub elevation_groups: [u8; 20],
}Expand description
Subset of Reserve.config fields.
Fields§
§loan_to_value_pct: u8§liquidation_threshold_pct: u8§protocol_take_rate_pct: u8§protocol_liquidation_fee_pct: u8§borrow_factor_pct: u64§deposit_limit: u64§borrow_limit: u64§fees: KaminoReserveFees§borrow_rate_curve: KaminoBorrowRateCurve§deposit_withdrawal_cap: KaminoWithdrawalCaps§debt_withdrawal_cap: KaminoWithdrawalCaps§elevation_groups: [u8; 20]Trait Implementations§
Source§impl Clone for KaminoReserveConfig
impl Clone for KaminoReserveConfig
Source§fn clone(&self) -> KaminoReserveConfig
fn clone(&self) -> KaminoReserveConfig
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 KaminoReserveConfig
impl Debug for KaminoReserveConfig
Source§impl<'de> Deserialize<'de> for KaminoReserveConfig
impl<'de> Deserialize<'de> for KaminoReserveConfig
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 KaminoReserveConfig
impl RefUnwindSafe for KaminoReserveConfig
impl Send for KaminoReserveConfig
impl Sync for KaminoReserveConfig
impl Unpin for KaminoReserveConfig
impl UnsafeUnpin for KaminoReserveConfig
impl UnwindSafe for KaminoReserveConfig
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