ERC-20
Overview
Max Total Supply
44,196,412.535867997672398154 CLC
Holders
1,751
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
127.195996304163949666 CLCValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CLC
Compiler Version
v0.4.15+commit.bbb8e64f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-01-14 */ pragma solidity 0.4.15; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { //Variables address public owner; address public newOwner; // Modifiers /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */ function transferOwnership(address _newOwner) public onlyOwner { require(_newOwner != address(0)); newOwner = _newOwner; } function acceptOwnership() public { if (msg.sender == newOwner) { owner = newOwner; newOwner = address(0); } } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract TokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract ERC20 is Ownable { using SafeMath for uint256; /* Public variables of the token */ uint256 public initialSupply; uint256 public creationBlock; uint8 public decimals; string public name; string public symbol; string public standard; bool public locked; bool public transferFrozen; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) public allowed; /* This generates a public event on the blockchain that will notify clients */ event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed _owner, address indexed _spender, uint _value); modifier onlyPayloadSize(uint _numwords) { assert(msg.data.length == _numwords * 32 + 4); _; } /* Initializes contract with initial supply tokens to the creator of the contract */ function ERC20( uint256 _initialSupply, string _tokenName, uint8 _decimalUnits, string _tokenSymbol, bool _transferAllSupplyToOwner, bool _locked ) public { standard = "ERC20 0.1"; initialSupply = _initialSupply; if (_transferAllSupplyToOwner) { setBalance(msg.sender, initialSupply); } else { setBalance(this, initialSupply); } name = _tokenName; // Set the name for display purposes symbol = _tokenSymbol; // Set the symbol for display purposes decimals = _decimalUnits; // Amount of decimals for display purposes locked = _locked; creationBlock = block.number; } /* public methods */ function transfer(address _to, uint256 _value) public onlyPayloadSize(2) returns (bool) { require(locked == false); require(transferFrozen == false); bool status = transferInternal(msg.sender, _to, _value); require(status == true); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { if (locked) { return false; } allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { if (locked) { return false; } TokenRecipient spender = TokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } function transferFrom(address _from, address _to, uint256 _value) public onlyPayloadSize(3) returns (bool success) { if (locked) { return false; } if (transferFrozen) { return false; } if (allowed[_from][msg.sender] < _value) { return false; } bool _success = transferInternal(_from, _to, _value); if (_success) { allowed[_from][msg.sender] -= _value; } return _success; } /*constant functions*/ function totalSupply() public constant returns (uint256) { return initialSupply; } function balanceOf(address _address) public constant returns (uint256 balance) { return balances[_address]; } function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } /* internal functions*/ function setBalance(address _holder, uint256 _amount) internal { balances[_holder] = _amount; } function transferInternal(address _from, address _to, uint256 _value) internal returns (bool success) { require(locked == false); require(transferFrozen == false); if (_value == 0) { Transfer(_from, _to, _value); return true; } if (balances[_from] < _value) { return false; } setBalance(_from, balances[_from].sub(_value)); setBalance(_to, balances[_to].add(_value)); Transfer(_from, _to, _value); return true; } } contract ERC223 { event Transfer(address indexed from, address indexed to, uint value, bytes indexed data); function transfer(address to, uint value, bytes data) public returns (bool ok); function transfer(address to, uint value, bytes data, string customFallback) public returns (bool ok); } contract ContractReceiver { function tokenFallback(address _from, uint _value, bytes _data) public; } /* Based on https://github.com/Dexaran/ERC223-token-standard/blob/Recommended/ERC223_Token.sol */ contract ERC223Token is ERC223, ERC20 { function ERC223Token( uint256 _initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol, bool transferAllSupplyToOwner, bool _locked ) public ERC20(_initialSupply, tokenName, decimalUnits, tokenSymbol, transferAllSupplyToOwner, _locked) { } function transfer(address to, uint256 value, bytes data) public returns (bool success) { require(locked == false); bool status = transferInternal(msg.sender, to, value, data); return status; } function transfer(address to, uint value, bytes data, string customFallback) public returns (bool success) { require(locked == false); bool status = transferInternal(msg.sender, to, value, data, true, customFallback); return status; } // rollback changes to transferInternal for transferFrom function transferFrom(address _from, address _to, uint256 _value) public onlyPayloadSize(3) returns (bool success) { if (locked) { return false; } if (transferFrozen) { return false; } if (allowed[_from][msg.sender] < _value) { return false; } bool _success = super.transferInternal(_from, _to, _value); if (_success) { allowed[_from][msg.sender] -= _value; } return _success; } function transferInternal(address from, address to, uint256 value, bytes data) internal returns (bool success) { return transferInternal(from, to, value, data, false, ""); } function transferInternal( address from, address to, uint256 value, bytes data, bool useCustomFallback, string customFallback ) internal returns (bool success) { bool status = super.transferInternal(from, to, value); if (status) { if (isContract(to)) { ContractReceiver receiver = ContractReceiver(to); if (useCustomFallback) { // solhint-disable-next-line avoid-call-value require(receiver.call.value(0)(bytes4(keccak256(customFallback)), from, value, data) == true); } else { receiver.tokenFallback(from, value, data); } } Transfer(from, to, value, data); } return status; } function transferInternal(address from, address to, uint256 value) internal returns (bool success) { require(locked == false); bytes memory data; return transferInternal(from, to, value, data, false, ""); } //assemble the given address bytecode. If bytecode exists then the _addr is a contract. function isContract(address _addr) private returns (bool) { uint length; assembly { //retrieve the size of the code on target address, this needs assembly length := extcodesize(_addr) } return (length > 0); } } /* This contract manages the minters and the modifier to allow mint to happen only if called by minters This contract contains basic minting functionality though */ contract MintingERC20 is ERC223Token { using SafeMath for uint256; uint256 public maxSupply; mapping (address => bool) public minters; modifier onlyMinters () { require(true == minters[msg.sender]); _; } function MintingERC20( uint256 _initialSupply, uint256 _maxSupply, string _tokenName, uint8 _decimals, string _symbol, bool _transferAllSupplyToOwner, bool _locked ) ERC223Token(_initialSupply, _tokenName, _decimals, _symbol, _transferAllSupplyToOwner, _locked) { minters[msg.sender] = true; maxSupply = _maxSupply; } function addMinter(address _newMinter) public onlyOwner { minters[_newMinter] = true; } function removeMinter(address _minter) public onlyOwner { minters[_minter] = false; } function mint(address _addr, uint256 _amount) public onlyMinters returns (uint256) { return internalMint(_addr, _amount); } function internalMint(address _addr, uint256 _amount) internal returns (uint256) { if (_amount == uint256(0)) { return uint256(0); } if (totalSupply().add(_amount) > maxSupply) { return uint256(0); } initialSupply = initialSupply.add(_amount); balances[_addr] = balances[_addr].add(_amount); Transfer(0, _addr, _amount); return _amount; } } contract AbstractClaimableToken { function claimedTokens(address _holder, uint256 _tokens) public; } contract GenesisToken is MintingERC20 { using SafeMath for uint256; /* variables */ uint256 public emitTokensSince; TokenEmission[] public emissions; mapping(address => uint256) public lastClaims; /* structs */ struct TokenEmission { uint256 blockDuration; // duration of block in secs uint256 blockTokens; // tokens per block uint256 periodEndsAt; // duration in secs bool removed; } /* events */ event ClaimedTokens(address _holder, uint256 _since, uint256 _till, uint256 _tokens); /* constructor */ function GenesisToken( uint256 _totalSupply, uint8 _precision, string _name, string _symbol, bool _transferAllSupplyToOwner, bool _locked, uint256 _emitTokensSince, uint256 _maxSupply ) public MintingERC20(_totalSupply, _maxSupply, _name, _precision, _symbol, _transferAllSupplyToOwner, _locked) { standard = "GenesisToken 0.1"; emitTokensSince = _emitTokensSince; } function addTokenEmission(uint256 _blockDuration, uint256 _blockTokens, uint256 _periodEndsAt) public onlyOwner { emissions.push(TokenEmission(_blockDuration, _blockTokens, _periodEndsAt, false)); } function removeTokenEmission(uint256 _i) public onlyOwner { require(_i < emissions.length); emissions[_i].removed = true; } function updateTokenEmission(uint256 _i, uint256 _blockDuration, uint256 _blockTokens, uint256 _periodEndsAt) public onlyOwner { require(_i < emissions.length); emissions[_i].blockDuration = _blockDuration; emissions[_i].blockTokens = _blockTokens; emissions[_i].periodEndsAt = _periodEndsAt; } function claim() public returns (uint256) { require(false == locked); uint256 currentBalance = balanceOf(msg.sender); uint256 currentTotalSupply = totalSupply(); return claimInternal(block.timestamp, msg.sender, currentBalance, currentTotalSupply); } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { return claimableTransferFrom(block.timestamp, _from, _to, _value); } function calculateEmissionTokens( uint256 _lastClaimedAt, uint256 _currentTime, uint256 _currentBalance, uint256 _totalSupply ) public constant returns (uint256 tokens) { uint256 totalTokens = 0; uint256 newCurrentTime = _lastClaimedAt; uint256 remainingSeconds = _currentTime.sub(_lastClaimedAt); uint256 collectedTokensPerPeriod; for (uint256 i = 0; i < emissions.length; i++) { TokenEmission storage emission = emissions[i]; if (emission.removed) { continue; } if (newCurrentTime < emission.periodEndsAt) { if (newCurrentTime.add(remainingSeconds) > emission.periodEndsAt) { uint256 diff = emission.periodEndsAt.sub(newCurrentTime); collectedTokensPerPeriod = getPeriodMinedTokens( diff, _currentBalance, emission.blockDuration, emission.blockTokens, _totalSupply); totalTokens += collectedTokensPerPeriod; newCurrentTime += diff; remainingSeconds -= diff; } else { collectedTokensPerPeriod = getPeriodMinedTokens( remainingSeconds, _currentBalance, emission.blockDuration, emission.blockTokens, _totalSupply ); totalTokens += collectedTokensPerPeriod; newCurrentTime += remainingSeconds; remainingSeconds = 0; } } if (remainingSeconds == 0) { break; } } return totalTokens; } /* internal methods */ function getPeriodMinedTokens( uint256 _duration, uint256 _balance, uint256 _blockDuration, uint256 _blockTokens, uint256 ) internal returns (uint256) { uint256 blocks = _duration.div(_blockDuration); return blocks.mul(_blockTokens).mul(_balance).div(maxSupply); } function tokensClaimedHook(address _holder, uint256 _since, uint256 _till, uint256 _tokens) internal { ClaimedTokens(_holder, _since, _till, _tokens); } function claimInternal( uint256 _time, address _address, uint256 _currentBalance, uint256 _currentTotalSupply ) internal returns (uint256) { if (_time < emitTokensSince) { lastClaims[_address] = emitTokensSince; return 0; } if (_currentBalance == 0) { lastClaims[_address] = _time; return 0; } uint256 lastClaimAt = lastClaims[_address]; if (lastClaimAt == 0) { lastClaims[_address] = emitTokensSince; lastClaimAt = emitTokensSince; } if (lastClaimAt >= _time) { return 0; } uint256 tokens = calculateEmissionTokens(lastClaimAt, _time, _currentBalance, _currentTotalSupply); if (tokens > 0) { tokensClaimedHook(_address, lastClaimAt, _time, tokens); lastClaims[_address] = _time; return tokens; } return 0; } function claimableTransfer( uint256 _time, address _from, address _to, uint256 _value, bytes _data, bool _useCustomFallback, string _customFallback ) internal returns (bool success) { uint256 senderCurrentBalance = balanceOf(_from); uint256 receiverCurrentBalance = balanceOf(_to); uint256 _totalSupply = totalSupply(); bool status = super.transferInternal(_from, _to, _value, _data, _useCustomFallback, _customFallback); require(status); claimInternal(_time, _from, senderCurrentBalance, _totalSupply); claimInternal(_time, _to, receiverCurrentBalance, _totalSupply); return true; } function transferInternal( address _from, address _to, uint256 _value, bytes _data, bool _useCustomFallback, string _customFallback ) internal returns (bool success) { return claimableTransfer(block.timestamp, _from, _to, _value, _data, _useCustomFallback, _customFallback); } function claimableTransferFrom( uint256 _time, address _from, address _to, uint256 _value ) internal returns (bool success) { uint256 senderCurrentBalance = balanceOf(_from); uint256 receiverCurrentBalance = balanceOf(_to); uint256 _totalSupply = totalSupply(); bool status = super.transferFrom(_from, _to, _value); if (status) { claimInternal(_time, _from, senderCurrentBalance, _totalSupply); claimInternal(_time, _to, receiverCurrentBalance, _totalSupply); } return status; } function internalMint(address _addr, uint256 _amount) internal returns (uint256) { claimInternal(now, _addr, balanceOf(_addr), totalSupply()); uint256 minted = super.internalMint(_addr, _amount); return minted; } } contract CLC is MintingERC20, AbstractClaimableToken { uint256 public createdAt; Clout public genesisToken; function CLC(uint256 _maxSupply, uint8 decimals, Clout _genesisToken, bool transferAllSupplyToOwner) public MintingERC20(0, _maxSupply, "CLC", decimals, "CLC", transferAllSupplyToOwner, false) { createdAt = now; standard = "CLC 0.1"; genesisToken = _genesisToken; } function claimedTokens(address _holder, uint256 _tokens) public { require(msg.sender == address(genesisToken)); uint256 minted = internalMint(_holder, _tokens); require(minted == _tokens); } function setGenesisToken(Clout _genesisToken) public onlyOwner { genesisToken = _genesisToken; } function setTransferFrozen(bool _frozen) public onlyOwner { transferFrozen = _frozen; } function setLocked(bool _locked) public onlyOwner { locked = _locked; } } contract Clout is GenesisToken { AbstractClaimableToken public claimableToken; uint256 public createdAt; mapping (address => bool) public issuers; function Clout(uint256 emitTokensSince, bool init, uint256 initialSupply, uint8 decimals, string tokenName, string tokenSymbol, bool transferAllSupplyToOwner ) public GenesisToken( 0, decimals, tokenName, tokenSymbol, transferAllSupplyToOwner, false, emitTokensSince, initialSupply ) // solhint-disable-next-line function-max-lines { standard = "Clout 0.1"; createdAt = now; // emissions if (init) { // uint256 period0 = createdAt; // uint256 period1 = 1514764800; // 2018-01-01T00:00:00Z // uint256 period2 = 1577836800; // 2020-01-01T00:00:00Z // uint256 period3 = 1672531200; // 2023-01-01T00:00:00Z // uint256 period4 = 1798761600; // 2027-01-01T00:00:00Z // uint256 period5 = 1956528000; // 2032-01-01T00:00:00Z // uint256 period6 = 2145916800; // 2038-01-01T00:00:00Z // uint256 period7 = 2366841600; // 2045-01-01T00:00:00Z // uint256 period8 = 2619302400; // 2053-01-01T00:00:00Z // uint256 period9 = 2903299200; // 2062-01-01T00:00:00Z uint256 blockDuration = 15; // after ico till 2018-01-01 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((1514764800 - emitTokensSince) / blockDuration), // tokens 1514764800, // till false // removed ) ); // till 2020-01-01. blocks 4,204,800, tokens per block 2.378234399E19 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((1577836800 - 1514764800) / blockDuration), // tokens 1577836800, // till false // removed ) ); // till 2023-01-01, blocks 6,312,960, tokens per block 1.584042985E19 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((1672531200 - 1577836800) / blockDuration), // tokens 1672531200, // till false // removed ) ); // till 2027-01-01, blocks 8,415,360, tokens per block 1.188303293E19 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((1798761600 - 1672531200) / blockDuration), // tokens 1798761600, // till false // removed ) ); // till 2032-01-01, blocks 10,517,760, tokens per block 9.507727881E18 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((1956528000 - 1798761600) / blockDuration), // tokens 1956528000, // till false // removed ) ); // till 2038-01-01, blocks 12,625,920, tokens per block 7.920214923E18 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((2145916800 - 1956528000) / blockDuration), // tokens 2145916800, // till false // removed ) ); // till 2045-01-01, blocks 14,728,320, tokens per block 6.789640638E18 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((2366841600 - 2145916800) / blockDuration), // tokens 2366841600, // till false // removed ) ); // till 2053-01-01, blocks 16,830,720, tokens per block 5.941516465E18 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((2619302400 - 2366841600) / blockDuration), // tokens 2619302400, // till false // removed ) ); // till 2062-01-01, blocks 18,933,120, tokens per block 5.281749654E18 emissions.push( TokenEmission( blockDuration, 100000000 * 10 ** 18 / ((2903299200 - 2619302400) / blockDuration), // tokens 2903299200, // till false // removed ) ); } } function setEmissions(uint256[] array) public onlyOwner { require(array.length % 4 == 0); delete emissions; for (uint256 i = 0; i < array.length; i += 4) { emissions.push(TokenEmission(array[i], array[i + 1], array[i + 2], array[i + 3] == 0 ? false : true)); } } function setClaimableToken(AbstractClaimableToken _token) public onlyOwner { claimableToken = _token; } function setTransferFrozen(bool _frozen) public onlyOwner { transferFrozen = _frozen; } function setLocked(bool _locked) public onlyOwner { locked = _locked; } function tokensClaimedHook(address _holder, uint256 since, uint256 till, uint256 amount) internal { if (claimableToken != address(0)) { claimableToken.claimedTokens(_holder, amount); } ClaimedTokens(_holder, since, till, amount); } } contract Multivest is Ownable { /* public variables */ mapping (address => bool) public allowedMultivests; /* events */ event MultivestSet(address multivest); event MultivestUnset(address multivest); event Contribution(address _holder, uint256 value, uint256 tokens); modifier onlyAllowedMultivests() { require(true == allowedMultivests[msg.sender]); _; } /* constructor */ function Multivest(address multivest) { allowedMultivests[multivest] = true; } /* public methods */ function setAllowedMultivest(address _address) public onlyOwner { allowedMultivests[_address] = true; } function unsetAllowedMultivest(address _address) public onlyOwner { allowedMultivests[_address] = false; } function multivestBuy( address _holder, uint256 _value ) public onlyAllowedMultivests { bool status = buy(_holder, block.timestamp, _value); require(status == true); } function multivestBuy( bytes32 _hash, uint8 _v, bytes32 _r, bytes32 _s ) public payable { require(_hash == keccak256(msg.sender)); require(allowedMultivests[verify(_hash, _v, _r, _s)] == true); bool status = buy(msg.sender, block.timestamp, msg.value); require(status == true); } function verify(bytes32 hash, uint8 v, bytes32 r, bytes32 s) public constant returns (address) { bytes memory prefix = "\x19Ethereum Signed Message:\n32"; return ecrecover(keccak256(prefix, hash), v, r, s); } function buy(address _address, uint256 _time, uint256 _value) internal returns (bool); } contract ICO is Ownable, Multivest { uint256 public icoSince; uint256 public icoTill; uint8 public decimals; mapping(address => uint256) public holderEthers; uint256 public collectedEthers; uint256 public soldTokens; uint256 public minEthToContribute; Phase[] public phases; bool public locked; Clout public clout; CLC public clc; address[] public etherReceivers; address public etherMasterWallet; struct Phase { uint256 price; uint256 maxAmount; } event Contribution(address _holder, uint256 _ethers, uint256 _clouts, uint256 _clcs); function ICO( uint256 _icoSince, uint256 _icoTill, uint8 _decimals, uint256 price1, uint256 price2, uint256 price3, Clout _clout, CLC _clc, uint256 _minEthToContribute, bool _locked ) public Multivest(msg.sender) { icoSince = _icoSince; icoTill = _icoTill; decimals = _decimals; locked = _locked; clout = _clout; clc = _clc; if (_minEthToContribute > 0) { minEthToContribute = _minEthToContribute; } else { minEthToContribute = 0; } phases.push(Phase(price1, 5000000 * (uint256(10) ** decimals))); phases.push(Phase(price2, 3000000 * (uint256(10) ** decimals))); phases.push(Phase(price3, 2000000 * (uint256(10) ** decimals))); } function () payable { bool status = buy(msg.sender, block.timestamp, msg.value); require(status == true); } function setEtherReceivers( address _masterWallet, address[] _etherReceivers ) public onlyOwner { require(_masterWallet != address(0)); require(_etherReceivers.length == 4); require(_etherReceivers[0] != address(0)); require(_etherReceivers[1] != address(0)); require(_etherReceivers[2] != address(0)); require(_etherReceivers[3] != address(0)); etherMasterWallet = _masterWallet; etherReceivers = _etherReceivers; } function setPrice(uint256 price1, uint256 price2, uint256 price3) public onlyOwner { phases[0].price = price1; phases[1].price = price2; phases[2].price = price3; } function setPeriod(uint256 since, uint256 till) public onlyOwner { icoSince = since; icoTill = till; } function setClout(Clout _clout) public onlyOwner { clout = _clout; } function setCLC(CLC _clc) public onlyOwner { clc = _clc; } function setLocked(bool _locked) public onlyOwner { locked = _locked; } function getIcoTokensAmount(uint256 _soldTokens, uint256 _value) public constant returns (uint256) { uint256 amount; uint256 newSoldTokens = _soldTokens; uint256 remainingValue = _value; for (uint i = 0; i < phases.length; i++) { Phase storage phase = phases[i]; uint256 tokens = remainingValue * (uint256(10) ** decimals) / phase.price; if (phase.maxAmount > newSoldTokens) { if (newSoldTokens + tokens > phase.maxAmount) { uint256 diff = phase.maxAmount - tokens; amount += diff; // get optimal amount of ethers for this phase uint256 phaseEthers = diff * phase.price / (uint256(10) ** decimals); remainingValue -= phaseEthers; newSoldTokens += (phaseEthers * (uint256(10) ** decimals) / phase.price); } else { amount += tokens; newSoldTokens += tokens; remainingValue = 0; } } if (remainingValue == 0) { break; } } if (remainingValue > 0) { return 0; } return amount; } // solhint-disable-next-line code-complexity function transferEthers() public onlyOwner { require(this.balance > 0); require(etherReceivers.length == 4); require(etherMasterWallet != address(0)); // ether balance on smart contract if (this.balance > 0) { uint256 balance = this.balance; etherReceivers[0].transfer(balance * 15 / 100); etherReceivers[1].transfer(balance * 15 / 100); etherReceivers[2].transfer(balance * 10 / 100); etherReceivers[3].transfer(balance * 10 / 100); // send rest to master wallet etherMasterWallet.transfer(this.balance); } } function buy(address _address, uint256 _time, uint256 _value) internal returns (bool) { if (locked == true) { return false; } if (_time < icoSince) { return false; } if (_time > icoTill) { return false; } if (_value < minEthToContribute || _value == 0) { return false; } uint256 amount = getIcoTokensAmount(soldTokens, _value); if (amount == 0) { return false; } uint256 cloutMinted = clout.mint(_address, amount); uint256 clcMinted = clc.mint(_address, amount); require(cloutMinted == amount); require(clcMinted == amount); soldTokens += amount; collectedEthers += _value; holderEthers[_address] += _value; Contribution(_address, _value, amount, amount); 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":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_locked","type":"bool"}],"name":"setLocked","outputs":[],"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":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_genesisToken","type":"address"}],"name":"setGenesisToken","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_minter","type":"address"}],"name":"removeMinter","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"initialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","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":"_newMinter","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transferFrozen","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"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":"createdAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"locked","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_holder","type":"address"},{"name":"_tokens","type":"uint256"}],"name":"claimedTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxSupply","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"},{"constant":false,"inputs":[{"name":"_frozen","type":"bool"}],"name":"setTransferFrozen","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"minters","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"},{"name":"customFallback","type":"string"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"genesisToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_maxSupply","type":"uint256"},{"name":"decimals","type":"uint8"},{"name":"_genesisToken","type":"address"},{"name":"transferAllSupplyToOwner","type":"bool"}],"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"}]
Contract Creation Code
606060405234156200001057600080fd5b60405160808062001b58833981016040528080519190602001805191906020018051919060200180519150505b6000846040805190810160405280600381526020017f434c4300000000000000000000000000000000000000000000000000000000008152508560408051908101604052600381527f434c43000000000000000000000000000000000000000000000000000000000060208201528560005b8685858585855b8585858585855b5b60008054600160a060020a03191633600160a060020a03161790555b60408051908101604052600981527f455243323020302e31000000000000000000000000000000000000000000000060208201526007908051620001239291602001906200029d565b5060028690558115620001585762000152336002546200027d640100000000026200177a176401000000009004565b6200017a565b6200017a306002546200027d640100000000026200177a176401000000009004565b5b6005858051620001909291602001906200029d565b506006838051620001a69291602001906200029d565b506004805460ff1990811660ff87161790915560088054909116821515179055436003555b5050505050505b505050600160a060020a0333166000908152600c60205260409020805460ff19166001179055505050600b8690555b505042600d55506040935083925050505190810160405260078082527f434c4320302e31000000000000000000000000000000000000000000000000006020830152908051620002569291602001906200029d565b50600e8054600160a060020a031916600160a060020a0384161790555b5050505062000347565b600160a060020a03821660009081526009602052604090208190555b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e057805160ff191683800117855562000310565b8280016001018555821562000310579182015b8281111562000310578251825591602001919060010190620002f3565b5b506200031f92915062000323565b5090565b6200034491905b808211156200031f57600081556001016200032a565b5090565b90565b61180180620003576000396000f300606060405236156101905763ffffffff60e060020a60003504166306fdde038114610195578063095ea7b314610220578063176345141461025657806318160ddd1461027b578063211e28b6146102a057806323b872dd146102ba57806327e235e3146102f65780632953a286146103275780633092afd514610348578063313ce56714610369578063378dc3dc1461039257806340c10f19146103b75780635a3b7e42146103eb5780635c6581651461047657806370a08231146104ad57806379ba5097146104de5780638da5cb5b146104f357806395d89b4114610522578063983b2d56146105ad578063a9059cbb146105ce578063ade4637a14610604578063be45fd621461062b578063cae9ca51146106a4578063cf09e0d01461071d578063cf30901214610742578063d199168d14610769578063d4ee1d901461078d578063d5abeb01146107bc578063dd62ed3e146107e1578063dde2b33214610818578063f2fde38b14610832578063f46eccc414610853578063f6368f8a14610886578063fda237f814610941575b600080fd5b34156101a057600080fd5b6101a8610970565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e55780820151818401525b6020016101cc565b50505050905090810190601f1680156102125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561022b57600080fd5b610242600160a060020a0360043516602435610a0e565b604051901515815260200160405180910390f35b341561026157600080fd5b610269610a8e565b60405190815260200160405180910390f35b341561028657600080fd5b610269610a94565b60405190815260200160405180910390f35b34156102ab57600080fd5b6102b86004351515610a9b565b005b34156102c557600080fd5b610242600160a060020a0360043581169060243516604435610ac9565b604051901515815260200160405180910390f35b341561030157600080fd5b610269600160a060020a0360043516610b8c565b60405190815260200160405180910390f35b341561033257600080fd5b6102b8600160a060020a0360043516610b9e565b005b341561035357600080fd5b6102b8600160a060020a0360043516610be6565b005b341561037457600080fd5b61037c610c26565b60405160ff909116815260200160405180910390f35b341561039d57600080fd5b610269610c2f565b60405190815260200160405180910390f35b34156103c257600080fd5b610269600160a060020a0360043516602435610c35565b60405190815260200160405180910390f35b34156103f657600080fd5b6101a8610c73565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e55780820151818401525b6020016101cc565b50505050905090810190601f1680156102125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561048157600080fd5b610269600160a060020a0360043581169060243516610d11565b60405190815260200160405180910390f35b34156104b857600080fd5b610269600160a060020a0360043516610d2e565b60405190815260200160405180910390f35b34156104e957600080fd5b6102b8610d4d565b005b34156104fe57600080fd5b610506610d9a565b604051600160a060020a03909116815260200160405180910390f35b341561052d57600080fd5b6101a8610da9565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e55780820151818401525b6020016101cc565b50505050905090810190601f1680156102125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105b857600080fd5b6102b8600160a060020a0360043516610e47565b005b34156105d957600080fd5b610242600160a060020a0360043516602435610e8a565b604051901515815260200160405180910390f35b341561060f57600080fd5b610242610ee8565b604051901515815260200160405180910390f35b341561063657600080fd5b61024260048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610ef695505050505050565b604051901515815260200160405180910390f35b34156106af57600080fd5b61024260048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610f2595505050505050565b604051901515815260200160405180910390f35b341561072857600080fd5b61026961105c565b60405190815260200160405180910390f35b341561074d57600080fd5b610242611062565b604051901515815260200160405180910390f35b341561077457600080fd5b6102b8600160a060020a036004351660243561106b565b005b341561079857600080fd5b6105066110a7565b604051600160a060020a03909116815260200160405180910390f35b34156107c757600080fd5b6102696110b6565b60405190815260200160405180910390f35b34156107ec57600080fd5b610269600160a060020a03600435811690602435166110bc565b60405190815260200160405180910390f35b341561082357600080fd5b6102b860043515156110e9565b005b341561083d57600080fd5b6102b8600160a060020a036004351661111c565b005b341561085e57600080fd5b610242600160a060020a0360043516611179565b604051901515815260200160405180910390f35b341561089157600080fd5b61024260048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061118e95505050505050565b604051901515815260200160405180910390f35b341561094c57600080fd5b6105066111c1565b604051600160a060020a03909116815260200160405180910390f35b60058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b505050505081565b60085460009060ff1615610a2457506000610a88565b600160a060020a033381166000818152600a6020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b6002545b90565b60005433600160a060020a03908116911614610ab657600080fd5b6008805460ff19168215151790555b5b50565b600080600336606414610ad857fe5b60085460ff1615610aec5760009250610b82565b600854610100900460ff1615610b055760009250610b82565b600160a060020a038087166000908152600a60209081526040808320339094168352929052205484901015610b3d5760009250610b82565b610b488686866111d0565b91508115610b7e57600160a060020a038087166000908152600a6020908152604080832033909416835292905220805485900390555b8192505b5b50509392505050565b60096020526000908152604090205481565b60005433600160a060020a03908116911614610bb957600080fd5b600e805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a03908116911614610c0157600080fd5b600160a060020a0381166000908152600c60205260409020805460ff191690555b5b50565b60045460ff1681565b60025481565b600160a060020a0333166000908152600c602052604081205460ff161515600114610c5f57600080fd5b610c698383611331565b90505b5b92915050565b60078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b505050505081565b600a60209081526000928352604080842090915290825290205481565b600160a060020a0381166000908152600960205260409020545b919050565b60015433600160a060020a0390811691161415610d9757600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a038416179091551690555b5b565b600054600160a060020a031681565b60068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b505050505081565b60005433600160a060020a03908116911614610e6257600080fd5b600160a060020a0381166000908152600c60205260409020805460ff191660011790555b5b50565b600080600236604414610e9957fe5b60085460ff1615610ea957600080fd5b600854610100900460ff1615610ebe57600080fd5b610ec9338686611405565b9150600182151514610eda57600080fd5b600192505b5b505092915050565b600854610100900460ff1681565b600854600090819060ff1615610f0b57600080fd5b610f1733868686611447565b90508091505b509392505050565b600854600090819060ff1615610f3e5760009150610f1d565b5083610f4a8185610a0e565b15610f1d5780600160a060020a0316638f4ffcb1338630876040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610fe85780820151818401525b602001610fcf565b50505050905090810190601f1680156110155780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561103657600080fd5b6102c65a03f1151561104757600080fd5b50505060019150610f1d565b5b509392505050565b600d5481565b60085460ff1681565b600e5460009033600160a060020a0390811691161461108957600080fd5b6110938383611331565b90508181146110a157600080fd5b5b505050565b600154600160a060020a031681565b600b5481565b600160a060020a038083166000908152600a60209081526040808320938516835292905220545b92915050565b60005433600160a060020a0390811691161461110457600080fd5b6008805461ff001916610100831515021790555b5b50565b60005433600160a060020a0390811691161461113757600080fd5b600160a060020a038116151561114c57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600c6020526000908152604090205460ff1681565b600854600090819060ff16156111a357600080fd5b6111b233878787600188611471565b90508091505b50949350505050565b600e54600160a060020a031681565b60085460009060ff16156111e357600080fd5b600854610100900460ff16156111f857600080fd5b81151561124e5782600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a350600161132a565b600160a060020a038416600090815260096020526040902054829010156112775750600061132a565b600160a060020a0384166000908152600960205260409020546112ab9085906112a6908563ffffffff61176316565b61177a565b600160a060020a0383166000908152600960205260409020546112df9084906112a6908563ffffffff61179a16565b61177a565b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060015b9392505050565b600081151561134257506000610a88565b600b5461135d83611351610a94565b9063ffffffff61179a16565b111561136b57506000610a88565b60025461137e908363ffffffff61179a16565b600255600160a060020a0383166000908152600960205260409020546113aa908363ffffffff61179a16565b600160a060020a0384166000818152600960205260408082209390935590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350805b92915050565b600061140f6117c3565b60085460ff161561141f57600080fd5b61143c858585846000602060405190810160405260008152611471565b91505b509392505050565b6000611466858585856000602060405190810160405260008152611471565b90505b949350505050565b60008060006114818989896111d0565b9150811561175357611492886117b4565b156116ad57508684156115cb5780600160a060020a03166000856040518082805190602001908083835b602083106114dc57805182525b601f1990920191602091820191016114bc565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051809103902060e060020a9004908b8a8a6040518563ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a03168152602001838152602001828051906020019080838360005b8381101561156e5780820151818401525b602001611555565b50505050905090810190601f16801561159b5780820380516001836020036101000a031916815260200191505b50935050505060006040518083038185886187965a03f1151560011493506115c69250505057600080fd5b6116ad565b80600160a060020a031663c0ee0b8a8a89896040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561164b5780820151818401525b602001611632565b50505050905090810190601f1680156116785780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b151561169857600080fd5b6102c65a03f115156116a957600080fd5b5050505b5b856040518082805190602001908083835b602083106116df57805182525b601f1990920191602091820191016116bf565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051809103902088600160a060020a03168a600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c168a60405190815260200160405180910390a45b8192505b50509695505050505050565b60008282111561176f57fe5b508082035b92915050565b600160a060020a03821660009081526009602052604090208190555b5050565b6000828201838110156117a957fe5b8091505b5092915050565b6000813b908111905b50919050565b602060405190810160405260008152905600a165627a7a72305820f9ed871002b5925d09b4be87545dd9637e68f5536880173d3ec867823f9a70df00290000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000005ba49fcf7c9dce67d6a9fc92cc51c8e77cba5b7a0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x606060405236156101905763ffffffff60e060020a60003504166306fdde038114610195578063095ea7b314610220578063176345141461025657806318160ddd1461027b578063211e28b6146102a057806323b872dd146102ba57806327e235e3146102f65780632953a286146103275780633092afd514610348578063313ce56714610369578063378dc3dc1461039257806340c10f19146103b75780635a3b7e42146103eb5780635c6581651461047657806370a08231146104ad57806379ba5097146104de5780638da5cb5b146104f357806395d89b4114610522578063983b2d56146105ad578063a9059cbb146105ce578063ade4637a14610604578063be45fd621461062b578063cae9ca51146106a4578063cf09e0d01461071d578063cf30901214610742578063d199168d14610769578063d4ee1d901461078d578063d5abeb01146107bc578063dd62ed3e146107e1578063dde2b33214610818578063f2fde38b14610832578063f46eccc414610853578063f6368f8a14610886578063fda237f814610941575b600080fd5b34156101a057600080fd5b6101a8610970565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e55780820151818401525b6020016101cc565b50505050905090810190601f1680156102125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561022b57600080fd5b610242600160a060020a0360043516602435610a0e565b604051901515815260200160405180910390f35b341561026157600080fd5b610269610a8e565b60405190815260200160405180910390f35b341561028657600080fd5b610269610a94565b60405190815260200160405180910390f35b34156102ab57600080fd5b6102b86004351515610a9b565b005b34156102c557600080fd5b610242600160a060020a0360043581169060243516604435610ac9565b604051901515815260200160405180910390f35b341561030157600080fd5b610269600160a060020a0360043516610b8c565b60405190815260200160405180910390f35b341561033257600080fd5b6102b8600160a060020a0360043516610b9e565b005b341561035357600080fd5b6102b8600160a060020a0360043516610be6565b005b341561037457600080fd5b61037c610c26565b60405160ff909116815260200160405180910390f35b341561039d57600080fd5b610269610c2f565b60405190815260200160405180910390f35b34156103c257600080fd5b610269600160a060020a0360043516602435610c35565b60405190815260200160405180910390f35b34156103f657600080fd5b6101a8610c73565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e55780820151818401525b6020016101cc565b50505050905090810190601f1680156102125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561048157600080fd5b610269600160a060020a0360043581169060243516610d11565b60405190815260200160405180910390f35b34156104b857600080fd5b610269600160a060020a0360043516610d2e565b60405190815260200160405180910390f35b34156104e957600080fd5b6102b8610d4d565b005b34156104fe57600080fd5b610506610d9a565b604051600160a060020a03909116815260200160405180910390f35b341561052d57600080fd5b6101a8610da9565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e55780820151818401525b6020016101cc565b50505050905090810190601f1680156102125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105b857600080fd5b6102b8600160a060020a0360043516610e47565b005b34156105d957600080fd5b610242600160a060020a0360043516602435610e8a565b604051901515815260200160405180910390f35b341561060f57600080fd5b610242610ee8565b604051901515815260200160405180910390f35b341561063657600080fd5b61024260048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610ef695505050505050565b604051901515815260200160405180910390f35b34156106af57600080fd5b61024260048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610f2595505050505050565b604051901515815260200160405180910390f35b341561072857600080fd5b61026961105c565b60405190815260200160405180910390f35b341561074d57600080fd5b610242611062565b604051901515815260200160405180910390f35b341561077457600080fd5b6102b8600160a060020a036004351660243561106b565b005b341561079857600080fd5b6105066110a7565b604051600160a060020a03909116815260200160405180910390f35b34156107c757600080fd5b6102696110b6565b60405190815260200160405180910390f35b34156107ec57600080fd5b610269600160a060020a03600435811690602435166110bc565b60405190815260200160405180910390f35b341561082357600080fd5b6102b860043515156110e9565b005b341561083d57600080fd5b6102b8600160a060020a036004351661111c565b005b341561085e57600080fd5b610242600160a060020a0360043516611179565b604051901515815260200160405180910390f35b341561089157600080fd5b61024260048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061118e95505050505050565b604051901515815260200160405180910390f35b341561094c57600080fd5b6105066111c1565b604051600160a060020a03909116815260200160405180910390f35b60058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b505050505081565b60085460009060ff1615610a2457506000610a88565b600160a060020a033381166000818152600a6020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b6002545b90565b60005433600160a060020a03908116911614610ab657600080fd5b6008805460ff19168215151790555b5b50565b600080600336606414610ad857fe5b60085460ff1615610aec5760009250610b82565b600854610100900460ff1615610b055760009250610b82565b600160a060020a038087166000908152600a60209081526040808320339094168352929052205484901015610b3d5760009250610b82565b610b488686866111d0565b91508115610b7e57600160a060020a038087166000908152600a6020908152604080832033909416835292905220805485900390555b8192505b5b50509392505050565b60096020526000908152604090205481565b60005433600160a060020a03908116911614610bb957600080fd5b600e805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a03908116911614610c0157600080fd5b600160a060020a0381166000908152600c60205260409020805460ff191690555b5b50565b60045460ff1681565b60025481565b600160a060020a0333166000908152600c602052604081205460ff161515600114610c5f57600080fd5b610c698383611331565b90505b5b92915050565b60078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b505050505081565b600a60209081526000928352604080842090915290825290205481565b600160a060020a0381166000908152600960205260409020545b919050565b60015433600160a060020a0390811691161415610d9757600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a038416179091551690555b5b565b600054600160a060020a031681565b60068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b505050505081565b60005433600160a060020a03908116911614610e6257600080fd5b600160a060020a0381166000908152600c60205260409020805460ff191660011790555b5b50565b600080600236604414610e9957fe5b60085460ff1615610ea957600080fd5b600854610100900460ff1615610ebe57600080fd5b610ec9338686611405565b9150600182151514610eda57600080fd5b600192505b5b505092915050565b600854610100900460ff1681565b600854600090819060ff1615610f0b57600080fd5b610f1733868686611447565b90508091505b509392505050565b600854600090819060ff1615610f3e5760009150610f1d565b5083610f4a8185610a0e565b15610f1d5780600160a060020a0316638f4ffcb1338630876040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610fe85780820151818401525b602001610fcf565b50505050905090810190601f1680156110155780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561103657600080fd5b6102c65a03f1151561104757600080fd5b50505060019150610f1d565b5b509392505050565b600d5481565b60085460ff1681565b600e5460009033600160a060020a0390811691161461108957600080fd5b6110938383611331565b90508181146110a157600080fd5b5b505050565b600154600160a060020a031681565b600b5481565b600160a060020a038083166000908152600a60209081526040808320938516835292905220545b92915050565b60005433600160a060020a0390811691161461110457600080fd5b6008805461ff001916610100831515021790555b5b50565b60005433600160a060020a0390811691161461113757600080fd5b600160a060020a038116151561114c57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600c6020526000908152604090205460ff1681565b600854600090819060ff16156111a357600080fd5b6111b233878787600188611471565b90508091505b50949350505050565b600e54600160a060020a031681565b60085460009060ff16156111e357600080fd5b600854610100900460ff16156111f857600080fd5b81151561124e5782600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a350600161132a565b600160a060020a038416600090815260096020526040902054829010156112775750600061132a565b600160a060020a0384166000908152600960205260409020546112ab9085906112a6908563ffffffff61176316565b61177a565b600160a060020a0383166000908152600960205260409020546112df9084906112a6908563ffffffff61179a16565b61177a565b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060015b9392505050565b600081151561134257506000610a88565b600b5461135d83611351610a94565b9063ffffffff61179a16565b111561136b57506000610a88565b60025461137e908363ffffffff61179a16565b600255600160a060020a0383166000908152600960205260409020546113aa908363ffffffff61179a16565b600160a060020a0384166000818152600960205260408082209390935590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350805b92915050565b600061140f6117c3565b60085460ff161561141f57600080fd5b61143c858585846000602060405190810160405260008152611471565b91505b509392505050565b6000611466858585856000602060405190810160405260008152611471565b90505b949350505050565b60008060006114818989896111d0565b9150811561175357611492886117b4565b156116ad57508684156115cb5780600160a060020a03166000856040518082805190602001908083835b602083106114dc57805182525b601f1990920191602091820191016114bc565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051809103902060e060020a9004908b8a8a6040518563ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a03168152602001838152602001828051906020019080838360005b8381101561156e5780820151818401525b602001611555565b50505050905090810190601f16801561159b5780820380516001836020036101000a031916815260200191505b50935050505060006040518083038185886187965a03f1151560011493506115c69250505057600080fd5b6116ad565b80600160a060020a031663c0ee0b8a8a89896040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561164b5780820151818401525b602001611632565b50505050905090810190601f1680156116785780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b151561169857600080fd5b6102c65a03f115156116a957600080fd5b5050505b5b856040518082805190602001908083835b602083106116df57805182525b601f1990920191602091820191016116bf565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051809103902088600160a060020a03168a600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c168a60405190815260200160405180910390a45b8192505b50509695505050505050565b60008282111561176f57fe5b508082035b92915050565b600160a060020a03821660009081526009602052604090208190555b5050565b6000828201838110156117a957fe5b8091505b5092915050565b6000813b908111905b50919050565b602060405190810160405260008152905600a165627a7a72305820f9ed871002b5925d09b4be87545dd9637e68f5536880173d3ec867823f9a70df0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000005ba49fcf7c9dce67d6a9fc92cc51c8e77cba5b7a0000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 1000000000000000000000000000
Arg [1] : decimals (uint8): 18
Arg [2] : _genesisToken (address): 0x5Ba49Fcf7C9Dce67d6a9FC92Cc51c8E77CbA5b7a
Arg [3] : transferAllSupplyToOwner (bool): False
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [2] : 0000000000000000000000005ba49fcf7c9dce67d6a9fc92cc51c8e77cba5b7a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Swarm Source
bzzr://f9ed871002b5925d09b4be87545dd9637e68f5536880173d3ec867823f9a70df
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.