From da54fc3296c46c92bfbe264ae02e70055f1085fd Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 23 Oct 2018 15:32:55 -0700 Subject: chore(asset-buyer): fix lint errors --- packages/asset-buyer/src/utils/buy_quote_calculator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/asset-buyer') diff --git a/packages/asset-buyer/src/utils/buy_quote_calculator.ts b/packages/asset-buyer/src/utils/buy_quote_calculator.ts index 33cbea4a6..f94ab3fa4 100644 --- a/packages/asset-buyer/src/utils/buy_quote_calculator.ts +++ b/packages/asset-buyer/src/utils/buy_quote_calculator.ts @@ -1,4 +1,4 @@ -import { marketUtils, rateUtils, SignedOrder } from '@0x/order-utils'; +import { marketUtils, SignedOrder } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; @@ -151,7 +151,7 @@ function findEthAmountNeededToBuyZrx( (acc, order, index) => { const { totalEthAmount, remainingZrxBuyAmount } = acc; const remainingFillableMakerAssetAmount = remainingFillableMakerAssetAmounts[index]; - const makerFillAmount = BigNumber.min(acc.remainingZrxBuyAmount, remainingFillableMakerAssetAmount); + const makerFillAmount = BigNumber.min(remainingZrxBuyAmount, remainingFillableMakerAssetAmount); const [takerFillAmount, adjustedMakerFillAmount] = orderUtils.getTakerFillAmountForFeeOrder( order, makerFillAmount, @@ -163,7 +163,7 @@ function findEthAmountNeededToBuyZrx( totalEthAmount: totalEthAmount.plus(takerFillAmount), remainingZrxBuyAmount: BigNumber.max( constants.ZERO_AMOUNT, - acc.remainingZrxBuyAmount.minus(makerFillAmount).plus(extraFeeAmount), + remainingZrxBuyAmount.minus(makerFillAmount).plus(extraFeeAmount), ), }; }, -- cgit v1.2.3