alephium / explorer

The explorer front-end for Alephium protocol
https://explorer.alephium.org
GNU Lesser General Public License v3.0
12 stars 7 forks source link

Change the way we compute a TX "total amount" #223

Closed mvaivre closed 1 year ago

mvaivre commented 1 year ago

Let’s display the delta amount instead of the “total” summed up amount.

For context the discussion started with the following feedback:

It seems the fixed outputs are not subtracted when calculating the delta amounts for pending transactions.

nop33 commented 1 year ago

We are talking about the transaction page, right? To compute a delta, we need to consider one of the transaction addresses as the reference address. How will we know which address to consider as the reference address? In the wallets it's easy, we consider the wallet addresses as the reference address.

mvaivre commented 1 year ago

I'll send you the link to the discussion on Slack for the details, but here's a summary for now (proposed by Cheng):

We could:

It's a bit trickier for txs with multiple senders though. We could either don't show it or show the delta amount of all of the senders, or other proper ways.


We're not trying to define the direction (+ or minus), but just the absolute delta. We can look at the change value (returned to the sender) and keep the rest as the actual transferred value, no? It's just not possible in case there are multiple senders.

We could for this case show multiple transferred values.