prod tokens

This commit is contained in:
Sewmina 2025-07-05 19:58:21 +00:00
parent 818b00dc55
commit df9a774cae

View File

@ -362,7 +362,7 @@ export async function getTokenBalance(walletAddress: string, currency: Currency)
const publicKey = new PublicKey(walletAddress);
// For native SOL
if (currency.tokenAddress === "So11111111111111111111111111111111111111112") {
if (currency.tokenAddress === "11111111111111111111111111111111") {
const balance = await connection.getBalance(publicKey);
return balance / Math.pow(10, currency.decimals);
}