ReserveFeesConfig class

Additional fee information on a reserve

These exist separately from interest accrual fees, and are specifically for the program owner and frontend host. The fees are paid out as a percentage of liquidity token amounts during repayments and liquidations.

Constructors

ReserveFeesConfig({required BigInt borrowFeeWad, required BigInt flashLoanFeeWad, required int hostFeePercentage})
const
ReserveFeesConfig.fromJson(Map<String, dynamic> json)
factory

Properties

borrowFeeWad BigInt
Fee assessed on BorrowObligationLiquidity, expressed as a Wad. Must be between 0 and 10^18, such that 10^18 = 1. A few examples for clarity: 1% = 10_000_000_000_000_000 0.01% (1 basis point) = 100_000_000_000_000 0.00001% (Aave borrow fee) = 100_000_000_000
final
flashLoanFeeWad BigInt
Fee for flash loan, expressed as a Wad. 0.3% (Aave flash loan fee) = 3_000_000_000_000_000
final
hashCode int
The hash code for this object.
no setterinherited
hostFeePercentage int
Amount of fee going to host account, if provided in liquidate and repay
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