Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Clarify why there's an extra 0.01 ALPH per token added in the tx #682

Closed
nop33 opened this issue May 3, 2023 · 10 comments
Closed

Clarify why there's an extra 0.01 ALPH per token added in the tx #682

nop33 opened this issue May 3, 2023 · 10 comments
Assignees
Labels
improvement Improves an already existing feature
Milestone

Comments

@nop33
Copy link
Member

nop33 commented May 3, 2023

It's confusing that when sending tokens, there's an additional 0.01 ALPH per token that is added to the transaction. The UI should clarify why this is happening.

@polarker could you please remind me of the reason so that I can think of how to best present this info to the user? Was it because every UTXO should have a small amount of ALPH for some technical reason?

thx!

@nop33 nop33 added the improvement Improves an already existing feature label May 3, 2023
@nop33 nop33 changed the title Clarify why there's an extra 0.02 ALPH per token added in the tx Clarify why there's an extra 0.01 ALPH per token added in the tx May 3, 2023
@polarker
Copy link
Member

polarker commented May 3, 2023

The 0.001 ALPH is the minimal requirement per UTXO to avoid utxo spamming. There are usually two outputs in a simple token transaction, one for the recipient and another one for change output. That's why you see 0.002 ALPH in the output.

Edit: updated the minimal requirement

@VDAODAO
Copy link
Member

VDAODAO commented May 4, 2023

@polarker Am I missing something here? When I try sending tokens with the browser extension, it sets the "minimal requirement" at 0.001 ALPH.

See this: https://explorer.testnet.alephium.org/transactions/81e3e0eb60b259ed77a94c999744c452b8d76337d6eae6b74825a93fc581f274

or this: 0f8e157c46edc7a9b4ef55f60061c992423fb0558ca76a0e725097671464e944

my desktop (and browser) wallets both indicate the "minimal requirement" was 0.001 ALPH.

@polarker
Copy link
Member

polarker commented May 4, 2023

@VDAODAO Nice catch. It is 0.001 ALPH, not 0.01 ALPH.

@VDAODAO
Copy link
Member

VDAODAO commented May 4, 2023

@polarker to be fair it's @JKtranslator who pointed it out to me while we were investigating the "minimal requirement"!

@polarker
Copy link
Member

polarker commented May 4, 2023

Here is the definition in the web3 SDK: https://github.com/alephium/alephium-web3/blob/master/packages/web3/src/constants.ts#L24

@mvaivre
Copy link
Member

mvaivre commented May 11, 2023

@nop33 this can be closed I believe?

@nop33
Copy link
Member Author

nop33 commented May 11, 2023

No, because we still don't clarify through the UI

@nop33
Copy link
Member Author

nop33 commented Jun 27, 2023

I feel that this should be part of the next release (v2.1)... As a minimum requirement, we could have an info icon ℹ when there's 0.001 ALPH added to a tx without the user manually adding it that links to a part of our docs that explains why this happens.

Currently, when I try to send 1 TETH, I get this screen with no explanation as to why 0.001 ALPH was added to my tx:

Image

@mvaivre @VDAODAO what do you think?

@mvaivre
Copy link
Member

mvaivre commented Jun 28, 2023

Yep, agreed, we should add an info icon redirecting to a paragraph in the docs.
Also, I'd make sure that the token(s) to send are displayed above the amount in ALPH in cases like this, WDYT?

@nop33
Copy link
Member Author

nop33 commented Jun 28, 2023

Good point.

That means we need a paragraph in the docs :)

@nop33 nop33 modified the milestones: v2.x.x - NEXT, v2.1.0 Jun 28, 2023
@nop33 nop33 self-assigned this Jun 28, 2023
@nop33 nop33 closed this as completed in ce77113 Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement Improves an already existing feature
Projects
None yet
Development

No branches or pull requests

4 participants