Comments (9)
Hey, I saw you closed the issue but feel free to open it again if you think there is something wrong.
from bridgel.
Ok, I reopened it, because I still think it doesn't make sense. Shouldn't you be able to send tokens to the contract address on both sides of the bridge to give liquidity?
from bridgel.
This is what happens if I send tokens to both sides of the bridge, then try to do a swap.
from bridgel.
I think your problem is different, not the liquidity. Because in the deposit process it just transfers tokens from your wallet to bridge contract. Can you provide blockchain explorer links if possible. I can take a look.
from bridgel.
I'm using private test nets at the moment, so no links sorry. Maybe you can explain how I should be depositing tokens in the bridge, because I think I'm doing it wrong. I basically just sent it from my wallet to the contact address on side B of the bridge, then also side A
Is that not what I'm supposed to do before starting swaps? What is the proper way to provide the liquidity?
from bridgel.
Let's say you make a bridge for $XYZ. There are $XYZ (BSC) and $XYZ (ERC) versions. To create BSC to ETH and ETH to BSC bridges, you need to deploy bridge.sol to ETH and BSC networks.
After that you need to transfer $XYZ (ERC) (this is what you call liquidity) to ETH bridge contract and $XYZ (BSC) to BSC bridge contract.
I think your problem might be related with the token or configuration in the config.js file. Does your token have any tax or max wallet limits?
from bridgel.
It turns out my problem was that I was directly sending from my wallet to the contract address. I should have been using the deposit function to send the initial liquidity.
I have to do some more testing, but I think everything is woking now. Thank you.
from bridgel.
Well, now remix.ethereum.org won't even let me deposit tokens into the contract. I don't know what's going on but I'm tired of troubleshooting this thing.
from bridgel.
Issue solved. You need to use the deployer private key in config.js. I had switched it during testing and that's why there were so many problems.
from bridgel.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bridgel.