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

[4.10.1] Bug: incorrect locked and available balances #1213

Open
fyang1024 opened this issue Jul 11, 2023 · 5 comments
Open

[4.10.1] Bug: incorrect locked and available balances #1213

fyang1024 opened this issue Jul 11, 2023 · 5 comments

Comments

@fyang1024
Copy link

Bug found testing Hiro Wallet build undefined, 4.10.1.

The locked and available STX balances are incorrect. As shown on the screenshot, the wallet shows 186,193 STX locked and 5,104.728335 STX available, however, the wallet has all the balances locked in the XVerse pool and no STX is available. It used to lock 186,193 STX in solo stacking dozens of cycles ago, and the wallet seems to use the outdated information now.

Screenshot 2023-07-11 at 5 13 13 pm
@fyang1024 fyang1024 changed the title [4.10.1] Bug: incorrect locked and available balance [4.10.1] Bug: incorrect locked and available balances Jul 11, 2023
@friedger
Copy link
Contributor

The screenshot shows that you have delegated 191k to xverse ("You are pooling..").
Note that delegated/pooled amount can be different to the balance.
You can check what happened using https://fast-pool-ui.vercel.app/u/SP1234 (with your address).

You will see that you are currently pooling with a different pool at the moment. That means that the xverse pool manager can take over your stacking for cycle #65 only.

The bug is that the current stacking information on the right are mixed with the actual delegation information for future stacking.

@fyang1024
Copy link
Author

Obviously I don't quite understand the concepts of "Locked", "Delegated", "Available" in stacks. I thought STX is either locked in solo mode or in a pool, and the rest is available.

@friedger
Copy link
Contributor

I thought STX is either locked in solo mode or in a pool, and the rest is available.

That is 100% correct. However, the pool operator decides how much to lock and for how long.

How long? With xverse and the other pools it will be 1 cycle and the extended by 1 cycle.

How much? The pool operator can only lock up to the maximum of your stx balance and the delegated amount.

For you, the previous pool operator locked 186k, then you delegated 191k to a new operator. They will be able to lock your 191k if you have it in your account.

Does it make sense?

@fyang1024
Copy link
Author

Please let me know if I read the information correctly from the screenshot below
I initially delegated 186194 STX, but the pool operator decided to lock up only 186193 STX for some reason since Cycle 60.
For some reason, even though the pool operator locked 186193 STX in Cycle 60, the stacked amount is 0. The stacked amount became 186193 in Cycle 61 and remain so in the current cycle 62. In current cycle, I delegate 191297 STX. Because only 186193 out of 191297 STX is locked now, about 5000 STX is truly available so that I can move them. From next cycle, the pool operator will decide how much to lock up, but up to the maximum of my STX balance and the delegated amount. Am I right?

Screenshot 2023-07-11 at 9 49 33 pm

@friedger
Copy link
Contributor

friedger commented Jul 12, 2023 via email

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