This PR adds a check to the CoW Swap adapter to disallow EthFlow buy orders. This is because the contract only allows sell orders:
// Only sell orders are allowed. In a buy order, any leftover ETH would stay in the ETH flow contract
// and would need to be sent back to the user, whose extra gas cost is usually not worth it.
GPv2Order.KIND_SELL, // bytes32 kind
The proposed fix is to throw an error when attempting to quote a buy order from Ether.
This PR adds a check to the CoW Swap adapter to disallow EthFlow buy orders. This is because the contract only allows sell orders:
The proposed fix is to throw an error when attempting to quote a buy order from Ether.