ETH Price: $3,919.85 (+0.94%)

Token

ERC-20: UTour (UTO)
 

Overview

Max Total Supply

300,000,000 UTO

Holders

60,881

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
200 UTO

Value
$0.00
0x0f500f06ef54a3f86d54aba5f1de6ec095cf547d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
UTOToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-07-15
*/

pragma solidity ^0.4.18;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : [email protected]
// released under Apache 2.0 licence
library SafeMath {
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b > 0); // Solidity automatically throws when dividing by 0
        uint256 c = a / b;
        assert(a == b * c);
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a - b;
        assert(b <= a);
        assert(a == c + b);
        return c;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        assert(a == c - b);
        return c;
    }
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }

contract UTOToken {
    // Public variables of the token
    string public name="UTour";
    string public symbol="UTO";
    uint8 public decimals = 18;
    // 18 decimals is the strongly suggested default, avoid changing it
    uint256 public totalSupply=3 * 10 ** 26;

    // This creates an array with all balances
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    // This generates a public event on the blockchain that will notify clients
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    // This notifies clients about the amount burnt
    event Burn(address indexed from, uint256 value);

    /**
     * Constructor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    // function UTOToken() public {
    constructor () public {
        balanceOf[msg.sender] = totalSupply;                // Give the creator all initial tokens
    }

    /**
     * Internal transfer, only can be called by this contract
     */
    function _transfer(address _from, address _to, uint _value) internal {
       // Prevent transfer to 0x0 address. Use burn() instead
        require(_to != 0x0);
        // Subtract from the sender
        balanceOf[_from] = SafeMath.sub(balanceOf[_from], _value);
        // Add the same to the recipient
        balanceOf[_to] = SafeMath.add(balanceOf[_to], _value);
        emit Transfer(_from, _to, _value);
    }

    /**
     * Transfer tokens
     *
     * Send `_value` tokens to `_to` from your account
     *
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transfer(address _to, uint256 _value) public returns (bool success) {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    /**
     * Transfer tokens from other address
     *
     * Send `_value` tokens to `_to` on behalf of `_from`
     *
     * @param _from The address of the sender
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {   
        // Check allowance
        allowance[_from][msg.sender] = SafeMath.sub(allowance[_from][msg.sender], _value);
        _transfer(_from, _to, _value);
        return true;
    }

    /**
     * Set allowance for other address
     *
     * Allows `_spender` to spend no more than `_value` tokens on your behalf
     *
     * @param _spender The address authorized to spend
     * @param _value the max amount they can spend
     */
    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    /**
     * Set allowance for other address and notify
     *
     * Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
     *
     * @param _spender The address authorized to spend
     * @param _value the max amount they can spend
     * @param _extraData some extra information to send to the approved contract
     */
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) {
        tokenRecipient spender = tokenRecipient(_spender);
        if (approve(_spender, _value)) {
            spender.receiveApproval(msg.sender, _value, this, _extraData);
            return true;
        }
    }

    function increaseApproval (address _spender, uint _addedValue) public returns (bool success) {
        allowance[msg.sender][_spender] = SafeMath.add(allowance[msg.sender][_spender], _addedValue);
        emit Approval(msg.sender, _spender, allowance[msg.sender][_spender]);
        return true;
    } 

    function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) {
        uint oldValue = allowance[msg.sender][_spender];
        if (_subtractedValue > oldValue) {
            allowance[msg.sender][_spender] = 0;
        } else {
            allowance[msg.sender][_spender] = SafeMath.sub(oldValue, _subtractedValue);
        }
        emit Approval(msg.sender, _spender, allowance[msg.sender][_spender]);
        return true;
    }

    /**
     * Destroy tokens
     *
     * Remove `_value` tokens from the system irreversibly
     *
     * @param _value the amount of money to burn
     */
    function burn(uint256 _value) public returns (bool success) { 
        // Subtract from the sender 
        balanceOf[msg.sender] = SafeMath.sub(balanceOf[msg.sender], _value); 
        // Updates totalSupply         
        totalSupply = SafeMath.sub(totalSupply, _value);                    
        emit Burn(msg.sender, _value);
        return true;
    }

    /**
     * Destroy tokens from other account
     *
     * Remove `_value` tokens from the system irreversibly on behalf of `_from`.
     *
     * @param _from the address of the sender
     * @param _value the amount of money to burn
     */
    function burnFrom(address _from, uint256 _value) public returns (bool success) {  
        // Subtract from the targeted balance
        balanceOf[_from] = SafeMath.sub(balanceOf[_from], _value);  
        // Subtract from the sender's allowance
        allowance[_from][msg.sender] = SafeMath.sub(allowance[_from][msg.sender], _value);
        // Update totalSupply         
        totalSupply = SafeMath.sub(totalSupply, _value);                           
        emit Burn(_from, _value);
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]

60c0604052600560808190527f55546f757200000000000000000000000000000000000000000000000000000060a090815261003e91600091906100c5565b506040805180820190915260038082527f55544f00000000000000000000000000000000000000000000000000000000006020909201918252610083916001916100c5565b506002805460ff191660121790556af8277896582678ac0000006003553480156100ac57600080fd5b5060035433600090815260046020526040902055610160565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010657805160ff1916838001178555610133565b82800160010185558215610133579182015b82811115610133578251825591602001919060010190610118565b5061013f929150610143565b5090565b61015d91905b8082111561013f5760008155600101610149565b90565b610a978061016f6000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd578063313ce567146101e757806342966c6814610212578063661884631461022a57806370a082311461024e57806379cc67901461026f57806395d89b4114610293578063a9059cbb146102a8578063cae9ca51146102cc578063d73dd62314610335578063dd62ed3e14610359575b600080fd5b3480156100e057600080fd5b506100e9610380565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a036004351660243561040e565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610474565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a036004358116906024351660443561047a565b3480156101f357600080fd5b506101fc6104e1565b6040805160ff9092168252519081900360200190f35b34801561021e57600080fd5b506101826004356104ea565b34801561023657600080fd5b50610182600160a060020a0360043516602435610562565b34801561025a57600080fd5b506101ab600160a060020a036004351661064c565b34801561027b57600080fd5b50610182600160a060020a036004351660243561065e565b34801561029f57600080fd5b506100e9610734565b3480156102b457600080fd5b50610182600160a060020a036004351660243561078e565b3480156102d857600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610182948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107a49650505050505050565b34801561034157600080fd5b50610182600160a060020a03600435166024356108bd565b34801561036557600080fd5b506101ab600160a060020a0360043581169060243516610950565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104065780601f106103db57610100808354040283529160200191610406565b820191906000526020600020905b8154815290600101906020018083116103e957829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a03831660009081526005602090815260408083203384529091528120546104a8908361096d565b600160a060020a03851660009081526005602090815260408083203384529091529020556104d784848461098e565b5060019392505050565b60025460ff1681565b33600090815260046020526040812054610504908361096d565b33600090815260046020526040902055600354610521908361096d565b60035560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b336000908152600560209081526040808320600160a060020a0386168452909152812054808311156105b757336000908152600560209081526040808320600160a060020a03881684529091528120556105e6565b6105c1818461096d565b336000908152600560209081526040808320600160a060020a03891684529091529020555b336000818152600560209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60046020526000908152604090205481565b600160a060020a038216600090815260046020526040812054610681908361096d565b600160a060020a03841660009081526004602090815260408083209390935560058152828220338352905220546106b8908361096d565b600160a060020a03841660009081526005602090815260408083203384529091529020556003546106e9908361096d565b600355604080518381529051600160a060020a038516917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250600192915050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104065780601f106103db57610100808354040283529160200191610406565b600061079b33848461098e565b50600192915050565b6000836107b1818561040e565b156108b5576040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018790523060448401819052608060648501908152875160848601528751600160a060020a03871695638f4ffcb195948b94938b939192909160a490910190602085019080838360005b83811015610849578181015183820152602001610831565b50505050905090810190601f1680156108765780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561089857600080fd5b505af11580156108ac573d6000803e3d6000fd5b50505050600191505b509392505050565b336000908152600560209081526040808320600160a060020a03861684529091528120546108eb9083610a51565b336000818152600560209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600560209081526000928352604080842090915290825290205481565b60008183038383111561097c57fe5b808301841461098757fe5b9392505050565b600160a060020a03821615156109a357600080fd5b600160a060020a0383166000908152600460205260409020546109c6908261096d565b600160a060020a0380851660009081526004602052604080822093909355908416815220546109f59082610a51565b600160a060020a0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600082820183811015610a6057fe5b828103841461098757fe00a165627a7a72305820ac5d2501b6a3e0476b6fbe6675cf04e14531478479bb80243a2f86beda37cf730029

Deployed Bytecode

0x6080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd578063313ce567146101e757806342966c6814610212578063661884631461022a57806370a082311461024e57806379cc67901461026f57806395d89b4114610293578063a9059cbb146102a8578063cae9ca51146102cc578063d73dd62314610335578063dd62ed3e14610359575b600080fd5b3480156100e057600080fd5b506100e9610380565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a036004351660243561040e565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610474565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a036004358116906024351660443561047a565b3480156101f357600080fd5b506101fc6104e1565b6040805160ff9092168252519081900360200190f35b34801561021e57600080fd5b506101826004356104ea565b34801561023657600080fd5b50610182600160a060020a0360043516602435610562565b34801561025a57600080fd5b506101ab600160a060020a036004351661064c565b34801561027b57600080fd5b50610182600160a060020a036004351660243561065e565b34801561029f57600080fd5b506100e9610734565b3480156102b457600080fd5b50610182600160a060020a036004351660243561078e565b3480156102d857600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610182948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107a49650505050505050565b34801561034157600080fd5b50610182600160a060020a03600435166024356108bd565b34801561036557600080fd5b506101ab600160a060020a0360043581169060243516610950565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104065780601f106103db57610100808354040283529160200191610406565b820191906000526020600020905b8154815290600101906020018083116103e957829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a03831660009081526005602090815260408083203384529091528120546104a8908361096d565b600160a060020a03851660009081526005602090815260408083203384529091529020556104d784848461098e565b5060019392505050565b60025460ff1681565b33600090815260046020526040812054610504908361096d565b33600090815260046020526040902055600354610521908361096d565b60035560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b336000908152600560209081526040808320600160a060020a0386168452909152812054808311156105b757336000908152600560209081526040808320600160a060020a03881684529091528120556105e6565b6105c1818461096d565b336000908152600560209081526040808320600160a060020a03891684529091529020555b336000818152600560209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60046020526000908152604090205481565b600160a060020a038216600090815260046020526040812054610681908361096d565b600160a060020a03841660009081526004602090815260408083209390935560058152828220338352905220546106b8908361096d565b600160a060020a03841660009081526005602090815260408083203384529091529020556003546106e9908361096d565b600355604080518381529051600160a060020a038516917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250600192915050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104065780601f106103db57610100808354040283529160200191610406565b600061079b33848461098e565b50600192915050565b6000836107b1818561040e565b156108b5576040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018790523060448401819052608060648501908152875160848601528751600160a060020a03871695638f4ffcb195948b94938b939192909160a490910190602085019080838360005b83811015610849578181015183820152602001610831565b50505050905090810190601f1680156108765780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561089857600080fd5b505af11580156108ac573d6000803e3d6000fd5b50505050600191505b509392505050565b336000908152600560209081526040808320600160a060020a03861684529091528120546108eb9083610a51565b336000818152600560209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600560209081526000928352604080842090915290825290205481565b60008183038383111561097c57fe5b808301841461098757fe5b9392505050565b600160a060020a03821615156109a357600080fd5b600160a060020a0383166000908152600460205260409020546109c6908261096d565b600160a060020a0380851660009081526004602052604080822093909355908416815220546109f59082610a51565b600160a060020a0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600082820183811015610a6057fe5b828103841461098757fe00a165627a7a72305820ac5d2501b6a3e0476b6fbe6675cf04e14531478479bb80243a2f86beda37cf730029

Swarm Source

bzzr://ac5d2501b6a3e0476b6fbe6675cf04e14531478479bb80243a2f86beda37cf73
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.