Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polkadot does not allow the transfer of small amounts of tokens. #961

Open
kolkovsky opened this issue Sep 23, 2024 · 4 comments
Open

Polkadot does not allow the transfer of small amounts of tokens. #961

kolkovsky opened this issue Sep 23, 2024 · 4 comments

Comments

@kolkovsky
Copy link

Description

When a user wants to swap a small amount of ETH for DOT (Polkadot), the token will not appear in their account after the transaction.

According to the documentation for substrate chains, users must maintain a minimum balance to remain active. Therefore, if you attempt to transfer tokens to a new account with zero balance, the tokens will not be received. Reference

Steps to Reproduce

  1. Go to swap page.
  2. Select currency and enter deposit. The amount should be less then 1 DOT
  3. User will see channel modal with suggestion.

Expected Behavior: If the amount is less than 1 DOT, we should notify the user of our expectations with an error message.

Screenshots

image

Links:

https://scan.chainflip.io/swaps/42975
https://scan.chainflip.io/channels/4515432-Arbitrum-38

Environment:
OS: macOS 14.6.1
Browser: Chrome 116.0
App version: v1.2.3
Additional Context: None

@dmitrytarassov
Copy link
Contributor

Sound important! Cause even SubWallet do not allow users to do such transfers (do not allow death the destination account).

IMG_3503

@acdibble
Copy link
Collaborator

Thank you for the report.

We do already warn users about the existential deposit and have done so since before we launchd mainnet swapping. If you fill out the destination (and refund address if required) and click "review swap", you will be greeted by the following modal when the quoted output is less than 1 DOT:

image

The link in the modal leads you to this page.

Are you requesting a warning in addition to this existing warning or is it possible that the user didn't see/read this warning?

@kolkovsky
Copy link
Author

It looks great! My apologies.

Could you let me know if this information can be accessed through your SDK, or is it solely your validation on client side for the Polkadot chain?

@acdibble
Copy link
Collaborator

It looks great! My apologies.

Could you let me know if this information can be accessed through your SDK, or is it solely your validation on client side for the Polkadot chain?

Currently, we don't expose this through the SDK. Is this something that would be useful to you as an SDK user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants