chore(asset-buyer): fix lint errors

This commit is contained in:
Brandon Millman
2018-10-23 15:32:55 -07:00
parent 4db33ba2b3
commit da54fc3296

View File

@@ -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),
),
};
},