hypha-dao / hashed-wallet

Hashed Wallet
MIT License
3 stars 3 forks source link

Check if receiving account has existential deposit on send and on scan QR #195

Open n13 opened 1 year ago

n13 commented 1 year ago

In Polkadot, if the receiving account does not have the existential deposit, but a user still issues a transaction, then the transaction fee is still paid.

So we need to check in all sorts of situation if a receiver has existential deposit.

We can also guess as to whether a receiver will receive the existential deposit through our transaction.

In the case of "send" that is trivial

In the case of a QR code that sends tokens, we could take a guess

In the case of a generic pallet transaction, we can't really figure it out so I would just leave that case out.