From 225c425e7f004b18205ffdfa504b39f76c2aecbb Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Sat, 19 Mar 2022 11:22:29 +0530 Subject: [PATCH 1/2] switch from api.instadapp.io to api.internal.instadapp.io --- composables/useBalances.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composables/useBalances.ts b/composables/useBalances.ts index 6703772..0ef76f6 100644 --- a/composables/useBalances.ts +++ b/composables/useBalances.ts @@ -38,9 +38,9 @@ export function useBalances() { const { by } = useSorting(); onMounted(async () => { - prices.mainnet = await $axios.$get("https://api.instadapp.io/defi/prices"); + prices.mainnet = await $axios.$get("https://api.internal.instadapp.io/defi/prices"); prices.polygon = await $axios.$get( - "https://api.instadapp.io/defi/polygon/prices" + "https://api.internal.instadapp.io/defi/polygon/prices" ); }); const fetchBalances = async (refresh = false) => { From 21dfc8f02b93e7a3f24a3ee8f3ef160ec73ff688 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Sat, 19 Mar 2022 12:11:02 +0530 Subject: [PATCH 2/2] replace /defi/tokens to /defi/mainnet/tokens --- composables/useBalances.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/useBalances.ts b/composables/useBalances.ts index 0ef76f6..2bd8866 100644 --- a/composables/useBalances.ts +++ b/composables/useBalances.ts @@ -38,7 +38,7 @@ export function useBalances() { const { by } = useSorting(); onMounted(async () => { - prices.mainnet = await $axios.$get("https://api.internal.instadapp.io/defi/prices"); + prices.mainnet = await $axios.$get("https://api.internal.instadapp.io/defi/mainnet/prices"); prices.polygon = await $axios.$get( "https://api.internal.instadapp.io/defi/polygon/prices" );