mrgnlabs/mrgn-ts

alpha-liquidator: Account does not exist or has no data

Closed this issue · 0 comments

Hi. I followed the instructions in the readme for alpha-liquidator, configured the required envs, but i'm getting this error when running the script:

Initializing
Error: Account does not exist or has no data <my-public-address>
    at AccountClient.fetch (/Users/js/Projects/blockchain/mrgn-ts/node_modules/@coral-xyz/anchor/src/program/namespace/account.ts:178:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Function._fetchAccountData (/Users/js/Projects/blockchain/mrgn-ts/packages/marginfi-client-v2/dist/models/account/wrapper.js:247:23)
    at async Function.fetch (/Users/js/Projects/blockchain/mrgn-ts/packages/marginfi-client-v2/dist/models/account/wrapper.js:27:29)
    at async start (/Users/js/Projects/blockchain/mrgn-ts/apps/alpha-liquidator/src/runLiquidatorJupApi.ts:17:29)
    at async startWithRestart (/Users/js/Projects/blockchain/mrgn-ts/apps/alpha-liquidator/src/runLiquidatorJupApi.ts:31:5)
Restarting due to crash...

I made some some console logs to verify the wallet is being loaded properly, and I think it is. I also went directly to marginfi to deposit some small amount to initiate the create account from there, but still getting the same error.

Is there anything I'm missing?