Contract 0x465CD6299775DC459A23C80997D2664656be9780

Ponzi Website Down 
 

Contract Overview

safedif.com
Balance:
0.007877084745768606 Ether

EtherValue:
$10.09 (@ $1,281.36/ETH)

Token:
 
Txn Hash
Method
Block
From
To
Value
0x36d2eedfd3523d7fad75bb20cd9d664ebacf0a1ea36d50813d6e6990296f1345Transfer66872572018-11-11 22:56:161488 days 8 hrs ago0x1054dfcb3ca7dcb286ac5b431d096ec83c50c5b8 IN  safedif.com0 Ether0.000178023.6
0x9b99ec951fa4c77a57c0884363ba32f5279585f5aa5bcb06198d5f35d9b943dcTransfer66462832018-11-05 5:49:121495 days 1 hr ago0xa9aeec1016302297db92a642043bf264f8132281 IN  safedif.com0 Ether0.00044649
0x90020b46401ec2c2a2cac2a262745ec4f1973ceb5e0a9123fce991b447e7e731Transfer66462732018-11-05 5:47:351495 days 1 hr ago0xa9aeec1016302297db92a642043bf264f8132281 IN  safedif.com0 Ether0.0001899
0x79ccfdddb5004734b1eabdf9b8db061947ca8a0b33d6c0e160b3073e2348dd11Transfer66445842018-11-04 22:51:431495 days 8 hrs ago0x1beafa2e7e507eb73d61847bdbe95374d1fa0c4f IN  safedif.com0 Ether0.000302256
0x75311fc011cebe46b098e8f549b3fb39cc50b13b8e239f861118f3e10e419880Transfer66437402018-11-04 19:43:321495 days 11 hrs ago0xba0b1691e6f6da19a6b9fa1372f6fdc8db70453d IN  safedif.com0 Ether0.00014883
0xa5fab60ff27348639b72aff8ffee9787454a368228f59c69d8956b234d71cbb2Transfer66436412018-11-04 19:17:071495 days 11 hrs ago0xba0b1691e6f6da19a6b9fa1372f6fdc8db70453d IN  safedif.com0 Ether0.0000633
0x6755ca2d1adc54efc0a87fb72c08e809f877bfde5eb81d57471abce802c37804Transfer66416862018-11-04 11:31:531495 days 19 hrs ago0x7e6e79c6b7a356f8d9c9f718a34985ac17d31ab8 IN  safedif.com0 Ether0.000069733
0x7f0c13478fbae14bb23e7af0d6c42fb9c8dbec0035014d69ba5f2b36b2d73025Transfer66409782018-11-04 8:40:091495 days 22 hrs ago0x1beafa2e7e507eb73d61847bdbe95374d1fa0c4f IN  safedif.com0 Ether0.000453379
0x64f7aeadede739d34d04dd0dc2223bf572c605aae103cd691fe5ecfbeb3f5acfTransfer66403342018-11-04 6:03:081496 days 1 hr ago0x287bfda1d853e9114d3411b7fdb6be4a9afa7e29 IN  safedif.com0 Ether0.00049610
0xc2f20e3fc1ce6197ce9823199b8c1cb497d56206b526e0401e41be2d1ebdce47Transfer66397922018-11-04 4:09:051496 days 3 hrs ago0xa9aeec1016302297db92a642043bf264f8132281 IN  safedif.com0 Ether0.0001266
0xbd10188a762b68f7f04042a0045dcd8f5a5ef17413cba6e71612cfaa78f047edWithdraw66389602018-11-04 0:53:571496 days 6 hrs ago0x00c4cea732f7776a38571c2abd0c87d3958f0e3f IN  safedif.com0 Ether0.000465156
0x49f9096ef5a856a9cd0c2317e1d2aae2a8ed746c2a311d14dd759dcd6bcc080dWithdraw66389002018-11-04 0:40:071496 days 6 hrs ago0x1beafa2e7e507eb73d61847bdbe95374d1fa0c4f IN  safedif.com0 Ether0.000302376
0xe98ad8b8387ab7a80d5139d1438650529f74d870d945484c8af22546a32c7bf5Withdraw66386962018-11-03 23:50:591496 days 7 hrs ago0x8a806e97bfd73ef0c4a88bf4a4438b8b0ffea594 IN  safedif.com0 Ether0.000302376
0x3ab127c38172f6fa66b97b13d728691e4abbf55c9d91b72472ae7f7fdf699534Withdraw66385062018-11-03 23:05:301496 days 8 hrs ago0x1054dfcb3ca7dcb286ac5b431d096ec83c50c5b8 IN  safedif.com0 Ether0.000323566.540625
0x9befd9059cba096ad7ddcafdc24833e559374ea36da4955ce8ede41efbe096cfWithdraw66384382018-11-03 22:48:351496 days 8 hrs ago0x8a806e97bfd73ef0c4a88bf4a4438b8b0ffea594 IN  safedif.com0 Ether0.000201584
0xce9638859b8873b9bdb908643c52c4ca331907ab5e9a558e0172ab38471e025bWithdraw66384082018-11-03 22:41:511496 days 8 hrs ago0x9c30f72f64d4323e67ebffe7b59cf1f38e3887d4 IN  safedif.com0 Ether0.000198484
0x9a66af8cbd742ba150bb5fb3d08d90571089c27821661e278a871b0609c58385Withdraw66383182018-11-03 22:18:141496 days 8 hrs ago0x9672e39edc7263d9760fb56ff2add52d6c4bdb21 IN  safedif.com0 Ether0.000396968
0xe758837ee24d8c3004c39c4184f349b4ec8e0edae909a2f19e359f785e75424aTransfer66381732018-11-03 21:39:391496 days 9 hrs ago0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb9 IN  safedif.com0 Ether0.0011509515
0xfcd632c1ca79460cece124db6a1566254484cc889cac152cbf4e7c07e5e54524Withdraw66379622018-11-03 20:51:331496 days 10 hrs ago0xb6f120c5ac0baf5ed3bf7ce29d92482aa28d1548 IN  safedif.com0 Ether0.000537257
0xce75c904e62343bf77060e0f54b995157b577494335af674baef535126961cefWithdraw66374632018-11-03 18:57:441496 days 12 hrs ago0x3c43dc51ebce37bf5e786fd6c15a7168a0ad78be IN  safedif.com0 Ether0.000198484
0x04faacf5d1f7709db1921816b79a3e8dbc226bb7509eba4c05b1c4eab8606adfWithdraw66374542018-11-03 18:55:371496 days 12 hrs ago0x7b8fd7cc918d0c5199850bdc98a1e6aaee07403c IN  safedif.com0 Ether0.000198484
0xdb8cdc29b012792d9ddcb0224d6591b0fc0590e91d2e0851bff31e33507a4c52Transfer66370012018-11-03 17:13:011496 days 14 hrs ago0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb9 IN  safedif.com0 Ether0.0011509515
0xa85dac2893abb06584d1e97a361e7eb1c76c97d49b346293cf5f4b741ab92e03Withdraw66368542018-11-03 16:40:231496 days 14 hrs ago0xb6f120c5ac0baf5ed3bf7ce29d92482aa28d1548 IN  safedif.com0 Ether0.0006148
0x6e08efc848ff9da6082dfd31412fdba516772d729620d71b2a05862cc5d4d3ceWithdraw66368242018-11-03 16:33:191496 days 14 hrs ago0x00c4cea732f7776a38571c2abd0c87d3958f0e3f IN  safedif.com0 Ether0.000542677
0x5ba053d7955bb48c09564d190bc274c54128da44bfa56b100438c4a0c1309778Withdraw66363522018-11-03 14:34:341496 days 16 hrs ago0x8a806e97bfd73ef0c4a88bf4a4438b8b0ffea594 IN  safedif.com0 Ether0.000302376
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xbd10188a762b68f7f04042a0045dcd8f5a5ef17413cba6e71612cfaa78f047ed66389602018-11-04 0:53:571496 days 6 hrs ago safedif.com0x00c4cea732f7776a38571c2abd0c87d3958f0e3f0.03258305 Ether
0xbd10188a762b68f7f04042a0045dcd8f5a5ef17413cba6e71612cfaa78f047ed66389602018-11-04 0:53:571496 days 6 hrs ago safedif.com0x00c4cea732f7776a38571c2abd0c87d3958f0e3f0.07124827 Ether
0x49f9096ef5a856a9cd0c2317e1d2aae2a8ed746c2a311d14dd759dcd6bcc080d66389002018-11-04 0:40:071496 days 6 hrs ago safedif.com0x1beafa2e7e507eb73d61847bdbe95374d1fa0c4f0.02844491 Ether
0xe98ad8b8387ab7a80d5139d1438650529f74d870d945484c8af22546a32c7bf566386962018-11-03 23:50:591496 days 7 hrs ago safedif.com0x8a806e97bfd73ef0c4a88bf4a4438b8b0ffea5940.00459152 Ether
0x3ab127c38172f6fa66b97b13d728691e4abbf55c9d91b72472ae7f7fdf69953466385062018-11-03 23:05:301496 days 8 hrs ago safedif.com0x1054dfcb3ca7dcb286ac5b431d096ec83c50c5b80.01230677 Ether
0x9befd9059cba096ad7ddcafdc24833e559374ea36da4955ce8ede41efbe096cf66384382018-11-03 22:48:351496 days 8 hrs ago safedif.com0x8a806e97bfd73ef0c4a88bf4a4438b8b0ffea5940.03712372 Ether
0xce9638859b8873b9bdb908643c52c4ca331907ab5e9a558e0172ab38471e025b66384082018-11-03 22:41:511496 days 8 hrs ago safedif.com0x9c30f72f64d4323e67ebffe7b59cf1f38e3887d40.0180072 Ether
0x9a66af8cbd742ba150bb5fb3d08d90571089c27821661e278a871b0609c5838566383182018-11-03 22:18:141496 days 8 hrs ago safedif.com0x9672e39edc7263d9760fb56ff2add52d6c4bdb210.25292372 Ether
0xe758837ee24d8c3004c39c4184f349b4ec8e0edae909a2f19e359f785e75424a66381732018-11-03 21:39:391496 days 9 hrs ago safedif.com0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb90.14004406 Ether
0xe758837ee24d8c3004c39c4184f349b4ec8e0edae909a2f19e359f785e75424a66381732018-11-03 21:39:391496 days 9 hrs ago safedif.com0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb90.09336271 Ether
0xfcd632c1ca79460cece124db6a1566254484cc889cac152cbf4e7c07e5e5452466379622018-11-03 20:51:331496 days 10 hrs ago safedif.com0xb6f120c5ac0baf5ed3bf7ce29d92482aa28d15480.0882644 Ether
0xfcd632c1ca79460cece124db6a1566254484cc889cac152cbf4e7c07e5e5452466379622018-11-03 20:51:331496 days 10 hrs ago safedif.com0xb6f120c5ac0baf5ed3bf7ce29d92482aa28d15480.03943728 Ether
0xce75c904e62343bf77060e0f54b995157b577494335af674baef535126961cef66374632018-11-03 18:57:441496 days 12 hrs ago safedif.com0x3c43dc51ebce37bf5e786fd6c15a7168a0ad78be0.14106186 Ether
0x04faacf5d1f7709db1921816b79a3e8dbc226bb7509eba4c05b1c4eab8606adf66374542018-11-03 18:55:371496 days 12 hrs ago safedif.com0x7b8fd7cc918d0c5199850bdc98a1e6aaee07403c0.03675978 Ether
0xdb8cdc29b012792d9ddcb0224d6591b0fc0590e91d2e0851bff31e33507a4c5266370012018-11-03 17:13:011496 days 14 hrs ago safedif.com0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb90.18939406 Ether
0xdb8cdc29b012792d9ddcb0224d6591b0fc0590e91d2e0851bff31e33507a4c5266370012018-11-03 17:13:011496 days 14 hrs ago safedif.com0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb90.12626271 Ether
0xa85dac2893abb06584d1e97a361e7eb1c76c97d49b346293cf5f4b741ab92e0366368542018-11-03 16:40:231496 days 14 hrs ago safedif.com0xb6f120c5ac0baf5ed3bf7ce29d92482aa28d15480.08364406 Ether
0xa85dac2893abb06584d1e97a361e7eb1c76c97d49b346293cf5f4b741ab92e0366368542018-11-03 16:40:231496 days 14 hrs ago safedif.com0xb6f120c5ac0baf5ed3bf7ce29d92482aa28d15480.03737288 Ether
0x6e08efc848ff9da6082dfd31412fdba516772d729620d71b2a05862cc5d4d3ce66368242018-11-03 16:33:191496 days 14 hrs ago safedif.com0x00c4cea732f7776a38571c2abd0c87d3958f0e3f0.15168813 Ether
0x6e08efc848ff9da6082dfd31412fdba516772d729620d71b2a05862cc5d4d3ce66368242018-11-03 16:33:191496 days 14 hrs ago safedif.com0x00c4cea732f7776a38571c2abd0c87d3958f0e3f0.33169138 Ether
0x5ba053d7955bb48c09564d190bc274c54128da44bfa56b100438c4a0c130977866363522018-11-03 14:34:341496 days 16 hrs ago safedif.com0x8a806e97bfd73ef0c4a88bf4a4438b8b0ffea5940.00932542 Ether
0x267cd5add5cd485498abff4a5b2d3d6b11b735b43a3a8d729c77f2211454923166361712018-11-03 13:57:591496 days 17 hrs ago safedif.com0x9b8f076222528b9c5b0dd14d0f364de7d38545000.22727288 Ether
0x75ac77f890d4c716654f03ba2a8dab0388232cf111a18612c32da13f8df6289c66360732018-11-03 13:36:281496 days 17 hrs ago safedif.com0x9c30f72f64d4323e67ebffe7b59cf1f38e3887d40.00010796 Ether
0x8bf9d4102fd25c6c4e39860c516846f867ea94cdf881b4b76d37e188090ced8066360592018-11-03 13:33:011496 days 17 hrs ago safedif.com0x9c30f72f64d4323e67ebffe7b59cf1f38e3887d40.00003084 Ether
0xb53e772249cd4552553eb91354b768d94764dea480b795ec6ce600866739e85766360552018-11-03 13:31:521496 days 17 hrs ago safedif.com0x9c30f72f64d4323e67ebffe7b59cf1f38e3887d40.00001542 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SafeDif

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-10-18
*/

pragma solidity ^0.4.24;

/***********************************************************
 * SafeDif contract
 *  - GAIN 2.4% PER 24 HOURS (every 5900 blocks) 60 days  0.01~500eth
 *  - GAIN 3.5% PER 24 HOURS (every 5900 blocks) 40 days  1~1000eth
 *  - GAIN 4.7% PER 24 HOURS (every 5900 blocks) 35 days  10~10000eth
 *  - GAIN 1% PER 24 HOURS (every 5900 blocks) forever    0.01~10000eth
 *  - GAIN 9% PER 24 HOURS (every 5900 blocks) 12 days    1~10000eth
 *  
 *  https://www.safedif.com
 ***********************************************************/

/***********************************************************
 * @title SafeMath v0.1.9
 * @dev Math operations with safety checks that throw on error
 * change notes:  original SafeMath library from OpenZeppelin modified by Inventor
 * - added sqrt
 * - added sq
 * - added pwr 
 * - changed asserts to requires with error log outputs
 * - removed div, its useless
 ***********************************************************/
 library SafeMath {
    /**
    * @dev Multiplies two numbers, throws on overflow.
    */
    function mul(uint256 a, uint256 b) 
        internal 
        pure 
        returns (uint256 c) 
    {
        if (a == 0) {
            return 0;
        }
        c = a * b;
        require(c / a == b, "SafeMath mul failed");
        return c;
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    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;
    }
    
    /**
    * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b)
        internal
        pure
        returns (uint256) 
    {
        require(b <= a, "SafeMath sub failed");
        return a - b;
    }

    /**
    * @dev Adds two numbers, throws on overflow.
    */
    function add(uint256 a, uint256 b)
        internal
        pure
        returns (uint256 c) 
    {
        c = a + b;
        require(c >= a, "SafeMath add failed");
        return c;
    }
    
    /**
     * @dev gives square root of given x.
     */
    function sqrt(uint256 x)
        internal
        pure
        returns (uint256 y) 
    {
        uint256 z = ((add(x,1)) / 2);
        y = x;
        while (z < y) 
        {
            y = z;
            z = ((add((x / z),z)) / 2);
        }
    }
    
    /**
     * @dev gives square. multiplies x by x
     */
    function sq(uint256 x)
        internal
        pure
        returns (uint256)
    {
        return (mul(x,x));
    }
    
    /**
     * @dev x to the power of y 
     */
    function pwr(uint256 x, uint256 y)
        internal 
        pure 
        returns (uint256)
    {
        if (x==0)
            return (0);
        else if (y==0)
            return (1);
        else 
        {
            uint256 z = x;
            for (uint256 i=1; i < y; i++)
                z = mul(z,x);
            return (z);
        }
    }
}

/***********************************************************
 * SDDatasets library
 ***********************************************************/
library SDDatasets {
    struct Player {
        address addr;   // player address
        uint256 aff;    // affiliate vault,directly send
        uint256 laff;   // parent id
        uint256 planCount;
        mapping(uint256=>PalyerPlan) plans;
        uint256 aff1sum; //4 level
        uint256 aff2sum;
        uint256 aff3sum;
        uint256 aff4sum;
    }
    
    struct PalyerPlan {
        uint256 planId;
        uint256 startTime;
        uint256 startBlock;
        uint256 invested;    //
        uint256 atBlock;    // 
        uint256 payEth;
        bool isClose;
    }

    struct Plan {
        uint256 interest;    // interest per day %%
        uint256 dayRange;    // days, 0 means No time limit
        uint256 min;
        uint256 max;
    }    
}

contract SafeDif {
    using SafeMath              for *;

    address public devAddr_ = address(0xe6CE2a354a0BF26B5b383015B7E61701F6adb39C);
    address public affiAddr_ = address(0x08F521636a2B117B554d04dc9E54fa4061161859);
    
    //partner address
    address public partnerAddr_ = address(0xa8502800F27F5c13F0701450fE07550Cf81C62a7);

    bool public activated_ = false;
    
    uint256 ruleSum_ = 5;
    modifier isActivated() {
        require(activated_ == true, "its not active yet."); 
        _;
    }

    //Start ---> Version 1 has code holes, and administrators have privileges. Migration of version 1 data is used.
    function version1Invest(address addr, uint256 eth, uint256 _affCode, uint256 _planId)
    isAdmin() public payable {
        require(activated_ == false, "Only not active");
        
	    require(_planId >= 1 && _planId <= ruleSum_, "_planId error");
        
		//get uid
		uint256 uid = pIDxAddr_[addr];
		
		//first
		if (uid == 0) {
		    if (player_[_affCode].addr != address(0x0)) {
		        register_(addr, _affCode);
		    } else {
			    register_(addr, 1000);
		    }
		    
			uid = G_NowUserId;
		}
		
        uint256 planCount = player_[uid].planCount;
        player_[uid].plans[planCount].planId = _planId;
        player_[uid].plans[planCount].startTime = now;
        player_[uid].plans[planCount].startBlock = block.number;
        player_[uid].plans[planCount].atBlock = block.number;
        player_[uid].plans[planCount].invested = eth;
        player_[uid].plans[planCount].payEth = 0;
        player_[uid].plans[planCount].isClose = false;
        
        player_[uid].planCount = player_[uid].planCount.add(1);

        G_AllEth = G_AllEth.add(eth);

    }
    //<--- end
    
    function activate() isAdmin() public {
        require(address(devAddr_) != address(0x0), "Must setup devAddr_.");
        require(address(partnerAddr_) != address(0x0), "Must setup partnerAddr_.");
        require(address(affiAddr_) != address(0x0), "Must setup affiAddr_.");

        require(activated_ == false, "Only once");
        activated_ = true ;
	}
	
    mapping(address => uint256)     private g_users ;
    function initUsers() private {
        g_users[msg.sender] = 9 ;
        
        uint256 pId = G_NowUserId;
        pIDxAddr_[msg.sender] = pId;
        player_[pId].addr = msg.sender;
    }
    modifier isAdmin() {
        uint256 role = g_users[msg.sender];
        require((role==9), "Must be admin.");
        _;
    }	

    uint256 public G_NowUserId = 1000; //first user
    uint256 public G_AllEth = 0;
    uint256 G_DayBlocks = 5900;
    
    mapping (address => uint256) public pIDxAddr_;  
    mapping (uint256 => SDDatasets.Player) public player_; 
    mapping (uint256 => SDDatasets.Plan) private plan_;   
	
	function GetIdByAddr(address addr) public 
	    view returns(uint256)
	{
	    return pIDxAddr_[addr];
	}
	

	function GetPlayerByUid(uint256 uid) public 
	    view returns(uint256,uint256,uint256,uint256,uint256,uint256,uint256)
	{
	    SDDatasets.Player storage player = player_[uid];

	    return
	    (
	        player.aff,
	        player.laff,
	        player.aff1sum,
	        player.aff2sum,
	        player.aff3sum,
	        player.aff4sum,
	        player.planCount
	    );
	}
	
    function GetPlanByUid(uint256 uid) public 
	    view returns(uint256[],uint256[],uint256[],uint256[],uint256[],bool[])
	{
	    uint256[] memory planIds = new  uint256[] (player_[uid].planCount);
	    uint256[] memory startBlocks = new  uint256[] (player_[uid].planCount);
	    uint256[] memory investeds = new  uint256[] (player_[uid].planCount);
	    uint256[] memory atBlocks = new  uint256[] (player_[uid].planCount);
	    uint256[] memory payEths = new  uint256[] (player_[uid].planCount);
	    bool[] memory isCloses = new  bool[] (player_[uid].planCount);
	    
        for(uint i = 0; i < player_[uid].planCount; i++) {
	        planIds[i] = player_[uid].plans[i].planId;
	        startBlocks[i] = player_[uid].plans[i].startBlock;
	        investeds[i] = player_[uid].plans[i].invested;
	        atBlocks[i] = player_[uid].plans[i].atBlock;
	        payEths[i] = player_[uid].plans[i].payEth;
	        isCloses[i] = player_[uid].plans[i].isClose;
	    }
	    
	    return
	    (
	        planIds,
	        startBlocks,
	        investeds,
	        atBlocks,
	        payEths,
	        isCloses
	    );
	}
	
function GetPlanTimeByUid(uint256 uid) public 
	    view returns(uint256[])
	{
	    uint256[] memory startTimes = new  uint256[] (player_[uid].planCount);

        for(uint i = 0; i < player_[uid].planCount; i++) {
	        startTimes[i] = player_[uid].plans[i].startTime;
	    }
	    
	    return
	    (
	        startTimes
	    );
	}	

    constructor() public {
        plan_[1] = SDDatasets.Plan(240,60,1e16, 5e20);
        plan_[2] = SDDatasets.Plan(350,40,1e18, 1e21);
        plan_[3] = SDDatasets.Plan(470,35,1e19, 1e22);
        plan_[4] = SDDatasets.Plan(100,0,1e16, 1e22);
        plan_[5] = SDDatasets.Plan(900,12,1e18, 1e22);
        
        initUsers();
    }
	
	function register_(address addr, uint256 _affCode) private{
        G_NowUserId = G_NowUserId.add(1);
        
        address _addr = addr;
        
        pIDxAddr_[_addr] = G_NowUserId;

        player_[G_NowUserId].addr = _addr;
        player_[G_NowUserId].laff = _affCode;
        player_[G_NowUserId].planCount = 0;
        
        uint256 _affID1 = _affCode;
        uint256 _affID2 = player_[_affID1].laff;
        uint256 _affID3 = player_[_affID2].laff;
        uint256 _affID4 = player_[_affID3].laff;
        
        player_[_affID1].aff1sum = player_[_affID1].aff1sum.add(1);
        player_[_affID2].aff2sum = player_[_affID2].aff2sum.add(1);
        player_[_affID3].aff3sum = player_[_affID3].aff3sum.add(1);
        player_[_affID4].aff4sum = player_[_affID4].aff4sum.add(1);
	}
	
    
    // this function called every time anyone sends a transaction to this contract
    function () isActivated() external payable {
        if (msg.value == 0) {
            withdraw();
        } else {
            invest(1000, 1);
        }
    } 	
    
    function invest(uint256 _affCode, uint256 _planId) isActivated() public payable {
	    require(_planId >= 1 && _planId <= ruleSum_, "_planId error");
        
		//get uid
		uint256 uid = pIDxAddr_[msg.sender];
		
		//first
		if (uid == 0) {
		    if (player_[_affCode].addr != address(0x0)) {
		        register_(msg.sender, _affCode);
		    } else {
			    register_(msg.sender, 1000);
		    }
		    
			uid = G_NowUserId;
		}
		
	    require(msg.value >= plan_[_planId].min && msg.value <= plan_[_planId].max, "invest amount error, please set the exact amount");

        // record block number and invested amount (msg.value) of this transaction
        uint256 planCount = player_[uid].planCount;
        player_[uid].plans[planCount].planId = _planId;
        player_[uid].plans[planCount].startTime = now;
        player_[uid].plans[planCount].startBlock = block.number;
        player_[uid].plans[planCount].atBlock = block.number;
        player_[uid].plans[planCount].invested = msg.value;
        player_[uid].plans[planCount].payEth = 0;
        player_[uid].plans[planCount].isClose = false;
        
        player_[uid].planCount = player_[uid].planCount.add(1);

        G_AllEth = G_AllEth.add(msg.value);
        
        if (msg.value > 1000000000) {
            distributeRef(msg.value, player_[uid].laff);
            
            uint256 devFee = (msg.value.mul(2)).div(100);
            devAddr_.transfer(devFee);
            
            uint256 partnerFee = (msg.value.mul(2)).div(100);
            partnerAddr_.transfer(partnerFee);
        } 
        
    }
   
	
	function withdraw() isActivated() public payable {
	    require(msg.value == 0, "withdraw fee is 0 ether, please set the exact amount");
	    
	    uint256 uid = pIDxAddr_[msg.sender];
	    require(uid != 0, "no invest");

        for(uint i = 0; i < player_[uid].planCount; i++) {
	        if (player_[uid].plans[i].isClose) {
	            continue;
	        }

            SDDatasets.Plan plan = plan_[player_[uid].plans[i].planId];
            
            uint256 blockNumber = block.number;
            bool bClose = false;
            if (plan.dayRange > 0) {
                
                uint256 endBlockNumber = player_[uid].plans[i].startBlock.add(plan.dayRange*G_DayBlocks);
                if (blockNumber > endBlockNumber){
                    blockNumber = endBlockNumber;
                    bClose = true;
                }
            }
            
            uint256 amount = player_[uid].plans[i].invested * plan.interest / 10000 * (blockNumber - player_[uid].plans[i].atBlock) / G_DayBlocks;

            // send calculated amount of ether directly to sender (aka YOU)
            address sender = msg.sender;
            sender.send(amount);

            // record block number and invested amount (msg.value) of this transaction
            player_[uid].plans[i].atBlock = block.number;
            player_[uid].plans[i].isClose = bClose;
            player_[uid].plans[i].payEth += amount;
        }
	}

	
    function distributeRef(uint256 _eth, uint256 _affID) private{
        
        uint256 _allaff = (_eth.mul(8)).div(100);
        
        uint256 _affID1 = _affID;
        uint256 _affID2 = player_[_affID1].laff;
        uint256 _affID3 = player_[_affID2].laff;
        uint256 _aff = 0;

        if (_affID1 != 0) {   
            _aff = (_eth.mul(5)).div(100);
            _allaff = _allaff.sub(_aff);
            player_[_affID1].aff = _aff.add(player_[_affID1].aff);
            player_[_affID1].addr.transfer(_aff);
        }

        if (_affID2 != 0) {   
            _aff = (_eth.mul(2)).div(100);
            _allaff = _allaff.sub(_aff);
            player_[_affID2].aff = _aff.add(player_[_affID2].aff);
            player_[_affID2].addr.transfer(_aff);
        }

        if (_affID3 != 0) {   
            _aff = (_eth.mul(1)).div(100);
            _allaff = _allaff.sub(_aff);
            player_[_affID3].aff = _aff.add(player_[_affID3].aff);
            player_[_affID3].addr.transfer(_aff);
       }

        if(_allaff > 0 ){
            affiAddr_.transfer(_allaff);
        }      
    }	
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[],"name":"activate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"pIDxAddr_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"eth","type":"uint256"},{"name":"_affCode","type":"uint256"},{"name":"_planId","type":"uint256"}],"name":"version1Invest","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"partnerAddr_","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"GetIdByAddr","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"G_NowUserId","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"devAddr_","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"player_","outputs":[{"name":"addr","type":"address"},{"name":"aff","type":"uint256"},{"name":"laff","type":"uint256"},{"name":"planCount","type":"uint256"},{"name":"aff1sum","type":"uint256"},{"name":"aff2sum","type":"uint256"},{"name":"aff3sum","type":"uint256"},{"name":"aff4sum","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"activated_","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_affCode","type":"uint256"},{"name":"_planId","type":"uint256"}],"name":"invest","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"G_AllEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"uid","type":"uint256"}],"name":"GetPlayerByUid","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"uid","type":"uint256"}],"name":"GetPlanTimeByUid","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"uid","type":"uint256"}],"name":"GetPlanByUid","outputs":[{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"},{"name":"","type":"bool[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"affiAddr_","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

608060405273e6ce2a354a0bf26b5b383015b7e61701f6adb39c6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507308f521636a2b117b554d04dc9e54fa4061161859600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073a8502800f27f5c13f0701450fe07550cf81c62a7600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260146101000a81548160ff02191690831515021790555060056003556103e8600555600060065561170c60075534801561013f57600080fd5b5060806040519081016040528060f08152602001603c8152602001662386f26fc100008152602001681b1ae4d6e2ef500000815250600a6000600181526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015590505060806040519081016040528061015e815260200160288152602001670de0b6b3a76400008152602001683635c9adc5dea00000815250600a600060028152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050506080604051908101604052806101d6815260200160238152602001678ac7230489e80000815260200169021e19e0c9bab2400000815250600a600060038152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050506080604051908101604052806064815260200160008152602001662386f26fc10000815260200169021e19e0c9bab2400000815250600a600060048152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050506080604051908101604052806103848152602001600c8152602001670de0b6b3a7640000815260200169021e19e0c9bab2400000815250600a6000600581526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015590505061039f6103a4640100000000026401000000009004565b61048c565b60006009600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600554905080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550336009600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6129468061049b6000396000f3006080604052600436106100e6576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630f15f4c01461019757806310f01eba146101ae57806323f75bf4146102055780633ccfd60b146102595780635ba35701146102635780635c0f82b7146102ba5780638c47a9f314610311578063ad85e3bd1461033c578063b81d3c0a14610393578063d53b267914610431578063d87aa64314610460578063dbcd81281461048a578063eaa893f3146104b5578063ed9192c314610520578063f57027c6146105a2578063f72294c91461078c575b60011515600260149054906101000a900460ff161515141515610171576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f697473206e6f7420616374697665207965742e0000000000000000000000000081525060200191505060405180910390fd5b6000341415610187576101826107e3565b610195565b6101946103e86001610c58565b5b005b3480156101a357600080fd5b506101ac61124d565b005b3480156101ba57600080fd5b506101ef600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611606565b6040518082815260200191505060405180910390f35b610257600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019092919050505061161e565b005b6102616107e3565b005b34801561026f57600080fd5b50610278611aa7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102c657600080fd5b506102fb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611acd565b6040518082815260200191505060405180910390f35b34801561031d57600080fd5b50610326611b16565b6040518082815260200191505060405180910390f35b34801561034857600080fd5b50610351611b1c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039f57600080fd5b506103be60048036038101908080359060200190929190505050611b41565b604051808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019850505050505050505060405180910390f35b34801561043d57600080fd5b50610446611ba9565b604051808215151515815260200191505060405180910390f35b6104886004803603810190808035906020019092919080359060200190929190505050610c58565b005b34801561049657600080fd5b5061049f611bbc565b6040518082815260200191505060405180910390f35b3480156104c157600080fd5b506104e060048036038101908080359060200190929190505050611bc2565b6040518088815260200187815260200186815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390f35b34801561052c57600080fd5b5061054b60048036038101908080359060200190929190505050611c20565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561058e578082015181840152602081019050610573565b505050509050019250505060405180910390f35b3480156105ae57600080fd5b506105cd60048036038101908080359060200190929190505050611cee565b6040518080602001806020018060200180602001806020018060200187810387528d818151815260200191508051906020019060200280838360005b83811015610624578082015181840152602081019050610609565b5050505090500187810386528c818151815260200191508051906020019060200280838360005b8381101561066657808201518184015260208101905061064b565b5050505090500187810385528b818151815260200191508051906020019060200280838360005b838110156106a857808201518184015260208101905061068d565b5050505090500187810384528a818151815260200191508051906020019060200280838360005b838110156106ea5780820151818401526020810190506106cf565b50505050905001878103835289818151815260200191508051906020019060200280838360005b8381101561072c578082015181840152602081019050610711565b50505050905001878103825288818151815260200191508051906020019060200280838360005b8381101561076e578082015181840152602081019050610753565b505050509050019c5050505050505050505050505060405180910390f35b34801561079857600080fd5b506107a16120c1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008060008060008060008060011515600260149054906101000a900460ff16151514151561087a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f697473206e6f7420616374697665207965742e0000000000000000000000000081525060200191505060405180910390fd5b600034141515610918576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001807f77697468647261772066656520697320302065746865722c20706c656173652081526020017f7365742074686520657861637420616d6f756e7400000000000000000000000081525060400191505060405180910390fd5b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549750600088141515156109d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f6e6f20696e76657374000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600096505b6009600089815260200190815260200160002060030154871015610c4e5760096000898152602001908152602001600020600401600088815260200190815260200160002060060160009054906101000a900460ff1615610a3857610c41565b600a6000600960008b815260200190815260200160002060040160008a8152602001908152602001600020600001548152602001908152602001600020955043945060009350600086600101541115610ae357610ad0600754876001015402600960008b815260200190815260200160002060040160008a8152602001908152602001600020600201546120e790919063ffffffff16565b925082851115610ae257829450600193505b5b600754600960008a815260200190815260200160002060040160008981526020019081526020016000206004015486036127108860000154600960008d815260200190815260200160002060040160008c81526020019081526020016000206003015402811515610b5057fe5b0402811515610b5b57fe5b0491503390508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050505043600960008a815260200190815260200160002060040160008981526020019081526020016000206004018190555083600960008a8152602001908152602001600020600401600089815260200190815260200160002060060160006101000a81548160ff02191690831515021790555081600960008a81526020019081526020016000206004016000898152602001908152602001600020600501600082825401925050819055505b86806001019750506109d8565b5050505050505050565b60008060008060011515600260149054906101000a900460ff161515141515610ce9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f697473206e6f7420616374697665207965742e0000000000000000000000000081525060200191505060405180910390fd5b60018510158015610cfc57506003548511155b1515610d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f5f706c616e4964206572726f720000000000000000000000000000000000000081525060200191505060405180910390fd5b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205493506000841415610e4957600073ffffffffffffffffffffffffffffffffffffffff166009600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610e3657610e31338761216f565b610e43565b610e42336103e861216f565b5b60055493505b600a6000868152602001908152602001600020600201543410158015610e855750600a6000868152602001908152602001600020600301543411155b1515610f1f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001807f696e7665737420616d6f756e74206572726f722c20706c65617365207365742081526020017f74686520657861637420616d6f756e740000000000000000000000000000000081525060400191505060405180910390fd5b6009600085815260200190815260200160002060030154925084600960008681526020019081526020016000206004016000858152602001908152602001600020600001819055504260096000868152602001908152602001600020600401600085815260200190815260200160002060010181905550436009600086815260200190815260200160002060040160008581526020019081526020016000206002018190555043600960008681526020019081526020016000206004016000858152602001908152602001600020600401819055503460096000868152602001908152602001600020600401600085815260200190815260200160002060030181905550600060096000868152602001908152602001600020600401600085815260200190815260200160002060050181905550600060096000868152602001908152602001600020600401600085815260200190815260200160002060060160006101000a81548160ff0219169083151502179055506110c0600160096000878152602001908152602001600020600301546120e790919063ffffffff16565b60096000868152602001908152602001600020600301819055506110ef346006546120e790919063ffffffff16565b600681905550633b9aca00341115611245576111213460096000878152602001908152602001600020600201546123d5565b611148606461113a6002346127d690919063ffffffff16565b61287a90919063ffffffff16565b91506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156111b1573d6000803e3d6000fd5b506111d960646111cb6002346127d690919063ffffffff16565b61287a90919063ffffffff16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611243573d6000803e3d6000fd5b505b505050505050565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600981141515611309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f4d7573742062652061646d696e2e00000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515156113cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4d75737420736574757020646576416464725f2e00000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611496576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4d75737420736574757020706172746e6572416464725f2e000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561155d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4d7573742073657475702061666669416464725f2e000000000000000000000081525060200191505060405180910390fd5b60001515600260149054906101000a900460ff1615151415156115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4f6e6c79206f6e6365000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001600260146101000a81548160ff02191690831515021790555050565b60086020528060005260406000206000915090505481565b6000806000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506009811415156116dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f4d7573742062652061646d696e2e00000000000000000000000000000000000081525060200191505060405180910390fd5b60001515600260149054906101000a900460ff161515141515611768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4f6e6c79206e6f7420616374697665000000000000000000000000000000000081525060200191505060405180910390fd5b6001841015801561177b57506003548411155b15156117ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f5f706c616e4964206572726f720000000000000000000000000000000000000081525060200191505060405180910390fd5b600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054925060008314156118c857600073ffffffffffffffffffffffffffffffffffffffff166009600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156118b5576118b0878661216f565b6118c2565b6118c1876103e861216f565b5b60055492505b6009600084815260200190815260200160002060030154915083600960008581526020019081526020016000206004016000848152602001908152602001600020600001819055504260096000858152602001908152602001600020600401600084815260200190815260200160002060010181905550436009600085815260200190815260200160002060040160008481526020019081526020016000206002018190555043600960008581526020019081526020016000206004016000848152602001908152602001600020600401819055508560096000858152602001908152602001600020600401600084815260200190815260200160002060030181905550600060096000858152602001908152602001600020600401600084815260200190815260200160002060050181905550600060096000858152602001908152602001600020600401600084815260200190815260200160002060060160006101000a81548160ff021916908315150217905550611a69600160096000868152602001908152602001600020600301546120e790919063ffffffff16565b6009600085815260200190815260200160002060030181905550611a98866006546120e790919063ffffffff16565b60068190555050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60055481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60096020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060050154908060060154908060070154908060080154905088565b600260149054906101000a900460ff1681565b60065481565b600080600080600080600080600960008a815260200190815260200160002090508060010154816002015482600501548360060154846007015485600801548660030154975097509750975097509750975050919395979092949650565b60608060006009600085815260200190815260200160002060030154604051908082528060200260200182016040528015611c6a5781602001602082028038833980820191505090505b509150600090505b6009600085815260200190815260200160002060030154811015611ce457600960008581526020019081526020016000206004016000828152602001908152602001600020600101548282815181101515611cc957fe5b90602001906020020181815250508080600101915050611c72565b8192505050919050565b6060806060806060806060806060806060806000600960008f815260200190815260200160002060030154604051908082528060200260200182016040528015611d475781602001602082028038833980820191505090505b509650600960008f815260200190815260200160002060030154604051908082528060200260200182016040528015611d8f5781602001602082028038833980820191505090505b509550600960008f815260200190815260200160002060030154604051908082528060200260200182016040528015611dd75781602001602082028038833980820191505090505b509450600960008f815260200190815260200160002060030154604051908082528060200260200182016040528015611e1f5781602001602082028038833980820191505090505b509350600960008f815260200190815260200160002060030154604051908082528060200260200182016040528015611e675781602001602082028038833980820191505090505b509250600960008f815260200190815260200160002060030154604051908082528060200260200182016040528015611eaf5781602001602082028038833980820191505090505b509150600090505b600960008f81526020019081526020016000206003015481101561209f57600960008f81526020019081526020016000206004016000828152602001908152602001600020600001548782815181101515611f0e57fe5b9060200190602002018181525050600960008f81526020019081526020016000206004016000828152602001908152602001600020600201548682815181101515611f5557fe5b9060200190602002018181525050600960008f81526020019081526020016000206004016000828152602001908152602001600020600301548582815181101515611f9c57fe5b9060200190602002018181525050600960008f81526020019081526020016000206004016000828152602001908152602001600020600401548482815181101515611fe357fe5b9060200190602002018181525050600960008f8152602001908152602001600020600401600082815260200190815260200160002060050154838281518110151561202a57fe5b9060200190602002018181525050600960008f8152602001908152602001600020600401600082815260200190815260200160002060060160009054906101000a900460ff16828281518110151561207e57fe5b90602001906020020190151590811515815250508080600101915050611eb7565b8686868686869c509c509c509c509c509c505050505050505091939550919395565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008183019050828110151515612166576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f536166654d61746820616464206661696c65640000000000000000000000000081525060200191505060405180910390fd5b80905092915050565b600080600080600061218d60016005546120e790919063ffffffff16565b600581905550869450600554600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508460096000600554815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600960006005548152602001908152602001600020600201819055506000600960006005548152602001908152602001600020600301819055508593506009600085815260200190815260200160002060020154925060096000848152602001908152602001600020600201549150600960008381526020019081526020016000206002015490506122e6600160096000878152602001908152602001600020600501546120e790919063ffffffff16565b600960008681526020019081526020016000206005018190555061232a600160096000868152602001908152602001600020600601546120e790919063ffffffff16565b600960008581526020019081526020016000206006018190555061236e600160096000858152602001908152602001600020600701546120e790919063ffffffff16565b60096000848152602001908152602001600020600701819055506123b2600160096000848152602001908152602001600020600801546120e790919063ffffffff16565b600960008381526020019081526020016000206008018190555050505050505050565b600080600080600061240460646123f660088a6127d690919063ffffffff16565b61287a90919063ffffffff16565b945085935060096000858152602001908152602001600020600201549250600960008481526020019081526020016000206002015491506000905060008414151561254857612470606461246260058a6127d690919063ffffffff16565b61287a90919063ffffffff16565b9050612485818661289590919063ffffffff16565b94506124b06009600086815260200190815260200160002060010154826120e790919063ffffffff16565b60096000868152602001908152602001600020600101819055506009600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612546573d6000803e3d6000fd5b505b60008314151561265157612579606461256b60028a6127d690919063ffffffff16565b61287a90919063ffffffff16565b905061258e818661289590919063ffffffff16565b94506125b96009600085815260200190815260200160002060010154826120e790919063ffffffff16565b60096000858152602001908152602001600020600101819055506009600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561264f573d6000803e3d6000fd5b505b60008214151561275a57612682606461267460018a6127d690919063ffffffff16565b61287a90919063ffffffff16565b9050612697818661289590919063ffffffff16565b94506126c26009600084815260200190815260200160002060010154826120e790919063ffffffff16565b60096000848152602001908152602001600020600101819055506009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612758573d6000803e3d6000fd5b505b60008511156127cd57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc869081150290604051600060405180830381858888f193505050501580156127cb573d6000803e3d6000fd5b505b50505050505050565b6000808314156127e95760009050612874565b81830290508183828115156127fa57fe5b04141515612870576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f536166654d617468206d756c206661696c65640000000000000000000000000081525060200191505060405180910390fd5b8090505b92915050565b600080828481151561288857fe5b0490508091505092915050565b600082821115151561290f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f536166654d61746820737562206661696c65640000000000000000000000000081525060200191505060405180910390fd5b8183039050929150505600a165627a7a7230582091341c154e43ee8695d28dd9bd79f365e87c830a988299f35d76d506192bf1a80029

Swarm Source

bzzr://91341c154e43ee8695d28dd9bd79f365e87c830a988299f35d76d506192bf1a8
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.