Skip to content

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

@fedgiac

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.

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