Summary
When a coin node (e.g, BTC), rejects tx with "dust amount" error, app doesn't process it correctly
Steps to reproduce
- Log in test account
- Go to chat
- Tap transfer BTC
- low amount ~
0.00000001 btc
- showing dust snackbar
- return to chat
- tx is pending
Expected behavior
Tx is rejected and appears in chat with rejected status
"Dust amount" snackbar
Stay on Send tx screen
Actual behavior
Tx is rejected in blockchain, but appears in chat with Pending status
Details and explanation
We cannot check whether it’s dust or not until we send the transaction to the node and get a response.
Dust amount snackbar:
"error\_dust\_amount": "Dust amount—Send more tokens",
"error\_dust\_amount": "Мелочь — Отправьте больше токенов",
Guidelines: In-Chat and Direct Crypto Transfers in ADAMANT https://github.com/orgs/Adamant-im/discussions/31
Screenshots or videos
No response
Environment
Prod: https://adm.im
Testing
For testing, send 1 sat (you can temporarily disable minTransferAmount during the test) ⟶ "Dust amount" expected.
Summary
When a coin node (e.g, BTC), rejects tx with "dust amount" error, app doesn't process it correctly
Steps to reproduce
0.00000001btcExpected behavior
Tx is rejected and appears in chat with rejected status
"Dust amount" snackbar
Stay on Send tx screen
Actual behavior
Tx is rejected in blockchain, but appears in chat with Pending status
Details and explanation
We cannot check whether it’s dust or not until we send the transaction to the node and get a response.
Dust amount snackbar:
Guidelines: In-Chat and Direct Crypto Transfers in ADAMANT https://github.com/orgs/Adamant-im/discussions/31
Screenshots or videos
No response
Environment
Prod: https://adm.im
Testing
For testing, send 1 sat (you can temporarily disable
minTransferAmountduring the test) ⟶ "Dust amount" expected.