Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid or missing nodebanks #86

Open
Gsuz opened this issue May 5, 2022 · 1 comment
Open

Invalid or missing nodebanks #86

Gsuz opened this issue May 5, 2022 · 1 comment

Comments

@Gsuz
Copy link
Contributor

Gsuz commented May 5, 2022

I'm getting this error when trying to use method: client.settleFunds(mangoGroup, mangoAccount, owner, spotMarket);

/Users/borkur/Desktop/Coding/mango-client-v3/src/client.ts:2649
throw new Error('Invalid or missing node banks');
^
Error: Invalid or missing node banks
at MangoClient. (/Users/borkur/Desktop/Coding/mango-client-v3/src/client.ts:2649:13)
at Generator.next ()
at fulfilled (/Users/borkur/Desktop/Coding/mango-client-v3/src/client.ts:28:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@Triggsy22
Copy link

I got the same problem, but on client.cancelSpotOrder.
I solved it with:
mangoGroup.loadRootBanks(connection);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants