ERC-20
Mining
Overview
Max Total Supply
1,000,000,000 BCDN
Holders
33,235 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH (-1.07%)
Onchain Market Cap
$210,250.00
Circulating Supply Market Cap
$72,875.00
Other Info
Token Contract (WITH 15 Decimals)
Balance
9 BCDNValue
$0.00 ( ~0 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
blockcdn
Compiler Version
v0.4.2+commit.af6afb04
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2016-11-09 */ pragma solidity ^0.4.2; contract blockcdn { mapping (address => uint256) balances; mapping (address => uint256) fundValue; address public owner; string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; uint256 public minFundedValue; uint256 public maxFundedValue; bool public isFundedMax; bool public isFundedMini; uint256 public closeTime; uint256 public startTime; /* This generates a public event on the blockchain that will notify clients */ event Transfer(address indexed from, address indexed to, uint256 value); function blockcdn( address _owner, string _tokenName, uint8 _decimalUnits, string _tokenSymbol, uint256 _totalSupply, uint256 _closeTime, uint256 _startTime, uint256 _minValue, uint256 _maxValue ) { owner = _owner; // Set owner of contract name = _tokenName; // Set the name for display purposes symbol = _tokenSymbol; // Set the symbol for display purposes decimals = _decimalUnits; // Amount of decimals for display purposes closeTime = _closeTime; // Set fund closing time startTime = _startTime; // Set fund start time totalSupply = _totalSupply; // Total supply minFundedValue = _minValue; // Set minimum funding goal maxFundedValue = _maxValue; // Set max funding goal isFundedMax = false; // Initialize fund minimum flag isFundedMini = false; // Initialize fund max flag balances[owner] = _totalSupply; // Set owner balance equal totalsupply } /*default-function called when values are sent */ function () payable { buyBlockCDN(); } /*send ethereum and get BCDN*/ function buyBlockCDN() payable returns (bool success){ if(msg.sender == owner) throw; if(now > closeTime) throw; if(now < startTime) throw; if(isFundedMax) throw; uint256 token = 0; if(closeTime - 2 weeks > now) { token = msg.value; }else { uint day = (now - (closeTime - 2 weeks))/(2 days) + 1; token = msg.value; while( day > 0) { token = token * 95 / 100 ; day -= 1; } } balances[msg.sender] += token; if(balances[owner] < token) return false; balances[owner] -= token; if(this.balance >= minFundedValue) { isFundedMini = true; } if(this.balance >= maxFundedValue) { isFundedMax = true; } fundValue[msg.sender] += msg.value; Transfer(owner, msg.sender, token); return true; } /*query BCDN balance*/ function balanceOf( address _owner) constant returns (uint256 value) { return balances[_owner]; } /*query fund ethereum balance */ function balanceOfFund(address _owner) constant returns (uint256 value) { return fundValue[_owner]; } /*refund 'msg.sender' in the case the Token Sale didn't reach ite minimum funding goal*/ function reFund() payable returns (bool success) { if(now <= closeTime) throw; if(isFundedMini) throw; uint256 value = fundValue[msg.sender]; fundValue[msg.sender] = 0; if(value <= 0) throw; if(!msg.sender.send(value)) throw; balances[owner] += balances[msg.sender]; balances[msg.sender] = 0; Transfer(msg.sender, this, balances[msg.sender]); return true; } /*refund _fundaddr in the case the Token Sale didn't reach ite minimum funding goal*/ function reFundByOther(address _fundaddr) payable returns (bool success) { if(now <= closeTime) throw; if(isFundedMini) throw; uint256 value = fundValue[_fundaddr]; fundValue[_fundaddr] = 0; if(value <= 0) throw; if(!_fundaddr.send(value)) throw; balances[owner] += balances[_fundaddr]; balances[_fundaddr] = 0; Transfer(msg.sender, this, balances[_fundaddr]); return true; } /* Send coins */ function transfer(address _to, uint256 _value) payable returns (bool success) { if(_value <= 0 ) throw; // Check send token value > 0; if (balances[msg.sender] < _value) throw; // Check if the sender has enough if (balances[_to] + _value < balances[_to]) throw; // Check for overflows if(now < closeTime ) { // unclosed allowed retrieval, Closed fund allow transfer if(_to == address(this)) { fundValue[msg.sender] -= _value; balances[msg.sender] -= _value; balances[owner] += _value; if(!msg.sender.send(_value)) return false; Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place return true; } } balances[msg.sender] -= _value; // Subtract from the sender balances[_to] += _value; // Add the same to the recipient Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place return true; } /*send reward*/ function sendRewardBlockCDN(address rewarder, uint256 value) payable returns (bool success) { if(msg.sender != owner) throw; if(now <= closeTime) throw; if(!isFundedMini) throw; if( balances[owner] < value) throw; balances[rewarder] += value; uint256 halfValue = value / 2; balances[owner] -= halfValue; totalSupply += halfValue; Transfer(owner, rewarder, value); return true; } function modifyStartTime(uint256 _startTime) { if(msg.sender != owner) throw; startTime = _startTime; } function modifyCloseTime(uint256 _closeTime) { if(msg.sender != owner) throw; closeTime = _closeTime; } /*withDraw ethereum when closed fund*/ function withDrawEth(uint256 value) payable returns (bool success) { if(now <= closeTime ) throw; if(!isFundedMini) throw; if(this.balance < value) throw; if(msg.sender != owner) throw; if(!msg.sender.send(value)) return false; return true; } }
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":"reFund","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOfFund","outputs":[{"name":"value","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"withDrawEth","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"closeTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"value","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"rewarder","type":"address"},{"name":"value","type":"uint256"}],"name":"sendRewardBlockCDN","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_closeTime","type":"uint256"}],"name":"modifyCloseTime","outputs":[],"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":"buyBlockCDN","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"isFundedMini","outputs":[{"name":"","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":true,"type":"function"},{"constant":true,"inputs":[],"name":"minFundedValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_startTime","type":"uint256"}],"name":"modifyStartTime","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_fundaddr","type":"address"}],"name":"reFundByOther","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"maxFundedValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isFundedMax","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[{"name":"_owner","type":"address"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_totalSupply","type":"uint256"},{"name":"_closeTime","type":"uint256"},{"name":"_startTime","type":"uint256"},{"name":"_minValue","type":"uint256"},{"name":"_maxValue","type":"uint256"}],"type":"constructor"},{"payable":true,"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"}]
Contract Creation Code
6060604052604051610ca0380380610ca083398101604052805160805160a05160c05160e05161010051610120516101405161016051979896870197959694909401949293919290919060028054600160a060020a0319168a178155600380548a51600083905291926020601f600019600185161561010002019093169190910482018190047fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b908101939290918d01908390106100e057805160ff19168380011785555b506101109291505b8082111561016957600081556001016100cc565b828001600101855582156100c4579182015b828111156100c45782518260005055916020019190600101906100f2565b50508560046000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061016d57805160ff19168380011785555b5061019d9291506100cc565b5090565b8280016001018555821561015d579182015b8281111561015d57825182600050559160200191906001019061017f565b50506005805460ff191697909717909655600a92909255600b556006829055600755600892909255506009805461ffff19169055600254600160a060020a0316600090815260208190526040812091909155610aa0925082915061020090396000f3606060405236156100fb5760e060020a600035046306fdde0381146101065780630ff0a4df1461016957806318160ddd1461017f578063291f36651461018d578063313ce567146101b75780634ef83a70146101c8578063627749e6146101df57806370a08231146101ed578063751ce8fb1461021657806378e97925146102405780637b8e8bdd1461024e5780638da5cb5b1461027557806395d89b411461028c578063a1155f5c146102ef578063a4de64c414610316578063a9059cbb1461032c578063ad5d638d14610343578063b768cd5d14610351578063ced7d01814610378578063e9d1622414610391578063f54621051461039f575b6103b06103b26102f3565b34610002576040805160038054602060026001831615610100026000190190921691909104601f81018290048202840182019094528383526103b593908301828280156106135780601f106105e857610100808354040283529160200191610613565b610423600a546000908190421161061b57610002565b346100025761043760065481565b3461000257610437600435600160a060020a0381166000908152600160205260409020545b919050565b346100025761044960055460ff1681565b610423600435600a5460009042116106ea57610002565b3461000257610437600a5481565b3461000257610437600435600160a060020a0381166000908152602081905260409020546101b2565b6104236004356024356002546000908190600160a060020a03908116339091161461076e57610002565b3461000257610437600b5481565b34610002576103b0600435600254600160a060020a03908116339091161461082c57610002565b3461000257610460600254600160a060020a031681565b34610002576040805160048054602060026001831615610100026000190190921691909104601f81018290048202840182019094528383526103b593908301828280156106135780601f106105e857610100808354040283529160200191610613565b6104235b6002546000908190819033600160a060020a039081169116141561053157610002565b3461000257610423600954610100900460ff1681565b610423600435602435600080821161088e57610002565b346100025761043760075481565b34610002576103b0600435600254600160a060020a0390811633909116146109a957610002565b610423600435600a54600090819042116109ae57610002565b346100025761043760085481565b346100025761042360095460ff1681565b005b50565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156104155780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b604080519115158252519081900360200190f35b60408051918252519081900360200190f35b6040805160ff929092168252519081900360200190f35b60408051600160a060020a03929092168252519081900360200190f35b600254600160a060020a039081166000908152602081905260409020805484900390556007543090911631106104bd576009805461ff0019166101001790555b60085430600160a060020a031631106104de576009805460ff191660011790555b600160a060020a033381166000818152600160209081526040918290208054340190556002548251878152925193941692600080516020610a808339815191529281900390910190a3600192505b505090565b600a5442111561054057610002565b600b5442101561054f57610002565b60095460ff161561055f57610002565b600091504262127500600a600050540311156105b4573491505b600160a060020a03338116600090815260208190526040808220805486019055600254909216815220548290101561047d576000925061052c565b600a546202a30090420362127500013493500460010190505b6000811115610579576064605f8302049150600019016105cd565b820191906000526020600020905b8154815290600101906020018083116105f657829003601f168201915b505050505081565b600954610100900460ff161561063057610002565b5033600160a060020a0316600090815260016020526040812080549082905590811161065b57610002565b60405133600160a060020a03169082156108fc029083906000818181858888f19350505050151561068b57610002565b600160a060020a0333811660008181526020818152604080832080546002548716855282852080549190910190558484528390558051928352513090941693600080516020610a808339815191529281900390910190a3600191505090565b600954610100900460ff16151561070057610002565b8130600160a060020a031631101561071757610002565b600254600160a060020a03908116339091161461073357610002565b60405133600160a060020a03169083156108fc029084906000818181858888f193505050501515610766575060006101b2565b5060016101b2565b600a54421161077c57610002565b600954610100900460ff16151561079257610002565b600254600160a060020a0316600090815260208190526040902054839010156107ba57610002565b50600160a060020a03838116600081815260208181526040808320805488019055600280548616845292819020805484890490819003909155600680548201905581519354888552915190959190911692600080516020610a8083398151915292908290030190a35060019392505050565b600a55565b600160a060020a033381166000818152602081815260408083208054889003905593871680835291849020805487019055835186815293519193600080516020610a80833981519152929081900390910190a35060015b92915050565b33600160a060020a0316600090815260208190526040902054829010156108b457610002565b600160a060020a03831660009081526020819052604090205482810110156108db57610002565b600a544210156108315730600160a060020a031683600160a060020a0316141561083157600160a060020a03338116600081815260016020908152604080832080548890039055908290528082208054879003905560025490931681528281208054860190559151909184156108fc02918591818181858888f19350505050151561096857506000610888565b82600160a060020a031633600160a060020a0316600080516020610a80833981519152846040518082815260200191505060405180910390a3506001610888565b600b55565b600954610100900460ff16156109c357610002565b50600160a060020a03821660009081526001602052604081208054908290559081116109ee57610002565b604051600160a060020a0384169082156108fc029083906000818181858888f193505050501515610a1e57610002565b600160a060020a038381166000818152602081815260408083208054600254871685528285208054919091019055938352928290558251918252915130841693331692600080516020610a80833981519152928290030190a35060019291505056ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x606060405236156100fb5760e060020a600035046306fdde0381146101065780630ff0a4df1461016957806318160ddd1461017f578063291f36651461018d578063313ce567146101b75780634ef83a70146101c8578063627749e6146101df57806370a08231146101ed578063751ce8fb1461021657806378e97925146102405780637b8e8bdd1461024e5780638da5cb5b1461027557806395d89b411461028c578063a1155f5c146102ef578063a4de64c414610316578063a9059cbb1461032c578063ad5d638d14610343578063b768cd5d14610351578063ced7d01814610378578063e9d1622414610391578063f54621051461039f575b6103b06103b26102f3565b34610002576040805160038054602060026001831615610100026000190190921691909104601f81018290048202840182019094528383526103b593908301828280156106135780601f106105e857610100808354040283529160200191610613565b610423600a546000908190421161061b57610002565b346100025761043760065481565b3461000257610437600435600160a060020a0381166000908152600160205260409020545b919050565b346100025761044960055460ff1681565b610423600435600a5460009042116106ea57610002565b3461000257610437600a5481565b3461000257610437600435600160a060020a0381166000908152602081905260409020546101b2565b6104236004356024356002546000908190600160a060020a03908116339091161461076e57610002565b3461000257610437600b5481565b34610002576103b0600435600254600160a060020a03908116339091161461082c57610002565b3461000257610460600254600160a060020a031681565b34610002576040805160048054602060026001831615610100026000190190921691909104601f81018290048202840182019094528383526103b593908301828280156106135780601f106105e857610100808354040283529160200191610613565b6104235b6002546000908190819033600160a060020a039081169116141561053157610002565b3461000257610423600954610100900460ff1681565b610423600435602435600080821161088e57610002565b346100025761043760075481565b34610002576103b0600435600254600160a060020a0390811633909116146109a957610002565b610423600435600a54600090819042116109ae57610002565b346100025761043760085481565b346100025761042360095460ff1681565b005b50565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156104155780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b604080519115158252519081900360200190f35b60408051918252519081900360200190f35b6040805160ff929092168252519081900360200190f35b60408051600160a060020a03929092168252519081900360200190f35b600254600160a060020a039081166000908152602081905260409020805484900390556007543090911631106104bd576009805461ff0019166101001790555b60085430600160a060020a031631106104de576009805460ff191660011790555b600160a060020a033381166000818152600160209081526040918290208054340190556002548251878152925193941692600080516020610a808339815191529281900390910190a3600192505b505090565b600a5442111561054057610002565b600b5442101561054f57610002565b60095460ff161561055f57610002565b600091504262127500600a600050540311156105b4573491505b600160a060020a03338116600090815260208190526040808220805486019055600254909216815220548290101561047d576000925061052c565b600a546202a30090420362127500013493500460010190505b6000811115610579576064605f8302049150600019016105cd565b820191906000526020600020905b8154815290600101906020018083116105f657829003601f168201915b505050505081565b600954610100900460ff161561063057610002565b5033600160a060020a0316600090815260016020526040812080549082905590811161065b57610002565b60405133600160a060020a03169082156108fc029083906000818181858888f19350505050151561068b57610002565b600160a060020a0333811660008181526020818152604080832080546002548716855282852080549190910190558484528390558051928352513090941693600080516020610a808339815191529281900390910190a3600191505090565b600954610100900460ff16151561070057610002565b8130600160a060020a031631101561071757610002565b600254600160a060020a03908116339091161461073357610002565b60405133600160a060020a03169083156108fc029084906000818181858888f193505050501515610766575060006101b2565b5060016101b2565b600a54421161077c57610002565b600954610100900460ff16151561079257610002565b600254600160a060020a0316600090815260208190526040902054839010156107ba57610002565b50600160a060020a03838116600081815260208181526040808320805488019055600280548616845292819020805484890490819003909155600680548201905581519354888552915190959190911692600080516020610a8083398151915292908290030190a35060019392505050565b600a55565b600160a060020a033381166000818152602081815260408083208054889003905593871680835291849020805487019055835186815293519193600080516020610a80833981519152929081900390910190a35060015b92915050565b33600160a060020a0316600090815260208190526040902054829010156108b457610002565b600160a060020a03831660009081526020819052604090205482810110156108db57610002565b600a544210156108315730600160a060020a031683600160a060020a0316141561083157600160a060020a03338116600081815260016020908152604080832080548890039055908290528082208054879003905560025490931681528281208054860190559151909184156108fc02918591818181858888f19350505050151561096857506000610888565b82600160a060020a031633600160a060020a0316600080516020610a80833981519152846040518082815260200191505060405180910390a3506001610888565b600b55565b600954610100900460ff16156109c357610002565b50600160a060020a03821660009081526001602052604081208054908290559081116109ee57610002565b604051600160a060020a0384169082156108fc029083906000818181858888f193505050501515610a1e57610002565b600160a060020a038381166000818152602081815260408083208054600254871685528285208054919091019055938352928290558251918252915130841693331692600080516020610a80833981519152928290030190a35060019291505056ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000015cac84e1f7fafe8ed8811b3d2f1359c5074aa8a0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000058605d8000000000000000000000000000000000000000000000000000000000583b7380000000000000000000000000000000000000000000001fc3842bd1f071c000000000000000000000000000000000000000000000000054b40b1f852bda00000000000000000000000000000000000000000000000000000000000000000000044243444e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044243444e00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0x15CAc84E1f7faFe8eD8811B3d2f1359C5074aa8a
Arg [1] : _tokenName (string): BCDN
Arg [2] : _decimalUnits (uint8): 15
Arg [3] : _tokenSymbol (string): BCDN
Arg [4] : _totalSupply (uint256): 1000000000000000000000000
Arg [5] : _closeTime (uint256): 1482710400
Arg [6] : _startTime (uint256): 1480291200
Arg [7] : _minValue (uint256): 150000000000000000000000
Arg [8] : _maxValue (uint256): 400000000000000000000000
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000015cac84e1f7fafe8ed8811b3d2f1359c5074aa8a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000d3c21bcecceda1000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000058605d80
Arg [6] : 00000000000000000000000000000000000000000000000000000000583b7380
Arg [7] : 000000000000000000000000000000000000000000001fc3842bd1f071c00000
Arg [8] : 0000000000000000000000000000000000000000000054b40b1f852bda000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 4243444e00000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 4243444e00000000000000000000000000000000000000000000000000000000
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.