PancakeSwap
Razorholt opened this issue · 1 comments
Razorholt commented
Is there an example somewhere showing how to interact with pancakeswap? I would like to offer a way to swap directly from my website.
Thank you so much!
Razorholt commented
Of course, I just found the link, after posting... Sorry about that!
That's the link: https://github.com/web3p/examples/blob/master/swap_tokens.php
A few questions:
- I just have to replace $testaccount with the customer wallet?
- What are the 2 addresses listed in $path? USDC and DAI? So I just need to update $path with the base currency (first address) and then the token (second address)?
Thanks a lot!