diff --git a/apps/wallet-mobile/src/features/Swap/common/useSwapTx.ts b/apps/wallet-mobile/src/features/Swap/common/useSwapTx.ts index 6f74c9a4f4..759bfd8573 100644 --- a/apps/wallet-mobile/src/features/Swap/common/useSwapTx.ts +++ b/apps/wallet-mobile/src/features/Swap/common/useSwapTx.ts @@ -22,6 +22,8 @@ export const useSwapTx = (options?: UseMutationOptions { isMainnet: true, stakingKey, primaryTokenId, - }, - { - openswap: mockOpenSwapApi, - }, - ) - - const result = await api.getPrice({ - baseToken: '', - quoteToken: - '29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c6.4d494e', - }) - - expect(result).toBe(0.07080044463) - expect(mockOpenSwapApi.getPrice).toHaveBeenCalledTimes(1) - }) - }) - - describe('getPrice', () => { - it('mainnet', async () => { - mockOpenSwapApi.getPrice = jest - .fn() - .mockResolvedValue(openswapMocks.getPrice) - - const api = swapApiMaker( - { - isMainnet: true, - stakingKey, - primaryTokenId, + supportedProviders, }, { openswap: mockOpenSwapApi,