Coder Social home page Coder Social logo

Add Single Swaps about balpy HOT 6 CLOSED

balancer avatar balancer commented on August 14, 2024
Add Single Swaps

from balpy.

Comments (6)

avinkhan1 avatar avinkhan1 commented on August 14, 2024

I am not able to locate this pool on kovan, does it need to be created or is this the correct address?:
pool_BAL_WETH = "0x61d5dc44849c9c87b0856a2a311536205c96c7fd000200000000000000000000"

from balpy.

gerrrg avatar gerrrg commented on August 14, 2024

Yeah it shows up just fine for me: https://kovan.app.balancer.fi/#/pool/0x61d5dc44849c9c87b0856a2a311536205c96c7fd000200000000000000000000
Screen Shot 2021-08-27 at 2 41 49 PM

from balpy.

avinkhan1 avatar avinkhan1 commented on August 14, 2024

Hi yes, its working for me. So I tried to run the singleswap script on balancer tutorials and got an allowance error.
https://kovan.etherscan.io/tx/0x134a03e94e88154c933d5e4499c520de917628acb40562c0a1c4aa5b28bfa16d

Think it missing code for token allowance?

from balpy.

gerrrg avatar gerrrg commented on August 14, 2024

yeah, the code there assumes that allowances have already been set. If you were to add in the code that's actually executing the single swap to balpy, you should be able to write a test script much like one for batchswaps, which lives in the samples

from balpy.

gerrrg avatar gerrrg commented on August 14, 2024

if you want to do a quick test on your own though, you could pretty easily just send a token approval through the kovan UI

from balpy.

gerrrg avatar gerrrg commented on August 14, 2024

done with this commit

from balpy.

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.