Coder Social home page Coder Social logo

Can't deposit tokens about bridgel HOT 9 CLOSED

bgokcol avatar bgokcol commented on July 20, 2024
Can't deposit tokens

from bridgel.

Comments (9)

bgokcol avatar bgokcol commented on July 20, 2024

Hey, I saw you closed the issue but feel free to open it again if you think there is something wrong.

from bridgel.

PeerpayCorp avatar PeerpayCorp commented on July 20, 2024

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.

PeerpayCorp avatar PeerpayCorp commented on July 20, 2024

This is what happens if I send tokens to both sides of the bridge, then try to do a swap.

bridge_error1

from bridgel.

bgokcol avatar bgokcol commented on July 20, 2024

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.

PeerpayCorp avatar PeerpayCorp commented on July 20, 2024

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.

bgokcol avatar bgokcol commented on July 20, 2024

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.

PeerpayCorp avatar PeerpayCorp commented on July 20, 2024

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.

PeerpayCorp avatar PeerpayCorp commented on July 20, 2024

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.

PeerpayCorp avatar PeerpayCorp commented on July 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.