Coder Social home page Coder Social logo

preapprove tries to do approval for each pair (but the approval is only needed with the router, not with the pair) about limitswap HOT 3 CLOSED

tsarbuig avatar tsarbuig commented on July 20, 2024
preapprove tries to do approval for each pair (but the approval is only needed with the router, not with the pair)

from limitswap.

Comments (3)

tsarbuig avatar tsarbuig commented on July 20, 2024

I'm not sure what you mean here ?

It will try to approve your base pair, so if you use WATCH STABLES PAIRS, it will approve BUSD / USDT / USDC / etc.

Just like on Pancake, when you need to approve every token, no ?

Am I wrong ?

from limitswap.

vaidab avatar vaidab commented on July 20, 2024

You approve in the token contract by writing to it the pancake swap router address. It doesn't have anything to do with any stable pair.
Basically you give the router the right to manage that specific token for you (and the router will convert your token to your stable).
So it only needs 1 approve.

from limitswap.

vaidab avatar vaidab commented on July 20, 2024

Approval Tx for TOKEN will be created with gas = ...
^^^ only 1 of these needs to happen

from limitswap.

Related Issues (20)

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.