Giter VIP home page Giter VIP logo

jup-twap's People

Contributors

pokassun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jup-twap's Issues

Swap RPC call or parameters have been disabled

I've tried running this on my own, but the swap keeps failing.
Below is the output I get:

yarn start twap --from USDC --to SOL --amount 10 --interval 10s
yarn run v1.22.17
$ node lib/index.js twap --from USDC --to SOL --amount 10 --interval 10s
12:36:18.544 - info: using wallet {MY_WALLET}
12:36:18.550 - info: update tokens accounts...
12:36:19.250 - info: twap swap of 10 from USDC to SOL every 10s ready
12:36:19.251 - info: swap starting...
/mnt/c/Users/Desktop/jup_twap/node_modules/@solana/web3.js/lib/index.cjs.js:4423
callback(new Error(${res.status} ${res.statusText}: ${text}));
^

Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "e083ab01-0969-4193-86d3-ccd863a6356f" }
at ClientBrowser.callServer (/mnt/c/Users/Desktop/jup_twap/node_modules/@solana/web3.js/lib/index.cjs.js:4423:18)
at processTicksAndRejections (node:internal/process/task_queues:93:5)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Jup Core Depenceny On Master Is Barely Functional

Overview

The version of jup-ag/core that is included int he dependency tree on the master branch is barely functional. Using it I get a swap success rate of maybe 30%.

Solution

Update dependency to 1.0.0-beta.19 solved my issue

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.