diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-09 09:48:06 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:16 +0800 |
commit | 9e2f8bead9a51a4c30b77781ae3b39bed31c36ee (patch) | |
tree | 5f593087ce3eeb643dfcb16b139cc6f23a2fd471 /packages/contracts/util/formatters.ts | |
parent | 942867179c05e901450a7a08872dd523122a2f81 (diff) | |
download | dexon-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.ts | 8 |
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; |