Coder Social home page Coder Social logo

ProviderGasError about smart-order-router HOT 5 CLOSED

uniswap avatar uniswap commented on August 13, 2024
ProviderGasError

from smart-order-router.

Comments (5)

riordant avatar riordant commented on August 13, 2024 2

Hi @DerekYeung , had the same problem today.
if you are running Geth/Erigon, you need to provide a command line argument - --rpc.gascap {LIMIT}. For a LIMIT value of 150m, it should work. For Erigon, you can pass 0 to allow unlimited size.

from smart-order-router.

DerekYeung avatar DerekYeung commented on August 13, 2024

@riordant Hey thanks! I used to set gascap to 0 but it didn't work, but now it works with 150m, btw do you know why it so slow? It seems to take a few seconds on each quote even on node server

I tried another lib https://www.npmjs.com/package/simple-uniswap-sdk it's fast, 400-600ms in each quote, but the data has some difference, not 100% accurate

from smart-order-router.

James1847 avatar James1847 commented on August 13, 2024

Hi @DerekYeung , had the same problem today. if you are running Geth/Erigon, you need to provide a command line argument - --rpc.gascap {LIMIT}. For a LIMIT value of 150m, it should work. For Erigon, you can pass 0 to allow unlimited size.

Hi, I want to know the 150m means how much with exactly number ? 150m == 150000000

from smart-order-router.

DerekYeung avatar DerekYeung commented on August 13, 2024

Hi @DerekYeung , had the same problem today. if you are running Geth/Erigon, you need to provide a command line argument - --rpc.gascap {LIMIT}. For a LIMIT value of 150m, it should work. For Erigon, you can pass 0 to allow unlimited size.

Hi, I want to know the 150m means how much with exactly number ? 150m == 150000000

yes

from smart-order-router.

willpote avatar willpote commented on August 13, 2024

Thanks for the discussion all, I've updated our readme with this information here: #129

Closing

from smart-order-router.

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.