raydium-io / raydium-sdk

An SDK for building applications on top of Raydium.
https://sdk.raydium.io
GNU General Public License v3.0
340 stars 134 forks source link

fetchMultipleInfo fails when baseMint and quoteMint are swapped #49

Open sullystuff opened 8 months ago

sullystuff commented 8 months ago

When fetchMultipleInfo is called here, transaction simulation fails if baseMint is the token and quoteMint is So11111111111111111111111111111111111111112, instead of the "standard" baseMint of Solana and quoteMint of the desired token. There is a // TODO fix it when split stable that seems to be aware of the issue, however I am unable to resolve it myself.