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

[Feature]: Send all remaining balance of token to another account #17266

Open
iramiller opened this issue Aug 2, 2023 · 3 comments
Open

[Feature]: Send all remaining balance of token to another account #17266

iramiller opened this issue Aug 2, 2023 · 3 comments

Comments

@iramiller
Copy link
Contributor

Summary

Send remaining account token balance to another account.

Problem Definition

In certain situations it makes sense to send the entirety of the remaining balance of a token from one account to another. Some example usages would be if a user wishes to migrate balances from one account to another or during ICA operations where a balance may need to be moved to another account without a separate expensive query for the balance first (c/o Sam Hart of skip.money ).

Proposal

Create a method that allows the entirety of an accounts token balance to be sent to another account. As the fees are annotated on the transaction up front, the remaining balance is all available to be transferred (per @alexanderbez ).

@cloud-j-luna
Copy link

+1 what is currently the way to do this? Get the balance and subtract the gas fee? How can you be sure the gas fee will be what you expect?

@alexanderbez
Copy link
Contributor

The current way is to (A) query the balance, (B) calculate and deduct fees and (C) send remainder. Such a proposal and implementation would omit the need for (A) and (B), thus making it a one step process. I.e. no queries and no balance calculation needed.

@Ekzer
Copy link

Ekzer commented Feb 23, 2024

Hi, happy to get news about this feature please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

5 participants