Skip to content

Commit b4a5d97

Browse files
authored
chore: increase refetch interval for useBalance (#545)
- Increase refetch interval for fetching balances to 30 seconds - Updated workflow to be run in merge queue
1 parent 170360b commit b4a5d97

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches: [main, nautilus, nexus, injective, ezeth, trump, ousdt]
77
pull_request:
88
branches: [main, nautilus, nexus, injective, ezeth, trump, ousdt]
9+
merge_group:
910

1011
# Allows you to run this workflow manually from the Actions tab
1112
workflow_dispatch:

src/features/tokens/balances.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function useBalance(chain?: ChainName, token?: IToken, address?: Address)
2222
if (!chain || !token || !address || !isValidAddress(address, token.protocol)) return null;
2323
return token.getBalance(multiProvider, address);
2424
},
25-
refetchInterval: 5000,
25+
refetchInterval: 30000,
2626
});
2727

2828
useToastError(error, 'Error fetching balance');

0 commit comments

Comments
 (0)