ERC-20
Overview
Max Total Supply
50,000,000 ADNET
Holders
25
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AdvertisingNetwork
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-24 */ pragma solidity ^0.4.18; contract owned { address public owner; address public candidate; function owned() payable internal { owner = msg.sender; } modifier onlyOwner { require(owner == msg.sender); _; } function changeOwner(address _owner) onlyOwner public { candidate = _owner; } function confirmOwner() public { require(candidate != address(0)); require(candidate == msg.sender); owner = candidate; delete candidate; } } library SafeMath { function sub(uint256 a, uint256 b) pure internal returns (uint256) { assert(a >= b); return a - b; } function add(uint256 a, uint256 b) pure internal returns (uint256) { uint256 c = a + b; assert(c >= a && c >= b); return c; } } contract ERC20 { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256 value); function allowance(address owner, address spender) public constant returns (uint256 _allowance); 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); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract AdvertisingNetwork is ERC20, owned { using SafeMath for uint256; string public name = "AdvertisingNetwork"; string public symbol = "ADNET"; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) private balances; mapping (address => mapping (address => uint256)) private allowed; function balanceOf(address _who) public constant returns (uint256) { return balances[_who]; } function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } function AdvertisingNetwork() public { totalSupply = 50000000 * 1 ether; balances[msg.sender] = totalSupply; Transfer(0, msg.sender, totalSupply); } function transfer(address _to, uint256 _value) public returns (bool success) { require(_to != address(0)); require(balances[msg.sender] >= _value); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_to != address(0)); require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { require(_spender != address(0)); require(balances[msg.sender] >= _value); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function withdrawTokens(uint256 _value) public onlyOwner { require(balances[this] >= _value); balances[this] = balances[this].sub(_value); balances[msg.sender] = balances[msg.sender].add(_value); Transfer(this, msg.sender, _value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"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":"_value","type":"uint256"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"candidate","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","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":false,"inputs":[{"name":"_owner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[],"name":"confirmOwner","outputs":[],"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"},{"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"}]
Contract Creation Code
606060405260408051908101604052601281527f4164766572746973696e674e6574776f726b00000000000000000000000000006020820152600390805161004b929160200190610125565b5060408051908101604052600581527f41444e455400000000000000000000000000000000000000000000000000000060208201526004908051610093929160200190610125565b506005805460ff1916601217905534156100ac57600080fd5b60018054600160a060020a03191633600160a060020a03169081179091556a295be96e64066972000000600681905560008281526007602052604080822083905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef915190815260200160405180910390a36101c0565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061016657805160ff1916838001178555610193565b82800160010185558215610193579182015b82811115610193578251825591602001919060010190610178565b5061019f9291506101a3565b5090565b6101bd91905b8082111561019f57600081556001016101a9565b90565b6109c0806101cf6000396000f3006060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019457806323b872dd146101b9578063313ce567146101e1578063315a095d1461020a5780636c8381f81461022257806370a08231146102515780638da5cb5b1461027057806395d89b4114610283578063a6f9dae114610296578063a9059cbb146102b5578063bd9b6d86146102d7578063dd62ed3e146102ea575b600080fd5b34156100df57600080fd5b6100e761030f565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012357808201518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016957600080fd5b610180600160a060020a03600435166024356103ad565b604051901515815260200160405180910390f35b341561019f57600080fd5b6101a7610453565b60405190815260200160405180910390f35b34156101c457600080fd5b610180600160a060020a0360043581169060243516604435610459565b34156101ec57600080fd5b6101f46105df565b60405160ff909116815260200160405180910390f35b341561021557600080fd5b6102206004356105e8565b005b341561022d57600080fd5b6102356106e3565b604051600160a060020a03909116815260200160405180910390f35b341561025c57600080fd5b6101a7600160a060020a03600435166106f2565b341561027b57600080fd5b61023561070d565b341561028e57600080fd5b6100e761071c565b34156102a157600080fd5b610220600160a060020a0360043516610787565b34156102c057600080fd5b610180600160a060020a03600435166024356107d1565b34156102e257600080fd5b6102206108cd565b34156102f557600080fd5b6101a7600160a060020a0360043581169060243516610933565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a55780601f1061037a576101008083540402835291602001916103a5565b820191906000526020600020905b81548152906001019060200180831161038857829003601f168201915b505050505081565b6000600160a060020a03831615156103c457600080fd5b600160a060020a033316600090815260076020526040902054829010156103ea57600080fd5b600160a060020a03338116600081815260086020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60065481565b6000600160a060020a038316151561047057600080fd5b600160a060020a0384166000908152600760205260409020548290108015906104c05750600160a060020a0380851660009081526008602090815260408083203390941683529290522054829010155b15156104cb57600080fd5b600160a060020a0380851660009081526008602090815260408083203390941683529290522054610502908363ffffffff61095e16565b600160a060020a038086166000818152600860209081526040808320339095168352938152838220949094559081526007909252902054610549908363ffffffff61095e16565b600160a060020a03808616600090815260076020526040808220939093559085168152205461057e908363ffffffff61097016565b600160a060020a03808516600081815260076020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60055460ff1681565b60015433600160a060020a0390811691161461060357600080fd5b600160a060020a0330166000908152600760205260409020548190101561062957600080fd5b600160a060020a033016600090815260076020526040902054610652908263ffffffff61095e16565b600160a060020a03308116600090815260076020526040808220939093553390911681522054610688908263ffffffff61097016565b600160a060020a0333811660008181526007602052604090819020939093559130909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a350565b600254600160a060020a031681565b600160a060020a031660009081526007602052604090205490565b600154600160a060020a031681565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a55780601f1061037a576101008083540402835291602001916103a5565b60015433600160a060020a039081169116146107a257600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a03831615156107e857600080fd5b600160a060020a0333166000908152600760205260409020548290101561080e57600080fd5b600160a060020a033316600090815260076020526040902054610837908363ffffffff61095e16565b600160a060020a03338116600090815260076020526040808220939093559085168152205461086c908363ffffffff61097016565b600160a060020a0380851660008181526007602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600254600160a060020a031615156108e457600080fd5b60025433600160a060020a039081169116146108ff57600080fd5b600280546001805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b60008183101561096a57fe5b50900390565b60008282018381108015906109855750828110155b151561098d57fe5b93925050505600a165627a7a723058203aea3a0e692bf6ae5b90038ae8d31dd022ba9ce87d8a2f4d586e71c8aa29c6870029
Deployed Bytecode
0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019457806323b872dd146101b9578063313ce567146101e1578063315a095d1461020a5780636c8381f81461022257806370a08231146102515780638da5cb5b1461027057806395d89b4114610283578063a6f9dae114610296578063a9059cbb146102b5578063bd9b6d86146102d7578063dd62ed3e146102ea575b600080fd5b34156100df57600080fd5b6100e761030f565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012357808201518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016957600080fd5b610180600160a060020a03600435166024356103ad565b604051901515815260200160405180910390f35b341561019f57600080fd5b6101a7610453565b60405190815260200160405180910390f35b34156101c457600080fd5b610180600160a060020a0360043581169060243516604435610459565b34156101ec57600080fd5b6101f46105df565b60405160ff909116815260200160405180910390f35b341561021557600080fd5b6102206004356105e8565b005b341561022d57600080fd5b6102356106e3565b604051600160a060020a03909116815260200160405180910390f35b341561025c57600080fd5b6101a7600160a060020a03600435166106f2565b341561027b57600080fd5b61023561070d565b341561028e57600080fd5b6100e761071c565b34156102a157600080fd5b610220600160a060020a0360043516610787565b34156102c057600080fd5b610180600160a060020a03600435166024356107d1565b34156102e257600080fd5b6102206108cd565b34156102f557600080fd5b6101a7600160a060020a0360043581169060243516610933565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a55780601f1061037a576101008083540402835291602001916103a5565b820191906000526020600020905b81548152906001019060200180831161038857829003601f168201915b505050505081565b6000600160a060020a03831615156103c457600080fd5b600160a060020a033316600090815260076020526040902054829010156103ea57600080fd5b600160a060020a03338116600081815260086020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60065481565b6000600160a060020a038316151561047057600080fd5b600160a060020a0384166000908152600760205260409020548290108015906104c05750600160a060020a0380851660009081526008602090815260408083203390941683529290522054829010155b15156104cb57600080fd5b600160a060020a0380851660009081526008602090815260408083203390941683529290522054610502908363ffffffff61095e16565b600160a060020a038086166000818152600860209081526040808320339095168352938152838220949094559081526007909252902054610549908363ffffffff61095e16565b600160a060020a03808616600090815260076020526040808220939093559085168152205461057e908363ffffffff61097016565b600160a060020a03808516600081815260076020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60055460ff1681565b60015433600160a060020a0390811691161461060357600080fd5b600160a060020a0330166000908152600760205260409020548190101561062957600080fd5b600160a060020a033016600090815260076020526040902054610652908263ffffffff61095e16565b600160a060020a03308116600090815260076020526040808220939093553390911681522054610688908263ffffffff61097016565b600160a060020a0333811660008181526007602052604090819020939093559130909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a350565b600254600160a060020a031681565b600160a060020a031660009081526007602052604090205490565b600154600160a060020a031681565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a55780601f1061037a576101008083540402835291602001916103a5565b60015433600160a060020a039081169116146107a257600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a03831615156107e857600080fd5b600160a060020a0333166000908152600760205260409020548290101561080e57600080fd5b600160a060020a033316600090815260076020526040902054610837908363ffffffff61095e16565b600160a060020a03338116600090815260076020526040808220939093559085168152205461086c908363ffffffff61097016565b600160a060020a0380851660008181526007602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600254600160a060020a031615156108e457600080fd5b60025433600160a060020a039081169116146108ff57600080fd5b600280546001805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b60008183101561096a57fe5b50900390565b60008282018381108015906109855750828110155b151561098d57fe5b93925050505600a165627a7a723058203aea3a0e692bf6ae5b90038ae8d31dd022ba9ce87d8a2f4d586e71c8aa29c6870029
Swarm Source
bzzr://3aea3a0e692bf6ae5b90038ae8d31dd022ba9ce87d8a2f4d586e71c8aa29c687
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.