aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 06:54:25 +0800
committerFabio Berger <me@fabioberger.com>2017-07-11 15:30:14 +0800
commitdffc047f562d7cd9337fcaea0ba4329361868b84 (patch)
tree7a24dbeebfdd72e8244dbdbb392bcf517181c8c3 /src/contract_wrappers
parent7cbd408c24cf87755dca10d6dbcb5f4e99d6be17 (diff)
downloaddexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.tar
dexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.tar.gz
dexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.tar.bz2
dexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.tar.lz
dexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.tar.xz
dexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.tar.zst
dexon-sol-tools-dffc047f562d7cd9337fcaea0ba4329361868b84.zip
Migrate batchFillOrKillOrders
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 686208995..e551cd9d8 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -453,13 +453,13 @@ export class ExchangeWrapper extends ContractWrapper {
});
// We use _.unzip<any> because _.unzip doesn't type check if values have different types :'(
- const [orderAddresses, orderValues, fillTakerAmounts, vParams, rParams, sParams] =
+ const [orderAddresses, orderValues, fillTakerTokenAmounts, vParams, rParams, sParams] =
_.unzip<any>(orderAddressesValuesAndTakerTokenFillAmounts);
- const gas = await exchangeInstance.batchFillOrKill.estimateGas(
+ const gas = await exchangeInstance.batchFillOrKillOrders.estimateGas(
orderAddresses,
orderValues,
- fillTakerAmounts,
+ fillTakerTokenAmounts,
vParams,
rParams,
sParams,
@@ -467,10 +467,10 @@ export class ExchangeWrapper extends ContractWrapper {
from: takerAddress,
},
);
- const response: ContractResponse = await exchangeInstance.batchFillOrKill(
+ const response: ContractResponse = await exchangeInstance.batchFillOrKillOrders(
orderAddresses,
orderValues,
- fillTakerAmounts,
+ fillTakerTokenAmounts,
vParams,
rParams,
sParams,