Skip to content

Commit

Permalink
fix: wrong token address when fetching wallet balance
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakMooney committed May 22, 2024
1 parent 04c9a21 commit d8b65f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/vault/DepositModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const DepositModal = (props) => {
balanceReqData.token = tokenAddress;
}
const { data: balanceData, refetch } = useBalance(balanceReqData);

useWatchBlockNumber({
onBlockNumber() {
refetch();
Expand Down
2 changes: 1 addition & 1 deletion src/components/vault/TokenActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TokenActions = ({

if (useAsset) {
const symbol = ethers.decodeBytes32String(useAsset.token.symbol);
const tokenAddress = useAsset.addr;
const tokenAddress = useAsset.token.addr;
const decimals = useAsset.token.dec;
const token = useAsset.token;
const amount = useAsset?.amount.toString();
Expand Down

0 comments on commit d8b65f2

Please sign in to comment.