Skip to content

EOS Token with burning and signup (for making the token RAM cheap)

License

Notifications You must be signed in to change notification settings

eosgermany/gen.token

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gen.token

EOS Token Contract with "Burning" and "Signup" built in (for making the token RAM cheap)

This token uses the standard eosio.token contract with two modifications.

To signup for an airdrop:

cleos push action gen.token signup '{"owner":"tokensowner1","quantity":"0.0000 TOKEN"}' -p tokensowner1@active

The signup function allows an account to create a balance entry using their own personal ram.

They signup restricts the quantity to 0 however you could configure this in the contract code to allow a "signup bonus".

You would have to add some controls to prevent double signups though, so 0 quantity signup is safest.

To burn tokens run the command:

cleos push action gen.token burn '{"from":"tokensowner1","quantity":"1.0000 TOKEN","memo":"Lets remove TOKEN supply!"}' -p tokensowner1@active

The burn function burns the token from the "from account" and also reduces the supply.

The burn function makes sure you can't burn more tokens than supply.

About

EOS Token with burning and signup (for making the token RAM cheap)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • WebAssembly 96.6%
  • C++ 3.4%