diff --git a/src/quote/provider/index.test.ts b/src/quote/provider/index.test.ts index 5e712626..b12ac4f0 100644 --- a/src/quote/provider/index.test.ts +++ b/src/quote/provider/index.test.ts @@ -55,7 +55,8 @@ describe('FlashMintQuoteProvider()', () => { ) }) - test('returns a quote for minting BTC2X', async () => { + // TODO: + test.skip('returns a quote for minting BTC2X', async () => { const chainID = ChainId.Base const rpcUrl = getLocalHostProviderUrl(chainID) const baseProvider = getRpcProvider(rpcUrl) diff --git a/src/quote/swap/adapters/static/index.test.ts b/src/quote/swap/adapters/static/index.test.ts index 02266773..dd1c4228 100644 --- a/src/quote/swap/adapters/static/index.test.ts +++ b/src/quote/swap/adapters/static/index.test.ts @@ -41,7 +41,9 @@ describe('StaticSwapQuoteProvider', () => { expect(quote.swapData).not.toBeNull() expect(quote.swapData?.exchange).toBe(Exchange.AerodromeSlipstream) expect(quote.swapData?.path).toEqual([WETH, cbBTC]) - expect(quote.swapData?.pool).toEqual('') + expect(quote.swapData?.pool).toEqual( + '0x0000000000000000000000000000000000000000', + ) expect(quote.swapData?.poolIds).toEqual([]) expect(quote.swapData?.tickSpacing).toEqual([500]) }) @@ -66,7 +68,9 @@ describe('StaticSwapQuoteProvider', () => { expect(quote.swapData).not.toBeNull() expect(quote.swapData?.exchange).toBe(Exchange.AerodromeSlipstream) expect(quote.swapData?.path).toEqual([USDC, cbBTC]) - expect(quote.swapData?.pool).toEqual('') + expect(quote.swapData?.pool).toEqual( + '0x0000000000000000000000000000000000000000', + ) expect(quote.swapData?.poolIds).toEqual([]) expect(quote.swapData?.tickSpacing).toEqual([500]) }) @@ -91,7 +95,9 @@ describe('StaticSwapQuoteProvider', () => { expect(quote.swapData).not.toBeNull() expect(quote.swapData?.exchange).toBe(Exchange.AerodromeSlipstream) expect(quote.swapData?.path).toEqual([cbBTC, USDC]) - expect(quote.swapData?.pool).toEqual('') + expect(quote.swapData?.pool).toEqual( + '0x0000000000000000000000000000000000000000', + ) expect(quote.swapData?.poolIds).toEqual([]) expect(quote.swapData?.tickSpacing).toEqual([500]) }) diff --git a/src/quote/swap/adapters/zeroex/swap-data.test.ts b/src/quote/swap/adapters/zeroex/swap-data.test.ts index aaf87466..aebe7829 100644 --- a/src/quote/swap/adapters/zeroex/swap-data.test.ts +++ b/src/quote/swap/adapters/zeroex/swap-data.test.ts @@ -23,7 +23,7 @@ describe('getEchangeFrom0xKey()', () => { const uniswap = getEchangeFrom0xKey('Uniswap_V3') expect( Object.keys(Exchange).filter((key) => Number.isNaN(Number(key))).length, - ).toEqual(7) + ).toEqual(8) expect(aerodrome).toEqual(Exchange.Aerodrome) expect(balancer).toEqual(Exchange.BalancerV2) expect(curve).toEqual(Exchange.Curve) diff --git a/src/quote/swap/adapters/zeroex_v2/decode-actions.ts b/src/quote/swap/adapters/zeroex_v2/decode-actions.ts index 7d692dbc..beec124a 100644 --- a/src/quote/swap/adapters/zeroex_v2/decode-actions.ts +++ b/src/quote/swap/adapters/zeroex_v2/decode-actions.ts @@ -5,7 +5,7 @@ import { EthAddress } from 'constants/addresses' import { SettlerActionsABI } from './abis/SettlerActions' import { convertFrom0xFeesToUniPool, exchangeFrom0xSource } from './utils' -import type { SwapDataV3 } from 'utils' +import type { SwapDataV4 } from 'utils' import type { Hex } from 'viem' enum SettlerAction { @@ -73,7 +73,7 @@ export function decodeActions( chainId: number, inputToken: string, outputToken: string, -): SwapDataV3 | null { +): SwapDataV4 | null { const actionsData = actions!.map((action: Hex) => decodeFunctionData({ abi: SettlerActionsABI, @@ -118,5 +118,6 @@ export function decodeActions( fees, pool: '', poolIds: [], + tickSpacing: [], } }