Skip to main content

ReserveConfig

Struct ReserveConfig 

Source
#[repr(C)]
pub struct ReserveConfig {
Show 38 fields pub status: u8, pub padding_deprecated_asset_tier: u8, pub host_fixed_interest_rate_bps: u16, pub min_deleveraging_bonus_bps: u16, pub block_ctoken_usage: u8, pub early_repay_remaining_interest_pct: u8, pub emergency_mode: u8, pub reserved_1: [u8; 4], 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: ReserveFees, pub borrow_rate_curve: BorrowRateCurve, pub borrow_factor_pct: u64, pub deposit_limit: u64, pub borrow_limit: u64, pub token_info: TokenInfo, pub deposit_withdrawal_cap: WithdrawalCaps, pub debt_withdrawal_cap: WithdrawalCaps, 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 proposer_authority_locked: 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, pub rewards_amount_per_slot: u64, pub permissioned_ops: u64,
}
Expand description

Reserve configuration parameters.

Fields§

§status: u8

0 = Active, 1 = Obsolete, 2 = Hidden.

§padding_deprecated_asset_tier: u8§host_fixed_interest_rate_bps: u16§min_deleveraging_bonus_bps: u16§block_ctoken_usage: u8§early_repay_remaining_interest_pct: u8§emergency_mode: u8

Whether the reserve is in emergency mode.

§reserved_1: [u8; 4]§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: ReserveFees§borrow_rate_curve: BorrowRateCurve§borrow_factor_pct: u64§deposit_limit: u64§borrow_limit: u64§token_info: TokenInfo§deposit_withdrawal_cap: WithdrawalCaps§debt_withdrawal_cap: WithdrawalCaps§elevation_groups: [u8; 20]§disable_usage_as_coll_outside_emode: u8§utilization_limit_block_borrowing_above_pct: u8§autodeleverage_enabled: u8§proposer_authority_locked: 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§rewards_amount_per_slot: u64

Rewards token amount distributed per slot to depositors

§permissioned_ops: u64

Trait Implementations§

Source§

impl Clone for ReserveConfig

Source§

fn clone(&self) -> ReserveConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ReserveConfig

Source§

impl Debug for ReserveConfig

Source§

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

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

impl Pod for ReserveConfig

Source§

impl Zeroable for ReserveConfig

Source§

fn zeroed() -> Self

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> AnyBitPattern for T
where T: Pod,

Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> NoUninit for T
where T: Pod,

Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.