FinancialProductLibrary

transformPrice(struct FixedPoint.Unsigned oraclePrice, uint256 requestTime) → 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.

  • requestTime: timestamp the oraclePrice was requested at.

transformCollateralRequirement(struct FixedPoint.Unsigned oraclePrice, struct FixedPoint.Unsigned collateralRequirement) → struct FixedPoint.Unsigned public

Transforms a given collateral requirement using the financial product libraries transformation logic.

Parameters:

  • oraclePrice: input price returned by DVM used to transform the collateral requirement.

  • collateralRequirement: input collateral requirement to be transformed.

transformPriceIdentifier(bytes32 priceIdentifier, uint256 requestTime) → bytes32 public

Transforms a given price identifier using the financial product libraries transformation logic.

Parameters:

  • priceIdentifier: input price identifier defined for the financial contract.

  • requestTime: timestamp the identifier is to be used at. EG the time that a price request would be sent using this identifier.

© UMA Project 2018-2019