From 410d3233d4203931bdb8950131211cc9735990b7 Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:43:13 +0400 Subject: [PATCH] Use v2 endpoint --- lib/allocation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/allocation.ts b/lib/allocation.ts index 93a6e96..95dfbd9 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/ousd/strategies?structured=true`; const response = await fetch(endpoint); if (!response.ok) { throw new Error("Failed to fetch allocation");