Skip to content

Feature request: Add "send all" option to fungible tokens #438

@PiVortex

Description

@PiVortex

It would be helpful to introduce a "send all" option for fungible tokens that determines your balance and sends exactly that making sure it leaves exactly 0 balance left.

Since this could be a critical operation I suggest instead of this popping up as an option button that the user types in "send all" when specifying how many tokens. This "send all" suggestion would appear in the examples.

Image

Use case: I have a contract that needs to be initialized with a certain number of tokens. The amount of tokens changes when I use the contract. I want to redeploy the contract but it becomes difficult to get the exact number of tokens to reinitialize.

Slime gave my message in tools a thumbs up so it seems like it could be useful to others also.

Thanks

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Shipped 🚀

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions