Replies: 2 comments 1 reply
-
There's a difference between BNB (0x0) and WBNB (some address). In any case, the discrepancy is most likely due to the different routes (but check with a debugger). AFAIK the low level quote mechanism works as follows:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I guess that it's because the quote is produced by doing token0->BNB->token1: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quick question - I noticed that when using get_price_input I get unexpected results for the token CHESS (BSC token).
For example, when I run the code I get the following results -
However, when I check via the PancakeSwap website I get the following results
I'm not sure it's related to the code and could potentially be related to available liquidity. However I can't explain the difference between the get_price_input amounts and the PancakeSwap website.
I've only so far noticed this with CHESS, other BSC tokens I've tested are within tolerance (e.g. get_price_input is typically the very close to the PancakeSwap website).
Any insights appreciated.
Beta Was this translation helpful? Give feedback.
All reactions