Deflationary Token
A simple Solidity-based deflationary token with a burn-on-transfer mechanism. Every transaction burns a percentage of the transferred amount, reducing the total supply over time.
描述
Deflationary Token
A simple Solidity-based deflationary token with a burn-on-transfer mechanism. Every transaction burns a percentage of the transferred amount, reducing the total supply over time.
Features
Burn on Transfer: A fixed percentage (2%) of the transferred tokens is burned.
Minting: The owner can mint new tokens.
No Imports: A simple implementation without any external dependencies.
Smart Contract Overview
This contract includes:
mint(address to, uint256 amount)
: Allows the owner to mint new tokens.transfer(address to, uint256 amount)
: Transfers tokens with a 2% burn rate.
How It Works
The owner can mint tokens and assign them to an address.
When tokens are transferred, 2% of the transferred amount is burned.
The total supply decreases with every transfer.
Deployment
Compile the contract using Solidity 0.8.0 or later.
Deploy the contract on a blockchain network.
Call the
mint
function to allocate tokens.Use the
transfer
function to send tokens and trigger the burn mechanism.
License
This project is open-source and available for public use. Modify and use it as needed!
技术栈
融资状态
0