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