Skip to content

Commit

Permalink
Fix prices (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
hammeiam authored Jan 16, 2023
1 parent 7936477 commit be847e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,7 @@ const ALUSD_CONTRACT_ADDRESSES = buildAddresses({
[ChainId.ROPSTEN]: "0x8b7a92FdbC77c6d8c61644D118c37D813B2069C4",
[ChainId.HARDHAT]: "0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB",
[ChainId.FANTOM]: "0xB67FA6deFCe4042070Eb1ae1511Dcd6dcc6a532E",
[ChainId.ARBITRUM]: "0xcb8fa9a76b8e203d8c3797bf438d8fb81ea3326a",
})
export const ALUSD = new Token(
ALUSD_CONTRACT_ADDRESSES,
Expand All @@ -1339,6 +1340,7 @@ export const ALUSD = new Token(

const USX_CONTRACT_ADDRESSES = buildAddresses({
[ChainId.MAINNET]: "0x0a5e677a6a24b2f1a2bf4f3bffc443231d2fdec8",
[ChainId.ARBITRUM]: "0x641441c631e2f909700d2f41fd87f0aa6a6b4edb",
})
export const USX = new Token(
USX_CONTRACT_ADDRESSES,
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/useSwapStats.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BLOCK_TIME, ChainId } from "../constants"
import { ChainId } from "../constants"
import { useCallback } from "react"
import { useQuery } from "@tanstack/react-query"

Expand Down Expand Up @@ -41,9 +41,9 @@ export function useSwapStats() {
[],
),
retry: 3,
refetchInterval: BLOCK_TIME * 3,
refetchInterval: 60 * 60 * 1000, // 1hr
refetchOnMount: false,
staleTime: BLOCK_TIME * 3,
staleTime: 60 * 60 * 1000, // 1hr
},
)
}
Expand Down

0 comments on commit be847e5

Please sign in to comment.