ReserveConfig class

Reserve configuration

Constructors

ReserveConfig({required int optimalUtilizationRate, required int loanToValueRatio, required int liquidationBonus, required int liquidationThreshold, required int minBorrowRate, required int optimalBorrowRate, required int maxBorrowRate, required ReserveFeesConfig feesConfig})
const
ReserveConfig.fromJson(Map<String, dynamic> json)
factory

Properties

feesConfig ReserveFeesConfig
Program owner fees assessed, separate from gains due to interest accrual
final
hashCode int
The hash code for this object.
no setterinherited
liquidationBonus int
Bonus a liquidator gets when repaying part of an unhealthy obligation, as a percentage
final
liquidationThreshold int
Loan to value ratio at which an obligation can be liquidated, as a percentage
final
loanToValueRatio int
Target ratio of the value of borrows to deposits, as a percentage 0 if use as collateral is disabled
final
maxBorrowRate int
Max borrow APY
final
minBorrowRate int
Min borrow APY
final
optimalBorrowRate int
Optimal (utilization) borrow APY
final
optimalUtilizationRate int
Optimal utilization rate, as a percentage
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

layout ↔ StructLayout
getter/setter pair