Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export default [
'src/util/maestro.ts',
'src/util/memoUtils.ts',
'src/util/middleware/perfLogger.ts',
'src/util/network.ts',

'src/util/otpReminder.tsx',
'src/util/scaling.ts',
'src/util/show-confetti.ts',
Expand Down
10 changes: 4 additions & 6 deletions src/util/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ import { runOnce } from './runOnce'
import { asyncWaterfall, getOsVersion, shuffleArray } from './utils'
import { checkAppVersion } from './versionCheck'
const INFO_SERVERS = ['https://info1.edge.app', 'https://info2.edge.app']
// const RATES_SERVERS = ['https://rates3.edge.app', 'https://rates4.edge.app']
const RATES_SERVERS = [
'https://rates-wusa1.edge.app',
'https://rates-eusa1.edge.app'
]
const RATES_SERVERS = ['https://rates3.edge.app', 'https://rates4.edge.app']
const RATES_SERVER_V2 = ['https://rates1.edge.app', 'https://rates2.edge.app']

const INFO_FETCH_INTERVAL = 5 * 60 * 1000 // 5 minutes

Expand Down Expand Up @@ -95,7 +92,8 @@ export const fetchRates = async (
timeout?: number,
doFetch?: EdgeFetchFunction
): Promise<EdgeFetchResponse> => {
return await multiFetch(RATES_SERVERS, path, options, timeout, doFetch)
const servers = path.startsWith('v2') ? RATES_SERVER_V2 : RATES_SERVERS
return await multiFetch(servers, path, options, timeout, doFetch)
}
export const fetchReferral = async (
path: string,
Expand Down
Loading