Skip to main content

OptimisticRequester

OptimisticRequester#

Optional interface that requesters can implement to receive callbacks.

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).

Functions#

priceProposed(bytes32 identifier, uint32 timestamp, bytes ancillaryData, struct SkinnyOptimisticOracleInterface.Request request) (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.
  • request: request params after proposal.
priceDisputed(bytes32 identifier, uint32 timestamp, bytes ancillaryData, struct SkinnyOptimisticOracleInterface.Request request) (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.
  • request: request params after dispute.
priceSettled(bytes32 identifier, uint32 timestamp, bytes ancillaryData, struct SkinnyOptimisticOracleInterface.Request request) (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.
  • request: request params after settlement.