aboutsummaryrefslogtreecommitdiffstats
path: root/packages/forwarder-helper
diff options
context:
space:
mode:
Diffstat (limited to 'packages/forwarder-helper')
-rw-r--r--packages/forwarder-helper/src/forwarder_helper_impl.ts2
-rw-r--r--packages/forwarder-helper/test/forwarder_helper_impl_test.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/forwarder-helper/src/forwarder_helper_impl.ts b/packages/forwarder-helper/src/forwarder_helper_impl.ts
index f21fab9fd..0e59aa7d6 100644
--- a/packages/forwarder-helper/src/forwarder_helper_impl.ts
+++ b/packages/forwarder-helper/src/forwarder_helper_impl.ts
@@ -41,7 +41,7 @@ export class ForwarderHelperImpl implements ForwarderHelper {
return rest;
});
const amounts = _.map(signedOrderWithAmounts, order => {
- const { remainingFillAmount, ...rest } = order;
+ const { remainingFillAmount } = order;
return remainingFillAmount;
});
const compactAmounts = _.compact(amounts);
diff --git a/packages/forwarder-helper/test/forwarder_helper_impl_test.ts b/packages/forwarder-helper/test/forwarder_helper_impl_test.ts
index 3e2667a01..3c3b6db92 100644
--- a/packages/forwarder-helper/test/forwarder_helper_impl_test.ts
+++ b/packages/forwarder-helper/test/forwarder_helper_impl_test.ts
@@ -97,7 +97,7 @@ describe('ForwarderHelperImpl', () => {
const forwarderHelper = new ForwarderHelperImpl(inputForwarderHelperConfig);
expect(() => {
// request for 6 makerAsset units, because we have exactly 6 available we should throw because there is a built in slippage buffer
- const info = forwarderHelper.getMarketBuyOrdersInfo({
+ forwarderHelper.getMarketBuyOrdersInfo({
makerAssetFillAmount: new BigNumber(6),
});
}).to.throw(ForwarderHelperError.InsufficientMakerAssetLiquidity);
@@ -110,7 +110,7 @@ describe('ForwarderHelperImpl', () => {
const forwarderHelper = new ForwarderHelperImpl(inputForwarderHelperConfigNoFees);
expect(() => {
// request for 4 makerAsset units, we need fees but no fee orders exist, show we should throw
- const info = forwarderHelper.getMarketBuyOrdersInfo({
+ forwarderHelper.getMarketBuyOrdersInfo({
makerAssetFillAmount: new BigNumber(250),
});
}).to.throw(ForwarderHelperError.InsufficientZrxLiquidity);