#[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: u80 = 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: u8Whether 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§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: u64Rewards token amount distributed per slot to depositors
permissioned_ops: u64Trait Implementations§
Source§impl Clone for ReserveConfig
impl Clone for ReserveConfig
Source§fn clone(&self) -> ReserveConfig
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReserveConfig
Source§impl Debug for ReserveConfig
impl Debug for ReserveConfig
impl Pod for ReserveConfig
Auto Trait Implementations§
impl Freeze for ReserveConfig
impl RefUnwindSafe for ReserveConfig
impl Send for ReserveConfig
impl Sync for ReserveConfig
impl Unpin for ReserveConfig
impl UnsafeUnpin for ReserveConfig
impl UnwindSafe for ReserveConfig
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
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
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 Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
impl<T> NoUninit for Twhere
T: Pod,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.