Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Aryan10Raj/contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Try Token (T)

This is a simple implementation of a token on the Ethereum blockchain with minting and burning functionalities.

Token Details

  • Name: Try
  • Symbol: T
  • Initial Total Supply: 0

The token uses a mapping to track the balance of each address.

Features

Mint Function

  • Adds new tokens to a specified address.
  • Increases the total supply.

Burn Function

  • Destroys tokens from a specified address if the balance is sufficient.
  • Decreases the total supply.

Functions

mint(address _add, uint _v)

Mints _v tokens to the address _add.

burn(address _add, uint _v)

Burns _v tokens from the address _add if the balance allows.

Usage

  1. Minting Tokens

    function mint(address _add, uint _v) public {
    // Add _v tokens to the balance of _add
    // Increase the total supply by _v
    }
  2. 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
    }

About

No description, website, or topics provided.

Resources

Readme

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors