Skip to main content

KaminoReserveConfig

Struct KaminoReserveConfig 

Source
pub struct KaminoReserveConfig {
Show 31 fields pub status: u8, pub host_fixed_interest_rate_bps: u16, pub min_deleveraging_bonus_bps: u16, pub block_ctoken_usage: u8, pub protocol_order_execution_fee_pct: u8, pub protocol_take_rate_pct: u8, pub protocol_liquidation_fee_pct: u8, pub loan_to_value_pct: u8, pub liquidation_threshold_pct: u8, pub min_liquidation_bonus_bps: u16, pub max_liquidation_bonus_bps: u16, pub bad_debt_liquidation_bonus_bps: u16, pub deleveraging_margin_call_period_secs: u64, pub deleveraging_threshold_decrease_bps_per_day: u64, pub fees: KaminoReserveFees, pub borrow_rate_curve: KaminoBorrowRateCurve, pub borrow_factor_pct: u64, pub deposit_limit: u64, pub borrow_limit: u64, pub token_info: KaminoTokenInfo, pub deposit_withdrawal_cap: KaminoWithdrawalCaps, pub debt_withdrawal_cap: KaminoWithdrawalCaps, pub elevation_groups: [u8; 20], pub disable_usage_as_coll_outside_emode: u8, pub utilization_limit_block_borrowing_above_pct: u8, pub autodeleverage_enabled: u8, pub borrow_limit_outside_elevation_group: u64, pub borrow_limit_against_this_collateral_in_elevation_group: [u64; 32], pub deleveraging_bonus_increase_bps_per_day: u64, pub debt_maturity_timestamp: u64, pub debt_term_seconds: u64,
}

Fields§

§status: u8§host_fixed_interest_rate_bps: u16§min_deleveraging_bonus_bps: u16§block_ctoken_usage: u8§protocol_order_execution_fee_pct: u8§protocol_take_rate_pct: u8§protocol_liquidation_fee_pct: u8§loan_to_value_pct: u8§liquidation_threshold_pct: u8§min_liquidation_bonus_bps: u16§max_liquidation_bonus_bps: u16§bad_debt_liquidation_bonus_bps: u16§deleveraging_margin_call_period_secs: u64§deleveraging_threshold_decrease_bps_per_day: u64§fees: KaminoReserveFees§borrow_rate_curve: KaminoBorrowRateCurve§borrow_factor_pct: u64§deposit_limit: u64§borrow_limit: u64§token_info: KaminoTokenInfo§deposit_withdrawal_cap: KaminoWithdrawalCaps§debt_withdrawal_cap: KaminoWithdrawalCaps§elevation_groups: [u8; 20]§disable_usage_as_coll_outside_emode: u8§utilization_limit_block_borrowing_above_pct: u8§autodeleverage_enabled: u8§borrow_limit_outside_elevation_group: u64§borrow_limit_against_this_collateral_in_elevation_group: [u64; 32]§deleveraging_bonus_increase_bps_per_day: u64§debt_maturity_timestamp: u64§debt_term_seconds: u64

Trait Implementations§

Source§

impl Clone for KaminoReserveConfig

Source§

fn clone(&self) -> KaminoReserveConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KaminoReserveConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for KaminoReserveConfig

Source§

fn default() -> KaminoReserveConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for KaminoReserveConfig

Source§

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 Serialize for KaminoReserveConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,