-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error displaying balance upon account creation #231
Comments
After some testing, I found out that asking the balance in transaction mode simply make convex forget 2000000 coins. I guess when running balance in transaction mode, it checks the balance whilst removing coins for juice, which afterwards return to the account. Also, this issue would give a lot of sense to another issue I found out recently : In this other issue, I can see when querying my balance that I have enough coins to make a transaction, but when doing the actual transaction, I get an insufficient fund error |
Indeed I think this is because remaining transaction juice is reimbursed. |
Yes currently transaction juice is subtracted at start, and reimbursed at end. I'd like to change this so that this doesn't happen (since it is confusing) but it's a bit tricky because we need to stop people spending more juice than they have.... |
Does the substracted juice have an upper limit? If so, you can instead simply substract this amount from the balance, and display a "net balance" |
I made a brand new account using the sandbox built in system to create an account, and here were my two first commands using the account, in transaction mode :

We can see that either I gained coins by checking my balance (feels unlikely), either the first displayed balance wasn't my true balance.
The text was updated successfully, but these errors were encountered: