Contract Address Details

0x5FFD7a138422cBbcfB53908AD51F656D7C6c640F

Token
Info Token (INFO)
Creator
0xfde29a–5ac238 at 0x0587d1–2c9b63
Balance
0 KAI ( )
Tokens
Fetching tokens...
Transactions
3,356 Transactions
Transfers
1 Transfers
Gas Used
88,267,624
Last Balance Update
24322371
Contract name:
InfoToken




Optimization enabled
false
Compiler version
v0.8.4+commit.c7e474f2




EVM Version
default




Verified at
2022-06-12T15:14:05.933252Z

Contract source code

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

contract InfoToken {
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 1000000 * 10 ** 18;
    string public name = "Info Token";
    string public symbol = "INFO";
    uint public decimals = 18;
    
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    event Burn(uint value);
    
    constructor() {
        balances[msg.sender] = totalSupply;
    }
    
    function balanceOf(address owner) public view returns(uint) {
        return balances[owner];
    }
    
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[to] += value;
        balances[msg.sender] -= value;
        emit Transfer(msg.sender, to, value);
        return true;
    }
    
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] += value;
        balances[from] -= value;
        emit Transfer(from, to, value);
        return true;   
    }
    
    function approve(address spender, uint value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;   
    }
    
    function burn(uint value) public returns (bool){
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[msg.sender] -= value;
        totalSupply -=value;
        emit Burn(value);
        return true;
    }
}
        
>

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Burn","inputs":[{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balances","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"burn","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"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":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]}]
              

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063313ce56711610071578063313ce5671461017a57806342966c681461019857806370a08231146101c857806395d89b41146101f8578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a57806327e235e31461014a575b600080fd5b6100b6610276565b6040516100c39190610b97565b60405180910390f35b6100e660048036038101906100e19190610a7a565b610304565b6040516100f39190610b7c565b60405180910390f35b6101046103f6565b6040516101119190610bf9565b60405180910390f35b610134600480360381019061012f9190610a2b565b6103fc565b6040516101419190610b7c565b60405180910390f35b610164600480360381019061015f91906109c6565b610622565b6040516101719190610bf9565b60405180910390f35b61018261063a565b60405161018f9190610bf9565b60405180910390f35b6101b260048036038101906101ad9190610ab6565b610640565b6040516101bf9190610b7c565b60405180910390f35b6101e260048036038101906101dd91906109c6565b61073b565b6040516101ef9190610bf9565b60405180910390f35b610200610783565b60405161020d9190610b97565b60405180910390f35b610230600480360381019061022b9190610a7a565b610811565b60405161023d9190610b7c565b60405180910390f35b610260600480360381019061025b91906109ef565b610977565b60405161026d9190610bf9565b60405180910390f35b6003805461028390610d35565b80601f01602080910402602001604051908101604052809291908181526020018280546102af90610d35565b80156102fc5780601f106102d1576101008083540402835291602001916102fc565b820191906000526020600020905b8154815290600101906020018083116102df57829003601f168201915b505050505081565b600081600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516103e49190610bf9565b60405180910390a36001905092915050565b60025481565b6000816104088561073b565b1015610449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044090610bb9565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ff90610bd9565b60405180910390fd5b816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105569190610c30565b92505081905550816000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105ab9190610c86565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161060f9190610bf9565b60405180910390a3600190509392505050565b60006020528060005260406000206000915090505481565b60055481565b60008161064c3361073b565b101561068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068490610bb9565b60405180910390fd5b816000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546106db9190610c86565b9250508190555081600260008282546106f49190610c86565b925050819055507fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb8260405161072a9190610bf9565b60405180910390a160019050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6004805461079090610d35565b80601f01602080910402602001604051908101604052809291908181526020018280546107bc90610d35565b80156108095780601f106107de57610100808354040283529160200191610809565b820191906000526020600020905b8154815290600101906020018083116107ec57829003601f168201915b505050505081565b60008161081d3361073b565b101561085e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085590610bb9565b60405180910390fd5b816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108ac9190610c30565b92505081905550816000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109019190610c86565b925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109659190610bf9565b60405180910390a36001905092915050565b6001602052816000526040600020602052806000526040600020600091509150505481565b6000813590506109ab81610e28565b92915050565b6000813590506109c081610e3f565b92915050565b6000602082840312156109d857600080fd5b60006109e68482850161099c565b91505092915050565b60008060408385031215610a0257600080fd5b6000610a108582860161099c565b9250506020610a218582860161099c565b9150509250929050565b600080600060608486031215610a4057600080fd5b6000610a4e8682870161099c565b9350506020610a5f8682870161099c565b9250506040610a70868287016109b1565b9150509250925092565b60008060408385031215610a8d57600080fd5b6000610a9b8582860161099c565b9250506020610aac858286016109b1565b9150509250929050565b600060208284031215610ac857600080fd5b6000610ad6848285016109b1565b91505092915050565b610ae881610ccc565b82525050565b6000610af982610c14565b610b038185610c1f565b9350610b13818560208601610d02565b610b1c81610dc5565b840191505092915050565b6000610b34600f83610c1f565b9150610b3f82610dd6565b602082019050919050565b6000610b57601183610c1f565b9150610b6282610dff565b602082019050919050565b610b7681610cf8565b82525050565b6000602082019050610b916000830184610adf565b92915050565b60006020820190508181036000830152610bb18184610aee565b905092915050565b60006020820190508181036000830152610bd281610b27565b9050919050565b60006020820190508181036000830152610bf281610b4a565b9050919050565b6000602082019050610c0e6000830184610b6d565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610c3b82610cf8565b9150610c4683610cf8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610c7b57610c7a610d67565b5b828201905092915050565b6000610c9182610cf8565b9150610c9c83610cf8565b925082821015610caf57610cae610d67565b5b828203905092915050565b6000610cc582610cd8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015610d20578082015181840152602081019050610d05565b83811115610d2f576000848401525b50505050565b60006002820490506001821680610d4d57607f821691505b60208210811415610d6157610d60610d96565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f62616c616e636520746f6f206c6f770000000000000000000000000000000000600082015250565b7f616c6c6f77616e636520746f6f206c6f77000000000000000000000000000000600082015250565b610e3181610cba565b8114610e3c57600080fd5b50565b610e4881610cf8565b8114610e5357600080fd5b5056fea26469706673582212206fedb2f54634c4e65468f27cf993984f8dcae63ea97d691fd05376a8248d483664736f6c63430008040033