Disallow self filling
This commit is contained in:
parent
749c6ecc30
commit
3e4493b389
@ -314,7 +314,13 @@ contract MixinExchangeCore is
|
||||
"INVALID_TAKER"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Orders can not be self-filled (use cancel instead)
|
||||
require(
|
||||
order.makerAddress != takerAddress,
|
||||
"INVALID_TAKER"
|
||||
);
|
||||
|
||||
// Validate Maker signature (check only if first time seen)
|
||||
if (orderInfo.orderTakerAssetFilledAmount == 0) {
|
||||
require(
|
||||
|
Loading…
x
Reference in New Issue
Block a user