This is a simple implementation of a token on the Ethereum blockchain with minting and burning functionalities.
- Name: Try
- Symbol: T
- Initial Total Supply: 0
The token uses a mapping to track the balance of each address.
- Adds new tokens to a specified address.
- Increases the total supply.
- Destroys tokens from a specified address if the balance is sufficient.
- Decreases the total supply.
Mints _v
tokens to the address _add
.
Burns _v
tokens from the address _add
if the balance allows.
-
Minting Tokens
function mint(address _add, uint _v) public { // Add _v tokens to the balance of _add // Increase the total supply by _v }
-
Burning Tokens
function burn(address _add, uint _v) public { // Ensure the balance of _add is sufficient // Subtract _v tokens from the balance of _add // Decrease the total supply by _v }