ETH Price: $3,258.64 (-2.62%)

Token

XselfmediaMT (XMMT)
 

Overview

Max Total Supply

100,000,000 XMMT

Holders

17,200

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
2,188 XMMT

Value
$0.00
0x6ef7a306b59d0245e0517f56a49035ae4427ad72
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:
CustomToken

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.19;

contract BaseToken {
    string public name;
    string public symbol;
    uint8 public decimals;
    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 Approval(address indexed owner, address indexed spender, uint256 value);

    function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);
        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
        Transfer(_from, _to, _value);
    }

    function transfer(address _to, uint256 _value) public returns (bool success) {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);
        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;
        Approval(msg.sender, _spender, _value);
        return true;
    }
}

contract AirdropToken is BaseToken {
    uint256 public airAmount;
    uint256 public airBegintime;
    uint256 public airEndtime;
    address public airSender;
    uint32 public airLimitCount;

    mapping (address => uint32) public airCountOf;

    event Airdrop(address indexed from, uint32 indexed count, uint256 tokenValue);

    function airdrop() public payable {
        require(now >= airBegintime && now <= airEndtime);
        require(msg.value == 0);
        if (airLimitCount > 0 && airCountOf[msg.sender] >= airLimitCount) {
            revert();
        }
        _transfer(airSender, msg.sender, airAmount);
        airCountOf[msg.sender] += 1;
        Airdrop(msg.sender, airCountOf[msg.sender], airAmount);
    }
}

contract CustomToken is BaseToken, AirdropToken {
    function CustomToken() public {
        totalSupply = 100000000000000000000000000;
        name = 'XselfmediaMT';
        symbol = 'XMMT';
        decimals = 18;
        balanceOf[0x349a6206972761f0902a69930ca07977254c88c3] = totalSupply;
        Transfer(address(0), 0x349a6206972761f0902a69930ca07977254c88c3, totalSupply);

        airAmount = 1500000000000000000000;
        airBegintime = 1529978400;
        airEndtime = 1532570400;
        airSender = 0x8b9f587112278a6b0358f43b0ed7c35a914954cc;
        airLimitCount = 1;
    }

    function() public payable {
        airdrop();
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airAmount","outputs":[{"name":"","type":"uint256"}],"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":"airdrop","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"airCountOf","outputs":[{"name":"","type":"uint32"}],"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":true,"inputs":[],"name":"airEndtime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airLimitCount","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"count","type":"uint32"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"Airdrop","type":"event"},{"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"}]

6060604052341561000f57600080fd5b6a52b7d2dcc80cd2e400000060035560408051908101604052600c81527f5873656c666d656469614d540000000000000000000000000000000000000000602082015260009080516100659291602001906101a4565b5060408051908101604052600481527f584d4d5400000000000000000000000000000000000000000000000000000000602082015260019080516100ad9291602001906101a4565b506002805460ff1916601217905560035473349a6206972761f0902a69930ca07977254c88c3600081815260046020527f650533d2c90f05d9a917ffcb6a9a6dfe0090809bf617ed2663d6eb9e1a5cee0583905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060405190815260200160405180910390a3685150ae84a8cdf00000600655635b319e20600755635b592b206008556009805460a060020a63ffffffff0219600160a060020a0319909116738b9f587112278a6b0358f43b0ed7c35a914954cc17167401000000000000000000000000000000000000000017905561023f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101e557805160ff1916838001178555610212565b82800160010185558215610212579182015b828111156102125782518255916020019190600101906101f7565b5061021e929150610222565b5090565b61023c91905b8082111561021e5760008155600101610228565b90565b6108388061024e6000396000f3006060604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ef57806307cc605114610179578063095ea7b31461019e57806318160ddd146101d457806323b872dd146101e7578063313ce5671461020f5780633884d635146100e557806370a08231146102385780637d7202961461025757806395d89b4114610286578063a3fe1ade14610299578063a9059cbb146102d1578063b0f85a10146102f3578063dd62ed3e14610306578063e67ad2541461032b578063e779a8cf1461033e575b6100ed610351565b005b34156100fa57600080fd5b61010261047e565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561013e578082015183820152602001610126565b50505050905090810190601f16801561016b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018457600080fd5b61018c61051c565b60405190815260200160405180910390f35b34156101a957600080fd5b6101c0600160a060020a0360043516602435610522565b604051901515815260200160405180910390f35b34156101df57600080fd5b61018c61058e565b34156101f257600080fd5b6101c0600160a060020a0360043581169060243516604435610594565b341561021a57600080fd5b61022261060b565b60405160ff909116815260200160405180910390f35b341561024357600080fd5b61018c600160a060020a0360043516610614565b341561026257600080fd5b61026a610626565b604051600160a060020a03909116815260200160405180910390f35b341561029157600080fd5b610102610635565b34156102a457600080fd5b6102b8600160a060020a03600435166106a0565b60405163ffffffff909116815260200160405180910390f35b34156102dc57600080fd5b6101c0600160a060020a03600435166024356106b8565b34156102fe57600080fd5b61018c6106ce565b341561031157600080fd5b61018c600160a060020a03600435811690602435166106d4565b341561033657600080fd5b61018c6106f1565b341561034957600080fd5b6102b86106f7565b600754421015801561036557506008544211155b151561037057600080fd5b341561037b57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156103e85750600954600160a060020a0333166000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156103f257600080fd5b60095460065461040d91600160a060020a031690339061071b565b33600160a060020a03166000818152600a602052604090819020805463ffffffff198116600163ffffffff9283160182161791829055600654911692917fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4891905190815260200160405180910390a3565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b505050505081565b60065481565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156105c957600080fd5b600160a060020a038085166000908152600560209081526040808320339094168352929052208054839003905561060184848461071b565b5060019392505050565b60025460ff1681565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105145780601f106104e957610100808354040283529160200191610514565b600a6020526000908152604090205463ffffffff1681565b60006106c533848461071b565b50600192915050565b60085481565b600560209081526000928352604080842090915290825290205481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561073257600080fd5b600160a060020a0384166000908152600460205260409020548290101561075857600080fd5b600160a060020a0383166000908152600460205260409020548281011161077e57600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146107bf57fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a72305820a377ddb509b7af613027b6dce028b820e5debf62fcf03c1a640348dee8fc0a140029

Deployed Bytecode

0x6060604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ef57806307cc605114610179578063095ea7b31461019e57806318160ddd146101d457806323b872dd146101e7578063313ce5671461020f5780633884d635146100e557806370a08231146102385780637d7202961461025757806395d89b4114610286578063a3fe1ade14610299578063a9059cbb146102d1578063b0f85a10146102f3578063dd62ed3e14610306578063e67ad2541461032b578063e779a8cf1461033e575b6100ed610351565b005b34156100fa57600080fd5b61010261047e565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561013e578082015183820152602001610126565b50505050905090810190601f16801561016b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018457600080fd5b61018c61051c565b60405190815260200160405180910390f35b34156101a957600080fd5b6101c0600160a060020a0360043516602435610522565b604051901515815260200160405180910390f35b34156101df57600080fd5b61018c61058e565b34156101f257600080fd5b6101c0600160a060020a0360043581169060243516604435610594565b341561021a57600080fd5b61022261060b565b60405160ff909116815260200160405180910390f35b341561024357600080fd5b61018c600160a060020a0360043516610614565b341561026257600080fd5b61026a610626565b604051600160a060020a03909116815260200160405180910390f35b341561029157600080fd5b610102610635565b34156102a457600080fd5b6102b8600160a060020a03600435166106a0565b60405163ffffffff909116815260200160405180910390f35b34156102dc57600080fd5b6101c0600160a060020a03600435166024356106b8565b34156102fe57600080fd5b61018c6106ce565b341561031157600080fd5b61018c600160a060020a03600435811690602435166106d4565b341561033657600080fd5b61018c6106f1565b341561034957600080fd5b6102b86106f7565b600754421015801561036557506008544211155b151561037057600080fd5b341561037b57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156103e85750600954600160a060020a0333166000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156103f257600080fd5b60095460065461040d91600160a060020a031690339061071b565b33600160a060020a03166000818152600a602052604090819020805463ffffffff198116600163ffffffff9283160182161791829055600654911692917fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4891905190815260200160405180910390a3565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b505050505081565b60065481565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156105c957600080fd5b600160a060020a038085166000908152600560209081526040808320339094168352929052208054839003905561060184848461071b565b5060019392505050565b60025460ff1681565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105145780601f106104e957610100808354040283529160200191610514565b600a6020526000908152604090205463ffffffff1681565b60006106c533848461071b565b50600192915050565b60085481565b600560209081526000928352604080842090915290825290205481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561073257600080fd5b600160a060020a0384166000908152600460205260409020548290101561075857600080fd5b600160a060020a0383166000908152600460205260409020548281011161077e57600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146107bf57fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a72305820a377ddb509b7af613027b6dce028b820e5debf62fcf03c1a640348dee8fc0a140029

Swarm Source

bzzr://a377ddb509b7af613027b6dce028b820e5debf62fcf03c1a640348dee8fc0a14
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.