aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/util/formatters.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-02-09 09:48:06 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:16 +0800
commit9e2f8bead9a51a4c30b77781ae3b39bed31c36ee (patch)
tree5f593087ce3eeb643dfcb16b139cc6f23a2fd471 /packages/contracts/util/formatters.ts
parent942867179c05e901450a7a08872dd523122a2f81 (diff)
downloaddexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.tar
dexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.tar.gz
dexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.tar.bz2
dexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.tar.lz
dexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.tar.xz
dexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.tar.zst
dexon-sol-tools-9e2f8bead9a51a4c30b77781ae3b39bed31c36ee.zip
Merge development
Diffstat (limited to 'packages/contracts/util/formatters.ts')
-rw-r--r--packages/contracts/util/formatters.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/util/formatters.ts b/packages/contracts/util/formatters.ts
index e3080af15..88e12a6b4 100644
--- a/packages/contracts/util/formatters.ts
+++ b/packages/contracts/util/formatters.ts
@@ -76,11 +76,11 @@ export const formatters = {
});
return marketFillOrders;
},
- createBatchCancel(signedOrders: SignedOrder[], cancelTakerTokenAmounts: BigNumber[] = []) {
+ createBatchCancel(signedOrders: SignedOrder[], takerTokenCancelAmounts: BigNumber[] = []) {
const batchCancel: BatchCancelOrders = {
orderAddresses: [],
orderValues: [],
- cancelTakerTokenAmounts,
+ takerTokenCancelAmounts,
};
signedOrders.forEach(signedOrder => {
batchCancel.orderAddresses.push([
@@ -98,8 +98,8 @@ export const formatters = {
signedOrder.expirationUnixTimestampSec,
signedOrder.salt,
]);
- if (cancelTakerTokenAmounts.length < signedOrders.length) {
- batchCancel.cancelTakerTokenAmounts.push(signedOrder.takerTokenAmount);
+ if (takerTokenCancelAmounts.length < signedOrders.length) {
+ batchCancel.takerTokenCancelAmounts.push(signedOrder.takerTokenAmount);
}
});
return batchCancel;