ETH Price: $2,977.58 (+1.11%)
Gas: 5 Gwei

Token

Doitdo Axis (DIDO)
 

Overview

Max Total Supply

300,000,000 DIDO

Holders

17

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:
DIDOToken

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-20
*/

pragma solidity ^0.4.21;

// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
    function add(uint a, uint b) internal pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function sub(uint a, uint b) internal pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }
    function mul(uint a, uint b) internal pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function div(uint a, uint b) internal pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}

contract ERC20Token {

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) public view returns (uint balance);

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint _value) public returns (bool success);

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint _value) public returns (bool success);

    /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of wei to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint _value) public returns (bool success);

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) public view returns (uint remaining);

    event Transfer(address indexed _from, address indexed _to, uint _value);
    event Approval(address indexed _owner, address indexed _spender, uint _value);
}


// ----------------------------------------------------------------------------
// Contract function to receive approval and execute function in one call
//
// Borrowed from MiniMeToken
// ----------------------------------------------------------------------------
contract ApproveAndCallFallBack {
    function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
}

//------------------------------------------------------------------------
// This Token Contract implements the standard token functionality (https://github.com/ethereum/EIPs/issues/20) as well as the following OPTIONAL extras intended for use by humans.
//
// In other words. This is intended for deployment in something like a Token Factory or Mist wallet, and then used by humans.
// Imagine coins, currencies, shares, voting weight, etc.
// Machine-based, rapid creation of many tokens would not necessarily need these extra features or will be minted in other manners.
//
// 1) Initial Finite Supply (upon creation one specifies how much is minted).
// 2) In the absence of a token registry: Optional Decimal, Symbol & Name.
// 3) Optional approveAndCall() functionality to notify a contract if an approval() has occurred.
// ------------------------------------------------------------------------
contract DIDOToken is ERC20Token {
    using SafeMath for uint;

    mapping (address => uint) balances;
    mapping (address => mapping (address => uint)) allowed;

    /// ------------------------------------------------------------------------
    ///  Public variables of the token
    ///
    /// NOTE:
    /// The following variables are OPTIONAL vanities. One does not have to include them.
    /// They allow one to customise the token contract & in no way influences the core functionality.
    /// Some wallets/interfaces might not even bother to look at this information.
    /// ------------------------------------------------------------------------
    string public name;                   //fancy name: eg Simon Bucks
    uint8  public decimals;               //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 ether.
    string public symbol;                 //An identifier: eg SBX
    string public version = 'H0.1';       //human 0.1 standard. Just an arbitrary versioning scheme.
    uint   public totalSupply;

    // ------------------------------------------------------------------------
    // Don't accept ETH
    // ------------------------------------------------------------------------
    function() external payable {
        revert();
    }
    
    constructor() public {
        symbol   = "DIDO";                              // Set the symbol for display purposes
        name     = "Doitdo Axis";                       // Set the name for display purposes
        decimals = 18;                                  // Amount of decimals for display purposes

        totalSupply = 3 * 10**26;                      // Update total supply
        balances[msg.sender] = totalSupply;            // Give the creator all initial tokens
    }

    function transfer(address _to, uint _value) public returns (bool) {
        /// Default assumes totalSupply can't be over max (2^256 - 1).
        /// If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap.
        /// Replace the if with this one instead.
        /// if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
        if (_value > 0 && balances[msg.sender] >= _value) {
            balances[msg.sender] = balances[msg.sender].sub(_value);
            balances[_to] = balances[_to].add(_value);
            emit Transfer(msg.sender, _to, _value);
            return true;
        } else {
            return false;
        }
    }

    function transferFrom(address _from, address _to, uint _value) public returns (bool) {
        /// same as above. Replace this line with the following if you want to protect against wrapping uints.
        /// if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
        if (_value > 0 && balances[_from] >= _value && allowed[_from][msg.sender] >= _value) {
            balances[_to] = balances[_to].add(_value);
            balances[_from] = balances[_to].sub(_value);
            allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
            emit Transfer(_from, _to, _value);
            return true;
        } else {
            return false;
        }
    }

    function balanceOf(address _owner) public view returns (uint balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint _value) public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) public view returns (uint remaining) {
        return allowed[_owner][_spender];
    }
    
    //// Approves and then calls the receiving contract
    function approveAndCall(address _spender, uint _value, bytes _extraData) public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);

        ApproveAndCallFallBack(_spender).receiveApproval(msg.sender, _value, this, _extraData);
        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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","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":"","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":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"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":"_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"}]

60c0604052600460808190527f48302e310000000000000000000000000000000000000000000000000000000060a090815261003e9160059190610107565b5034801561004b57600080fd5b506040805180820190915260048082527f4449444f00000000000000000000000000000000000000000000000000000000602090920191825261008e9181610107565b5060408051808201909152600b8082527f446f6974646f204178697300000000000000000000000000000000000000000060209092019182526100d391600291610107565b506003805460ff191660121790556af8277896582678ac0000006006819055336000908152602081905260409020556101a2565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014857805160ff1916838001178555610175565b82800160010185558215610175579182015b8281111561017557825182559160200191906001019061015a565b50610181929150610185565b5090565b61019f91905b80821115610181576000815560010161018b565b90565b6108d9806101b16000396000f3006080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017557806323b872dd1461019c578063313ce567146101c657806354fd4d50146101f157806370a082311461020657806395d89b4114610227578063a9059cbb1461023c578063cae9ca5114610260578063dd62ed3e146102c9575b600080fd5b3480156100bf57600080fd5b506100c86102f0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101025781810151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014957600080fd5b50610161600160a060020a036004351660243561037b565b604080519115158252519081900360200190f35b34801561018157600080fd5b5061018a6103e2565b60408051918252519081900360200190f35b3480156101a857600080fd5b50610161600160a060020a03600435811690602435166044356103e8565b3480156101d257600080fd5b506101db610548565b6040805160ff9092168252519081900360200190f35b3480156101fd57600080fd5b506100c8610551565b34801561021257600080fd5b5061018a600160a060020a03600435166105ac565b34801561023357600080fd5b506100c86105c7565b34801561024857600080fd5b50610161600160a060020a0360043516602435610622565b34801561026c57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610161948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506106fc9650505050505050565b3480156102d557600080fd5b5061018a600160a060020a036004358116906024351661085d565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156103735780601f1061034857610100808354040283529160200191610373565b820191906000526020600020905b81548152906001019060200180831161035657829003601f168201915b505050505081565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60065481565b600080821180156104115750600160a060020a0384166000908152602081905260409020548211155b80156104405750600160a060020a03841660009081526001602090815260408083203384529091529020548211155b1561053d57600160a060020a03831660009081526020819052604090205461046e908363ffffffff61088816565b600160a060020a0384166000908152602081905260409020819055610499908363ffffffff61089816565b600160a060020a0385166000908152602081815260408083209390935560018152828220338352905220546104d4908363ffffffff61089816565b600160a060020a03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610541565b5060005b9392505050565b60035460ff1681565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103735780601f1061034857610100808354040283529160200191610373565b600160a060020a031660009081526020819052604090205490565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103735780601f1061034857610100808354040283529160200191610373565b600080821180156106425750336000908152602081905260409020548211155b156106f45733600090815260208190526040902054610667908363ffffffff61089816565b3360009081526020819052604080822092909255600160a060020a03851681522054610699908363ffffffff61088816565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016103dc565b5060006103dc565b336000818152600160209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a36040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018690523060448401819052608060648501908152865160848601528651600160a060020a038a1695638f4ffcb195948a94938a939192909160a490910190602085019080838360005b838110156107ec5781810151838201526020016107d4565b50505050905090810190601f1680156108195780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561083b57600080fd5b505af115801561084f573d6000803e3d6000fd5b506001979650505050505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b818101828110156103dc57600080fd5b6000828211156108a757600080fd5b509003905600a165627a7a72305820853b28e4c61cc990e0d2d9d4edd54d4b0e479bf4facfa7ab271644027ae7794b0029

Deployed Bytecode

0x6080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017557806323b872dd1461019c578063313ce567146101c657806354fd4d50146101f157806370a082311461020657806395d89b4114610227578063a9059cbb1461023c578063cae9ca5114610260578063dd62ed3e146102c9575b600080fd5b3480156100bf57600080fd5b506100c86102f0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101025781810151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014957600080fd5b50610161600160a060020a036004351660243561037b565b604080519115158252519081900360200190f35b34801561018157600080fd5b5061018a6103e2565b60408051918252519081900360200190f35b3480156101a857600080fd5b50610161600160a060020a03600435811690602435166044356103e8565b3480156101d257600080fd5b506101db610548565b6040805160ff9092168252519081900360200190f35b3480156101fd57600080fd5b506100c8610551565b34801561021257600080fd5b5061018a600160a060020a03600435166105ac565b34801561023357600080fd5b506100c86105c7565b34801561024857600080fd5b50610161600160a060020a0360043516602435610622565b34801561026c57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610161948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506106fc9650505050505050565b3480156102d557600080fd5b5061018a600160a060020a036004358116906024351661085d565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156103735780601f1061034857610100808354040283529160200191610373565b820191906000526020600020905b81548152906001019060200180831161035657829003601f168201915b505050505081565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60065481565b600080821180156104115750600160a060020a0384166000908152602081905260409020548211155b80156104405750600160a060020a03841660009081526001602090815260408083203384529091529020548211155b1561053d57600160a060020a03831660009081526020819052604090205461046e908363ffffffff61088816565b600160a060020a0384166000908152602081905260409020819055610499908363ffffffff61089816565b600160a060020a0385166000908152602081815260408083209390935560018152828220338352905220546104d4908363ffffffff61089816565b600160a060020a03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610541565b5060005b9392505050565b60035460ff1681565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103735780601f1061034857610100808354040283529160200191610373565b600160a060020a031660009081526020819052604090205490565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103735780601f1061034857610100808354040283529160200191610373565b600080821180156106425750336000908152602081905260409020548211155b156106f45733600090815260208190526040902054610667908363ffffffff61089816565b3360009081526020819052604080822092909255600160a060020a03851681522054610699908363ffffffff61088816565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016103dc565b5060006103dc565b336000818152600160209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a36040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018690523060448401819052608060648501908152865160848601528651600160a060020a038a1695638f4ffcb195948a94938a939192909160a490910190602085019080838360005b838110156107ec5781810151838201526020016107d4565b50505050905090810190601f1680156108195780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561083b57600080fd5b505af115801561084f573d6000803e3d6000fd5b506001979650505050505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b818101828110156103dc57600080fd5b6000828211156108a757600080fd5b509003905600a165627a7a72305820853b28e4c61cc990e0d2d9d4edd54d4b0e479bf4facfa7ab271644027ae7794b0029

Swarm Source

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