-
Notifications
You must be signed in to change notification settings - Fork 97
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
feat: BSC support #33
Comments
I checked the source code and so that we have for sure to setting NativeNetwork, but what I not understand, we try to use the angular components which mainly we configure the supportedNetworkTokens. How should I configure the tokens with our custom BSC router? |
@joshstevens19 @vm06007 But there are still two issues
this.uniswapDappSharedLogicContext = {
|
try to use this multicall address: |
@vm06007 thx you for your response should be when I try this, I get two errors and I alsways have to set manually the provider url in the share lib
EDIT: It's comming from |
@mburger81 Yes, factoryAddress usually includes pair code implementation, so they can stay the same, you might be missing the router address and you may need to specify the wethAddress of wrapped BNB token, here is my configuration for that:
|
@vm06007 I share with you all my configuration, I try to get work with PCK so once this is working I can try to get it work with our dex and our router I really dont know what I'm missing
|
here is my configuration dynamic setup
perhaps I've given wrong |
Yeah the multicallContractAddress was the wrong address, strange I got the same as you send me before from this page I took a lot of time to give you a response because I would like to finish my implementation. I saw that the simple-uniswap-sdk works well with different chains, but the integration example doesnt work very well, so in the last days I took a couple of changes which I would like to push the next days btw. thx @vm06007 |
I'm not dealing with BSC testnet |
If your looking for pancake swap on BSC, I have the addresses here #34 |
Took a very long time, but I found the solution. You have to use this list of multicall contracts, else it will fail. |
@vm06007 can you share the implementation of functions
|
those are simple array lookup functions with
|
Hey as you told me previously your simple-pancake-sdk is deprecated and we should us this lib, also you told me
"my uniswap sdk I created actually now let’s you map custom networks with full contract addresses (which means it supports forks like pancake)", as I'm not an epxert on blockchain I understand there that I can use custom networks like BSC.
But when I try to do your angular example settings like this
I'm running always in
the unsupported network
error because the simple-uniswap-sdk checks also for chainId, like this and othersETH.info(this.chainId);
The text was updated successfully, but these errors were encountered: