-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add order deletion * Add parameter test to dedicated test contract * Remove time check from test * Fix usage of vm.startPrank and vm.prank * Use .send to transfer ETH
- Loading branch information
Showing
7 changed files
with
344 additions
and
18 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
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,16 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
pragma solidity ^0.8; | ||
|
||
/// @title CoW Swap Settlement Contract Interface | ||
/// @author CoW Swap Developers | ||
/// @dev This interface collects the functions of the CoW Swap settlement contract that are used by the ETH flow | ||
/// contract. | ||
interface ICoWSwapSettlement { | ||
/// @dev Map each user order by UID to the amount that has been filled so | ||
/// far. If this amount is larger than or equal to the amount traded in the | ||
/// order (amount sold for sell orders, amount bought for buy orders) then | ||
/// the order cannot be traded anymore. If the order is fill or kill, then | ||
/// this value is only used to determine whether the order has already been | ||
/// executed. | ||
function filledAmount(bytes memory orderUid) external returns (uint256); | ||
} |
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
Oops, something went wrong.