blockworks-foundation / liquidator Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello im getting this
**$ yarn partialLiquidate
yarn run v1.22.5
$ ts-node src/partial.ts
(node:6102) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'publicKey' of undefined
at runPartialLiquidator (/home/carlo/TRADING/SOLANA/mango liq/mango-client-ts-main(1)/liquidator-main/src/partial.ts:167:52)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:6102) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6102) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.**
when i run script from @OpinionatedGeek i get no errors and there seems to be 2 openorders account:
Context: « Context:
Cluster: mainnet-beta
Cluster URL: https://solana-api.projectserum.com
Program ID: JD3bq9hGdy38PuWQ4h2YJpELmHVGPPfFSuFkpzAd9zfu
DEX Program ID: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
Group Name: BTC_ETH_USDT
Group ID: 7pVYhpKUHw88neQHxgExSH6cerMZ1Axx1ALQP9sxtvQV
»
« ScoutReport [3ERV6HGepjFsuu6YBR9MSAke5BNfo6d18Rh4z8e9EcKS]:
Summary:
No problems found
Errors:
None
Warnings:
None
EDIT solved by adding open orders on serum dex
hi, i'm testing the code but on the sturtup after yarn partialLiquidate, this error has been printed,
yarn run v1.22.10 $ ts-node src/partial.ts (node:30287) UnhandledPromiseRejectionWarning: Error: No accounts for this token at Object.findLargestTokenAccountForOwner (/home/cg/Desktop/pmsr/defi/solana_liquidetor3000/liquidator-main/node_modules/@blockworks-foundation/mango-client/src/utils.ts:295:11) at process._tickCallback (internal/process/next_tick.js:68:7) (node:30287) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:30287) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Done in 7.77s.
can be a problem with my .env file?
here it is:
'export CLUSTER="mainnet-beta"
export CLUSTER_URL="https://solana-api.projectserum.com"
export KEYPAIR=~/.config/solana/id.json
export NODE_ENV=production
export TARGETS="0.0002 0.006"
export GROUP_NAME="BTC_ETH_USDT"
export CHECK_INTERVAL="1000.0" '
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.