Skip to content

Offer Owners

Offer owners is the last field that is really easy to index. There is an immutable mapping between an offer ID and its owner. An offer is unique by ID and by market.

nametypedescriptionmutable
offer IDuint40The offer ID, defined below.
market IDbytes32The market ID on which the offer is consumed.
makeraddressThe owner of the offer.

The following events are emitted for offer ownership:

/// @notice Emitted when a new offer is created.
event NewOffer(
  bytes32 indexed market,
  uint40 indexed offerId,
  address indexed maker,
  uint256 gives,
  int24 tick,
  uint32 expiry,
  uint24 provision
);