-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell watchtower to retry if order is too small
- Loading branch information
Showing
3 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.8.0 <0.9.0; | ||
|
||
/** | ||
* @title Watchtower Custom Error Interface | ||
* @author CoW Protocol Developers | ||
* @dev An interface that collects all custom error message for the watchtower. | ||
* Different error messages lead to different watchtower behaviors when creating | ||
* an order. | ||
* @dev The watchtower is a service that automatically posts orders to the CoW | ||
* Protocol orderbook at regular intervals. | ||
*/ | ||
contract IWatchtowerCustomErrors { | ||
/** | ||
* No order is currently available for trading, but the watchtower should | ||
* try again at the specified timestamp. | ||
*/ | ||
error PollTryAtEpoch(uint256 timestamp, string message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters