ICurrency
This interface represents an abstraction for any ERC20 token to convert any value to a USDC equivalency for market calculations.
getERC20
Returns the ERC20 token that is being used as the currency.
Return Values
Name
Type
Description
[0]
contract IERC20
The ERC20 token being used as the currency.
getEstimatedUSDCValue
Returns the estimated value in USDC of an amount of the currency.
This function is virtual and must be implemented in child contracts.
Parameters
Name
Type
Description
_amount
uint256
The amount of currency to estimate the value of.
Return Values
Name
Type
Description
[0]
uint256
The estimated value in USDC of the specified amount of currency.
Last updated