Closed TechSkieur closed 3 weeks ago
@cruzshia Maybe you can help to answer? Really appreciate, thanks in advance!
Yes use poolInfo.price, lpPrice is used to calculating user's value of liquidity
Yes
execution price means the price of current swap tx which might be different from current price(with slippage)
@cruzshia thanks for such rapid response!!! One more question, is there any page/guide on explaining all those concepts? Or this is something needs to be understood based on experiences gradually...
I think this is common knowledge of amm, you can check out source code here https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/raydium/liquidity/liquidity.ts#L1113.
ok, got it, you solved my problem again! thanks, I'll close this ticket accordingly.
Hi experts,
Actually I have two questions:
According to my analysis, there are several prices I can get, but I'm a bit confused among them...
As you can see, there are several prices I can get or obtain, which one is the correct that I should use? Thanks for answering!