invert maker and taker token variable
This commit is contained in:
@@ -66,8 +66,8 @@ export const samplerOperations = {
|
||||
},
|
||||
getLiquidityProviderSellQuotes(
|
||||
liquidityProviderRegistryAddress: string,
|
||||
takerToken: string,
|
||||
makerToken: string,
|
||||
takerToken: string,
|
||||
takerFillAmounts: BigNumber[],
|
||||
): BatchedOperation<BigNumber[]> {
|
||||
return {
|
||||
@@ -91,8 +91,8 @@ export const samplerOperations = {
|
||||
},
|
||||
getLiquidityProviderBuyQuotes(
|
||||
liquidityProviderRegistryAddress: string,
|
||||
takerToken: string,
|
||||
makerToken: string,
|
||||
takerToken: string,
|
||||
makerFillAmounts: BigNumber[],
|
||||
): BatchedOperation<BigNumber[]> {
|
||||
return {
|
||||
@@ -282,8 +282,8 @@ export const samplerOperations = {
|
||||
}
|
||||
batchedOperation = samplerOperations.getLiquidityProviderSellQuotes(
|
||||
liquidityProviderRegistryAddress,
|
||||
takerToken,
|
||||
makerToken,
|
||||
takerToken,
|
||||
takerFillAmounts,
|
||||
);
|
||||
} else {
|
||||
@@ -337,8 +337,8 @@ export const samplerOperations = {
|
||||
}
|
||||
return samplerOperations.getLiquidityProviderBuyQuotes(
|
||||
liquidityProviderRegistryAddress,
|
||||
takerToken,
|
||||
makerToken,
|
||||
takerToken,
|
||||
makerFillAmounts,
|
||||
);
|
||||
} else {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
import { Web3Wrapper } from '@0x/dev-utils';
|
||||
import { assetDataUtils, generatePseudoRandomSalt } from '@0x/order-utils';
|
||||
import { AssetProxyId, ERC20BridgeAssetData, SignedOrder } from '@0x/types';
|
||||
import { BigNumber, hexUtils, NULL_ADDRESS } from '@0x/utils';
|
||||
import { BigNumber, hexUtils, NULL_ADDRESS, fromTokenUnitAmount } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { constants as assetSwapperConstants } from '../src/constants';
|
||||
@@ -873,7 +873,7 @@ describe('MarketOperationUtils tests', () => {
|
||||
const liquidityProviderAddress = randomAddress();
|
||||
const xAsset = randomAddress();
|
||||
const yAsset = randomAddress();
|
||||
const toSell = Web3Wrapper.toBaseUnitAmount(10, 18);
|
||||
const toSell = fromTokenUnitAmount(10);
|
||||
|
||||
const [getSellQuotesParams, getSellQuotesFn] = callTradeOperationAndRetainLiquidityProviderParams(
|
||||
createGetMultipleSellQuotesOperationFromRates,
|
||||
|
||||
Reference in New Issue
Block a user