Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x6599FC3e77cbfA6f6E9cAC605A30b1E78827EBA0
Balance 0 ETH
Nonce 1
Code Size 1790 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

1790 bytes
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c806342966c681161007157806342966c68146101d957806370a08231146101f657806379cc67901461021c57806395d89b4114610248578063a9059cbb14610250578063dd62ed3e1461027e576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102ac565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561033a565b604080519115158252519081900360200190f35b610173610367565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b0381358116916020810135909116906040013561036d565b6101c36103dc565b6040805160ff9092168252519081900360200190f35b610157600480360360208110156101ef57600080fd5b50356103e5565b6101736004803603602081101561020c57600080fd5b50356001600160a01b031661045d565b6101576004803603604081101561023257600080fd5b506001600160a01b03813516906020013561046f565b6100b6610540565b61027c6004803603604081101561026657600080fd5b506001600160a01b03813516906020013561059a565b005b6101736004803603604081101561029457600080fd5b506001600160a01b03813581169160200135166105a9565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103325780601f1061030757610100808354040283529160200191610332565b820191906000526020600020905b81548152906001019060200180831161031557829003601f168201915b505050505081565b3360009081526005602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260056020908152604080832033845290915281205482111561039d57600080fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020805483900390556103d28484846105c6565b5060019392505050565b60025460ff1681565b3360009081526004602052604081205482111561040157600080fd5b3360008181526004602090815260409182902080548690039055600380548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b60046020526000908152604090205481565b6001600160a01b03821660009081526004602052604081205482111561049457600080fd5b6001600160a01b03831660009081526005602090815260408083203384529091529020548211156104c457600080fd5b6001600160a01b0383166000818152600460209081526040808320805487900390556005825280832033845282529182902080548690039055600380548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a250600192915050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103325780601f1061030757610100808354040283529160200191610332565b6105a53383836105c6565b5050565b600560209081526000928352604080842090915290825290205481565b6001600160a01b0382166105d957600080fd5b6001600160a01b0383166000908152600460205260409020548111156105fe57600080fd5b6001600160a01b0382166000908152600460205260409020548181011161062457600080fd5b6001600160a01b038083166000818152600460209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b038084166000908152600460205260408082205492871682529020540181146106c257fe5b5050505056fea2646970667358221220b57b72e3a46fc3c386ade78064301234b03f517ad0afb87d200817196be3565064736f6c634300060c0033

Verified Source Code Full Match

Compiler: v0.6.12+commit.27d51765 EVM: istanbul Optimization: Yes (200 runs)
TokenERC20.sol 110 lines
pragma solidity >=0.4.22 <0.7.0;


contract TokenERC20 {
    string public name;
    string public symbol;
    uint8 public decimals = 18;  
    uint256 public totalSupply;


    mapping (address => uint256) public balanceOf;

    mapping (address => mapping (address => uint256)) public allowance;


    event Transfer(address indexed from, address indexed to, uint256 value);


    event Burn(address indexed from, uint256 value);


    constructor(uint256 initialSupply, string memory tokenName, string memory tokenSymbol) public {
        totalSupply = initialSupply * 10 ** uint256(decimals);  
        balanceOf[msg.sender] = totalSupply;                
        name = tokenName;
        symbol = tokenSymbol;
    }


    function _transfer(address _from, address _to, uint _value) internal {

        require(_to != address(0x0));

        require(balanceOf[_from] >= _value);

        require(balanceOf[_to] + _value > balanceOf[_to]);


        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        // Subtract from the sender
        balanceOf[_from] -= _value;
        // Add the same to the recipient
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);

      
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
    }


    function transfer(address _to, uint256 _value) public {
        _transfer(msg.sender, _to, _value);
    }

   
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);     // Check allowance
        allowance[_from][msg.sender] -= _value;
        
        _transfer(_from, _to, _value);
        return true;
    }

   
    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        return true;
    }

    

    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);   // Check if the sender has enough
        balanceOf[msg.sender] -= _value;            // Subtract from the sender
        totalSupply -= _value;                      // Updates totalSupply
        emit Burn(msg.sender, _value);
        return true;
    }


    function burnFrom(address _from, uint256 _value) public returns (bool success) {
        require(balanceOf[_from] >= _value);                // Check if the targeted balance is enough
        require(_value <= allowance[_from][msg.sender]);    // Check allowance
        balanceOf[_from] -= _value;                         // Subtract from the targeted balance
        allowance[_from][msg.sender] -= _value;             // Subtract from the sender's allowance
        totalSupply -= _value;                              // Update totalSupply
        emit Burn(_from, _value);
        return true;
    }
}


contract Proxy {
    
    //
    TokenERC20 public implementation;
    
   
    
    function updateTo(TokenERC20 _address) public {
        implementation = _address;
    }

   function callMethod(address adddr,uint256 a) public  returns(bool) {
         
          //bytes4 methodId = bytes4(keccak256("transfer(address,uint256)"));
    implementation.transfer(adddr,a);
         
   }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 5 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0x42966c68
uint256 _value
returns: bool
burnFrom 0x79cc6790
address _from
uint256 _value
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool

Token Balances (1)

View Transfers →
USDT 100

Recent Transactions

No transactions found for this address