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

A DApp to burning tokens #5

Closed
Benjade opened this issue Mar 16, 2022 · 2 comments
Closed

A DApp to burning tokens #5

Benjade opened this issue Mar 16, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Benjade
Copy link

Benjade commented Mar 16, 2022

Support creation for a dead wallet to burns tokens. x000

@jolestar jolestar added the help wanted Extra attention is needed label Mar 17, 2022
@jolestar
Copy link
Contributor

if the Token is supported burn, can directly burn the token by function, such as STC can burn by 0x1::STC::burn(STC).

So we can deploy a Module, provide some script functions for burn token, such as:


public(script) function burn_stc(signer, amount){
  //withdraw stc from signer, account
   let token = Account::withdraw<STC>(&signer, amount);
   STC::burn(token);
}

Then we can provide a DApp Page, and allow users to select Token in their balance and burn it.

@jolestar jolestar changed the title Dead wallet for burning tokens A DApp to burning tokens Mar 17, 2022
@uvd
Copy link
Collaborator

uvd commented Jul 21, 2022

Easy to cause losses to assets for the time being

@uvd uvd closed this as completed Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants