Fee Calculator
Inherits: IFeeCalculator
Author: Sperax Foundation
A contract that calculates fees for minting and redeeming USDs.
State Variables
LOWER_THRESHOLD
UPPER_THRESHOLD
DISCOUNT_FACTOR
PENALTY_MULTIPLIER
CALIBRATION_GAP
COLLATERAL_MANAGER
collateralFee
Functions
constructor
calibrateFee
Calibrates fee for a particular collateral
Parameters
getMintFee
Calculates fee to be collected for minting
Parameters
Returns
getRedeemFee
Calculates fee to be collected for redeeming
Parameters
Returns
calibrateFeeForAll
Calibrates fee for all the collaterals registered
_calibrateFee
Helper function for calibrating fee for a collateral
Parameters
Events
FeeCalibrated
Errors
InvalidCalibration
Structs
FeeData
Last updated