From 1dcaf3a8ca58ece30d96c0954bba117516489680 Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Fri, 25 Aug 2023 08:10:06 +0400 Subject: [PATCH] Fix allocations endpoint --- lib/allocation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/allocation.ts b/lib/allocation.ts index 93a6e96..6e9f2e3 100644 --- a/lib/allocation.ts +++ b/lib/allocation.ts @@ -1,5 +1,5 @@ export async function fetchAllocation() { - const endpoint = `${process.env.NEXT_PUBLIC_ANALYTICS_ENDPOINT}/api/v1/strategies?structured=true`; + const endpoint = `${process.env.NEXT_PUBLIC_ANALYTICS_ENDPOINT}/api/v2/strategies`; const response = await fetch(endpoint); if (!response.ok) { throw new Error("Failed to fetch allocation");