ETH Price: $3,193.06 (+5.25%)

Token

AdToken (ADT goo.gl/SpdpxN)
 

Overview

Max Total Supply

400,000,000 ADT goo.gl/SpdpxN

Holders

42,977

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,000 ADT goo.gl/SpdpxN

Value
$0.00
0xcFAC6774380133BE5873B140Ef0fA90d814c58bc
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:
ADT

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.4.20;


contract ERC20Interface {
    uint256 public totalSupply;
    function balanceOf(address _owner) public view returns (uint256 balance);
    function transfer(address _to, uint256 _value) public returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
    function approve(address _spender, uint256 _value) public returns (bool success);
    function allowance(address _owner, address _spender) public view returns (uint256 remaining);
    event Transfer(address indexed _from, address indexed _to, uint256 _value); 
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}


contract ADT is ERC20Interface {
    string public name = "AdToken";
    string public symbol = "ADT goo.gl/SpdpxN";
    uint8 public decimals = 18;                
    
    uint256 stdBalance;
    mapping (address => uint256) balances;
    address owner;
    bool paused;
    
    function ADT() public {
        owner = msg.sender;
        totalSupply = 400000000 * 1e18;
        stdBalance = 1000 * 1e18;
        paused = false;
    }
    
    function transfer(address _to, uint256 _value) public returns (bool) {
        emit Transfer(msg.sender, _to, _value);
        return true;
    }
    
    function transferFrom(address _from, address _to, uint256 _value)
        public returns (bool success)
    {
        emit Transfer(_from, _to, _value);
        return true;
    }
    
    function pause() public {
        require(msg.sender == owner);
        paused = true;
    }
    
    function unpause() public {
        require(msg.sender == owner);
        paused = false;
    }
    
    function setAd(string _name, string _symbol) public {
        require(owner == msg.sender);
        name = _name;
        symbol = _symbol;
    }

    function balanceOf(address _owner) public view returns (uint256 balance) {
        if (paused){
            return 0;
        }
        else {
            return stdBalance+balances[_owner];
        }
    }

    function approve(address _spender, uint256 _value) public returns (bool) {
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) public view returns (uint256) {
        return 0;
    }
    
    function() public payable {
        owner.transfer(msg.value);
    }
    
    function withdrawTokens(address _address, uint256 _amount) public returns (bool) {
        return ERC20Interface(_address).transfer(owner, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":"","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":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"name":"setAd","outputs":[],"payable":false,"stateMutability":"nonpayable","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"}]

60606040526040805190810160405280600781526020017f4164546f6b656e000000000000000000000000000000000000000000000000008152506001908051906020019061004f929190610147565b506040805190810160405280601181526020017f41445420676f6f2e676c2f53706470784e0000000000000000000000000000008152506002908051906020019061009b929190610147565b506012600360006101000a81548160ff021916908360ff16021790555034156100c357600080fd5b33600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506b014adf4b7320334b90000000600081905550683635c9adc5dea000006004819055506000600660146101000a81548160ff0219169083151502179055506101ec565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061018857805160ff19168380011785556101b6565b828001600101855582156101b6579182015b828111156101b557825182559160200191906001019061019a565b5b5090506101c391906101c7565b5090565b6101e991905b808211156101e55760008160009055506001016101cd565b5090565b90565b610bfd806101fb6000396000f3006060604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306b091f91461012957806306fdde0314610183578063095ea7b31461021157806318160ddd1461026b57806323b872dd14610294578063313ce5671461030d5780633f4ba83a1461033c57806370a08231146103515780638456cb591461039e57806395d89b41146103b3578063a9059cbb14610441578063dd62ed3e1461049b578063e6b09e9214610507575b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561012757600080fd5b005b341561013457600080fd5b610169600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506105a7565b604051808215151515815260200191505060405180910390f35b341561018e57600080fd5b61019661068c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101d65780820151818401526020810190506101bb565b50505050905090810190601f1680156102035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021c57600080fd5b610251600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061072a565b604051808215151515815260200191505060405180910390f35b341561027657600080fd5b61027e61079b565b6040518082815260200191505060405180910390f35b341561029f57600080fd5b6102f3600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506107a1565b604051808215151515815260200191505060405180910390f35b341561031857600080fd5b610320610813565b604051808260ff1660ff16815260200191505060405180910390f35b341561034757600080fd5b61034f610826565b005b341561035c57600080fd5b610388600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061089f565b6040518082815260200191505060405180910390f35b34156103a957600080fd5b6103b161090b565b005b34156103be57600080fd5b6103c6610984565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104065780820151818401526020810190506103eb565b50505050905090810190601f1680156104335780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561044c57600080fd5b610481600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610a22565b604051808215151515815260200191505060405180910390f35b34156104a657600080fd5b6104f1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a93565b6040518082815260200191505060405180910390f35b341561051257600080fd5b6105a5600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610a9e565b005b60008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561066d57600080fd5b5af1151561067a57600080fd5b50505060405180519050905092915050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b505050505081565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600360009054906101000a900460ff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561088257600080fd5b6000600660146101000a81548160ff021916908315150217905550565b6000600660149054906101000a900460ff16156108bf5760009050610906565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546004540190505b919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561096757600080fd5b6001600660146101000a81548160ff021916908315150217905550565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a1a5780601f106109ef57610100808354040283529160200191610a1a565b820191906000526020600020905b8154815290600101906020018083116109fd57829003601f168201915b505050505081565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600080905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610afa57600080fd5b8160019080519060200190610b10929190610b2c565b508060029080519060200190610b27929190610b2c565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b6d57805160ff1916838001178555610b9b565b82800160010185558215610b9b579182015b82811115610b9a578251825591602001919060010190610b7f565b5b509050610ba89190610bac565b5090565b610bce91905b80821115610bca576000816000905550600101610bb2565b5090565b905600a165627a7a72305820b3c2fb01104740f93eb3175b2bf9fcc7c50736b610e7627e2e9cdfdb4871a36b0029

Deployed Bytecode

0x6060604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306b091f91461012957806306fdde0314610183578063095ea7b31461021157806318160ddd1461026b57806323b872dd14610294578063313ce5671461030d5780633f4ba83a1461033c57806370a08231146103515780638456cb591461039e57806395d89b41146103b3578063a9059cbb14610441578063dd62ed3e1461049b578063e6b09e9214610507575b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561012757600080fd5b005b341561013457600080fd5b610169600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506105a7565b604051808215151515815260200191505060405180910390f35b341561018e57600080fd5b61019661068c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101d65780820151818401526020810190506101bb565b50505050905090810190601f1680156102035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021c57600080fd5b610251600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061072a565b604051808215151515815260200191505060405180910390f35b341561027657600080fd5b61027e61079b565b6040518082815260200191505060405180910390f35b341561029f57600080fd5b6102f3600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506107a1565b604051808215151515815260200191505060405180910390f35b341561031857600080fd5b610320610813565b604051808260ff1660ff16815260200191505060405180910390f35b341561034757600080fd5b61034f610826565b005b341561035c57600080fd5b610388600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061089f565b6040518082815260200191505060405180910390f35b34156103a957600080fd5b6103b161090b565b005b34156103be57600080fd5b6103c6610984565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104065780820151818401526020810190506103eb565b50505050905090810190601f1680156104335780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561044c57600080fd5b610481600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610a22565b604051808215151515815260200191505060405180910390f35b34156104a657600080fd5b6104f1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a93565b6040518082815260200191505060405180910390f35b341561051257600080fd5b6105a5600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610a9e565b005b60008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561066d57600080fd5b5af1151561067a57600080fd5b50505060405180519050905092915050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b505050505081565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600360009054906101000a900460ff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561088257600080fd5b6000600660146101000a81548160ff021916908315150217905550565b6000600660149054906101000a900460ff16156108bf5760009050610906565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546004540190505b919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561096757600080fd5b6001600660146101000a81548160ff021916908315150217905550565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a1a5780601f106109ef57610100808354040283529160200191610a1a565b820191906000526020600020905b8154815290600101906020018083116109fd57829003601f168201915b505050505081565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600080905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610afa57600080fd5b8160019080519060200190610b10929190610b2c565b508060029080519060200190610b27929190610b2c565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b6d57805160ff1916838001178555610b9b565b82800160010185558215610b9b579182015b82811115610b9a578251825591602001919060010190610b7f565b5b509050610ba89190610bac565b5090565b610bce91905b80821115610bca576000816000905550600101610bb2565b5090565b905600a165627a7a72305820b3c2fb01104740f93eb3175b2bf9fcc7c50736b610e7627e2e9cdfdb4871a36b0029

Swarm Source

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