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 balance #2014

Open
friedger opened this issue Feb 22, 2025 · 5 comments
Open

Invalid balance #2014

friedger opened this issue Feb 22, 2025 · 5 comments

Comments

@friedger
Copy link
Contributor

friedger commented Feb 22, 2025

Describe the bug
STX balance is shown incorrect

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://explorer.hiro.so/address/SP34W8WBZ05GRSJ52R7ZKM6ZHBQPHMTD2KR1SSWA9?chain=mainnet at stacks block height 657,841
  2. See amount 109,377.693167STX $100,240.96
  3. Get index hash for 657841 https://api.hiro.so/extended/v2/blocks/657841
  4. Check balance https://api.hiro.so/v2/accounts/SP34W8WBZ05GRSJ52R7ZKM6ZHBQPHMTD2KR1SSWA9?tip=7ad4bbc1bfd5841d8e0687fa908015af89bb63668715f3f2bfc2e4530866cf36
  5. See that balance is 1ade45ccc5 = 115,398.266053 STX

Expected behavior
Explorer should show total balance of 115,398.266053 STX

Screenshots

Image

Additional Context
Using stxer simulation on height 657841 allows me to transfer 115,398.266053 successfully.

import { SimulationBuilder } from "./stxer";

SimulationBuilder.new()
  .useBlockHeight(657841)
  .withSender("SP34W8WBZ05GRSJ52R7ZKM6ZHBQPHMTD2KR1SSWA9")
  .addSTXTransfer({
    recipient: "SP212Y5JKN59YP3GYG07K3S8W5SSGE4KH6B5STXER",
    amount: 115398266053,
  })
  .run()
  .catch(console.error);
@friedger
Copy link
Contributor Author

friedger commented Feb 22, 2025

After the stx transfer of the full balance was confirmed, the balance is shown as 115,398.266053
The explorer should show total balance of 0 STX

Image

@friedger
Copy link
Contributor Author

Now it is showing correctly 0 STX

@andresgalante
Copy link
Member

How long was the delay to show the correct balance?

@friedger
Copy link
Contributor Author

friedger commented Mar 4, 2025

The switch from 115,398.266053 to 0 was only a few seconds, if I recall correctly. I was confused because the transaction was already shown as confirmed.

The incorrect balance of 109k STX was shown for days.

@andresgalante
Copy link
Member

ok, thanks, we'll investigate

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

No branches or pull requests

2 participants