Reenable PLP VIP and add gasCost field to LiquidityProviderRegistry (#65)
This commit is contained in:
@@ -1274,7 +1274,10 @@ describe('MarketOperationUtils tests', () => {
|
||||
.poolAddress;
|
||||
const rates: RatesBySource = {};
|
||||
rates[ERC20BridgeSource.LiquidityProvider] = [1, 1, 1, 1];
|
||||
MOCK_SAMPLER.liquidityProviderRegistry[liquidityProviderAddress] = [MAKER_TOKEN, TAKER_TOKEN];
|
||||
MOCK_SAMPLER.liquidityProviderRegistry[liquidityProviderAddress] = {
|
||||
tokens: [MAKER_TOKEN, TAKER_TOKEN],
|
||||
gasCost: 0,
|
||||
};
|
||||
replaceSamplerOps({
|
||||
getOrderFillableTakerAmounts: () => [constants.ZERO_AMOUNT],
|
||||
getSellQuotes: createGetMultipleSellQuotesOperationFromRates(rates),
|
||||
@@ -1317,7 +1320,10 @@ describe('MarketOperationUtils tests', () => {
|
||||
[ERC20BridgeSource.Uniswap]: [1, 1, 1, 1],
|
||||
[ERC20BridgeSource.LiquidityProvider]: [0.9999, 0.9999, 0.9999, 0.9999],
|
||||
};
|
||||
MOCK_SAMPLER.liquidityProviderRegistry[randomAddress()] = [MAKER_TOKEN, TAKER_TOKEN];
|
||||
MOCK_SAMPLER.liquidityProviderRegistry[randomAddress()] = {
|
||||
tokens: [MAKER_TOKEN, TAKER_TOKEN],
|
||||
gasCost: 0,
|
||||
};
|
||||
replaceSamplerOps({
|
||||
getSellQuotes: createGetMultipleSellQuotesOperationFromRates(rates),
|
||||
getMedianSellRate: createGetMedianSellRate(ETH_TO_MAKER_RATE),
|
||||
@@ -1736,7 +1742,10 @@ describe('MarketOperationUtils tests', () => {
|
||||
[ERC20BridgeSource.Uniswap]: [1, 1, 1, 1],
|
||||
[ERC20BridgeSource.LiquidityProvider]: [0.9999, 0.9999, 0.9999, 0.9999],
|
||||
};
|
||||
MOCK_SAMPLER.liquidityProviderRegistry[randomAddress()] = [MAKER_TOKEN, TAKER_TOKEN];
|
||||
MOCK_SAMPLER.liquidityProviderRegistry[randomAddress()] = {
|
||||
tokens: [MAKER_TOKEN, TAKER_TOKEN],
|
||||
gasCost: 0,
|
||||
};
|
||||
replaceSamplerOps({
|
||||
getBuyQuotes: createGetMultipleBuyQuotesOperationFromRates(rates),
|
||||
getMedianSellRate: createGetMedianSellRate(ETH_TO_TAKER_RATE),
|
||||
|
Reference in New Issue
Block a user