Skip to content

Commit

Permalink
Merge pull request #196 from OriginProtocol/shah/strategies-endpoint
Browse files Browse the repository at this point in the history
Use v2 endpoint
  • Loading branch information
shahthepro authored Aug 25, 2023
2 parents 7a98d7a + 410d323 commit 7316420
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/ousd/strategies?structured=true`;
const response = await fetch(endpoint);
if (!response.ok) {
throw new Error("Failed to fetch allocation");
Expand Down

0 comments on commit 7316420

Please sign in to comment.