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

OxAccount failing to remove balance with overdraw #217

Open
SamShanks1 opened this issue Nov 25, 2024 · 0 comments
Open

OxAccount failing to remove balance with overdraw #217

SamShanks1 opened this issue Nov 25, 2024 · 0 comments

Comments

@SamShanks1
Copy link
Contributor

When removing balance with overdraw set to true I receive "insufficient_balance" message.

When setting overdraw to false I am able to remove balance.

Using account.removeBalance()

When removing the third parameter (amount) in the db update it works with overdraw set to true but not false.

: await conn.update(overdraw ? removeBalance : safeRemoveBalance, [amount, id, amount]);

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

1 participant