•
Chain Solana
•
I am building an application where I need to get the price of token with oracle that we can derive the feed accounts based on the base asset (USD) and the other side of the pair Sol, or tokens (mint). So basically users can pay with any token for their USD.
Currently, I am having a list of token/USD pair pyth sponsored accounts. In the frontend, I have to manually check the token spent and send that particular pyth sponsored feed account.
I am looking for a way to better handle this. Like I need to pass in the mint account and it just gives me feed_id or better gives the price directly instead of me having to maintain a list of the price accounts. Everything must happen on chain though.