OptimisticRequester
Optimistic Requester.
this contract does not work with ERC777 collateral currencies or any others that call into the receiver on transfer(). Using an ERC777 token would allow a user to maliciously grief other participants (while also losing money themselves).
priceProposed(bytes32 identifier, uint256 timestamp, bytes ancillaryData)
external
Callback for proposals.
Parameters:
-
identifier
: price identifier being requested. -
timestamp
: timestamp of the price being requested. -
ancillaryData
: ancillary data of the price being requested.
priceDisputed(bytes32 identifier, uint256 timestamp, bytes ancillaryData, uint256 refund)
external
Callback for disputes.
Parameters:
-
identifier
: price identifier being requested. -
timestamp
: timestamp of the price being requested. -
ancillaryData
: ancillary data of the price being requested. -
refund
: refund received in the case that refundOnDispute was enabled.
priceSettled(bytes32 identifier, uint256 timestamp, bytes ancillaryData, int256 price)
external
Callback for settlement.
Parameters:
-
identifier
: price identifier being requested. -
timestamp
: timestamp of the price being requested. -
ancillaryData
: ancillary data of the price being requested. -
price
: price that was resolved by the escalation process.