Skip to content

Commit

Permalink
testing the new API setup
Browse files Browse the repository at this point in the history
  • Loading branch information
zavelevsky committed Jan 15, 2024
1 parent 5580a44 commit 035387d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/utils/localStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ export const setTenderlyRpcLS = (url?: string) => {
};

export const getV3ApiUrlLS = (): string => {
// if production ENV remove tenderly locale storage
if (isProduction) {
setV3ApiUrlLS();
}
return localStorage.getItem(v3ApiUrl) || 'https://api-v3.bancor.network';
return 'https://temp-v3-ptdczarhfq-nw.a.run.app';
};

export const setV3ApiUrlLS = (url?: string) => {
Expand All @@ -118,11 +114,7 @@ export const setV3ApiUrlLS = (url?: string) => {
};

export const getV2ApiUrlLS = (): string => {
// if production ENV remove tenderly locale storage
if (isProduction) {
setV2ApiUrlLS();
}
return localStorage.getItem(v2ApiUrl) || 'https://api-v2.bancor.network';
return 'https://temp-v2-ptdczarhfq-nw.a.run.app';
};

export const setV2ApiUrlLS = (url?: string) => {
Expand Down

0 comments on commit 035387d

Please sign in to comment.