Check fillable early
This commit is contained in:
parent
d92fd43791
commit
b16f5f55fb
@ -91,6 +91,12 @@ contract MixinExchangeCore is
|
||||
// Fetch order info
|
||||
OrderInfo memory orderInfo = getOrderInfo(order);
|
||||
|
||||
// An order can only be filled if its status is FILLABLE.
|
||||
require(
|
||||
orderInfo.orderStatus == uint8(OrderStatus.FILLABLE),
|
||||
"ORDER_UNFILLABLE"
|
||||
);
|
||||
|
||||
// Fetch taker address
|
||||
address takerAddress = getCurrentContextAddress();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user