stacks-archive/blockstack-explorer

calculations have regressed on explorer

timstackblock opened this issue · 5 comments

The unlock amount has returned back to 0

There also seems to be more STX locked than the total at the address which shouldn't be possible.

https://explorer.blockstack.org/address/stacks/SP3VJDN79TRQ3KX8PCV4J5ZSYX1JRTVA937SYKY1S

Screen Shot 2019-11-04 at 3 25 23 PM

@timstackblock I've pushed some changes to staging regarding these values

This is still incorrect.

Screen Shot 2019-11-06 at 8 57 28 PM

https://explorer.staging.blockstack.xyz/address/stacks/SP3VJDN79TRQ3KX8PCV4J5ZSYX1JRTVA937SYKY1S

UNLOCKED 659,596.708 STX + RECEIVED 275,059.073 STX = 934,655.781 STX in wallet

sent equals 528,235 STX out of the wallet

934,655.781 STX - 528,235 STX = 406,420.781 STX should be the available balance not 8,538.064 STX

Calculations still seem off please take a look @hstove

In this case, actually the balance is correct, it's the sent/received that are wrong, which I have an open ticket for right now. I will let you know when that's fixed.

I discovered that "Available balance" was actually wrong, it didn't include the unlocked amount. I also fixed the sent/received values.

This address is showing 120,947.667 STX as unlocked in the wallet

Screen Shot 2019-11-08 at 8 14 52 AM

https://explorer.staging.blockstack.xyz/address/stacks/SP17JWAJJ3AZQ79TDKFRDPP3WYCGP29ZK154ZXA2J

This address is showing 120,947.667 STX as unlocked in the wallet
The received and the unlocked fields have the same value, those fields should not be equal.
The calculations still seem wrong.

I think we are adding the vesting/unlocking amount in with received. I was under the impression received was just for STX being sent into the wallet from another address not the unlocked/vesting amount. Please let me know if I am incorrect.