pub struct ReserveConfig {Show 13 fields
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,
pub deposit_limit: u64,
pub borrow_limit: u64,
pub fee_receiver: Pubkey,
pub protocol_liquidation_fee: u8,
pub protocol_take_rate: u8,
}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
deposit_limit: u64Maximum deposit limit of liquidity in native units, u64::MAX for inf
borrow_limit: u64Borrows disabled
fee_receiver: PubkeyReserve liquidity fee receiver address
protocol_liquidation_fee: u8Cut of the liquidation bonus that the protocol receives, as a percentage
protocol_take_rate: u8Protocol take rate is the amount borrowed interest protocol recieves, as a percentage
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 · 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
impl Copy for ReserveConfig
impl Eq 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 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