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 "buy" button inside the wallet page #221

Open
tibfox opened this issue Jan 27, 2022 · 1 comment
Open

pancakeswap "buy" button inside the wallet page #221

tibfox opened this issue Jan 27, 2022 · 1 comment

Comments

@tibfox
Copy link
Contributor

tibfox commented Jan 27, 2022

If there is any way to add this button to the wallet pager it would ecourage users to buy dtc with the app
see minds app as an example
@brishtiteveja can you please add a screenhot of the button here?

@brishtiteveja
Copy link
Collaborator

brishtiteveja commented Jan 28, 2022

I think it's pretty straightforward..

  1. Have a "Buy DTC token" button in the app
  2. Upon clicking on the button - ask user whether they have metamask installed on their phone.
    2.1. If false, ask them to install metamask.
    2.2. If yes, open a Web Browser page within the app (https://pub.dev/packages/flutter_inappwebview) for our contract address URL
    https://pancakeswap.finance/swap?outputCurrency=0xd3cceb42b544e91eee02eb585cc9a7b47247bfde
    2.3. And then using "wallet connect" in the pancakeswap browser window, if metamask is installed, it automatically I think gets connected (this part will have to be tested.. but seems to be working in other apps I saw implemented.. for example Minds social app). It jumps you to the metamask app in the device.. and metamask then asks whether user should connect.
    2.4. Once connected with metamask.. then you can jump back to the dtube app with the browser window open, and you can now trade DTC with BNB etc.

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

No branches or pull requests

2 participants