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

Add new Destroy output #621

Open
xgreenx opened this issue Dec 12, 2024 · 0 comments
Open

Add new Destroy output #621

xgreenx opened this issue Dec 12, 2024 · 0 comments

Comments

@xgreenx
Copy link
Contributor

xgreenx commented Dec 12, 2024

The current implementation: If a transaction has a non-zero balance for the asset at the end of the transaction execution and doesn't have a corresponding Change output, we destroy(or burn) tokens. This mechanism allows the destruction of tokens without the use of the contract.

An implicit mechanism like this sometimes is hard to understand, and if the user accidentally misses the Change output, the token will burn.

We want to make this process more explicit by introducing the Destroy output.

When we have this new output, we can require transactions to have either Change output or Destroy for each of the assets from the inputs.

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

1 participant