All Questions
Tagged with account-data token
2
questions
1
vote
2
answers
1k
views
Token balances on liquidity pools
How can I get to the price in a liquidity pool? I assumed it would be as simple as getting the balances of both tokens and doing quoteBalance / baseBalance, but that doesn't seem to be the case. Below ...
2
votes
2
answers
931
views
Check if an account is a Token Account
We are given some public key that may be a token account (could be ATA or not) and want to find out if it is. Currently I am doing this by calling getAccount from @solana/spl-token and seeing if it ...