Betarena / bta_smart

BTA Bitarena Smart Contract
GNU General Public License v3.0
0 stars 0 forks source link

BTA Mintable Token #2

Open jonsnowpt opened 1 year ago

jonsnowpt commented 1 year ago

📝 DESCRIPTION

Since the BTA token is a currency, it should be allowed to mint new tokens if necessary.

To make a token mintable on the Polygon network, you can use the MintableERC20 interface, a modification of the standard ERC20 interface that adds the ability to mint new tokens.

New tokens should be minted to the owner (95%) and Founding Team (5%)


Field Value
Token Name Betarena
Token Symbol BTA
Decimals 18
Total Supply 21,000,000

Mint Function

The token should have a mint function that can be called by the contract owner to mint new tokens.

In this example, the contract owner can call the mint function to mint new tokens and distribute them to any address. The transferOwnership function can also be called by the owner to transfer ownership of the contract to a new address.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MyToken is ERC20 {
    address public owner;

    constructor() ERC20("My Token", "MYT") {
        owner = msg.sender;
    }

    function mint(address _to, uint256 _amount) public {
        require(msg.sender == owner, "Only the owner can call this function");
        _mint(_to, _amount);
    }

    function transferOwnership(address newOwner) public {
        require(msg.sender == owner, "Only the owner can call this function");
        owner = newOwner;
    }
}

💰 Token Allocation:

Allocation Percentage Amount
Founding Team 5% 1,050,000
Advisory Board 2% 420,000
Investors 4% 840,000
Team 5% 1,050,000
Participants 10% 2,100,000
Marketing Operations 10% 2,100,000
Private & Public Sale 60% 12,600,000
Reserve 4% 840,000

✅ Acceptance Criteria:

migbash commented 2 weeks ago

🟧 UPDATE