aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-23 06:20:53 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-23 06:39:03 +0800
commit44ca6c4b71e23162821b923d2c812bbd5dd7b078 (patch)
treeedc43909501d810196ad372b467c984acc844146
parentbfabdf6010ed044828c05f35d6e2e77cccdd1d2f (diff)
downloaddexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.tar
dexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.tar.gz
dexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.tar.bz2
dexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.tar.lz
dexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.tar.xz
dexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.tar.zst
dexon-sol-tools-44ca6c4b71e23162821b923d2c812bbd5dd7b078.zip
Fix lint errors
-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);