Sponsored:   Color - Revolutionizing the Dapp Ecosystem, Bounty & Airdrop, Get 240,000 COL NOW!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 106 txns
 Latest 25 txns from a total Of 106 transactions

TxHash Age From To Value [TxFee]
0x962b947fc6090ca3ffb070d787c6072474bf2642ee5522ed7a6d62e190e749df139 days 15 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.000054062
0x85ae1fc455ad58cf658b1d0ddf8f2bee90062af7d2ea00a99c3e85841f231eed140 days 17 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00224485
0x236d84d3785a68a4ca1fad48fdbb0316bad6056ee0b42341ba1fba372d8e8a38140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299165
0xb600a2f49bcc62b47d2917ec904698be8b323fd346580e229a8ba54cfe600506140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x4f47b657fdf3ce5bdf2074fa9692fb32798ccdcad8bfd7123b5706a64d24f866140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x93aed9e2fbfffb5215d7fe8b36c5a580be56a98a218d134bbc0b4e51e3a6211b140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x9a583ec8fc44106ae4de71f8dfec2755ef8968aa801377284e80bca4759fb4f3140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0xf2dd89cc510edec78dac3d4f225c538f4c063a59f6201d5725b9d1dd5238651a140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x691b73e134218cc7652652cb9962f12bb614f7b58597fcec6ab8d1514bdbb8e8140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x1ac83c1f94538cbd77d42bb3939d3f111d0681dca6f055e0371d23d0037dea2a140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x2f21112482a6bf899aafbe98431c0af0a1401999fa4aab7d07842c5c85629e23140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x31dc9151013db849ea19f8748f53bbe5df5f5345252569a75ca6d2fa1dbc9436140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0xece3c9c81cbfc668cd09f7e4830f50f11d2bf7939ea1b1f1c6875bf093dccb3e140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0x321919799dd1f68defba952b47161ad6af3c3c7fb3cb5befa500610b04975bd4140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299485
0xfd21831403d418322b652e93231f161aba78ff5c07a3d4c0ecf3354d2ef69e37140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299165
0x7bed9b7b67da5ff093466cff91ea56692e2d13432499cb2e250443450e715ee6140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0xd5a720882691f26e1b21afe00a0cc532327162e121994d1f10023947d46cfbd9140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x98c5c8f6332890307e1379e0f98281976feea688596b186d53aa6d17587fb8e9140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x6430641543b0ca6b7ecfd0b74f77c2c55c286348a901e8d700ceb228e9f3fe7b140 days 18 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00224805
0x42e3e57a75c1202be152936e3d4715cf942b4af10ba9bbcc83ca9c2e15c2abb9141 days 19 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0xb005f679c66d1e2e1430c0e296b85d36077bbdfe9523c9f69b2e2f2d32db853c141 days 19 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x2fa54eee02e92c852a4b55ff049e6a5d1e857d68ac7e0940b5d3575f62fc0a48141 days 19 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x1c3961a9011c64b9a45fc0bde789ca759da461c3e3e3863a0eb849564c74a161141 days 19 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x5b694f71d1006654ca13f3a67cfbff350dbc8b4e5e4af7538f7099211a011e5a141 days 19 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
0x8c98f76e674a098a28eac0d1a404df5e845529e36f04021b2e8958989c084f2b141 days 19 hrs ago0xbfc5ed5b0b38e2304600dbdb1ce42fc187ce2b44  IN   0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0 Ether0.00299805
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x47a4ed75a859d32adfe1f8f69d4d878f77242a74e8dae38b0794cdcdee0680145219414162 days 20 hrs ago0xbe398944aa0eae437a62f2d66b8eab3ea91f80eb0xf4ec5566b1597f3c63af928ee95f77510ebb95700.01 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: Crowdsale
Compiler Version: v0.4.20+commit.3155dd80
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18;


library SafeMath {


  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }


  function div(uint256 a, uint256 b) internal pure 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 pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }


  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

contract RTCoin {
    using SafeMath for uint256;
    
	address public owner;
    address public saleAgent;
    uint256 public totalSupply;
	string public name;
	uint8 public decimals;
	string public symbol;
	bool private allowEmission = true;
	mapping (address => uint256) balances;
    
    
    function RTCoin(string _name, string _symbol, uint8 _decimals) public {
		decimals = _decimals;
		name = _name;
		symbol = _symbol;
		owner = msg.sender;
	}
	
	
    function changeSaleAgent(address newSaleAgent) public onlyOwner {
        require (newSaleAgent!=address(0));
        uint256 tokenAmount = balances[saleAgent];
        if (tokenAmount>0) {
            balances[newSaleAgent] = balances[newSaleAgent].add(tokenAmount);
            balances[saleAgent] = balances[saleAgent].sub(tokenAmount);
            Transfer(saleAgent, newSaleAgent, tokenAmount);
        }
        saleAgent = newSaleAgent;
    }
	
	
	function emission(uint256 amount) public onlyOwner {
	    require(allowEmission);
	    require(saleAgent!=address(0));
	    totalSupply = amount * (uint256(10) ** decimals);
		balances[saleAgent] = totalSupply;
		Transfer(0x0, saleAgent, totalSupply);
		allowEmission = false;
	}
    
    
    function burn(uint256 _value) public {
        require(_value > 0);
        address burner;
        if (msg.sender==owner)
            burner = saleAgent;
        else
            burner = msg.sender;
        balances[burner] = balances[burner].sub(_value);
        totalSupply = totalSupply.sub(_value);
        Burn(burner, _value);
    }
     
    event Burn(address indexed burner, uint indexed value);
	
	
	function transfer(address _to, uint256 _value) public returns (bool) {
        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        Transfer(msg.sender, _to, _value);
        return true;
    }
    
    
    function balanceOf(address _owner) public constant returns (uint256 balance) {
        return balances[_owner];
    }
	
	
	function transferOwnership(address newOwner) onlyOwner public {
        require(newOwner != address(0));
        owner = newOwner; 
    }
    
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }


	
	event Transfer(
		address indexed _from,
		address indexed _to,
		uint _value
	);
}

contract Crowdsale {
    
    using SafeMath for uint256;
    address fundsWallet;
    RTCoin public token;
    address public owner;
	bool public open = false;
    uint256 public tokenLimit;
    
    uint256 public rate = 20000; //значение для pre ICO, 0.00005 ETH = 1 RTC 
    
    
    function Crowdsale(address _fundsWallet, address tokenAddress, 
                       uint256 _rate, uint256 _tokenLimit) public {
        fundsWallet = _fundsWallet;
        token = RTCoin(tokenAddress);
        rate = _rate;
        owner = msg.sender;
        tokenLimit = _tokenLimit * (uint256(10) ** token.decimals());
    }
    
    
    function() external isOpen payable {
        require(tokenLimit>0);
        fundsWallet.transfer(msg.value);
        uint256 tokens = calculateTokenAmount(msg.value);
        token.transfer(msg.sender, tokens);
        tokenLimit = tokenLimit.sub(tokens);
    }
  
    
    function changeFundAddress(address newAddress) public onlyOwner {
        require(newAddress != address(0));
        fundsWallet = newAddress;
	}
	
	
    function changeRate(uint256 newRate) public onlyOwner {
        require(newRate>0);
        rate = newRate;
    }
    
    
    function calculateTokenAmount(uint256 weiAmount) public constant returns(uint256) {
        if (token.decimals()!=18){
            uint256 tokenAmount = weiAmount.mul(rate).div(uint256(10) ** (18-token.decimals())); 
            return tokenAmount;
        }
        else return weiAmount.mul(rate);
    }
    
    function transferTo(address _to, uint256 _value) public onlyOwner returns (bool) {
        require(tokenLimit>0);
        token.transfer(_to, _value);
        tokenLimit = tokenLimit.sub(_value);
    }
    
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }
    
    
    function allowSale() public onlyOwner {
        open = true;
    }
    
    
    function disallowSale() public onlyOwner {
        open = false;
    }
    
    modifier isOpen() {
        require(open == true);
        _;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferTo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"disallowSale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newRate","type":"uint256"}],"name":"changeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"weiAmount","type":"uint256"}],"name":"calculateTokenAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"allowSale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newAddress","type":"address"}],"name":"changeFundAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"open","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_fundsWallet","type":"address"},{"name":"tokenAddress","type":"address"},{"name":"_rate","type":"uint256"},{"name":"_tokenLimit","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
60606040526002805460a060020a60ff0219169055614e20600455341561002557600080fd5b6040516080806107df8339810160405280805191906020018051919060200180519190602001805160008054600160a060020a03808916600160a060020a0319928316178355600180548983169084161790819055600488905560028054338416941693909317909255929450909116915063313ce56790604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156100eb57600080fd5b6102c65a03f115156100fc57600080fd5b505050604051805160ff16600a0a91909102600355505050506106bb806101246000396000f3006060604052600436106100955763ffffffff60e060020a6000350416632c4e722e81146101a75780632ccb1b30146101cc57806342d544fb1461020257806356c7627e1461021757806374e7493b1461022a5780638da5cb5b14610240578063a24bcf461461026f578063d0f3aa8014610285578063f9271fd314610298578063fc0c546a146102b7578063fcfff16f146102ca575b60025460009074010000000000000000000000000000000000000000900460ff1615156001146100c457600080fd5b600354600090116100d457600080fd5b600054600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561010857600080fd5b610111346102dd565b600154909150600160a060020a031663a9059cbb338360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561017357600080fd5b6102c65a03f1151561018457600080fd5b505050604051805150506003546101a1908263ffffffff61040816565b60035550005b34156101b257600080fd5b6101ba61041a565b60405190815260200160405180910390f35b34156101d757600080fd5b6101ee600160a060020a0360043516602435610420565b604051901515815260200160405180910390f35b341561020d57600080fd5b6102156104e4565b005b341561022257600080fd5b6101ba61051f565b341561023557600080fd5b610215600435610525565b341561024b57600080fd5b610253610552565b604051600160a060020a03909116815260200160405180910390f35b341561027a57600080fd5b6101ba6004356102dd565b341561029057600080fd5b610215610561565b34156102a357600080fd5b610215600160a060020a03600435166105b3565b34156102c257600080fd5b610253610612565b34156102d557600080fd5b6101ee610621565b6001546000908190600160a060020a031663313ce56782604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561032957600080fd5b6102c65a03f1151561033a57600080fd5b5050506040518051905060ff1660121415156103eb576001546103e190600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039c57600080fd5b6102c65a03f115156103ad57600080fd5b5050506040518051905060120360ff16600a0a6103d56004548661064290919063ffffffff16565b9063ffffffff61067816565b9050809150610402565b6004546103ff90849063ffffffff61064216565b91505b50919050565b60008282111561041457fe5b50900390565b60045481565b60025460009033600160a060020a0390811691161461043e57600080fd5b6003546000901161044e57600080fd5b600154600160a060020a031663a9059cbb848460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156104ad57600080fd5b6102c65a03f115156104be57600080fd5b505050604051805150506003546104db908363ffffffff61040816565b60035592915050565b60025433600160a060020a039081169116146104ff57600080fd5b6002805474ff000000000000000000000000000000000000000019169055565b60035481565b60025433600160a060020a0390811691161461054057600080fd5b6000811161054d57600080fd5b600455565b600254600160a060020a031681565b60025433600160a060020a0390811691161461057c57600080fd5b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b60025433600160a060020a039081169116146105ce57600080fd5b600160a060020a03811615156105e357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600154600160a060020a031681565b60025474010000000000000000000000000000000000000000900460ff1681565b6000808315156106555760009150610671565b5082820282848281151561066557fe5b041461066d57fe5b8091505b5092915050565b600080828481151561068657fe5b049493505050505600a165627a7a72305820e7fdd5594d218c114174f2563ec34fa2884fced3b417d48da659c55dc60124f90029000000000000000000000000f4ec5566b1597f3c63af928ee95f77510ebb95700000000000000000000000003d9ef820804c88f2d2cd86d15f0c189600336bed00000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000001312d00

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f4ec5566b1597f3c63af928ee95f77510ebb95700000000000000000000000003d9ef820804c88f2d2cd86d15f0c189600336bed00000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000001312d00

-----Decoded View---------------
Found 4 constructor arguments :
Arg [0] : 000000000000000000000000f4ec5566b1597f3c63af928ee95f77510ebb9570
Arg [1] : 0000000000000000000000003d9ef820804c88f2d2cd86d15f0c189600336bed
Arg [2] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [3] : 0000000000000000000000000000000000000000000000000000000001312d00


   Swarm Source:
bzzr://e7fdd5594d218c114174f2563ec34fa2884fced3b417d48da659c55dc60124f9

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.