Skip to content

Commit

Permalink
Merge pull request #194 from OriginProtocol/shah/fix-allocations-endp…
Browse files Browse the repository at this point in the history
…oint

Fix allocations endpoint
  • Loading branch information
shahthepro authored Aug 25, 2023
2 parents 801d69b + 1dcaf3a commit f8bb068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/allocation.ts
Original file line number Diff line number Diff line change
@@ -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");
Expand Down

0 comments on commit f8bb068

Please sign in to comment.