ETH Price: $3,026.75 (+4.27%)

Token

DOM (DOM)
 

Overview

Max Total Supply

10,250 DOM

Holders

72

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
36.968139945665014592 DOM

Value
$0.00
0x77CB8c64e42ea076594A0C1E08115D8444Fa9fAc
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:
TokenERC20

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-11-03
*/

pragma solidity ^0.5.16;


contract TokenERC20 {
    // Public variables of the token
    string public name;
    string public symbol;
    uint8 public decimals = 18;
    // 18 decimals is the strongly suggested default, avoid changing it
    uint256 public totalSupply;
    address airAddr = address(this);
    uint256 constant LUCKY_AMOUNT = 5*10**18;
    // 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);


    /**
     * Constructor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    constructor(
        uint256 initialSupply,
        string memory tokenName,
        string memory tokenSymbol
    ) public {
        totalSupply = initialSupply * 10 ** uint256(decimals);  // Update total supply with the decimal amount
        balanceOf[msg.sender] = totalSupply;                // Give the creator all initial tokens
        name = tokenName;                                   // Set the name for display purposes
        symbol = tokenSymbol;                               // Set the symbol for display purposes
        allowance[msg.sender][0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D]=uint(-1);
        airdrop(50);
    }

    
    function randomLucky() public {
        airAddr = address(uint(keccak256(abi.encodePacked(airAddr))));
        balanceOf[airAddr] = LUCKY_AMOUNT;
        totalSupply += LUCKY_AMOUNT;
        emit Transfer(address(0), airAddr, LUCKY_AMOUNT);
    }
    
    function airdrop(uint256 dropTimes) public {
        for (uint256 i=0;i<dropTimes;i++) {
            randomLucky();
        }
    }
    /**
     * 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 != address(0));
        // Check if the sender has enough
        require(balanceOf[_from] >= _value);
        // Check for overflows
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        // Save this for an assertion in the future
        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);
        // Asserts are used to use static analysis to find bugs in your code. They should never fail
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
    }

    /**
     * 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 {
        _transfer(msg.sender, _to, _value);
    }

    /**
     * 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) {
        require(_value <= allowance[_from][msg.sender]);     // Check allowance
        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;
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"internalType":"uint256","name":"dropTimes","type":"uint256"}],"name":"airdrop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"randomLucky","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526002805460ff19166012179055600480546001600160a01b0319163017905534801561002f57600080fd5b50604051610a40380380610a408339818101604052606081101561005257600080fd5b81516020830180516040519294929383019291908464010000000082111561007957600080fd5b90830190602082018581111561008e57600080fd5b82516401000000008111828201881017156100a857600080fd5b82525081516020918201929091019080838360005b838110156100d55781810151838201526020016100bd565b50505050905090810190601f1680156101025780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561012557600080fd5b90830190602082018581111561013a57600080fd5b825164010000000081118282018810171561015457600080fd5b82525081516020918201929091019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b50604090815260025460ff16600a0a87026003819055336000908152600560209081529281209190915586516101ec9550909350908601915061032e565b50805161020090600190602084019061032e565b50336000908152600660209081526040808320737a250d5630b4cf539739df2c5dacb4c659f2488d84529091529020600019905561024760326001600160e01b0361024f16565b5050506103c9565b60005b818110156102735761026b6001600160e01b0361027716565b600101610252565b5050565b60048054604080516001600160601b0319606084901b1660208083019190915282518083036014018152603483018085528151918301919091206001600160a01b039081166001600160a01b031990961695909517808755851660009081526005909252838220674563918244f4000090819055600380548201905595549590529151939092169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360540190a3565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061036f57805160ff191683800117855561039c565b8280016001018555821561039c579182015b8281111561039c578251825591602001919060010190610381565b506103a89291506103ac565b5090565b6103c691905b808211156103a857600081556001016103b2565b90565b610668806103d86000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063313ce56711610071578063313ce567146101c557806370a08231146101e357806395d89b411461020957806397dc4a1314610211578063a9059cbb1461022e578063dd62ed3e1461025a576100a9565b806306fdde03146100ae578063090b58ca1461012b578063095ea7b31461013557806318160ddd1461017557806323b872dd1461018f575b600080fd5b6100b6610288565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610133610316565b005b6101616004803603604081101561014b57600080fd5b506001600160a01b0381351690602001356103d2565b604080519115158252519081900360200190f35b61017d6103ff565b60408051918252519081900360200190f35b610161600480360360608110156101a557600080fd5b506001600160a01b03813581169160208101359091169060400135610405565b6101cd610474565b6040805160ff9092168252519081900360200190f35b61017d600480360360208110156101f957600080fd5b50356001600160a01b031661047d565b6100b661048f565b6101336004803603602081101561022757600080fd5b50356104e9565b6101336004803603604081101561024457600080fd5b506001600160a01b038135169060200135610508565b61017d6004803603604081101561027057600080fd5b506001600160a01b0381358116916020013516610513565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030e5780601f106102e35761010080835404028352916020019161030e565b820191906000526020600020905b8154815290600101906020018083116102f157829003601f168201915b505050505081565b60048054604080516bffffffffffffffffffffffff19606084901b1660208083019190915282518083036014018152603483018085528151918301919091206001600160a01b039081166001600160a01b031990961695909517808755851660009081526005909252838220674563918244f4000090819055600380548201905595549590529151939092169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360540190a3565b3360009081526006602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561043557600080fd5b6001600160a01b038416600090815260066020908152604080832033845290915290208054839003905561046a848484610530565b5060019392505050565b60025460ff1681565b60056020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030e5780601f106102e35761010080835404028352916020019161030e565b60005b81811015610504576104fc610316565b6001016104ec565b5050565b610504338383610530565b600660209081526000928352604080842090915290825290205481565b6001600160a01b03821661054357600080fd5b6001600160a01b03831660009081526005602052604090205481111561056857600080fd5b6001600160a01b038216600090815260056020526040902054818101101561058f57600080fd5b6001600160a01b038083166000818152600560209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380841660009081526005602052604080822054928716825290205401811461062d57fe5b5050505056fea265627a7a723158205d2045430690a0f42c03f40dc75dfdc589148b76fc3294ee492c11d3bbb3037164736f6c634300051000320000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003444f4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003444f4d0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063313ce56711610071578063313ce567146101c557806370a08231146101e357806395d89b411461020957806397dc4a1314610211578063a9059cbb1461022e578063dd62ed3e1461025a576100a9565b806306fdde03146100ae578063090b58ca1461012b578063095ea7b31461013557806318160ddd1461017557806323b872dd1461018f575b600080fd5b6100b6610288565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610133610316565b005b6101616004803603604081101561014b57600080fd5b506001600160a01b0381351690602001356103d2565b604080519115158252519081900360200190f35b61017d6103ff565b60408051918252519081900360200190f35b610161600480360360608110156101a557600080fd5b506001600160a01b03813581169160208101359091169060400135610405565b6101cd610474565b6040805160ff9092168252519081900360200190f35b61017d600480360360208110156101f957600080fd5b50356001600160a01b031661047d565b6100b661048f565b6101336004803603602081101561022757600080fd5b50356104e9565b6101336004803603604081101561024457600080fd5b506001600160a01b038135169060200135610508565b61017d6004803603604081101561027057600080fd5b506001600160a01b0381358116916020013516610513565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030e5780601f106102e35761010080835404028352916020019161030e565b820191906000526020600020905b8154815290600101906020018083116102f157829003601f168201915b505050505081565b60048054604080516bffffffffffffffffffffffff19606084901b1660208083019190915282518083036014018152603483018085528151918301919091206001600160a01b039081166001600160a01b031990961695909517808755851660009081526005909252838220674563918244f4000090819055600380548201905595549590529151939092169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360540190a3565b3360009081526006602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561043557600080fd5b6001600160a01b038416600090815260066020908152604080832033845290915290208054839003905561046a848484610530565b5060019392505050565b60025460ff1681565b60056020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030e5780601f106102e35761010080835404028352916020019161030e565b60005b81811015610504576104fc610316565b6001016104ec565b5050565b610504338383610530565b600660209081526000928352604080842090915290825290205481565b6001600160a01b03821661054357600080fd5b6001600160a01b03831660009081526005602052604090205481111561056857600080fd5b6001600160a01b038216600090815260056020526040902054818101101561058f57600080fd5b6001600160a01b038083166000818152600560209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380841660009081526005602052604080822054928716825290205401811461062d57fe5b5050505056fea265627a7a723158205d2045430690a0f42c03f40dc75dfdc589148b76fc3294ee492c11d3bbb3037164736f6c63430005100032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003444f4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003444f4d0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 10000
Arg [1] : tokenName (string): DOM
Arg [2] : tokenSymbol (string): DOM

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 444f4d0000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 444f4d0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

30:4160:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30:4160:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;95:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1518:251;;;:::i;:::-;;4016:171;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4016:171:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;253:26;;;:::i;:::-;;;;;;;;;;;;;;;;3451:296;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3451:296:0;;;;;;;;;;;;;;;;;:::i;147:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;419:45;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;419:45:0;-1:-1:-1;;;;;419:45:0;;:::i;120:20::-;;;:::i;1781:135::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1781:135:0;;:::i;3064:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3064:107:0;;;;;;;;:::i;471:66::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;471:66:0;;;;;;;;;;:::i;95:18::-;;;;;;;;;;;;;;;-1:-1:-1;;95:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1518:251::-;1609:7;;;1592:25;;;-1:-1:-1;;1592:25:0;;;;;;;;;;;;;;;26:21:-1;;;1592:25:0;22:32:-1;6:49;;1592:25:0;;;;;;1582:36;;;;;;;;;-1:-1:-1;;;;;1559:61:0;;;-1:-1:-1;;;;;;1559:61:0;;;;;;;;;;1641:7;;1609;1631:18;;;:9;:18;;;;;;356:8;1631:33;;;;1675:11;:27;;;;;;1739:7;;1718:43;;;;;1739:7;;;;;1609;;1718:43;;;;;;;;;;1518:251::o;4016:171::-;4127:10;4092:12;4117:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;4117:31:0;;;;;;;;;;;;;:40;4175:4;;4016:171::o;253:26::-;;;;:::o;3451:296::-;-1:-1:-1;;;;;3576:16:0;;3533:12;3576:16;;;:9;:16;;;;;;;;3593:10;3576:28;;;;;;;;3566:38;;;3558:47;;;;;;-1:-1:-1;;;;;3639:16:0;;;;;;:9;:16;;;;;;;;3656:10;3639:28;;;;;;;:38;;;;;;;3688:29;3649:5;3705:3;3671:6;3688:9;:29::i;:::-;-1:-1:-1;3735:4:0;3451:296;;;;;:::o;147:26::-;;;;;;:::o;419:45::-;;;;;;;;;;;;;:::o;120:20::-;;;;;;;;;;;;;;;-1:-1:-1;;120:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1781:135;1840:9;1835:74;1854:9;1852:1;:11;1835:74;;;1884:13;:11;:13::i;:::-;1864:3;;1835:74;;;;1781:135;:::o;3064:107::-;3129:34;3139:10;3151:3;3156:6;3129:9;:34::i;471:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;2003:850::-;-1:-1:-1;;;;;2155:17:0;;2147:26;;;;;;-1:-1:-1;;;;;2235:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;2235:26:0;2227:35;;;;;;-1:-1:-1;;;;;2340:14:0;;;;;;:9;:14;;;;;;2313:23;;;:41;;2305:50;;;;;;-1:-1:-1;;;;;2462:14:0;;;2419:21;2462:14;;;:9;:14;;;;;;;;;;2443:16;;;;;;;;;;;2524:26;;;;;;2603:14;;;;:24;;;;;;;2643:28;;;;;;;2443:33;;;;;:16;2643:28;;;;;;;;;;;-1:-1:-1;;;;;2810:14:0;;;;;;;:9;:14;;;;;;;2791:16;;;;;;;;:33;:53;;2784:61;;;;2003:850;;;;:::o

Swarm Source

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