ETH Price: $3,603.52 (+5.18%)

Token

DuduTechnology (DUDU)
 

Overview

Max Total Supply

20,000,000,000 DUDU

Holders

862

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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-08-14
*/

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 BurnToken is BaseToken {
    event Burn(address indexed from, uint256 value);

    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);
        balanceOf[msg.sender] -= _value;
        totalSupply -= _value;
        Burn(msg.sender, _value);
        return true;
    }

    function burnFrom(address _from, uint256 _value) public returns (bool success) {
        require(balanceOf[_from] >= _value);
        require(_value <= allowance[_from][msg.sender]);
        balanceOf[_from] -= _value;
        allowance[_from][msg.sender] -= _value;
        totalSupply -= _value;
        Burn(_from, _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, BurnToken, AirdropToken {
    function CustomToken() public {
        totalSupply = 20000000000000000000000000000;
        name = 'DuduTechnology';
        symbol = 'DUDU';
        decimals = 18;
        balanceOf[0x828db0897afec00e04d77b4879082bcb7385a76a] = totalSupply;
        Transfer(address(0), 0x828db0897afec00e04d77b4879082bcb7385a76a, totalSupply);

        airAmount = 6666666600000000000000;
        airBegintime = 1520240400;
        airEndtime = 2215389600;
        airSender = 0xd686f4d45f96fb035de703206fc55fda8882d33b;
        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":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","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":"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":false,"name":"value","type":"uint256"}],"name":"Burn","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"}]

6060604052341561000f57600080fd5b6b409f9cbc7c4a04c22000000060035560408051908101604052600e81527f44756475546563686e6f6c6f6779000000000000000000000000000000000000602082015260009080516100669291602001906101a6565b5060408051908101604052600481527f4455445500000000000000000000000000000000000000000000000000000000602082015260019080516100ae9291602001906101a6565b506002805460ff1916601217905560035473828db0897afec00e04d77b4879082bcb7385a76a600081815260046020527f3c4c3ced6b8bd4f745025b66a6fad52022714f445c639209c8e0c81809870b9e83905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060405190815260200160405180910390a369016966959f2fc12e8000600655635a9d071060075563840c29a06008556009805460a060020a63ffffffff0219600160a060020a031990911673d686f4d45f96fb035de703206fc55fda8882d33b171674010000000000000000000000000000000000000000179055610241565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101e757805160ff1916838001178555610214565b82800160010185558215610214579182015b828111156102145782518255916020019190600101906101f9565b50610220929150610224565b5090565b61023e91905b80821115610220576000815560010161022a565b90565b6109ed806102506000396000f3006060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010557806307cc60511461018f578063095ea7b3146101b457806318160ddd146101ea57806323b872dd146101fd578063313ce567146102255780633884d635146100fb57806342966c681461024e57806370a082311461026457806379cc6790146102835780637d720296146102a557806395d89b41146102d4578063a3fe1ade146102e7578063a9059cbb1461031f578063b0f85a1014610341578063dd62ed3e14610354578063e67ad25414610379578063e779a8cf1461038c575b61010361039f565b005b341561011057600080fd5b6101186104cc565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561015457808201518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019a57600080fd5b6101a261056a565b60405190815260200160405180910390f35b34156101bf57600080fd5b6101d6600160a060020a0360043516602435610570565b604051901515815260200160405180910390f35b34156101f557600080fd5b6101a26105dc565b341561020857600080fd5b6101d6600160a060020a03600435811690602435166044356105e2565b341561023057600080fd5b610238610659565b60405160ff909116815260200160405180910390f35b341561025957600080fd5b6101d6600435610662565b341561026f57600080fd5b6101a2600160a060020a03600435166106ed565b341561028e57600080fd5b6101d6600160a060020a03600435166024356106ff565b34156102b057600080fd5b6102b86107db565b604051600160a060020a03909116815260200160405180910390f35b34156102df57600080fd5b6101186107ea565b34156102f257600080fd5b610306600160a060020a0360043516610855565b60405163ffffffff909116815260200160405180910390f35b341561032a57600080fd5b6101d6600160a060020a036004351660243561086d565b341561034c57600080fd5b6101a2610883565b341561035f57600080fd5b6101a2600160a060020a0360043581169060243516610889565b341561038457600080fd5b6101a26108a6565b341561039757600080fd5b6103066108ac565b60075442101580156103b357506008544211155b15156103be57600080fd5b34156103c957600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104365750600954600160a060020a0333166000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b1561044057600080fd5b60095460065461045b91600160a060020a03169033906108d0565b33600160a060020a03166000818152600a602052604090819020805463ffffffff198116600163ffffffff9283160182161791829055600654911692917fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4891905190815260200160405180910390a3565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105625780601f1061053757610100808354040283529160200191610562565b820191906000526020600020905b81548152906001019060200180831161054557829003601f168201915b505050505081565b60065481565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a0380841660009081526005602090815260408083203390941683529290529081205482111561061757600080fd5b600160a060020a038085166000908152600560209081526040808320339094168352929052208054839003905561064f8484846108d0565b5060019392505050565b60025460ff1681565b600160a060020a0333166000908152600460205260408120548290101561068857600080fd5b600160a060020a03331660008181526004602052604090819020805485900390556003805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60046020526000908152604090205481565b600160a060020a0382166000908152600460205260408120548290101561072557600080fd5b600160a060020a038084166000908152600560209081526040808320339094168352929052205482111561075857600080fd5b600160a060020a038084166000818152600460209081526040808320805488900390556005825280832033909516835293905282902080548590039055600380548590039055907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b600954600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105625780601f1061053757610100808354040283529160200191610562565b600a6020526000908152604090205463ffffffff1681565b600061087a3384846108d0565b50600192915050565b60085481565b600560209081526000928352604080842090915290825290205481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a03831615156108e757600080fd5b600160a060020a0384166000908152600460205260409020548290101561090d57600080fd5b600160a060020a0383166000908152600460205260409020548281011161093357600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461097457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a723058204d6c30eeb60071908afb482db81eeaa630aa9d619b0bd22b79cc3615e8eab8db0029

Deployed Bytecode

0x6060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010557806307cc60511461018f578063095ea7b3146101b457806318160ddd146101ea57806323b872dd146101fd578063313ce567146102255780633884d635146100fb57806342966c681461024e57806370a082311461026457806379cc6790146102835780637d720296146102a557806395d89b41146102d4578063a3fe1ade146102e7578063a9059cbb1461031f578063b0f85a1014610341578063dd62ed3e14610354578063e67ad25414610379578063e779a8cf1461038c575b61010361039f565b005b341561011057600080fd5b6101186104cc565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561015457808201518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019a57600080fd5b6101a261056a565b60405190815260200160405180910390f35b34156101bf57600080fd5b6101d6600160a060020a0360043516602435610570565b604051901515815260200160405180910390f35b34156101f557600080fd5b6101a26105dc565b341561020857600080fd5b6101d6600160a060020a03600435811690602435166044356105e2565b341561023057600080fd5b610238610659565b60405160ff909116815260200160405180910390f35b341561025957600080fd5b6101d6600435610662565b341561026f57600080fd5b6101a2600160a060020a03600435166106ed565b341561028e57600080fd5b6101d6600160a060020a03600435166024356106ff565b34156102b057600080fd5b6102b86107db565b604051600160a060020a03909116815260200160405180910390f35b34156102df57600080fd5b6101186107ea565b34156102f257600080fd5b610306600160a060020a0360043516610855565b60405163ffffffff909116815260200160405180910390f35b341561032a57600080fd5b6101d6600160a060020a036004351660243561086d565b341561034c57600080fd5b6101a2610883565b341561035f57600080fd5b6101a2600160a060020a0360043581169060243516610889565b341561038457600080fd5b6101a26108a6565b341561039757600080fd5b6103066108ac565b60075442101580156103b357506008544211155b15156103be57600080fd5b34156103c957600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104365750600954600160a060020a0333166000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b1561044057600080fd5b60095460065461045b91600160a060020a03169033906108d0565b33600160a060020a03166000818152600a602052604090819020805463ffffffff198116600163ffffffff9283160182161791829055600654911692917fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4891905190815260200160405180910390a3565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105625780601f1061053757610100808354040283529160200191610562565b820191906000526020600020905b81548152906001019060200180831161054557829003601f168201915b505050505081565b60065481565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a0380841660009081526005602090815260408083203390941683529290529081205482111561061757600080fd5b600160a060020a038085166000908152600560209081526040808320339094168352929052208054839003905561064f8484846108d0565b5060019392505050565b60025460ff1681565b600160a060020a0333166000908152600460205260408120548290101561068857600080fd5b600160a060020a03331660008181526004602052604090819020805485900390556003805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60046020526000908152604090205481565b600160a060020a0382166000908152600460205260408120548290101561072557600080fd5b600160a060020a038084166000908152600560209081526040808320339094168352929052205482111561075857600080fd5b600160a060020a038084166000818152600460209081526040808320805488900390556005825280832033909516835293905282902080548590039055600380548590039055907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b600954600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105625780601f1061053757610100808354040283529160200191610562565b600a6020526000908152604090205463ffffffff1681565b600061087a3384846108d0565b50600192915050565b60085481565b600560209081526000928352604080842090915290825290205481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a03831615156108e757600080fd5b600160a060020a0384166000908152600460205260409020548290101561090d57600080fd5b600160a060020a0383166000908152600460205260409020548281011161093357600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461097457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a723058204d6c30eeb60071908afb482db81eeaa630aa9d619b0bd22b79cc3615e8eab8db0029

Swarm Source

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