pub struct ReserveConfig {
pub optimal_utilization_rate: u8,
pub loan_to_value_ratio: u8,
pub liquidation_bonus: u8,
pub liquidation_threshold: u8,
pub min_borrow_rate: u8,
pub optimal_borrow_rate: u8,
pub max_borrow_rate: u8,
pub fees: ReserveFees,
}Expand description
Reserve configuration values
Fields§
§optimal_utilization_rate: u8Optimal utilization rate, as a percentage
loan_to_value_ratio: u8Target ratio of the value of borrows to deposits, as a percentage 0 if use as collateral is disabled
liquidation_bonus: u8Bonus a liquidator gets when repaying part of an unhealthy obligation, as a percentage
liquidation_threshold: u8Loan to value ratio at which an obligation can be liquidated, as a percentage
min_borrow_rate: u8Min borrow APY
optimal_borrow_rate: u8Optimal (utilization) borrow APY
max_borrow_rate: u8Max borrow APY
fees: ReserveFeesProgram owner fees assessed, separate from gains due to interest accrual
Trait 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 moreSource§impl Debug for ReserveConfig
impl Debug for ReserveConfig
Source§impl Default for ReserveConfig
impl Default for ReserveConfig
Source§fn default() -> ReserveConfig
fn default() -> ReserveConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReserveConfig
impl PartialEq for ReserveConfig
Source§fn eq(&self, other: &ReserveConfig) -> bool
fn eq(&self, other: &ReserveConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReserveConfig
impl StructuralPartialEq 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§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more