Skip to content

Commit

Permalink
fix: Update balances
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Dec 9, 2023
1 parent baf8548 commit 0ca9979
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const EarnAddLiquidityContainer: React.FC = () => {
isSwitchNetwork,
} = useWallet();
const { slippage, changeSlippage } = useSlippage();
const { updateTokens, updateTokenPrices } = useTokenData();
const { updateBalances, updateTokenPrices } = useTokenData();
const [createOption, setCreateOption] = useState<{ startPrice: number | null, isCreate: boolean }>({ isCreate: false, startPrice: null });
const selectPool = useSelectPool({ tokenA, tokenB, feeTier: swapFeeTier, isCreate: createOption.isCreate, startPrice: createOption.startPrice });
const { pools, feetierOfLiquidityMap, createPool, addLiquidity } = usePool({ tokenA, tokenB, compareToken: selectPool.compareToken });
Expand Down Expand Up @@ -341,7 +341,7 @@ const EarnAddLiquidityContainer: React.FC = () => {

useEffect(() => {
if (account?.address) {
updateTokens();
updateBalances();
}
}, [account?.address]);

Expand Down

0 comments on commit 0ca9979

Please sign in to comment.