Hello everyone, please Im trying to work on a token to bnb, bnb to token, token to token swap using the pancake swap router. Please I would appreciate any recourses on this
Apr 13, 2022, 8:51 PM
Go read the source of existing tokens. Do you have any specific questions?
Apr 13, 2022, 8:54 PM
Hello everyone, please Im trying to work on a token to bnb, bnb to token, token to token swap using the pancake swap router. Please I would appreciate any recourses on this
Apr 13, 2022, 9:05 PM
What resources ?
Apr 13, 2022, 9:07 PM
write ups, videos, courses, what ever can point me in the right direction
Apr 13, 2022, 9:08 PM
Have you read uniswap v2 doc ?
Apr 13, 2022, 9:08 PM
I have... I also think there is a little bit of modification required in implementation
Apr 13, 2022, 9:09 PM
I don't understand what you are trying to achieve.
Apr 13, 2022, 9:10 PM
so I want user to come to my website and buy my token with bnb or busd and to sell my token for bnb or busd or usdt
does this description help?
Apr 13, 2022, 9:11 PM
So what made you think pancake router contract is what you need ?
are you a dev ?
are you a dev ?
Apr 13, 2022, 9:12 PM
Yes I am a dev...
So what made you think pancake router contract is what you need.... popular opinions mostly
what do you think tho
Apr 13, 2022, 9:14 PM
Pancake is a DEX do you understand that ?
you want a token sales contract where user can purchase your token with either BUSD or BNB right or you want to list your token on a DEX where user can purchase it there ?
Apr 13, 2022, 9:17 PM
lets assume I already have a contract.. I want to implement the purchase and sales on a frontend
Apr 13, 2022, 9:20 PM
A contract that does what ?
Apr 13, 2022, 9:21 PM
Or
You mean you need a DEX ?
You can DM
You mean you need a DEX ?
You can DM
Apr 13, 2022, 9:22 PM
a token sales contract where user can purchase your token with either BUSD or BNB
ok.
Apr 13, 2022, 9:23 PM
One thing is a sale an other one is listing on a DEX.
with the first one you allow investors to buy a token at a fixed price without it being listed on a DEX.
With the second you can just choose the amount of tokens you wanna add and the amount of BNB you want to pair it with, creating a liquidity pool where people can deposit BNB to get out your tokens and your tokens to get out BNBs.
with the first one you allow investors to buy a token at a fixed price without it being listed on a DEX.
With the second you can just choose the amount of tokens you wanna add and the amount of BNB you want to pair it with, creating a liquidity pool where people can deposit BNB to get out your tokens and your tokens to get out BNBs.
Apr 13, 2022, 9:25 PM
Then integrate with Web3JS or EthersJS
If what you have is not the DEX then do this.
You also need to understand this first.
Apr 13, 2022, 9:28 PM
https://youtu.be/0Im5iaYoz1Y
Apr 17, 2022, 2:54 PM