to know how the output amount is calculated and to try simulating that in at hand.
Raydium’s Best Price Swaps feature determines whether swapping within a liquidity pool or through the OpenBook order book will provide the best price for users. What do you need to know in order to calculate the output? Here is our github if you require it https://github.com/raydium-io
Thank you for your kind answering!
You're welcome, feel free to ask if you have anymore questions
Please allow me to ask one more question. Is my understanding of the protocol described below correct? Based on my comprehension, the V1 and V2 pools are exactly same as the constant curve in the solana-program-library, while V3 pools have been transitioned to V4. When attempting a swap through V4 pools, they simulate the swap in their internal constant curve pool as well as in the openbook orderbooks, and then execute in a manner where a larger output is anticipated.
In short, yes, the best price swaps will determine whether swapping within a liquidity pool or openbook order book will provide best price for users
I understood.Thank you!
Обсуждают сегодня