Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
3,141,592 XBTY
Holders
618
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:
BountyToken
Compiler Version
v0.4.8+commit.60cc1668
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-03-28 */ pragma solidity ^0.4.2; contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); } contract BountyToken { event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); event BlockLockSet(uint256 _value); event NewOwner(address _newOwner); modifier onlyOwner { if (msg.sender == owner) { _; } } modifier blockLock(address _sender) { if (!isLocked() || _sender == owner) { _; } } modifier checkIfToContract(address _to) { if(_to != address(this)) { _; } } uint256 public totalSupply; string public name; uint8 public decimals; string public symbol; string public version = '0.0.1'; address public owner; uint256 public lockedUntilBlock; function BountyToken( uint256 _initialAmount, string _tokenName, uint8 _decimalUnits, string _tokenSymbol, uint256 _lockedUntilBlock ) { balances[msg.sender] = _initialAmount; totalSupply = _initialAmount; name = _tokenName; decimals = _decimalUnits; symbol = _tokenSymbol; lockedUntilBlock = _lockedUntilBlock; owner = msg.sender; } function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } function transfer(address _to, uint256 _value) blockLock(msg.sender) checkIfToContract(_to) returns (bool success) { if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) blockLock(_from) checkIfToContract(_to) returns (bool success) { if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; } function setBlockLock(uint256 _lockedUntilBlock) onlyOwner returns (bool success) { lockedUntilBlock = _lockedUntilBlock; BlockLockSet(_lockedUntilBlock); return true; } function isLocked() constant returns (bool success) { return lockedUntilBlock > block.number; } function replaceOwner(address _newOwner) onlyOwner returns (bool success) { owner = _newOwner; NewOwner(_newOwner); return true; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_lockedUntilBlock","type":"uint256"}],"name":"setBlockLock","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"replaceOwner","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isLocked","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"lockedUntilBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_initialAmount","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_lockedUntilBlock","type":"uint256"}],"payable":false,"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"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_value","type":"uint256"}],"name":"BlockLockSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_newOwner","type":"address"}],"name":"NewOwner","type":"event"}]
Contract Creation Code
60a0604052600560608190527f302e302e3100000000000000000000000000000000000000000000000000000060809081526004805460008290527f302e302e3100000000000000000000000000000000000000000000000000000a825590927f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b602060026001851615610100026000190190941693909304601f0192909204820192909190620000db565b82800160010185558215620000db579182015b82811115620000db578251825591602001919060010190620000be565b5b50620000ff9291505b80821115620000fb5760008155600101620000e5565b5090565b505034620000005760405162000eef38038062000eef83398101604090815281516020830151918301516060840151608085015192949384019391929101905b33600160a060020a03166000908152600760209081526040822087905586825585516001805493819052927fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6600282861615610100026000190190921691909104601f908101849004820193890190839010620001c857805160ff1916838001178555620001f8565b82800160010185558215620001f8579182015b82811115620001f8578251825591602001919060010190620001db565b5b506200021c9291505b80821115620000fb5760008155600101620000e5565b5090565b50506002805460ff191660ff8516178155825160038054600082905290927fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60206101006001851615026000190190931691909104601f908101839004820193928701908390106200029a57805160ff1916838001178555620002ca565b82800160010185558215620002ca579182015b82811115620002ca578251825591602001919060010190620002ad565b5b50620002ee9291505b80821115620000fb5760008155600101620000e5565b5090565b5050600681905560058054600160a060020a03191633600160a060020a03161790555b50505050505b610bc880620003276000396000f300606060405236156100ca5763ffffffff60e060020a60003504166306fdde0381146100cf578063095ea7b31461015c57806318160ddd1461018c57806323b872dd146101ab578063313ce567146101e1578063366a68dc1461020457806354fd4d501461022857806370a08231146102b55780638da5cb5b146102e057806395d89b4114610309578063a39a45b714610396578063a4e2d634146103c3578063a9059cbb146103e4578063cae9ca5114610414578063d8162db714610488578063dd62ed3e146104a7575b610000565b34610000576100dc6104d8565b604080516020808252835181830152835191928392908301918501908083838215610122575b80518252602083111561012257601f199092019160209182019101610102565b505050905090810190601f16801561014e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610178600160a060020a0360043516602435610565565b604080519115158252519081900360200190f35b34610000576101996105d0565b60408051918252519081900360200190f35b3461000057610178600160a060020a03600435811690602435166044356105d6565b604080519115158252519081900360200190f35b34610000576101ee610719565b6040805160ff9092168252519081900360200190f35b3461000057610178600435610722565b604080519115158252519081900360200190f35b34610000576100dc61077f565b604080516020808252835181830152835191928392908301918501908083838215610122575b80518252602083111561012257601f199092019160209182019101610102565b505050905090810190601f16801561014e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610199600160a060020a036004351661080d565b60408051918252519081900360200190f35b34610000576102ed61082c565b60408051600160a060020a039092168252519081900360200190f35b34610000576100dc61083b565b604080516020808252835181830152835191928392908301918501908083838215610122575b80518252602083111561012257601f199092019160209182019101610102565b505050905090810190601f16801561014e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610178600160a060020a03600435166108c9565b604080519115158252519081900360200190f35b346100005761017861094c565b604080519115158252519081900360200190f35b3461000057610178600160a060020a0360043516602435610956565b604080519115158252519081900360200190f35b3461000057604080516020600460443581810135601f8101849004840285018401909552848452610178948235600160a060020a0316946024803595606494929391909201918190840183828082843750949650610a4b95505050505050565b604080519115158252519081900360200190f35b3461000057610199610b69565b60408051918252519081900360200190f35b3461000057610199600160a060020a0360043581169060243516610b6f565b60408051918252519081900360200190f35b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b600160a060020a03338116600081815260086020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60005481565b6000836105e161094c565b15806105fa5750600554600160a060020a038281169116145b15610710578330600160a060020a031681600160a060020a031614151561070b57600160a060020a03861660009081526007602052604090205484901080159061066b5750600160a060020a0380871660009081526008602090815260408083203390941683529290522054849010155b80156106775750600084115b1561070657600160a060020a03808616600081815260076020908152604080832080548a0190558a851680845281842080548b90039055600883528184203390961684529482529182902080548990039055815188815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36001925061070b565b600092505b5b5b5b505b5b509392505050565b60025460ff1681565b60055460009033600160a060020a03908116911614156107785760068290556040805183815290517f6c04066f6ede40cc1642c211ba9d18f1a096ccc84fb8d11be28ea6c3c6f68b369181900360200190a15060015b5b5b919050565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b600160a060020a0381166000908152600760205260409020545b919050565b600554600160a060020a031681565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b60055460009033600160a060020a03908116911614156107785760058054600160a060020a03841673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252517f3edd90e7770f06fafde38004653b33870066c33bfc923ff6102acd601f85dfbc9181900360200190a15060015b5b5b919050565b6006544390115b90565b60003361096161094c565b158061097a5750600554600160a060020a038281169116145b15610a43578330600160a060020a031681600160a060020a0316141515610a3e57600160a060020a0333166000908152600760205260409020548490108015906109c45750600084115b15610a3957600160a060020a03338116600081815260076020908152604080832080548a90039055938916808352918490208054890190558351888152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a360019250610a3e565b600092505b5b5b5b505b5b5092915050565b600083610a588185610565565b156107105780600160a060020a0316638f4ffcb1338630876040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360008314610b03575b805182526020831115610b0357601f199092019160209182019101610ae3565b505050905090810190601f168015610b2f5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b156100005760325a03f1156100005750505060019150610710565b5b509392505050565b60065481565b600160a060020a038083166000908152600860209081526040808320938516835292905220545b929150505600a165627a7a7230582020445b19973297dd2ada628eaf99cccf170abaf59179ac8b3c090d05371fd99400290000000000000000000000000000000000000000000299420b279c379860000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000346b320000000000000000000000000000000000000000000000000000000000000006426f756e7479000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045842545900000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x606060405236156100ca5763ffffffff60e060020a60003504166306fdde0381146100cf578063095ea7b31461015c57806318160ddd1461018c57806323b872dd146101ab578063313ce567146101e1578063366a68dc1461020457806354fd4d501461022857806370a08231146102b55780638da5cb5b146102e057806395d89b4114610309578063a39a45b714610396578063a4e2d634146103c3578063a9059cbb146103e4578063cae9ca5114610414578063d8162db714610488578063dd62ed3e146104a7575b610000565b34610000576100dc6104d8565b604080516020808252835181830152835191928392908301918501908083838215610122575b80518252602083111561012257601f199092019160209182019101610102565b505050905090810190601f16801561014e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610178600160a060020a0360043516602435610565565b604080519115158252519081900360200190f35b34610000576101996105d0565b60408051918252519081900360200190f35b3461000057610178600160a060020a03600435811690602435166044356105d6565b604080519115158252519081900360200190f35b34610000576101ee610719565b6040805160ff9092168252519081900360200190f35b3461000057610178600435610722565b604080519115158252519081900360200190f35b34610000576100dc61077f565b604080516020808252835181830152835191928392908301918501908083838215610122575b80518252602083111561012257601f199092019160209182019101610102565b505050905090810190601f16801561014e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610199600160a060020a036004351661080d565b60408051918252519081900360200190f35b34610000576102ed61082c565b60408051600160a060020a039092168252519081900360200190f35b34610000576100dc61083b565b604080516020808252835181830152835191928392908301918501908083838215610122575b80518252602083111561012257601f199092019160209182019101610102565b505050905090810190601f16801561014e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610178600160a060020a03600435166108c9565b604080519115158252519081900360200190f35b346100005761017861094c565b604080519115158252519081900360200190f35b3461000057610178600160a060020a0360043516602435610956565b604080519115158252519081900360200190f35b3461000057604080516020600460443581810135601f8101849004840285018401909552848452610178948235600160a060020a0316946024803595606494929391909201918190840183828082843750949650610a4b95505050505050565b604080519115158252519081900360200190f35b3461000057610199610b69565b60408051918252519081900360200190f35b3461000057610199600160a060020a0360043581169060243516610b6f565b60408051918252519081900360200190f35b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b600160a060020a03338116600081815260086020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60005481565b6000836105e161094c565b15806105fa5750600554600160a060020a038281169116145b15610710578330600160a060020a031681600160a060020a031614151561070b57600160a060020a03861660009081526007602052604090205484901080159061066b5750600160a060020a0380871660009081526008602090815260408083203390941683529290522054849010155b80156106775750600084115b1561070657600160a060020a03808616600081815260076020908152604080832080548a0190558a851680845281842080548b90039055600883528184203390961684529482529182902080548990039055815188815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36001925061070b565b600092505b5b5b5b505b5b509392505050565b60025460ff1681565b60055460009033600160a060020a03908116911614156107785760068290556040805183815290517f6c04066f6ede40cc1642c211ba9d18f1a096ccc84fb8d11be28ea6c3c6f68b369181900360200190a15060015b5b5b919050565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b600160a060020a0381166000908152600760205260409020545b919050565b600554600160a060020a031681565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b60055460009033600160a060020a03908116911614156107785760058054600160a060020a03841673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252517f3edd90e7770f06fafde38004653b33870066c33bfc923ff6102acd601f85dfbc9181900360200190a15060015b5b5b919050565b6006544390115b90565b60003361096161094c565b158061097a5750600554600160a060020a038281169116145b15610a43578330600160a060020a031681600160a060020a0316141515610a3e57600160a060020a0333166000908152600760205260409020548490108015906109c45750600084115b15610a3957600160a060020a03338116600081815260076020908152604080832080548a90039055938916808352918490208054890190558351888152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a360019250610a3e565b600092505b5b5b5b505b5b5092915050565b600083610a588185610565565b156107105780600160a060020a0316638f4ffcb1338630876040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360008314610b03575b805182526020831115610b0357601f199092019160209182019101610ae3565b505050905090810190601f168015610b2f5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b156100005760325a03f1156100005750505060019150610710565b5b509392505050565b60065481565b600160a060020a038083166000908152600860209081526040808320938516835292905220545b929150505600a165627a7a7230582020445b19973297dd2ada628eaf99cccf170abaf59179ac8b3c090d05371fd9940029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000299420b279c379860000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000346b320000000000000000000000000000000000000000000000000000000000000006426f756e7479000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045842545900000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initialAmount (uint256): 3141592000000000000000000
Arg [1] : _tokenName (string): Bounty
Arg [2] : _decimalUnits (uint8): 18
Arg [3] : _tokenSymbol (string): XBTY
Arg [4] : _lockedUntilBlock (uint256): 3435314
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000299420b279c3798600000
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000346b32
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 426f756e74790000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 5842545900000000000000000000000000000000000000000000000000000000
Swarm Source
bzzr://20445b19973297dd2ada628eaf99cccf170abaf59179ac8b3c090d05371fd994
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.