FinancialProductLibrary
FinancialProductLibrary
#
Provides price and collateral requirement transformation interfaces that can be overridden by custom Financial product library implementations.
#
FunctionstransformPrice(struct FixedPoint.Unsigned oraclePrice, uint256) → struct FixedPoint.Unsigned (public)
Transforms a given oracle price using the financial product libraries transformation logic.
#
Parameters:- oraclePrice: input price returned by the DVM to be transformed.
transformCollateralRequirement(struct FixedPoint.Unsigned, struct FixedPoint.Unsigned collateralRequirement) → struct FixedPoint.Unsigned (public)
Transforms a given collateral requirement using the financial product libraries transformation logic.
#
Parameters:- collateralRequirement: input collateral requirement to be transformed.
transformPriceIdentifier(bytes32 priceIdentifier, uint256) → bytes32 (public)
Transforms a given price identifier using the financial product libraries transformation logic.
#
Parameters:- priceIdentifier: input price identifier defined for the financial contract.