GithubHelp home page GithubHelp logo

liquidator's People

Contributors

dafyddd avatar drewkiino avatar mschneider avatar riordanp avatar tlrjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

liquidator's Issues

TypeError: Cannot read property 'publicKey' of undefined

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

(node:30287) UnhandledPromiseRejectionWarning: Error: No accounts for this token

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" '

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.