aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-26 13:50:24 +0800
committerFabio Berger <me@fabioberger.com>2018-06-26 13:50:24 +0800
commitfb03003b3a9e7beb1054a50bad4320e60ca52e04 (patch)
tree0523a089bd8b70b2484778f02c42664d6e31b9d3 /packages/contracts
parent8064914bb7f226c98d62357e29581238f0f765e4 (diff)
downloaddexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.tar
dexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.tar.gz
dexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.tar.bz2
dexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.tar.lz
dexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.tar.xz
dexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.tar.zst
dexon-sol-tools-fb03003b3a9e7beb1054a50bad4320e60ca52e04.zip
Fix inconsistency between contract and reference implementation of order validation logic
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/test/exchange/fill_order.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/contracts/test/exchange/fill_order.ts b/packages/contracts/test/exchange/fill_order.ts
index 6f57ad9f4..60fe777c3 100644
--- a/packages/contracts/test/exchange/fill_order.ts
+++ b/packages/contracts/test/exchange/fill_order.ts
@@ -123,6 +123,7 @@ describe('FillOrder Tests', () => {
...defaultFillScenario.orderScenario,
makerAssetAmountScenario: OrderAssetAmountScenario.Zero,
},
+ takerAssetFillAmountScenario: TakerAssetFillAmountScenario.GreaterThanRemainingFillableTakerAssetAmount,
};
await coreCombinatorialUtils.testFillOrderScenarioAsync(provider, fillScenario);
});
@@ -134,6 +135,7 @@ describe('FillOrder Tests', () => {
...defaultFillScenario.orderScenario,
takerAssetAmountScenario: OrderAssetAmountScenario.Zero,
},
+ takerAssetFillAmountScenario: TakerAssetFillAmountScenario.GreaterThanRemainingFillableTakerAssetAmount,
};
await coreCombinatorialUtils.testFillOrderScenarioAsync(provider, fillScenario);
});