FeePayer

fees() modifier

modifier that calls payFees().

onlyIfTest() modifier

Reverts if not running in test mode.

constructor(address collateralAddress, address finderAddress, bool _isTest) public

payFees() → struct FixedPoint.Unsigned totalPaid public

Pays UMA DVM regular fees to the Store contract. These must be paid periodically for the life of the contract.

_payFinalFees(address payer) → struct FixedPoint.Unsigned totalPaid internal

Pays UMA DVM final fees to the Store contract. This is a flat fee charged for each price request.

pfc() → struct FixedPoint.Unsigned public

Gets the current profit from corruption for this contract in terms of the collateral currency.

Derived contracts are expected to implement this function so the payFees() method can correctly compute the owed fees.

_getStore() → contract StoreInterface internal

constructor(bool _isTest) internal

setCurrentTime(uint256 _time) external

Sets the current time.

Will revert if not running in test mode.

getCurrentTime() → uint256 public

Gets the current time. Will return the last time set in setCurrentTime if running in test mode. Otherwise, it will return the block timestamp.

© UMA Project 2018-2019