Skip to content

Instantly share code, notes, and snippets.

@CeoFred
Created June 24, 2024 19:10
Show Gist options
  • Save CeoFred/05287bf08ef354d87dc1e4018a189fe6 to your computer and use it in GitHub Desktop.
Save CeoFred/05287bf08ef354d87dc1e4018a189fe6 to your computer and use it in GitHub Desktop.
BEP20 Token
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.3/contracts/token/ERC20/ERC20.sol";
contract BEP20Token is ERC20 {
uint256 private constant INITIAL_SUPPLY = 4444444444 * 10**18; // 4,444,444,444 tokens
address constant COMMUNITY_ADDRESS = address(0x0);
constructor() ERC20("Meegle", "$MEEGLE") {
// Mint the entire supply to the deployer
_mint(msg.sender, INITIAL_SUPPLY);
// Airdrop 4.44% to Binance community
uint256 airdropAmount = INITIAL_SUPPLY * 444 / 10000; // 4.44% of the initial supply
_transfer(msg.sender, COMMUNITY_ADDRESS, airdropAmount);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment