lint + prettier
This commit is contained in:
parent
82da33d742
commit
4d4b4e0f2b
@ -139,7 +139,13 @@ export class SwapQuoter {
|
||||
options: Partial<SwapQuoteRequestOpts> = {},
|
||||
): Promise<MarketSellSwapQuote> {
|
||||
assert.isBigNumber('makerAssetBuyAmount', takerAssetSellAmount);
|
||||
return await this._getSwapQuoteAsync(makerAssetData, takerAssetData, takerAssetSellAmount, 'marketSell', options) as MarketSellSwapQuote;
|
||||
return (await this._getSwapQuoteAsync(
|
||||
makerAssetData,
|
||||
takerAssetData,
|
||||
takerAssetSellAmount,
|
||||
'marketSell',
|
||||
options,
|
||||
)) as MarketSellSwapQuote;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -159,7 +165,13 @@ export class SwapQuoter {
|
||||
options: Partial<SwapQuoteRequestOpts> = {},
|
||||
): Promise<MarketBuySwapQuote> {
|
||||
assert.isBigNumber('makerAssetBuyAmount', makerAssetBuyAmount);
|
||||
return await this._getSwapQuoteAsync(makerAssetData, takerAssetData, makerAssetBuyAmount, 'marketBuy', options) as MarketBuySwapQuote;
|
||||
return (await this._getSwapQuoteAsync(
|
||||
makerAssetData,
|
||||
takerAssetData,
|
||||
makerAssetBuyAmount,
|
||||
'marketBuy',
|
||||
options,
|
||||
)) as MarketBuySwapQuote;
|
||||
}
|
||||
/**
|
||||
* Get a `SwapQuote` containing all information relevant to fulfilling a swap between a desired ERC20 token address and ERC20 owned by a provided address.
|
||||
@ -368,7 +380,8 @@ export class SwapQuoter {
|
||||
takerAssetData: string,
|
||||
assetFillAmount: BigNumber,
|
||||
marketOperation: MarketOperation,
|
||||
options: Partial<SwapQuoteRequestOpts>): Promise<SwapQuote> {
|
||||
options: Partial<SwapQuoteRequestOpts>,
|
||||
): Promise<SwapQuote> {
|
||||
const { shouldForceOrderRefresh, slippagePercentage } = _.merge(
|
||||
{},
|
||||
constants.DEFAULT_SWAP_QUOTE_REQUEST_OPTS,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { marketUtils, orderCalculationUtils, SignedOrder } from '@0x/order-utils';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import { MarketOperation } from '@0x/types';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { constants } from '../constants';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { orderFactory } from '@0x/order-utils/lib/src/order_factory';
|
||||
import { SignedOrder, MarketOperation } from '@0x/types';
|
||||
import { MarketOperation, SignedOrder } from '@0x/types';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user