Contract Overview
Balance: 4.483789718976851568 Ether
Ether Value: $416.77 (@ $92.95/ETH)
Transactions: 647 txns
Token Tracker: Crypto Miner Token Classic (CMC)
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xe753ff383e2e09217cee594e25ced4ff8a67e76fat txn 0x1abcf6b11364b95414fe7d9ec5a799898c5cb91d62dac44086e96c08ccee9e67
 Latest 25 transactions from a total of 647 transactions

TxHash Age From To Value [TxFee]
0x008bc1619c11e2fd1504c6756f802cf2bfb75f2ccb050c981fa880b7e4a0aeae43 days 11 hrs ago0xf4ee5f307ac43dd4ef66426e34ddcccdf300e19e  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.000532875
0x60d7a43ae26d7de1f5a6c9ef4dc112f70d0079b2221d57240fe2c2b94547d11743 days 11 hrs ago0xf4ee5f307ac43dd4ef66426e34ddcccdf300e19e  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.000177625
0xfe04f938babf902a91984ff985048a21ea2256e5ba14199e0958bd2c1c60630247 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00010478921
0x5a23dfb5d5d24c120b5becc3617236f219e77c53fe84a03134c3f0b3e2c5934747 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0xc41fc8a59744df195581581b2b0bfba3091f4755b08fdc78bd5481bdcecb220c47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x80ff4b778fab8db377ec06c044be17cc6db2ac1854b7a821867a63651942f41547 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x879f25ec3dbb618e56800d6bb44fdc1d95f0ec1ccc595336a5a0af8cf01a718347 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x5a19147a147e263d53ac4d280a518c7eeb780865e4d9f40e1bc19af8db8a303d47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x5eb9806543e9d10cbb3e41fff240fe310e517834f2474be05ca89511f4da754247 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0xcd7820fb8a4d9fc1abea059b818007511635bd9ef20e3eac114fd03eb18079a947 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x7da1ddd82e43bcf20120d12c3740d615d4b14203ad1d0a8a798a2172480f636a47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0xebcea39708c228373883d98f7bb6ad66572baf78ed55fbf9f8cc7246387f833b47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x6d1c464b7c4bb9d80467a772aecb4b092557e5b848900e1e12b43edb67a1a03747 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x481e76cf79ce5160403589bafcb5acf5864426d31fb1f6e9a9e8a2499eae7dde47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x8c7c1216195d48e525a89e066c70cd4220b4a93dfce7d1c9033c0a705527baa247 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x37b2b4e5f0746dd3c9a7278d6079e474c03c89314961bc80e59e7cf4b0defb8947 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x55787d68087089024c7589bbf1a1cde342d354e7976b28133a1f1f145e7cc50747 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x4d58d1d5f7131e9d1b89e3ce7bfd97231bd176067350d4354ab60fd9376396f247 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0xd35d0eb885ebe25bb4ed3344c6c9f5726e7afdc00a6055d12c74b7d64d3cef3647 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x2251fe288b805f0af734ad5d93be67aeb72eebb8e4452d8e34d3e3874fc024af47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x0d5805649d2e2970950062fbdf7a9b27ae69eda3753bbeddb0016da7f0f9442847 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0xb6915ccd4b92f3f3ab7091d705d6d6d94f8ead452a7510634e2985629cbb5a2647 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x727796205911455ac8cfc3e9e631d0f4db30c8cc593da8e5d620775fbefcfcbe47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x1d682b047c9ce94769487b47ef2de3196d092bf9a515ca91780c8ebf0b51343e47 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
0x2bbd241d397ccfa9a6ca443f345a90ba839619d6ea2b667ec69501a4dbfc832847 days 7 hrs ago0xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb  IN   0xfd5f062dc35a29f71972341b310b526a743df2060 Ether0.00011453904
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0xfe04f938babf902a91984ff985048a21ea2256e5ba14199e0958bd2c1c606302657132947 days 7 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb3.915573085299944811 Ether
0x4cce0ac6dc97a6a9c6260a9d0c73066f6535835183a077e5bf95d16a4196ead6657074447 days 9 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x73f23798ab83db940005d124132a5230c18ecbed1.697820849809385888 Ether
0xa77f7097b7ae95d9999e542109190efe29128c499587d677761f309c839b8c96657072647 days 9 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x6742f656a2914cf8d0792b5d1ed8669e3da766920.059550263995055011 Ether
0xbc7a02355fb24e224ca2c8c5d108986d6790580ba03faa73eb58b8131ae1ab9b657067447 days 9 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x6742f656a2914cf8d0792b5d1ed8669e3da766920.027552305637085635 Ether
0xdf642ab09a48923ed68fd0d4274d801fd38adc42679052db19c68ee3c825668a656975747 days 13 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x1fbfba66f3a61bd737ce15149436b1aa20f7384a0.324695085376751713 Ether
0xb0044afc01e4e62d6b2cabd4821541efbde9d8fffcbd204031f4f5777b94ba53656812347 days 19 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x3fc2ca5d9629f2826c8fca8667e1c74dae3f76d40.064615089727438028 Ether
0x0892ffccd5a7f8b9b39309f4473bff1bc6880384241d4ece71d98193864ac11f655787549 days 11 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x3fc2ca5d9629f2826c8fca8667e1c74dae3f76d40.029545593425646446 Ether
0x51ea5e3134c5046c9180913f4a4517946a52483fa37fd73d57ff082d6f6da9b4653967552 days 11 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x224fba6d1ebb1c4fd36d14b458eab923a8c570590.000000164440577116 Ether
0x06ff8ac956a85c19c8635a28f9eba9073318743911d758560f827b088f9d98bb653495553 days 5 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x296dc945a547b9f8e4e9673d2f9572c909d9e5870.097524374592463896 Ether
0x56057d344568ee3d209bee657015c1643b7d47949fe34e7a0b1fe6833c10b3fa653449553 days 7 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x50acd8b83ee1be23f4bf02cbb4cc92a52f56ae934.210030208838627642 Ether
0x1cf1b3c3d2892864e3752f90fb6fd76c7cb3ed68ee8cb938a47ad3a387fc5d5b653408353 days 9 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x296dc945a547b9f8e4e9673d2f9572c909d9e5870.002889796917273196 Ether
0x1c3986eb0bf563ba6d9353abf5065376a7214f0c4ccc8bf09d91bb17ec1e4fc8653403553 days 9 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x50acd8b83ee1be23f4bf02cbb4cc92a52f56ae930.068763252549865089 Ether
0xdf4c042317dfeb4db9ab84170d9d36bc1e4994dbcb37016fe00c378969aab1b9653374053 days 10 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x675444125e881151610f6765096554880ee3c5170.308077067570996023 Ether
0xf8d95b8e8457e3b6fd8d3563670ba1c8f4ab59c28c4405675cb25a72745bbce6653371753 days 10 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x675444125e881151610f6765096554880ee3c5170.098000724125269572 Ether
0x4e73f203dfe84d8eaf7a87dde489802add6881d0cb772cce121cb6e257a5a23a653188253 days 17 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x7792246211c1e9952b2a2f334272c36f628b66140.040735138977402805 Ether
0x75cb6e916d9a3e4dc7b29a0bc771f9de0c18451577339cc08c684d1f51d4015d653186053 days 17 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x7792246211c1e9952b2a2f334272c36f628b66140.002121396935036702 Ether
0x9b6d0f3910a658972863663a80bdd87f5ee6613138313e5bcec7225a57351180653092453 days 21 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060xf5ce7ea5b0bef1d57d9c18922d85ad18cae293eb4.316195721250675033 Ether
0xe3f100020cd8748c5e593dc72eee84159889ceab2620696f0d325be9ba48e0fd653082753 days 21 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x495d3a6e1b82d77df854fc94d73934c8364d24830.000676567559860678 Ether
0x45f5b778038ab9029e4d15fa9e9df27108a3b3196a1987290086e16bb9feb38b653018554 days 17 mins ago0xfd5f062dc35a29f71972341b310b526a743df2060xc1880f8092d8edf794ebae1b3bd3225255ce41e80.249643055351192419 Ether
0x6058b0927329c84870576967c88e0e1847c6755d98e8ba1db195c02fe48c9195653011954 days 35 mins ago0xfd5f062dc35a29f71972341b310b526a743df2060xc1880f8092d8edf794ebae1b3bd3225255ce41e80.005183756226700651 Ether
0x5d73010a1cfcc2c5e6a1b7911a1d767ecad5bf44044b9ad7d20b8f33da9d8179652835854 days 7 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x1ff3cc654e7835a7bfa5e659b4b86b8e28693d1d0.150834088143276219 Ether
0x25a89d16b92fb918e2b2ddfd492ab8332819b4f82a11e08859883a06cc6576b1652827554 days 7 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x2a0584a68e3f51e565de7236892c7cd1ecab72d40.101415518587526956 Ether
0x3afcd0967fdd1938f3d2384bddde3374b2f7fe1e3e7df728be9c8ae24608a794652819454 days 8 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x2d3d7f979302cba64d5b95446f9cb64011336eb10.032412097094193178 Ether
0x6c2f1c3d6e8f7dc7353d960413590f9478909b53b2ce00a661e7edb07c04e995652818754 days 8 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060x2a0584a68e3f51e565de7236892c7cd1ecab72d40.945568866597073825 Ether
0x276805308d040e8fc7d06c48d2c7880819c417c229cc093083a9f3b56d17cc2f652815954 days 8 hrs ago0xfd5f062dc35a29f71972341b310b526a743df2060xaa521576ff0d4328db76967a722d20cc1ba919550.188695512178491409 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: CryptoMinerTokenClassic
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.25;

/*
* [✓] 4% Withdraw fee
* [✓] 10% Deposit fee
* [✓] 1% Token transfer
* [✓] 33% Referal link
*
*/

contract CryptoMinerTokenClassic {

    modifier onlyBagholders {
        require(myTokens() > 0);
        _;
    }

    modifier onlyStronghands {
        require(myDividends(true) > 0);
        _;
    }

    event onTokenPurchase(
        address indexed customerAddress,
        uint256 incomingEthereum,
        uint256 tokensMinted,
        address indexed referredBy,
        uint timestamp,
        uint256 price
);

    event onTokenSell(
        address indexed customerAddress,
        uint256 tokensBurned,
        uint256 ethereumEarned,
        uint timestamp,
        uint256 price
);

    event onReinvestment(
        address indexed customerAddress,
        uint256 ethereumReinvested,
        uint256 tokensMinted
);

    event onWithdraw(
        address indexed customerAddress,
        uint256 ethereumWithdrawn
);

    event Transfer(
        address indexed from,
        address indexed to,
        uint256 tokens
);

    string public name = "Crypto Miner Token Classic";
    string public symbol = "CMC";
    uint8 constant public decimals = 18;
    uint8 constant internal entryFee_ = 10;
    uint8 constant internal transferFee_ = 1;
    uint8 constant internal exitFee_ = 4;
    uint8 constant internal refferalFee_ = 33;
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;
    uint256 constant internal magnitude = 2 ** 64;
    uint256 public stakingRequirement = 50e18;
    mapping(address => uint256) internal tokenBalanceLedger_;
    mapping(address => uint256) internal referralBalance_;
    mapping(address => int256) internal payoutsTo_;
    uint256 internal tokenSupply_;
    uint256 internal profitPerShare_;

    function buy(address _referredBy) public payable returns (uint256) {
        purchaseTokens(msg.value, _referredBy);
    }

    function() payable public {
        purchaseTokens(msg.value, 0x0);
    }

    function reinvest() onlyStronghands public {
        uint256 _dividends = myDividends(false);
        address _customerAddress = msg.sender;
        payoutsTo_[_customerAddress] +=  (int256) (_dividends * magnitude);
        _dividends += referralBalance_[_customerAddress];
        referralBalance_[_customerAddress] = 0;
        uint256 _tokens = purchaseTokens(_dividends, 0x0);
        emit onReinvestment(_customerAddress, _dividends, _tokens);
    }

    function exit() public {
        address _customerAddress = msg.sender;
        uint256 _tokens = tokenBalanceLedger_[_customerAddress];
        if (_tokens > 0) sell(_tokens);
        withdraw();
    }

    function withdraw() onlyStronghands public {
        address _customerAddress = msg.sender;
        uint256 _dividends = myDividends(false);
        payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude);
        _dividends += referralBalance_[_customerAddress];
        referralBalance_[_customerAddress] = 0;
        _customerAddress.transfer(_dividends);
        emit onWithdraw(_customerAddress, _dividends);
    }

    function sell(uint256 _amountOfTokens) onlyBagholders public {
        address _customerAddress = msg.sender;
        require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
        uint256 _tokens = _amountOfTokens;
        uint256 _ethereum = tokensToEthereum_(_tokens);
        uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, exitFee_), 100);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);

        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens);
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens);

        int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude));
        payoutsTo_[_customerAddress] -= _updatedPayouts;

        if (tokenSupply_ > 0) {
            profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        }
        emit onTokenSell(_customerAddress, _tokens, _taxedEthereum, now, buyPrice());
    }

    function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders public returns (bool) {
        address _customerAddress = msg.sender;
        require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);

        if (myDividends(true) > 0) {
            withdraw();
        }

        uint256 _tokenFee = SafeMath.div(SafeMath.mul(_amountOfTokens, transferFee_), 100);
        uint256 _taxedTokens = SafeMath.sub(_amountOfTokens, _tokenFee);
        uint256 _dividends = tokensToEthereum_(_tokenFee);

        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokenFee);
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _taxedTokens);
        payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens);
        payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _taxedTokens);
        profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        emit Transfer(_customerAddress, _toAddress, _taxedTokens);
        return true;
    }


    function totalEthereumBalance() public view returns (uint256) {
        return this.balance;
    }

    function totalSupply() public view returns (uint256) {
        return tokenSupply_;
    }

    function myTokens() public view returns (uint256) {
        address _customerAddress = msg.sender;
        return balanceOf(_customerAddress);
    }

    function myDividends(bool _includeReferralBonus) public view returns (uint256) {
        address _customerAddress = msg.sender;
        return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
    }

    function balanceOf(address _customerAddress) public view returns (uint256) {
        return tokenBalanceLedger_[_customerAddress];
    }

    function dividendsOf(address _customerAddress) public view returns (uint256) {
        return (uint256) ((int256) (profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
    }

    function sellPrice() public view returns (uint256) {
        // our calculation relies on the token supply, so we need supply. Doh.
        if (tokenSupply_ == 0) {
            return tokenPriceInitial_ - tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, exitFee_), 100);
            uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);

            return _taxedEthereum;
        }
    }

    function buyPrice() public view returns (uint256) {
        if (tokenSupply_ == 0) {
            return tokenPriceInitial_ + tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, entryFee_), 100);
            uint256 _taxedEthereum = SafeMath.add(_ethereum, _dividends);

            return _taxedEthereum;
        }
    }

    function calculateTokensReceived(uint256 _ethereumToSpend) public view returns (uint256) {
        uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereumToSpend, entryFee_), 100);
        uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);

        return _amountOfTokens;
    }

    function calculateEthereumReceived(uint256 _tokensToSell) public view returns (uint256) {
        require(_tokensToSell <= tokenSupply_);
        uint256 _ethereum = tokensToEthereum_(_tokensToSell);
        uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, exitFee_), 100);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        return _taxedEthereum;
    }


    function purchaseTokens(uint256 _incomingEthereum, address _referredBy) internal returns (uint256) {
        address _customerAddress = msg.sender;
        uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, entryFee_), 100);
        uint256 _referralBonus = SafeMath.div(SafeMath.mul(_undividedDividends, refferalFee_), 100);
        uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus);
        uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, _undividedDividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        uint256 _fee = _dividends * magnitude;

        require(_amountOfTokens > 0 && SafeMath.add(_amountOfTokens, tokenSupply_) > tokenSupply_);

        if (
            _referredBy != 0x0000000000000000000000000000000000000000 &&
            _referredBy != _customerAddress &&
            tokenBalanceLedger_[_referredBy] >= stakingRequirement
        ) {
            referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus);
        } else {
            _dividends = SafeMath.add(_dividends, _referralBonus);
            _fee = _dividends * magnitude;
        }

        if (tokenSupply_ > 0) {
            tokenSupply_ = SafeMath.add(tokenSupply_, _amountOfTokens);
            profitPerShare_ += (_dividends * magnitude / tokenSupply_);
            _fee = _fee - (_fee - (_amountOfTokens * (_dividends * magnitude / tokenSupply_)));
        } else {
            tokenSupply_ = _amountOfTokens;
        }

        tokenBalanceLedger_[_customerAddress] = SafeMath.add(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        int256 _updatedPayouts = (int256) (profitPerShare_ * _amountOfTokens - _fee);
        payoutsTo_[_customerAddress] += _updatedPayouts;
        emit onTokenPurchase(_customerAddress, _incomingEthereum, _amountOfTokens, _referredBy, now, buyPrice());

        return _amountOfTokens;
    }

    function ethereumToTokens_(uint256 _ethereum) internal view returns (uint256) {
        uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18;
        uint256 _tokensReceived =
            (
                (
                    SafeMath.sub(
                        (sqrt
                            (
                                (_tokenPriceInitial ** 2)
                                +
                                (2 * (tokenPriceIncremental_ * 1e18) * (_ethereum * 1e18))
                                +
                                ((tokenPriceIncremental_ ** 2) * (tokenSupply_ ** 2))
                                +
                                (2 * tokenPriceIncremental_ * _tokenPriceInitial*tokenSupply_)
                            )
                        ), _tokenPriceInitial
                    )
                ) / (tokenPriceIncremental_)
            ) - (tokenSupply_);

        return _tokensReceived;
    }

    function tokensToEthereum_(uint256 _tokens) internal view returns (uint256) {
        uint256 tokens_ = (_tokens + 1e18);
        uint256 _tokenSupply = (tokenSupply_ + 1e18);
        uint256 _etherReceived =
            (
                SafeMath.sub(
                    (
                        (
                            (
                                tokenPriceInitial_ + (tokenPriceIncremental_ * (_tokenSupply / 1e18))
                            ) - tokenPriceIncremental_
                        ) * (tokens_ - 1e18)
                    ), (tokenPriceIncremental_ * ((tokens_ ** 2 - tokens_) / 1e18)) / 2
                )
                / 1e18);

        return _etherReceived;
    }

    function sqrt(uint256 x) internal pure returns (uint256 y) {
        uint256 z = (x + 1) / 2;
        y = x;

        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }


}

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) {
        uint256 c = a / b;
        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 ABI  
[{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumToSpend","type":"uint256"}],"name":"calculateTokensReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"},{"indexed":true,"name":"referredBy","type":"address"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"price","type":"uint256"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"price","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60c0604052601a60808190527f43727970746f204d696e657220546f6b656e20436c617373696300000000000060a0908152620000409160009190620000a9565b506040805180820190915260038082527f434d43000000000000000000000000000000000000000000000000000000000060209092019182526200008791600191620000a9565b506802b5e3af16b1880000600255348015620000a257600080fd5b506200014e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000ec57805160ff19168380011785556200011c565b828001600101855582156200011c579182015b828111156200011c578251825591602001919060010190620000ff565b506200012a9291506200012e565b5090565b6200014b91905b808211156200012a576000815560010162000135565b90565b610f6a806200015e6000396000f3006080604052600436106101105763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461011e57806306fdde031461015157806310d0ffdd146101db57806318160ddd146101f35780632260937314610208578063313ce567146102205780633ccfd60b1461024b5780634b7503341461026257806356d399e814610277578063688abbf71461028c5780636b2f4632146102a657806370a08231146102bb5780638620410b146102dc578063949e8acd146102f157806395d89b4114610306578063a9059cbb1461031b578063e4849b3214610353578063e9fad8ee1461036b578063f088d54714610380578063fdb5a03e14610394575b61011b3460006103a9565b50005b34801561012a57600080fd5b5061013f600160a060020a036004351661060c565b60408051918252519081900360200190f35b34801561015d57600080fd5b50610166610647565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a0578181015183820152602001610188565b50505050905090810190601f1680156101cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e757600080fd5b5061013f6004356106d5565b3480156101ff57600080fd5b5061013f610708565b34801561021457600080fd5b5061013f60043561070e565b34801561022c57600080fd5b5061023561074a565b6040805160ff9092168252519081900360200190f35b34801561025757600080fd5b5061026061074f565b005b34801561026e57600080fd5b5061013f610822565b34801561028357600080fd5b5061013f610879565b34801561029857600080fd5b5061013f600435151561087f565b3480156102b257600080fd5b5061013f6108c2565b3480156102c757600080fd5b5061013f600160a060020a03600435166108c7565b3480156102e857600080fd5b5061013f6108e2565b3480156102fd57600080fd5b5061013f61092d565b34801561031257600080fd5b5061016661093f565b34801561032757600080fd5b5061033f600160a060020a0360043516602435610999565b604080519115158252519081900360200190f35b34801561035f57600080fd5b50610260600435610b3c565b34801561037757600080fd5b50610260610ca8565b61013f600160a060020a0360043516610cd5565b3480156103a057600080fd5b50610260610ce1565b600033818080808080806103c86103c18c600a610d97565b6064610dcd565b96506103d86103c1886021610d97565b95506103e48787610de4565b94506103f08b88610de4565b93506103fb84610df6565b9250680100000000000000008502915060008311801561042557506006546104238482610e8e565b115b151561043057600080fd5b600160a060020a038a161580159061045a575087600160a060020a03168a600160a060020a031614155b80156104805750600254600160a060020a038b1660009081526003602052604090205410155b156104c657600160a060020a038a166000908152600460205260409020546104a89087610e8e565b600160a060020a038b166000908152600460205260409020556104e1565b6104d08587610e8e565b945068010000000000000000850291505b60006006541115610545576104f860065484610e8e565b600681905568010000000000000000860281151561051257fe5b6007805492909104909101905560065468010000000000000000860281151561053757fe5b04830282038203915061054b565b60068390555b600160a060020a03881660009081526003602052604090205461056e9084610e8e565b600160a060020a03808a166000818152600360209081526040808320959095556007546005909152939020805493870286900393840190559192508b16907f8032875b28d82ddbd303a9e4e5529d047a14ecb6290f80012a81b7e6227ff1ab8d86426105d86108e2565b604080519485526020850193909352838301919091526060830152519081900360800190a350909998505050505050505050565b600160a060020a0316600090815260056020908152604080832054600390925290912054600754680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106cd5780601f106106a2576101008083540402835291602001916106cd565b820191906000526020600020905b8154815290600101906020018083116106b057829003601f168201915b505050505081565b60008080806106e86103c186600a610d97565b92506106f48584610de4565b91506106ff82610df6565b95945050505050565b60065490565b600080600080600654851115151561072557600080fd5b61072e85610e9d565b925061073e6103c1846004610d97565b91506106ff8383610de4565b601281565b600080600061075e600161087f565b1161076857600080fd5b339150610775600061087f565b600160a060020a038316600081815260056020908152604080832080546801000000000000000087020190556004909152808220805490839055905193019350909183156108fc0291849190818181858888f193505050501580156107de573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b60008060008060065460001415610840576414f46b04009350610873565b610851670de0b6b3a7640000610e9d565b92506108616103c1846004610d97565b915061086d8383610de4565b90508093505b50505090565b60025481565b60003382610895576108908161060c565b6108b9565b600160a060020a0381166000908152600460205260409020546108b78261060c565b015b91505b50919050565b303190565b600160a060020a031660009081526003602052604090205490565b600080600080600654600014156109005764199c82cc009350610873565b610911670de0b6b3a7640000610e9d565b92506109216103c184600a610d97565b915061086d8383610e8e565b600033610939816108c7565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106cd5780601f106106a2576101008083540402835291602001916106cd565b6000806000806000806109aa61092d565b116109b457600080fd5b336000818152600360205260409020549094508611156109d357600080fd5b60006109df600161087f565b11156109ed576109ed61074f565b6109fb6103c1876001610d97565b9250610a078684610de4565b9150610a1283610e9d565b9050610a2060065484610de4565b600655600160a060020a038416600090815260036020526040902054610a469087610de4565b600160a060020a038086166000908152600360205260408082209390935590891681522054610a759083610e8e565b600160a060020a0388811660008181526003602090815260408083209590955560078054948a16835260059091528482208054948c02909403909355825491815292909220805492850290920190915554600654610ae99190680100000000000000008402811515610ae357fe5b04610e8e565b600755604080518381529051600160a060020a03808a1692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060019695505050505050565b6000806000806000806000610b4f61092d565b11610b5957600080fd5b33600081815260036020526040902054909650871115610b7857600080fd5b869450610b8485610e9d565b9350610b946103c1856004610d97565b9250610ba08484610de4565b9150610bae60065486610de4565b600655600160a060020a038616600090815260036020526040902054610bd49086610de4565b600160a060020a03871660009081526003602090815260408083209390935560075460059091529181208054928802680100000000000000008602019283900390556006549192501015610c4457610c40600754600654680100000000000000008602811515610ae357fe5b6007555b85600160a060020a03167f8d3a0130073dbd54ab6ac632c05946df540553d3b514c9f8165b4ab7f2b1805e868442610c7a6108e2565b604080519485526020850193909352838301919091526060830152519081900360800190a250505050505050565b3360008181526003602052604081205490811115610cc957610cc981610b3c565b610cd161074f565b5050565b60006108bc34836103a9565b600080600080610cf1600161087f565b11610cfb57600080fd5b610d05600061087f565b33600081815260056020908152604080832080546801000000000000000087020190556004909152812080549082905590920194509250610d479084906103a9565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600080831515610daa5760009150610dc6565b50828202828482811515610dba57fe5b0414610dc257fe5b8091505b5092915050565b6000808284811515610ddb57fe5b04949350505050565b600082821115610df057fe5b50900390565b6006546000906c01431e0fae6d7217caa00000009082906402540be400610e7b610e75730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001610f09565b85610de4565b811515610e8457fe5b0403949350505050565b600082820183811015610dc257fe5b600654600090670de0b6b3a7640000838101918101908390610ef66414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be40002811515610ef057fe5b04610de4565b811515610eff57fe5b0495945050505050565b80600260018201045b818110156108bc578091506002818285811515610f2b57fe5b0401811515610f3657fe5b049050610f125600a165627a7a723058202902514c68fb8421e3b65dcd47698397dfb420ed3a1cd320f3d4f06be0889ee00029

   Swarm Source:
bzzr://2902514c68fb8421e3b65dcd47698397dfb420ed3a1cd320f3d4f06be0889ee0

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.