Skip to main content

Writing an observer

Under construction

This page is being written. The interface is deployed and permissionless; its reference is not published yet. For anything urgent in the meantime, the contact is [email protected].

An observer is notified after a swap has settled. It can record and act, and it cannot alter or block the trade. See Observers for what the family is.

Will be covered here:

  • the interface to implement, and the two notifications available;
  • what the pool passes, including the fee the swap paid;
  • the shared gas budget per swap, and what ordering means for your block;
  • what happens when your block reverts;
  • registration, configuration payload, and review for listing.