Interface that allows derivative contracts to pay oracle fees for their use of the system.

payOracleFees() external

Pays Oracle fees in ETH to the store. To be used by contracts whose margin currency is ETH.

payOracleFeesErc20(address erc20Address) external

Pays oracle fees in the margin currency, erc20Address, to the store. To be used if the margin currency is an ERC20 token rather than ETH> All approved tokens are transfered.

computeRegularFee(uint256 startTime, uint256 endTime, struct FixedPoint.Unsigned pfc) → struct FixedPoint.Unsigned regularFee, struct FixedPoint.Unsigned latePenalty external

Computes the regular oracle fees that a contract should pay for a period. pfc` is the "profit from corruption", or the maximum amount of margin currency that a token sponsor could extract from the contract through corrupting the price feed in their favor.

computeFinalFee(address currency) → struct FixedPoint.Unsigned finalFee external

Computes the final oracle fees that a contract should pay at settlement.

© UMA Project 2018-2019