OracleModule
UNIT
1e18 scale
GHO_DECIMALS
Number of decimals in the GHO token
AAVE_ORACLE
Address of the Aave Price Oracle
GHO
Address of the GHO token
constructor
getCollateralAmount
Get the amount of collateral for a given amount of fees
Calculates the amount of collateral matching the given amount of fees based on current prices
Parameters
Name
Type
Description
collateral
address
Address of the collateral
feeAmount
uint256
Amount of fees
Return Values
Name
Type
Description
[0]
uint256
uint256 : Amount of collateral
getFeeAmount
Get the amount of fees for a given amount of collateral
Calculates the amount of fees matching the given amount of collateral based on current prices
Parameters
Name
Type
Description
collateral
address
Address of the collateral
collateralAmount
uint256
Amount of collateral
Return Values
Name
Type
Description
[0]
uint256
uint256 : Amount of fees
Last updated