DullahanFeeModule
UNIT
uint256 UNIT1e18 scale
TRESHOLD
uint256 TRESHOLDThreshold ratio to apply the extra multiplier
BASE_MULTIPLIER
uint256 BASE_MULTIPLIERBase extra multiplier
EXTRA_MULTIPLIER_STEP
uint256 EXTRA_MULTIPLIER_STEPMultplier increase for extra ratio over the treshold
vault
address vaultAddress of the Dullahan Vault
feePerStkAavePerSecond
Amount of GHO fees per second per stkAAVE
UpdatedFeePerStkAavePerSecond
Event emitted when the fee per second value is updated
constructor
utilizationRate
Get the current utilization rate
Calculates the current utilization rate based on the Vault rented amount & total assets
Return Values
[0]
uint256
uint256 : Current utilization rate
getCurrentFeePerSecond
Get the current fee per second
Calculates the current fee per second based on the current utilization rate
Return Values
currentFee
uint256
- uint256 : Current fee per second
updateFeePerStkAavePerSecond
Updates the feePerStkAavePerSecond parameter
Updates the feePerStkAavePerSecond in storage with the given value
Parameters
newFee
uint256
New value tu set
Last updated
Was this helpful?