Skip to content

chore: Leniently retry on specific unknown revert conditions (e.g., math over/underflow) #144

Description

@fedgiac

Background

Suppose that the watchtower tries to poll a new order from getTradeableOrder() and this call reverts.
If the call reverts and the revert error isn't recognized, then the watchtower stops indexing further CoW Protocol orders from the same conditional order.
This may be undesirable for certain revert conditions, main example being reverts because of overflow/underflow/division by zero.

Details

This applies to the legacy polling method.

Acceptance criteria

A possible solution would be implementing a back-off mechanism for a list of known revert conditions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions