Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PancakeSwap #330

Open
Razorholt opened this issue Aug 19, 2023 · 1 comment
Open

PancakeSwap #330

Razorholt opened this issue Aug 19, 2023 · 1 comment

Comments

@Razorholt
Copy link

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
Copy link
Author

Razorholt commented Aug 19, 2023

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:

  1. I just have to replace $testaccount with the customer wallet?
  2. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant