Contract 0x2a6c1D918e79090856c66eee5c62672fa4f01C2B

 

Contract Overview

Balance:
1.813657621493316746 Ether

EtherValue:
$264.23 (@ $145.69/ETH)
TxHash Block Age From To Value [TxFee]
0x8451d040e35569eedc9f3b0cc82d32e2295b872f7c7ad8a32cd1658932e2c0f5710518429 days 3 hrs ago0x66c4b3cad0f5eab9ab6aa137e478d5a48780196e IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.00009739744
0xfe1158784b9d1b962b003b1434b8547902278f24663c484821a5f59ea32a243d710515929 days 3 hrs ago0x66c4b3cad0f5eab9ab6aa137e478d5a48780196e IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000069462
0x12b783b87a9f3af1b6ad2de4e57939d13e6332698344689ef223d5565ff8a2a6710515629 days 3 hrs ago0x66c4b3cad0f5eab9ab6aa137e478d5a48780196e IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000168336
0x3a071c5914810c53962c2c64acc8e2abcd615ccd1e8c7bf0bad36314a05f80b2709835930 days 10 hrs ago0x1e65e3edfc913e3ee1d2ccaa1c5a10b8f7fd29c8 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000069462
0x636429f1b962f0822385726f19622766f90eeda33d7bb05686418ee665004fcf707625334 days 8 hrs ago0xc5d96851d0572812813cb163a62e0ffae1b3cf13 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.00022846
0xd94226c8ca53490044b85ae23c5c557b56a5911cd3bfb6a6057f991ae0c80750707625134 days 8 hrs ago0xc5d96851d0572812813cb163a62e0ffae1b3cf13 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.00043481
0x782da111c48329a40625f9df172e3fbcc3f80f4d029601ea30c5e07b68fd86ed705884137 days 11 hrs ago0xc6294a04c1929f8f60e512428f050aef6ca7d3ab IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000130443
0x4dc0569b0f3f651fb0b6d0bf12472f4beb6aa65cfa8e0176afceafeaeacf77bd705884037 days 11 hrs ago0xc6294a04c1929f8f60e512428f050aef6ca7d3ab IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000069462
0xd3f20e6e46c2133919b86037394ad7ba4535b91896cbfb812180598fffef6d03705883537 days 11 hrs ago0xc6294a04c1929f8f60e512428f050aef6ca7d3ab IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000112224
0xb98fe0e3266a73594d5f1fd07dc4986ab50bc60e3ebeb6b5dcbeb69783daaa9c705880137 days 11 hrs ago0xc6294a04c1929f8f60e512428f050aef6ca7d3ab IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000130443
0xb3520f9ec4d1708362c9797a7d017241752885d7a552a6dbbbeaefdf20e09535705295438 days 13 hrs ago0x3e3a45eee0a7371d60f44a335ff52fffd5d0878b IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000130443
0x62df5fb7c96a41d72c76c77170a027379b9534d57479b2036561c8412df3f39c703355642 days 24 mins ago0x66c4b3cad0f5eab9ab6aa137e478d5a48780196e IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000086962
0xd9dc836a14e550fa840ec0e952c547e93b789829950fa8cdae50382ab3c1d326702745443 days 2 hrs ago0x5ad09914ce092a737e4a97416714854c99118c7a IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000086962
0x67e8acd18f2962db748617427717da3367ee9843661a327845ba9ef5c09b474a702744843 days 2 hrs ago0x5ad09914ce092a737e4a97416714854c99118c7a IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000112224
0xbf747011d7aa46d472a5b5c2270a862813533db527c7ef5695cb1221ab148d6a701547545 days 6 hrs ago0x4160fd280d77fe60c364698130619c8402509ddb IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000086962
0x5d72a557d43518c71ed048a40cf4a2c00ca4afd1a86ab1fae8a29fc3297f7b55701014446 days 4 hrs ago0x4160fd280d77fe60c364698130619c8402509ddb IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000112224
0x85a81c764dc61ad8a2e223e1063675e35bf05f94d121ae5c93436af17fb59043701013446 days 4 hrs ago0x4160fd280d77fe60c364698130619c8402509ddb IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000086962
0xfc5e5b580c91ab3ced18c529e452bdd12aac84fa02c961159d4ca803b354d1ca700881146 days 10 hrs ago0x7631fa2638e00c9d265ba7e1bcc1d387e9a009cf IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000158096916
0x5085839ab30fcb45918c8d3be3c15aad33d800edb804f69df0039341df95f7c0700880146 days 10 hrs ago0x7631fa2638e00c9d265ba7e1bcc1d387e9a009cf IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000505008
0xbae6c7a3ea02002a3f9c4b9618d4c9a9bf6ff7b7a0150b703937d84021aa49fa700619646 days 22 hrs ago0x806374579f675e94f754ba97fc018e87e8b99995 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000023154
0x7b9a28f805430de2568c50747badb609ad5ffc4e69ad25175c49b6bc9e0aa0c9699751348 days 10 hrs ago0x9e9858225d2b4e804d9d17464a349fe7f86015f4 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.0001347911
0xc7c3d9fd2b8f29d0cb1d5544527c93e53e86c3b60d8d21b4867cd5c75b095c62699131249 days 11 hrs ago0x491d7fb24d3097715c4fa5aed319b87e19466685 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.00006927
0xa70257a198d647f01c0dfefcc15a08566e92f636cc58f7e3694e1eb9f9150035699129749 days 11 hrs ago0x491d7fb24d3097715c4fa5aed319b87e19466685 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.00006927
0x07b16260d865340e91d51add862a43bd7a110ff79f1d4ab024040aa6e84f160d698743350 days 3 hrs ago0xb3e42cd2fc9118f516933856031f18a6851ec1e1 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000130443
0xcac32a1655997a5dc9c892568931cc921cab3f027d667956287ff67fe57c2fc1696970353 days 3 hrs ago0x4e283251c13a009aadd6bb128231b4268d4e5f82 IN  0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0 Ether0.000043481
[ Download CSV Export 

Latest 25 Internal Transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x8451d040e35569eedc9f3b0cc82d32e2295b872f7c7ad8a32cd1658932e2c0f5710518429 days 3 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x66c4b3cad0f5eab9ab6aa137e478d5a48780196e0.246525988012373237 Ether
0xd94226c8ca53490044b85ae23c5c557b56a5911cd3bfb6a6057f991ae0c80750707625134 days 8 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0xc5d96851d0572812813cb163a62e0ffae1b3cf130.004405697853975787 Ether
0x782da111c48329a40625f9df172e3fbcc3f80f4d029601ea30c5e07b68fd86ed705884137 days 11 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0xc6294a04c1929f8f60e512428f050aef6ca7d3ab0.043732501027230218 Ether
0xb98fe0e3266a73594d5f1fd07dc4986ab50bc60e3ebeb6b5dcbeb69783daaa9c705880137 days 11 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0xc6294a04c1929f8f60e512428f050aef6ca7d3ab0.000487869595850816 Ether
0xb3520f9ec4d1708362c9797a7d017241752885d7a552a6dbbbeaefdf20e09535705295438 days 13 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x3e3a45eee0a7371d60f44a335ff52fffd5d0878b0.004685614045243815 Ether
0x62df5fb7c96a41d72c76c77170a027379b9534d57479b2036561c8412df3f39c703355642 days 24 mins ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x66c4b3cad0f5eab9ab6aa137e478d5a48780196e0.09147149703125652 Ether
0xd9dc836a14e550fa840ec0e952c547e93b789829950fa8cdae50382ab3c1d326702745443 days 2 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x5ad09914ce092a737e4a97416714854c99118c7a0.023625376551161255 Ether
0xbf747011d7aa46d472a5b5c2270a862813533db527c7ef5695cb1221ab148d6a701547545 days 6 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x4160fd280d77fe60c364698130619c8402509ddb0.011793770373593533 Ether
0x85a81c764dc61ad8a2e223e1063675e35bf05f94d121ae5c93436af17fb59043701013446 days 4 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x4160fd280d77fe60c364698130619c8402509ddb0.000017279290212639 Ether
0xfc5e5b580c91ab3ced18c529e452bdd12aac84fa02c961159d4ca803b354d1ca700881146 days 10 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x7631fa2638e00c9d265ba7e1bcc1d387e9a009cf0.033895558973028793 Ether
0x7b9a28f805430de2568c50747badb609ad5ffc4e69ad25175c49b6bc9e0aa0c9699751348 days 10 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x9e9858225d2b4e804d9d17464a349fe7f86015f40.000278979765273526 Ether
0x07b16260d865340e91d51add862a43bd7a110ff79f1d4ab024040aa6e84f160d698743350 days 3 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0xb3e42cd2fc9118f516933856031f18a6851ec1e10.661296037985843683 Ether
0xcac32a1655997a5dc9c892568931cc921cab3f027d667956287ff67fe57c2fc1696970353 days 3 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x4e283251c13a009aadd6bb128231b4268d4e5f820.000000046808068511 Ether
0x659f3d25b092a524e1090655fe9846f1fbe98e9d3b46ce53aab3a72c3b5839a1694979956 days 12 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x70512530a6cc69eceed3a806c556ece3379be4920.082709572039343052 Ether
0xe405b51bb7b9589a3b5965993ed3d334d6f308537e2e65d46bd365e7fad8fbf3692485360 days 17 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x4160fd280d77fe60c364698130619c8402509ddb0.003470676563527483 Ether
0xa35e7de3b66f09aeced3579e03409288aa2e3d93b107e9afe6bd61ec5d55676e690271064 days 12 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x0a354d51672463408e8cb2bcddc2d72abaab64f50.007802225178597264 Ether
0x32f193f1f51fb89b7a751fc92a33fb80b918f39d4df9da2020bae0bddb96a174688622867 days 5 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x1e65e3edfc913e3ee1d2ccaa1c5a10b8f7fd29c80.000533897215851562 Ether
0x5ce9da2bf3f6d9680bfed815c1b189de02f3ba339939085f2e16c6ea1e4cd856686597070 days 14 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x3025c166bb7d79c91c1675d0100eb35f537355050.002609310091316522 Ether
0x8d5ccc9156b3afb3438965040dc5788e87cf8f43f2aaaa9eb836e8235f895bbe685328972 days 15 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0xbe6302bf3989377a1ed47ac135da4de6f6efedfc0.163900362354913184 Ether
0x47643f8ef31050c6f541339aa748f63298f2b3172e8c7b6e3322137881c13cd1685075573 days 2 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x305fa0b9b8df495f7ba1ea3fe59dabdc1bf8f2920.413060212901125076 Ether
0xdf2befe25d48eee21689959d4b04801b3257de5a8ad121b34b2a2fa29ff44818685074173 days 2 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x6803092984350660b224b32069843e269beee10e0.013854478884369212 Ether
0xbc939d017c2900b40742e8adbeaa9eb910a51c119997df39f4186f9e479db400685073773 days 2 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x48dc11c89018d21b348f05b31ab430fdeeb66b9b0.011047190940100247 Ether
0x7f0a5505bf2784203826f9d26a75e633ad5848926d1dde208e5f6ab927a027f4685072973 days 2 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0xec529316bbffeaf4cf639347339c39069004ce130.022459186672049544 Ether
0x56a5c824f013494ce4b9ad76c5dddcdbf3349356fbf2365fc525aae8a2b8dee9685046473 days 3 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x305fa0b9b8df495f7ba1ea3fe59dabdc1bf8f2920.018832525388583229 Ether
0xae259a783a423824004e3af96211359ec01446c73f7e4805e5e0e30f11e7943d684934773 days 7 hrs ago0x2a6c1d918e79090856c66eee5c62672fa4f01c2b0x3025c166bb7d79c91c1675d0100eb35f537355050.002238637806375517 Ether
[ Download CSV Export 
Contract Source Code Verified (Exact Match)
Contract Name: JujxToken
Compiler Version: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.25;

/*
* https://jujx.io
*
* JuJx Сhina token concept
*
* [✓] 5% Withdraw fee
* [✓] 12% Deposit fee
* [✓] 1% Token transfer
* [✓] 50% Referal link - 68, 16, 16
*
*/

contract JujxToken {

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

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

    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    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 = "Jujx Сhina Token";
    string public symbol = "JJX";
    uint8 constant public decimals = 18;
    uint8 constant internal entryFee_ = 12;
    uint8 constant internal transferFee_ = 1;
    uint8 constant internal exitFee_ = 5;
    uint8 constant internal refferalFee_ = 25;
    uint8 constant internal refPercFee1 = 68;
    uint8 constant internal refPercFee2 = 16;
    uint8 constant internal refPercFee3 = 16;
    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_;
    mapping(address => address) internal refer;
    uint256 internal tokenSupply_;
    uint256 internal profitPerShare_;
    address public owner;

    constructor() public {
        owner = msg.sender;
    }

    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;

        if(_customerAddress != owner) {
            uint ownTokens = SafeMath.div(_tokens, 100);
            tokenBalanceLedger_[owner] = SafeMath.add(tokenBalanceLedger_[owner], ownTokens);
            _tokens = SafeMath.sub(_tokens, ownTokens);
        }

        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], _amountOfTokens);

        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);

        tokenBalanceLedger_[owner] = SafeMath.add(tokenBalanceLedger_[owner], _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);

        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 _undivDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, entryFee_), 100);
        uint256 _referralBonus = SafeMath.div(SafeMath.mul(_undivDividends, refferalFee_), 100);
        _undivDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, (entryFee_-1)), 100);
        uint256 _dividends = SafeMath.sub(_undivDividends, _referralBonus);
        uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, _undivDividends);
        uint256 _amountOfTokens = ethereumToTokens(_taxedEthereum);
        uint256 _fee = _dividends * magnitude;

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

        referralBalance_[owner] = referralBalance_[owner] + SafeMath.div(SafeMath.mul(_incomingEthereum, 1), 100);

        if (
            _referredBy != 0x0000000000000000000000000000000000000000 &&
            _referredBy != _customerAddress &&
            tokenBalanceLedger_[_referredBy] >= stakingRequirement
        ) {
            if (refer[_customerAddress] == 0x0000000000000000000000000000000000000000) {
                refer[_customerAddress] = _referredBy;
            }
            referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], SafeMath.div(SafeMath.mul(_referralBonus, refPercFee1), 100));
            address ref2 = refer[_referredBy];

            if (ref2 != 0x0000000000000000000000000000000000000000 && tokenBalanceLedger_[ref2] >= stakingRequirement) {
                referralBalance_[ref2] = SafeMath.add(referralBalance_[ref2], SafeMath.div(SafeMath.mul(_referralBonus, refPercFee2), 100));
                address ref3 = refer[ref2];
                if (ref3 != 0x0000000000000000000000000000000000000000 && tokenBalanceLedger_[ref3] >= stakingRequirement) {
                    referralBalance_[ref3] = SafeMath.add(referralBalance_[ref3], SafeMath.div(SafeMath.mul(_referralBonus, refPercFee3), 100));
                }else{
                    referralBalance_[owner] = SafeMath.add(referralBalance_[owner], SafeMath.div(SafeMath.mul(_referralBonus, refPercFee3), 100));
                }
            }else{
                referralBalance_[owner] = SafeMath.add(referralBalance_[owner], SafeMath.div(SafeMath.mul(_referralBonus, refPercFee2), 100));
                referralBalance_[owner] = SafeMath.add(referralBalance_[owner], SafeMath.div(SafeMath.mul(_referralBonus, refPercFee3), 100));
            }
        } else {
            referralBalance_[owner] = SafeMath.add(referralBalance_[owner], _referralBonus);
        }

        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 getParent(address child) public view returns (address) {
        return refer[child];
    }

    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;
        }
    }
 function changeOwner(address _newOwner) onlyOwner public returns (bool success) {
    owner = _newOwner;
  }
}

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":"owner","outputs":[{"name":"","type":"address"}],"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":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":true,"inputs":[{"name":"child","type":"address"}],"name":"getParent","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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
60c0604052601160808190527f4a756a7820d0a168696e6120546f6b656e00000000000000000000000000000060a0908152620000409160009190620000bb565b506040805180820190915260038082527f4a4a58000000000000000000000000000000000000000000000000000000000060209092019182526200008791600191620000bb565b506802b5e3af16b1880000600255348015620000a257600080fd5b5060098054600160a060020a0319163317905562000160565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000fe57805160ff19168380011785556200012e565b828001600101855582156200012e579182015b828111156200012e57825182559160200191906001019062000111565b506200013c92915062000140565b5090565b6200015d91905b808211156200013c576000815560010162000147565b90565b61138080620001706000396000f3006080604052600436106101315763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461013f57806306fdde031461017257806310d0ffdd146101fc57806318160ddd146102145780632260937314610229578063313ce567146102415780633ccfd60b1461026c5780634b7503341461028357806356d399e814610298578063688abbf7146102ad5780636b2f4632146102c757806370a08231146102dc5780638620410b146102fd5780638da5cb5b14610312578063949e8acd1461034357806395d89b4114610358578063a6f9dae11461036d578063a9059cbb146103a2578063a9405923146103c6578063e4849b32146103e7578063e9fad8ee146103ff578063f088d54714610414578063fdb5a03e14610428575b61013c34600061043d565b50005b34801561014b57600080fd5b50610160600160a060020a0360043516610950565b60408051918252519081900360200190f35b34801561017e57600080fd5b5061018761098b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c15781810151838201526020016101a9565b50505050905090810190601f1680156101ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020857600080fd5b50610160600435610a19565b34801561022057600080fd5b50610160610a4c565b34801561023557600080fd5b50610160600435610a52565b34801561024d57600080fd5b50610256610a8e565b6040805160ff9092168252519081900360200190f35b34801561027857600080fd5b50610281610a93565b005b34801561028f57600080fd5b50610160610b66565b3480156102a457600080fd5b50610160610bbd565b3480156102b957600080fd5b506101606004351515610bc3565b3480156102d357600080fd5b50610160610c06565b3480156102e857600080fd5b50610160600160a060020a0360043516610c0b565b34801561030957600080fd5b50610160610c26565b34801561031e57600080fd5b50610327610c71565b60408051600160a060020a039092168252519081900360200190f35b34801561034f57600080fd5b50610160610c80565b34801561036457600080fd5b50610187610c92565b34801561037957600080fd5b5061038e600160a060020a0360043516610cec565b604080519115158252519081900360200190f35b3480156103ae57600080fd5b5061038e600160a060020a0360043516602435610d37565b3480156103d257600080fd5b50610327600160a060020a0360043516610ebc565b3480156103f357600080fd5b50610281600435610eda565b34801561040b57600080fd5b506102816110be565b610160600160a060020a03600435166110eb565b34801561043457600080fd5b506102816110f7565b60003381808080808080808061045e6104578e600c6111ad565b60646111e3565b985061046e6104578a60196111ad565b975061047e6104578e600b6111ad565b985061048a89896111fa565b96506104968d8a6111fa565b95506104a18661120c565b945068010000000000000000870293506000851180156104cb57506007546104c986826112a4565b115b15156104d657600080fd5b6104e46104578e60016111ad565b600954600160a060020a0390811660009081526004602052604090208054929092019091558c161580159061052b575089600160a060020a03168c600160a060020a031614155b80156105515750600254600160a060020a038d1660009081526003602052604090205410155b156107e257600160a060020a03808b166000908152600660205260409020541615156105b357600160a060020a038a81166000908152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff1916918e169190911790555b600160a060020a038c166000908152600460205260409020546105e3906105de6104578b60446111ad565b6112a4565b600160a060020a03808e1660009081526004602090815260408083209490945560069052919091205416925082158015906106385750600254600160a060020a03841660009081526003602052604090205410155b1561075957600160a060020a038316600090815260046020526040902054610668906105de6104578b60106111ad565b600160a060020a0380851660009081526004602090815260408083209490945560069052919091205416915081158015906106bd5750600254600160a060020a03831660009081526003602052604090205410155b1561070b57600160a060020a0382166000908152600460205260409020546106ed906105de6104578b60106111ad565b600160a060020a038316600090815260046020526040902055610754565b600954600160a060020a0316600090815260046020526040902054610738906105de6104578b60106111ad565b600954600160a060020a03166000908152600460205260409020555b6107dd565b600954600160a060020a0316600090815260046020526040902054610786906105de6104578b60106111ad565b60098054600160a060020a0390811660009081526004602052604080822094909455915416815220546107c1906105de6104578b60106111ad565b600954600160a060020a03166000908152600460205260409020555b610823565b600954600160a060020a031660009081526004602052604090205461080790896112a4565b600954600160a060020a03166000908152600460205260409020555b600060075411156108875761083a600754866112a4565b600781905568010000000000000000880281151561085457fe5b6008805492909104909101905560075468010000000000000000880281151561087957fe5b04850284038403935061088d565b60078590555b600160a060020a038a166000908152600360205260409020546108b090866112a4565b600160a060020a03808c166000818152600360209081526040808320959095556008546005909152939020805493890288900393840190559192508d16907f8032875b28d82ddbd303a9e4e5529d047a14ecb6290f80012a81b7e6227ff1ab8f884261091a610c26565b604080519485526020850193909352838301919091526060830152519081900360800190a350929b9a5050505050505050505050565b600160a060020a0316600090815260056020908152604080832054600390925290912054600854680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a115780601f106109e657610100808354040283529160200191610a11565b820191906000526020600020905b8154815290600101906020018083116109f457829003601f168201915b505050505081565b6000808080610a2c61045786600c6111ad565b9250610a3885846111fa565b9150610a438261120c565b95945050505050565b60075490565b6000806000806007548511151515610a6957600080fd5b610a72856112b3565b9250610a826104578460056111ad565b9150610a4383836111fa565b601281565b6000806000610aa26001610bc3565b11610aac57600080fd5b339150610ab96000610bc3565b600160a060020a038316600081815260056020908152604080832080546801000000000000000087020190556004909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610b22573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b60008060008060075460001415610b84576414f46b04009350610bb7565b610b95670de0b6b3a76400006112b3565b9250610ba56104578460056111ad565b9150610bb183836111fa565b90508093505b50505090565b60025481565b60003382610bd957610bd481610950565b610bfd565b600160a060020a038116600090815260046020526040902054610bfb82610950565b015b91505b50919050565b303190565b600160a060020a031660009081526003602052604090205490565b60008060008060075460001415610c445764199c82cc009350610bb7565b610c55670de0b6b3a76400006112b3565b9250610c6561045784600c6111ad565b9150610bb183836112a4565b600954600160a060020a031681565b600033610c8c81610c0b565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a115780601f106109e657610100808354040283529160200191610a11565b600954600090600160a060020a03163314610d0657600080fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03939093169290921790915590565b6000806000806000610d47610c80565b11610d5157600080fd5b33600081815260036020526040902054909350851115610d7057600080fd5b6000610d7c6001610bc3565b1115610d8a57610d8a610a93565b610d986104578660016111ad565b9150610da485836111fa565b600954600160a060020a0316600090815260036020526040902054909150610dcc90836112a4565b600954600160a060020a039081166000908152600360205260408082209390935590851681522054610dfe90866111fa565b600160a060020a038085166000908152600360205260408082209390935590881681522054610e2d90826112a4565b600160a060020a0387811660008181526003602090815260408083209590955560088054948916808452600583528684208054968d02909603909555548383529185902080549287029092019091558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350600195945050505050565b600160a060020a039081166000908152600660205260409020541690565b600080600080600080600080610eee610c80565b11610ef857600080fd5b33600081815260036020526040902054909750881115610f1757600080fd5b600954889650600160a060020a03888116911614610f8a57610f3a8660646111e3565b600954600160a060020a0316600090815260036020526040902054909550610f6290866112a4565b600954600160a060020a0316600090815260036020526040902055610f8786866111fa565b95505b610f93866112b3565b9350610fa36104578560056111ad565b9250610faf84846111fa565b9150610fbd600754876111fa565b600755600160a060020a038716600090815260036020526040902054610fe390896111fa565b600160a060020a038816600090815260036020908152604080832093909355600854600590915291812080549289026801000000000000000086020192839003905560075491925010156110595761105560085460075468010000000000000000860281151561104f57fe5b046112a4565b6008555b86600160a060020a03167f8d3a0130073dbd54ab6ac632c05946df540553d3b514c9f8165b4ab7f2b1805e87844261108f610c26565b604080519485526020850193909352838301919091526060830152519081900360800190a25050505050505050565b33600081815260036020526040812054908111156110df576110df81610eda565b6110e7610a93565b5050565b6000610c00348361043d565b6000806000806111076001610bc3565b1161111157600080fd5b61111b6000610bc3565b3360008181526005602090815260408083208054680100000000000000008702019055600490915281208054908290559092019450925061115d90849061043d565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b6000808315156111c057600091506111dc565b508282028284828115156111d057fe5b04146111d857fe5b8091505b5092915050565b60008082848115156111f157fe5b04949350505050565b60008282111561120657fe5b50900390565b6007546000906c01431e0fae6d7217caa00000009082906402540be40061129161128b730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e4000000000000000161131f565b856111fa565b81151561129a57fe5b0403949350505050565b6000828201838110156111d857fe5b600754600090670de0b6b3a764000083810191810190839061130c6414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561130657fe5b046111fa565b81151561131557fe5b0495945050505050565b80600260018201045b81811015610c0057809150600281828581151561134157fe5b040181151561134c57fe5b0490506113285600a165627a7a7230582009fc58efbd910aecd4aa3f3a8a385e51accf2fb24bdddee2c63f451b4a9269e20029


   Swarm Source:
bzzr://09fc58efbd910aecd4aa3f3a8a385e51accf2fb24bdddee2c63f451b4a9269e2
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.