telosnetwork / teloscan

Telos EVM block explorer for viewing blocks, transactions, contracts, staking, and more
https://teloscan.io
Apache License 2.0
22 stars 25 forks source link

WTLOS balance incorrect after withdrawal (unwrap) #709

Closed pmjanus closed 4 months ago

pmjanus commented 7 months ago

Describe the bug

When an address withdraws (unwraps) WTLOS, the balance of TLOS is not updated on Teloscan. Additionally, the ERC20 transfer field is empty for the withdrawal transaction, even though it should contain the relevant information.

To Reproduce

Steps to reproduce the behavior:

  1. Go to this withdrawal transaction page.

  2. Note that the ERC20 transfer field is empty:

image
  1. Click on the address and go to this page to view the address balances. Note the incorrect TLOS balance.

  2. Verify the user's WTLOS balance on the WTLOS contract page. Go to the "Read" tab, use the "balanceOf" method, and enter the address 0x1Da699A4fCCdD5Fb02562767C54b720DeC79212f. The balance should be 2000000000000000000.

Expected behavior

Actual behavior

Screenshots ERC20 transfer field is empty:

image
tomtomcrypto commented 7 months ago

moved here: https://github.com/telosnetwork/teloscan-indexer/issues/228

Viterbo commented 7 months ago

@pmjanus

There's a problem with this requirement: image

In the withdrawal action, there's no ERC20 transfer at all. So, this is not a bug that that field shows empty. The bug instead is showing the field name when it's empty (but that issue is tracked in #700) image image image

Viterbo commented 7 months ago

https://etherscan.io/tx/0xad065a940f49efb4aca641ddcf4ca208ad54b2ffb21c43741fde5e94fcc48491

pmjanus commented 7 months ago

We want instead to add a transaction action field that states

Transaction Action:

Unwrap 0.2438  WTLOS into 0.2438TLOS