@0x/asset-proxy: Fix failing test.
This commit is contained in:
committed by
Lawrence Forman
parent
0c8aec30bd
commit
b2047b90b3
@@ -196,12 +196,12 @@ function createSwapQuote(
|
||||
const quoteBase: SwapQuoteBase = {
|
||||
takerAssetData,
|
||||
makerAssetData,
|
||||
// Remove fill metadata.
|
||||
orders: resultOrders.map(o => _.omit(o, 'fills')) as SignedOrderWithFillableAmounts[],
|
||||
gasPrice,
|
||||
bestCaseQuoteInfo: fillResultsToQuoteInfo(bestCaseFillResult),
|
||||
worstCaseQuoteInfo: fillResultsToQuoteInfo(worstCaseFillResult),
|
||||
gasPrice,
|
||||
sourceBreakdown: getSwapQuoteOrdersBreakdown(bestCaseFillResult.fillAmountBySource),
|
||||
// Remove fill metadata.
|
||||
orders: resultOrders.map(o => _.omit(o, 'fills')) as SignedOrderWithFillableAmounts[],
|
||||
};
|
||||
|
||||
if (operation === MarketOperation.Buy) {
|
||||
|
||||
@@ -19,16 +19,16 @@ import {
|
||||
} from '../src/utils/quote_simulation';
|
||||
|
||||
// tslint:disable: custom-no-magic-numbers
|
||||
const { NULL_ADDRESS } = constants;
|
||||
const ZERO = new BigNumber(0);
|
||||
const ONE = new BigNumber(1);
|
||||
|
||||
describe('quote_simulation tests', async () => {
|
||||
const { NULL_ADDRESS } = constants;
|
||||
const ZERO = new BigNumber(0);
|
||||
const ONE = new BigNumber(1);
|
||||
const MAKER_TOKEN = randomAddress();
|
||||
const TAKER_TOKEN = randomAddress();
|
||||
const DEFAULT_MAKER_ASSET_DATA = assetDataUtils.encodeERC20AssetData(MAKER_TOKEN);
|
||||
const DEFAULT_TAKER_ASSET_DATA = assetDataUtils.encodeERC20AssetData(TAKER_TOKEN);
|
||||
const EPS = 1e6;
|
||||
const EPS = 1e7; // Some precision lost when crafting these orders.
|
||||
const GAS_SCHEDULE = { [ERC20BridgeSource.Native]: 1 };
|
||||
|
||||
function createQuoteFillOrders(
|
||||
|
||||
Reference in New Issue
Block a user