Contract Address Details

0x60cfC65BA14C2f8B111Fc7B152bB11486FDEa822

Token
FanFanToken (FANFAN)
Creator
0x16e08c–9750fd at 0x06169e–30bee9
Balance
0 CHZ ( )
Tokens
Fetching tokens...
Transactions
373 Transactions
Transfers
0 Transfers
Gas Used
15,390,977
Last Balance Update
20054394
Contract name:
FanFanToken




Optimization enabled
true
Compiler version
v0.8.16+commit.07a7930e




Optimization runs
200
EVM Version
london




Verified at
2024-04-29T07:48:32.926279Z

Contract source code

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.16;

interface IERC20 {
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address to, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

contract FanFanToken is IERC20 {  // Prove that you are a real Fan Token Fan
    string public symbol;
    string public  name;
    uint8 public decimals;
    uint public _totalSupply;
    mapping(address => uint) balances;
    mapping(address => mapping(address => uint)) allowed;

    constructor() {
        symbol = "FANFAN";
        name = "FanFanToken";
        decimals = 18;
        _totalSupply = 27000000 * 10**decimals;
        balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }
    function totalSupply() external view returns (uint) {
        return _totalSupply  - balances[address(0)];
    }
    function balanceOf(address tokenOwner) external view returns (uint balance) {
        return balances[tokenOwner];
    }
    function transfer(address to, uint tokens) public returns (bool success) {
        balances[msg.sender] = balances[msg.sender] - tokens;
        balances[to] = balances[to] + tokens;
        emit Transfer(msg.sender, to, tokens);
        return true;
    }
    function approve(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        balances[from] = balances[from] - tokens;
        allowed[from][msg.sender] = allowed[from][msg.sender] - tokens;
        balances[to] = balances[to] + tokens;
        emit Transfer(from, to, tokens);
        return true;
    }
    function allowance(address tokenOwner, address spender) external view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }
}
        

Contract ABI

[{"type":"constructor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_totalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"remaining","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"tokenOwner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"tokens","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"balance","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"tokenOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokens","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokens","internalType":"uint256"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false}]
            

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80633eaaf86b116100665780633eaaf86b1461012c57806370a082311461013557806395d89b411461015e578063a9059cbb14610166578063dd62ed3e1461017957600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fa578063313ce5671461010d575b600080fd5b6100ab6101b2565b6040516100b89190610492565b60405180910390f35b6100d46100cf3660046104fc565b610240565b60405190151581526020016100b8565b6100ec6102ad565b6040519081526020016100b8565b6100d4610108366004610526565b6102eb565b60025461011a9060ff1681565b60405160ff90911681526020016100b8565b6100ec60035481565b6100ec610143366004610562565b6001600160a01b031660009081526004602052604090205490565b6100ab6103ec565b6100d46101743660046104fc565b6103f9565b6100ec610187366004610584565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b600180546101bf906105b7565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb906105b7565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061029b9086815260200190565b60405180910390a35060015b92915050565b600080805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546003546102e69190610607565b905090565b6001600160a01b03831660009081526004602052604081205461030f908390610607565b6001600160a01b0385166000908152600460209081526040808320939093556005815282822033835290522054610347908390610607565b6001600160a01b03808616600090815260056020908152604080832033845282528083209490945591861681526004909152205461038690839061061a565b6001600160a01b0380851660008181526004602052604090819020939093559151908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906103da9086815260200190565b60405180910390a35060019392505050565b600080546101bf906105b7565b33600090815260046020526040812054610414908390610607565b33600090815260046020526040808220929092556001600160a01b0385168152205461044190839061061a565b6001600160a01b0384166000818152600460205260409081902092909255905133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061029b9086815260200190565b600060208083528351808285015260005b818110156104bf578581018301518582016040015282016104a3565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146104f757600080fd5b919050565b6000806040838503121561050f57600080fd5b610518836104e0565b946020939093013593505050565b60008060006060848603121561053b57600080fd5b610544846104e0565b9250610552602085016104e0565b9150604084013590509250925092565b60006020828403121561057457600080fd5b61057d826104e0565b9392505050565b6000806040838503121561059757600080fd5b6105a0836104e0565b91506105ae602084016104e0565b90509250929050565b600181811c908216806105cb57607f821691505b6020821081036105eb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102a7576102a76105f1565b808201808211156102a7576102a76105f156fea264697066735822122041c6c4bc09d0e94ca786cbb841784057925d73e123bd91608c66604d3f3e0c8064736f6c63430008100033