gopartyparrot / jup-twap Goto Github PK
View Code? Open in Web Editor NEWtwap on jup.ag
twap on jup.ag
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.
hello when i try to run the code i recieve the error error: swap failed: Error: Token mint does not exist in token-mints.json if know why ty for the help.
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%.
Update dependency to 1.0.0-beta.19
solved my issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.