MissionImpossible is a simple ERC-20 token smart contract built on the Ethereum blockchain. The contract extends the OpenZeppelin ERC20 and Ownable contracts, providing basic functionality for a customizable token with additional features.
- Token Name: MissionImpossible
- Symbol: MI
- Total Supply: 10 MI tokens initially minted to the contract creator.
- Ownership: The contract owner has the ability to mint new tokens and has exclusive access to certain functions.
-
mintLoot
- Visibility: Public (onlyOwner)
- Description: Mint additional MissionImpossible tokens and assign them to a specified address.
-
redeemItem
- Visibility: Public
- Description: Allows token holders to redeem a specific item by burning a predefined amount of MissionImpossible tokens.
-
burnLoot
- Visibility: Public
- Description: Allows token holders to burn a specified amount of MissionImpossible tokens.
- LootAmount: 10 MI tokens are required to redeem an item.
- LootRedeemed: A mapping to keep track of whether a token holder has already redeemed an item.
- Deploy the smart contract on the Ethereum blockchain.
- The contract owner can mint additional tokens using the
mintLoot
function. - Token holders can redeem items using the
redeemItem
function. - Token holders can burn their tokens using the
burnLoot
function.
This smart contract is licensed under the MIT License. See the LICENSE file for details.