ETH Price: $1,974.59 (-0.05%)
 

Overview

ETH Balance

0.00023654901332355 ETH

Eth Value

$0.47 (@ $1,974.59/ETH)

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw64629682018-10-06 8:03:132696 days ago1538812993IN
0x93b3b11f...8B71b9DC9
0 ETH0.000161773
Withdraw64628282018-10-06 7:29:572696 days ago1538810997IN
0x93b3b11f...8B71b9DC9
0 ETH0.000053921
Re Load Xid64439422018-10-03 5:35:062699 days ago1538544906IN
0x93b3b11f...8B71b9DC9
0 ETH0.000168693
Withdraw64090492018-09-27 12:30:172704 days ago1538051417IN
0x93b3b11f...8B71b9DC9
0 ETH0.000053921
Withdraw63380042018-09-15 19:30:292716 days ago1537039829IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw63379242018-09-15 19:12:482716 days ago1537038768IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw63378252018-09-15 18:51:322716 days ago1537037492IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw63377952018-09-15 18:43:542716 days ago1537037034IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw62191052018-08-26 21:09:142736 days ago1535317754IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw62183322018-08-26 17:56:282736 days ago1535306188IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw62178422018-08-26 16:05:442736 days ago1535299544IN
0x93b3b11f...8B71b9DC9
0 ETH0.0005392610
Withdraw62065442018-08-24 18:29:332738 days ago1535135373IN
0x93b3b11f...8B71b9DC9
0 ETH0.000221094.1
Withdraw61937162018-08-22 14:09:162740 days ago1534946956IN
0x93b3b11f...8B71b9DC9
0 ETH0.000107852
Withdraw61848652018-08-21 2:33:172742 days ago1534818797IN
0x93b3b11f...8B71b9DC9
0 ETH0.00021574
Withdraw61718122018-08-18 21:39:552744 days ago1534628395IN
0x93b3b11f...8B71b9DC9
0 ETH0.000107852
Withdraw61322192018-08-12 4:45:112751 days ago1534049111IN
0x93b3b11f...8B71b9DC9
0 ETH0.000323556
Withdraw61244382018-08-10 20:57:192752 days ago1533934639IN
0x93b3b11f...8B71b9DC9
0 ETH0.000161773
Withdraw61078132018-08-08 1:49:202755 days ago1533692960IN
0x93b3b11f...8B71b9DC9
0 ETH0.0008088915
Withdraw61078082018-08-08 1:47:352755 days ago1533692855IN
0x93b3b11f...8B71b9DC9
0 ETH0.00043148
Withdraw61077062018-08-08 1:24:082755 days ago1533691448IN
0x93b3b11f...8B71b9DC9
0 ETH0.0006471112
Transfer61032592018-08-07 7:17:192756 days ago1533626239IN
0x93b3b11f...8B71b9DC9
0.00007501 ETH0.001534134
Withdraw61031342018-08-07 6:45:192756 days ago1533624319IN
0x93b3b11f...8B71b9DC9
0 ETH0.000225293
Withdraw61030952018-08-07 6:34:392756 days ago1533623679IN
0x93b3b11f...8B71b9DC9
0 ETH0.000300394
Withdraw61030212018-08-07 6:16:092756 days ago1533622569IN
0x93b3b11f...8B71b9DC9
0 ETH0.000300394
Re Load Xid61030192018-08-07 6:15:442756 days ago1533622544IN
0x93b3b11f...8B71b9DC9
0 ETH0.0062026840
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer61032592018-08-07 7:17:192756 days ago1533626239
0x93b3b11f...8B71b9DC9
0.0000105 ETH
Transfer61030192018-08-07 6:15:442756 days ago1533622544
0x93b3b11f...8B71b9DC9
0.00202209 ETH
Transfer61021832018-08-07 2:53:392756 days ago1533610419
0x93b3b11f...8B71b9DC9
0.00001106 ETH
Transfer61010182018-08-06 22:11:322756 days ago1533593492
0x93b3b11f...8B71b9DC9
0.036832 ETH
Transfer61010082018-08-06 22:09:342756 days ago1533593374
0x93b3b11f...8B71b9DC9
0.00133 ETH
Transfer61009962018-08-06 22:06:322756 days ago1533593192
0x93b3b11f...8B71b9DC9
0.00175 ETH
Transfer61009882018-08-06 22:04:382756 days ago1533593078
0x93b3b11f...8B71b9DC9
0.00175 ETH
Transfer61009762018-08-06 22:02:012756 days ago1533592921
0x93b3b11f...8B71b9DC9
0.00133 ETH
Transfer61002052018-08-06 18:50:452756 days ago1533581445
0x93b3b11f...8B71b9DC9
0.00599758 ETH
Transfer60848122018-08-04 4:43:162759 days ago1533357796
0x93b3b11f...8B71b9DC9
0.02228923 ETH
Transfer60848122018-08-04 4:43:162759 days ago1533357796
0x93b3b11f...8B71b9DC9
0.00159518 ETH
Transfer60821752018-08-03 18:15:422759 days ago1533320142
0x93b3b11f...8B71b9DC9
0.00159518 ETH
Transfer60820662018-08-03 17:49:512759 days ago1533318591
0x93b3b11f...8B71b9DC9
0.00159518 ETH
Transfer60815482018-08-03 15:44:162759 days ago1533311056
0x93b3b11f...8B71b9DC9
0.0000105 ETH
Transfer60811562018-08-03 14:08:112759 days ago1533305291
0x93b3b11f...8B71b9DC9
0.33442662 ETH
Transfer60811562018-08-03 14:08:112759 days ago1533305291
0x93b3b11f...8B71b9DC9
0.00611431 ETH
Transfer60804862018-08-03 11:24:432760 days ago1533295483
0x93b3b11f...8B71b9DC9
0.00000679 ETH
Transfer60804742018-08-03 11:21:252760 days ago1533295285
0x93b3b11f...8B71b9DC9
0.00644722 ETH
Transfer60804702018-08-03 11:20:172760 days ago1533295217
0x93b3b11f...8B71b9DC9
0.00001106 ETH
Transfer60804432018-08-03 11:14:182760 days ago1533294858
0x93b3b11f...8B71b9DC9
0.00001102 ETH
Transfer60804432018-08-03 11:14:182760 days ago1533294858
0x93b3b11f...8B71b9DC9
0.00001081 ETH
Transfer60804432018-08-03 11:14:182760 days ago1533294858
0x93b3b11f...8B71b9DC9
0.00001081 ETH
Transfer60804422018-08-03 11:14:132760 days ago1533294853
0x93b3b11f...8B71b9DC9
0.05077786 ETH
Transfer60804172018-08-03 11:07:422760 days ago1533294462
0x93b3b11f...8B71b9DC9
0.000112 ETH
Transfer60804152018-08-03 11:07:282760 days ago1533294448
0x93b3b11f...8B71b9DC9
0.00001081 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Fomo4D

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.24;
contract F4Devents {
    event onNewName
    (
        uint256 indexed playerID,
        address indexed playerAddress,
        bytes32 indexed playerName,
        bool isNewPlayer,
        uint256 affiliateID,
        address affiliateAddress,
        bytes32 affiliateName,
        uint256 amountPaid,
        uint256 timeStamp
    );
    
    event onEndTx
    (
        uint256 compressedData,     
        uint256 compressedIDs,      
        bytes32 playerName,
        address playerAddress,
        uint256 ethIn,
        uint256 keysBought,
        address winnerAddr,
        bytes32 winnerName,
        uint256 amountWon,
        uint256 newPot,
        uint256 genAmount,
        uint256 potAmount
    );
    
    event onWithdraw
    (
        uint256 indexed playerID,
        address playerAddress,
        bytes32 playerName,
        uint256 ethOut,
        uint256 timeStamp
    );
    
    event onWithdrawAndDistribute
    (
        address playerAddress,
        bytes32 playerName,
        uint256 ethOut,
        uint256 compressedData,
        uint256 compressedIDs,
        address winnerAddr,
        bytes32 winnerName,
        uint256 amountWon,
        uint256 newPot,
        uint256 genAmount
    );
    
    event onBuyAndDistribute
    (
        address playerAddress,
        bytes32 playerName,
        uint256 ethIn,
        uint256 compressedData,
        uint256 compressedIDs,
        address winnerAddr,
        bytes32 winnerName,
        uint256 amountWon,
        uint256 newPot,
        uint256 genAmount
    );
    
    event onReLoadAndDistribute
    (
        address playerAddress,
        bytes32 playerName,
        uint256 compressedData,
        uint256 compressedIDs,
        address winnerAddr,
        bytes32 winnerName,
        uint256 amountWon,
        uint256 newPot,
        uint256 genAmount
    );
    
    event onAffiliatePayout
    (
        uint256 indexed affiliateID,
        address affiliateAddress,
        bytes32 affiliateName,
        uint256 indexed roundID,
        uint256 indexed buyerID,
        uint256 amount,
        uint256 timeStamp
    );
    
    event onPotSwapDeposit
    (
        uint256 roundID,
        uint256 amountAddedToPot
    );
}

contract Fomo4D is F4Devents {
    using SafeMath for *;
    using NameFilter for string;
    using F4DKeysCalcLong for uint256;
	
    address private owner_;
	PlayerBookInterface constant private PlayerBook = PlayerBookInterface(0xeB367060583fd067Edec36202339360071e617Db);
    string constant public name = "Fomo4D";
    string constant public symbol = "F4D";
	uint256 private rndExtra_ = 0;                              // length of the very first ICO 
    uint256 private rndGap_ = 0;                                // length of ICO phase, set to 1 year for EOS.
    uint256 constant private rndInit_ = 1 hours;                // round timer starts at this
    uint256 constant private rndInc_ = 30 seconds;              // every full key purchased adds this much to the timer
    uint256 constant private rndMax_ = 24 hours;                // max length a round timer can be
    uint256 public rID_;                                        // round id number / total rounds that have happened
    mapping (address => uint256) public pIDxAddr_;              // (addr => pID) returns player id by address
    mapping (bytes32 => uint256) public pIDxName_;              // (name => pID) returns player id by name
    mapping (uint256 => F4Ddatasets.Player) public plyr_;       // (pID => data) player data
    mapping (uint256 => mapping (uint256 => F4Ddatasets.PlayerRounds)) public plyrRnds_;    // (pID => rID => data) player round data by player id & round id
    mapping (uint256 => mapping (bytes32 => bool)) public plyrNames_;   // (pID => name => bool) list of names a player owns.  (used so you can change your display name amongst any name you own)
    mapping (uint256 => F4Ddatasets.Round) public round_;               // (rID => data) round data
    mapping (uint256 => mapping(uint256 => uint256)) public rndTmEth_;      // (rID => tID => data) eth in per team, by round id and team id

    mapping (uint256 => F4Ddatasets.TeamFee) public fees_;          // (team => fees) fee distribution by team
    mapping (uint256 => F4Ddatasets.PotSplit) public potSplit_;     // (team => fees) pot split distribution by team

    constructor()
        public
    {
        owner_ = msg.sender;
		// Team allocation structures
        // 0 = whales
        // 1 = bears
        // 2 = sneks
        // 3 = bulls
        fees_[0] = F4Ddatasets.TeamFee(24);   //50% to pot, 10% to aff, 2% to com, 1% to pot swap, 1% to air drop pot
        fees_[1] = F4Ddatasets.TeamFee(38);   //43% to pot, 10% to aff, 2% to com, 1% to pot swap, 1% to air drop pot
        fees_[2] = F4Ddatasets.TeamFee(50);   //20% to pot, 10% to aff, 2% to com, 1% to pot swap, 1% to air drop pot
        fees_[3] = F4Ddatasets.TeamFee(42);   //35% to pot, 10% to aff, 2% to com, 1% to pot swap, 1% to air drop pot
 
        potSplit_[0] = F4Ddatasets.PotSplit(12);  //48% to winner, 25% to next round, 2% to com
        potSplit_[1] = F4Ddatasets.PotSplit(19);  //48% to winner, 25% to next round, 2% to com
        potSplit_[2] = F4Ddatasets.PotSplit(26);  //48% to winner, 10% to next round, 2% to com
        potSplit_[3] = F4Ddatasets.PotSplit(30);  //48% to winner, 10% to next round, 2% to com
	}
//modifier
    /**
     * @dev used to make sure no one can interact with contract until it has 
     * been activated. 
     */
    modifier isActivated() {
        require(activated_ == true, "its not ready yet.  check ?eta in discord"); 
        _;
    }
    
    /**
     * @dev prevents contracts from interacting with fomo3d 
     */
    modifier isHuman() {
        address _addr = msg.sender;
        uint256 _codeLength;
        
        assembly {_codeLength := extcodesize(_addr)}
        require(_codeLength == 0, "sorry humans only");
        _;
    }

    /**
     * @dev sets boundaries for incoming tx 
     */
    modifier isWithinLimits(uint256 _eth) {
        require(_eth >= 1000000000, "pocket lint: not a valid currency");
        require(_eth <= 100000000000000000000000, "no vitalik, no");
        _;    
    }
    
//public functions
    /**
     * @dev emergency buy uses last stored affiliate ID and team snek
     */
    function()
        isActivated()
        isHuman()
        isWithinLimits(msg.value)
        public
        payable
    {
        // set up our tx event data and determine if player is new or not
        F4Ddatasets.EventReturns memory _eventData_ = determinePID(_eventData_);
            
        // fetch player id
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // buy core 
        buyCore(_pID, plyr_[_pID].laff, 2, _eventData_);
    }
    
    /**
     * @dev converts all incoming ethereum to keys.
     * -functionhash- 0x8f38f309 (using ID for affiliate)
     * -functionhash- 0x98a0871d (using address for affiliate)
     * -functionhash- 0xa65b37a1 (using name for affiliate)
     * @param _affCode the ID/address/name of the player who gets the affiliate fee
     * @param _team what team is the player playing for?
     */
    function buyXid(uint256 _affCode, uint256 _team)
        isActivated()
        isHuman()
        isWithinLimits(msg.value)
        public
        payable
    {
        // set up our tx event data and determine if player is new or not
        F4Ddatasets.EventReturns memory _eventData_ = determinePID(_eventData_);
        
        // fetch player id
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // manage affiliate residuals
        // if no affiliate code was given or player tried to use their own, lolz
        if (_affCode == 0 || _affCode == _pID)
        {
            // use last stored affiliate code 
            _affCode = plyr_[_pID].laff;
            
        // if affiliate code was given & its not the same as previously stored 
        } else if (_affCode != plyr_[_pID].laff) {
            // update last affiliate 
            plyr_[_pID].laff = _affCode;
        }
        
        // verify a valid team was selected
        _team = verifyTeam(_team);
        
        // buy core 
        buyCore(_pID, _affCode, _team, _eventData_);
    }
    
    function buyXaddr(address _affCode, uint256 _team)
        isActivated()
        isHuman()
        isWithinLimits(msg.value)
        public
        payable
    {
        // set up our tx event data and determine if player is new or not
        F4Ddatasets.EventReturns memory _eventData_ = determinePID(_eventData_);
        
        // fetch player id
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // manage affiliate residuals
        uint256 _affID;
        // if no affiliate code was given or player tried to use their own, lolz
        if (_affCode == address(0) || _affCode == msg.sender)
        {
            // use last stored affiliate code
            _affID = plyr_[_pID].laff;
        
        // if affiliate code was given    
        } else {
            // get affiliate ID from aff Code 
            _affID = pIDxAddr_[_affCode];
            
            // if affID is not the same as previously stored 
            if (_affID != plyr_[_pID].laff)
            {
                // update last affiliate
                plyr_[_pID].laff = _affID;
            }
        }
        
        // verify a valid team was selected
        _team = verifyTeam(_team);
        
        // buy core 
        buyCore(_pID, _affID, _team, _eventData_);
    }
    
    function buyXname(bytes32 _affCode, uint256 _team)
        isActivated()
        isHuman()
        isWithinLimits(msg.value)
        public
        payable
    {
        // set up our tx event data and determine if player is new or not
        F4Ddatasets.EventReturns memory _eventData_ = determinePID(_eventData_);
        
        // fetch player id
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // manage affiliate residuals
        uint256 _affID;
        // if no affiliate code was given or player tried to use their own, lolz
        if (_affCode == '' || _affCode == plyr_[_pID].name)
        {
            // use last stored affiliate code
            _affID = plyr_[_pID].laff;
        
        // if affiliate code was given
        } else {
            // get affiliate ID from aff Code
            _affID = pIDxName_[_affCode];
            
            // if affID is not the same as previously stored
            if (_affID != plyr_[_pID].laff)
            {
                // update last affiliate
                plyr_[_pID].laff = _affID;
            }
        }
        
        // verify a valid team was selected
        _team = verifyTeam(_team);
        
        // buy core 
        buyCore(_pID, _affID, _team, _eventData_);
    }
    
    /**
     * @dev essentially the same as buy, but instead of you sending ether 
     * from your wallet, it uses your unwithdrawn earnings.
     * -functionhash- 0x349cdcac (using ID for affiliate)
     * -functionhash- 0x82bfc739 (using address for affiliate)
     * -functionhash- 0x079ce327 (using name for affiliate)
     * @param _affCode the ID/address/name of the player who gets the affiliate fee
     * @param _team what team is the player playing for?
     * @param _eth amount of earnings to use (remainder returned to gen vault)
     */
    function reLoadXid(uint256 _affCode, uint256 _team, uint256 _eth)
        isActivated()
        isHuman()
        isWithinLimits(_eth)
        public
    {
        // set up our tx event data
        F4Ddatasets.EventReturns memory _eventData_;
        
        // fetch player ID
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // manage affiliate residuals
        // if no affiliate code was given or player tried to use their own, lolz
        if (_affCode == 0 || _affCode == _pID)
        {
            // use last stored affiliate code 
            _affCode = plyr_[_pID].laff;
            
        // if affiliate code was given & its not the same as previously stored 
        } else if (_affCode != plyr_[_pID].laff) {
            // update last affiliate 
            plyr_[_pID].laff = _affCode;
        }

        // verify a valid team was selected
        _team = verifyTeam(_team);

        // reload core
        reLoadCore(_pID, _affCode, _team, _eth, _eventData_);
    }
    
    function reLoadXaddr(address _affCode, uint256 _team, uint256 _eth)
        isActivated()
        isHuman()
        isWithinLimits(_eth)
        public
    {
        // set up our tx event data
        F4Ddatasets.EventReturns memory _eventData_;
        
        // fetch player ID
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // manage affiliate residuals
        uint256 _affID;
        // if no affiliate code was given or player tried to use their own, lolz
        if (_affCode == address(0) || _affCode == msg.sender)
        {
            // use last stored affiliate code
            _affID = plyr_[_pID].laff;
        
        // if affiliate code was given    
        } else {
            // get affiliate ID from aff Code 
            _affID = pIDxAddr_[_affCode];
            
            // if affID is not the same as previously stored 
            if (_affID != plyr_[_pID].laff)
            {
                // update last affiliate
                plyr_[_pID].laff = _affID;
            }
        }
        
        // verify a valid team was selected
        _team = verifyTeam(_team);
        
        // reload core
        reLoadCore(_pID, _affID, _team, _eth, _eventData_);
    }
    
    function reLoadXname(bytes32 _affCode, uint256 _team, uint256 _eth)
        isActivated()
        isHuman()
        isWithinLimits(_eth)
        public
    {
        // set up our tx event data
        F4Ddatasets.EventReturns memory _eventData_;
        
        // fetch player ID
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // manage affiliate residuals
        uint256 _affID;
        // if no affiliate code was given or player tried to use their own, lolz
        if (_affCode == '' || _affCode == plyr_[_pID].name)
        {
            // use last stored affiliate code
            _affID = plyr_[_pID].laff;
        
        // if affiliate code was given
        } else {
            // get affiliate ID from aff Code
            _affID = pIDxName_[_affCode];
            
            // if affID is not the same as previously stored
            if (_affID != plyr_[_pID].laff)
            {
                // update last affiliate
                plyr_[_pID].laff = _affID;
            }
        }
        
        // verify a valid team was selected
        _team = verifyTeam(_team);
        
        // reload core
        reLoadCore(_pID, _affID, _team, _eth, _eventData_);
    }

    /**
     * @dev withdraws all of your earnings.
     * -functionhash- 0x3ccfd60b
     */
    function withdraw()
        isActivated()
        isHuman()
        public
    {
        // setup local rID 
        uint256 _rID = rID_;
        
        // grab time
        uint256 _now = now;
        
        // fetch player ID
        uint256 _pID = pIDxAddr_[msg.sender];
        
        // setup temp var for player eth
        uint256 _eth;
        
        // check to see if round has ended and no one has run round end yet
        if (_now > round_[_rID].end && round_[_rID].ended == false && round_[_rID].plyr != 0)
        {
            // set up our tx event data
            F4Ddatasets.EventReturns memory _eventData_;
            
            // end the round (distributes pot)
			round_[_rID].ended = true;
            _eventData_ = endRound(_eventData_);
            
			// get their earnings
            _eth = withdrawEarnings(_pID);
            
            // gib moni
            if (_eth > 0)
                plyr_[_pID].addr.transfer(_eth);    
            
            // build event data
            _eventData_.compressedData = _eventData_.compressedData + (_now * 1000000000000000000);
            _eventData_.compressedIDs = _eventData_.compressedIDs + _pID;
            
            // fire withdraw and distribute event
            emit F4Devents.onWithdrawAndDistribute
            (
                msg.sender, 
                plyr_[_pID].name, 
                _eth, 
                _eventData_.compressedData, 
                _eventData_.compressedIDs, 
                _eventData_.winnerAddr, 
                _eventData_.winnerName, 
                _eventData_.amountWon, 
                _eventData_.newPot, 
                _eventData_.genAmount
            );
            
        // in any other situation
        } else {
            // get their earnings
            _eth = withdrawEarnings(_pID);
            
            // gib moni
            if (_eth > 0)
                plyr_[_pID].addr.transfer(_eth);
            
            // fire withdraw event
            emit F4Devents.onWithdraw(_pID, msg.sender, plyr_[_pID].name, _eth, _now);
        }
    }
    
    /**
     * @dev use these to register names.  they are just wrappers that will send the
     * registration requests to the PlayerBook contract.  So registering here is the 
     * same as registering there.  UI will always display the last name you registered.
     * but you will still own all previously registered names to use as affiliate 
     * links.
     * - must pay a registration fee.
     * - name must be unique
     * - names will be converted to lowercase
     * - name cannot start or end with a space 
     * - cannot have more than 1 space in a row
     * - cannot be only numbers
     * - cannot start with 0x 
     * - name must be at least 1 char
     * - max length of 32 characters long
     * - allowed characters: a-z, 0-9, and space
     * -functionhash- 0x921dec21 (using ID for affiliate)
     * -functionhash- 0x3ddd4698 (using address for affiliate)
     * -functionhash- 0x685ffd83 (using name for affiliate)
     * @param _nameString players desired name
     * @param _affCode affiliate ID, address, or name of who referred you
     * @param _all set to true if you want this to push your info to all games 
     * (this might cost a lot of gas)
     */
    function registerNameXID(string _nameString, uint256 _affCode, bool _all)
        isHuman()
        public
        payable
    {
        bytes32 _name = _nameString.nameFilter();
        address _addr = msg.sender;
        uint256 _paid = msg.value;
        (bool _isNewPlayer, uint256 _affID) = PlayerBook.registerNameXIDFromDapp.value(_paid)(_addr, _name, _affCode, _all);
        
        uint256 _pID = pIDxAddr_[_addr];
        
        // fire event
        emit F4Devents.onNewName(_pID, _addr, _name, _isNewPlayer, _affID, plyr_[_affID].addr, plyr_[_affID].name, _paid, now);
    }
    
    function registerNameXaddr(string _nameString, address _affCode, bool _all)
        isHuman()
        public
        payable
    {
        bytes32 _name = _nameString.nameFilter();
        address _addr = msg.sender;
        uint256 _paid = msg.value;
        (bool _isNewPlayer, uint256 _affID) = PlayerBook.registerNameXaddrFromDapp.value(msg.value)(msg.sender, _name, _affCode, _all);
        
        uint256 _pID = pIDxAddr_[_addr];
        
        // fire event
        emit F4Devents.onNewName(_pID, _addr, _name, _isNewPlayer, _affID, plyr_[_affID].addr, plyr_[_affID].name, _paid, now);
    }
    
    function registerNameXname(string _nameString, bytes32 _affCode, bool _all)
        isHuman()
        public
        payable
    {
        bytes32 _name = _nameString.nameFilter();
        address _addr = msg.sender;
        uint256 _paid = msg.value;
        (bool _isNewPlayer, uint256 _affID) = PlayerBook.registerNameXnameFromDapp.value(msg.value)(msg.sender, _name, _affCode, _all);
        
        uint256 _pID = pIDxAddr_[_addr];
        
        // fire event
        emit F4Devents.onNewName(_pID, _addr, _name, _isNewPlayer, _affID, plyr_[_affID].addr, plyr_[_affID].name, _paid, now);
    }
//view
    /**
     * @dev return the price buyer will pay for next 1 individual key.
     * -functionhash- 0x018a25e8
     * @return price for next key bought (in wei format)
     */
    function getBuyPrice()
        public 
        view 
        returns(uint256)
    {  
        // setup local rID
        uint256 _rID = rID_;
        
        // grab time
        uint256 _now = now;
        
        // are we in a round?
        if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[_rID].plyr == 0)))
            return ( (round_[_rID].keys.add(1000000000000000000)).ethRec(1000000000000000000) );
        else // rounds over.  need price for new round
            return ( 75000000000000 ); // init
    }
    
    /**
     * @dev returns time left.  dont spam this, you'll ddos yourself from your node 
     * provider
     * -functionhash- 0xc7e284b8
     * @return time left in seconds
     */
    function getTimeLeft()
        public
        view
        returns(uint256)
    {
        // setup local rID
        uint256 _rID = rID_;
        
        // grab time
        uint256 _now = now;
        
        if (_now < round_[_rID].end)
            if (_now > round_[_rID].strt + rndGap_)
                return( (round_[_rID].end).sub(_now) );
            else
                return( (round_[_rID].strt + rndGap_).sub(_now) );
        else
            return(0);
    }
    
    /**
     * @dev returns player earnings per vaults 
     * -functionhash- 0x63066434
     * @return winnings vault
     * @return general vault
     * @return affiliate vault
     */
    function getPlayerVaults(uint256 _pID)
        public
        view
        returns(uint256 ,uint256, uint256)
    {
        // setup local rID
        uint256 _rID = rID_;
        
        // if round has ended.  but round end has not been run (so contract has not distributed winnings)
        if (now > round_[_rID].end && round_[_rID].ended == false && round_[_rID].plyr != 0)
        {
            // if player is winner 
            if (round_[_rID].plyr == _pID)
            {
                return
                (
                    (plyr_[_pID].win).add( ((round_[_rID].pot).mul(48)) / 100 ),
                    (plyr_[_pID].gen).add(  getPlayerVaultsHelper(_pID, _rID).sub(plyrRnds_[_pID][_rID].mask)   ),
                    plyr_[_pID].aff
                );
            // if player is not the winner
            } else {
                return
                (
                    plyr_[_pID].win,
                    (plyr_[_pID].gen).add(  getPlayerVaultsHelper(_pID, _rID).sub(plyrRnds_[_pID][_rID].mask)  ),
                    plyr_[_pID].aff
                );
            }
            
        // if round is still going on, or round has ended and round end has been ran
        } else {
            return
            (
                plyr_[_pID].win,
                (plyr_[_pID].gen).add(calcUnMaskedEarnings(_pID, plyr_[_pID].lrnd)),
                plyr_[_pID].aff
            );
        }
    }
    
    /**
     * solidity hates stack limits.  this lets us avoid that hate 
     */
    function getPlayerVaultsHelper(uint256 _pID, uint256 _rID)
        private
        view
        returns(uint256)
    {
        return(  ((((round_[_rID].mask).add(((((round_[_rID].pot).mul(potSplit_[round_[_rID].team].gen)) / 100).mul(1000000000000000000)) / (round_[_rID].keys))).mul(plyrRnds_[_pID][_rID].keys)) / 1000000000000000000)  );
    }
    
    /**
     * @dev returns all current round info needed for front end
     * -functionhash- 0x747dff42
     * @return eth invested during ICO phase
     * @return round id 
     * @return total keys for round 
     * @return time round ends
     * @return time round started
     * @return current pot 
     * @return current team ID & player ID in lead 
     * @return current player in leads address 
     * @return current player in leads name
     * @return whales eth in for round
     * @return bears eth in for round
     * @return sneks eth in for round
     * @return bulls eth in for round
     */
    function getCurrentRoundInfo()
        public
        view
        returns(uint256, uint256, uint256, uint256, uint256, uint256, uint256, address, bytes32, uint256, uint256, uint256, uint256)
    {
        // setup local rID
        uint256 _rID = rID_;
        
        return
        (
            0,                              //0
            _rID,                           //1
            round_[_rID].keys,              //2
            round_[_rID].end,               //3
            round_[_rID].strt,              //4
            round_[_rID].pot,               //5
            (round_[_rID].team + (round_[_rID].plyr * 10)),     //6
            plyr_[round_[_rID].plyr].addr,  //7
            plyr_[round_[_rID].plyr].name,  //8
            rndTmEth_[_rID][0],             //9
            rndTmEth_[_rID][1],             //10
            rndTmEth_[_rID][2],             //11
            rndTmEth_[_rID][3]              //12
        );
    }

    /**
     * @dev returns player info based on address.  if no address is given, it will 
     * use msg.sender 
     * -functionhash- 0xee0b5d8b
     * @param _addr address of the player you want to lookup 
     * @return player ID 
     * @return player name
     * @return keys owned (current round)
     * @return winnings vault
     * @return general vault 
     * @return affiliate vault 
	 * @return player round eth
     */
    function getPlayerInfoByAddress(address _addr)
        public 
        view 
        returns(uint256, bytes32, uint256, uint256, uint256, uint256, uint256)
    {
        // setup local rID
        uint256 _rID = rID_;
        
        if (_addr == address(0))
        {
            _addr == msg.sender;
        }
        uint256 _pID = pIDxAddr_[_addr];
        
        return
        (
            _pID,                               //0
            plyr_[_pID].name,                   //1
            plyrRnds_[_pID][_rID].keys,         //2
            plyr_[_pID].win,                    //3
            (plyr_[_pID].gen).add(calcUnMaskedEarnings(_pID, plyr_[_pID].lrnd)),       //4
            plyr_[_pID].aff,                    //5
            plyrRnds_[_pID][_rID].eth           //6
        );
    }

//core logic
    /**
     * @dev logic runs whenever a buy order is executed.  determines how to handle 
     * incoming eth depending on if we are in an active round or not
     */
    function buyCore(uint256 _pID, uint256 _affID, uint256 _team, F4Ddatasets.EventReturns memory _eventData_)
        private
    {
        // setup local rID
        uint256 _rID = rID_;
        
        // grab time
        uint256 _now = now;
        
        // if round is active
        if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[_rID].plyr == 0))) 
        {
            // call core 
            core(_rID, _pID, msg.value, _affID, _team, _eventData_);
        
        // if round is not active     
        } else {
            // check to see if end round needs to be ran
            if (_now > round_[_rID].end && round_[_rID].ended == false) 
            {
                // end the round (distributes pot) & start new round
			    round_[_rID].ended = true;
                _eventData_ = endRound(_eventData_);
                
                // build event data
                _eventData_.compressedData = _eventData_.compressedData + (_now * 1000000000000000000);
                _eventData_.compressedIDs = _eventData_.compressedIDs + _pID;
                
                // fire buy and distribute event 
                emit F4Devents.onBuyAndDistribute
                (
                    msg.sender, 
                    plyr_[_pID].name, 
                    msg.value, 
                    _eventData_.compressedData, 
                    _eventData_.compressedIDs, 
                    _eventData_.winnerAddr, 
                    _eventData_.winnerName, 
                    _eventData_.amountWon, 
                    _eventData_.newPot, 
                    _eventData_.genAmount
                );
            }
            
            // put eth in players vault 
            plyr_[_pID].gen = plyr_[_pID].gen.add(msg.value);
        }
    }
    
    /**
     * @dev logic runs whenever a reload order is executed.  determines how to handle 
     * incoming eth depending on if we are in an active round or not 
     */
    function reLoadCore(uint256 _pID, uint256 _affID, uint256 _team, uint256 _eth, F4Ddatasets.EventReturns memory _eventData_)
        private
    {
        // setup local rID
        uint256 _rID = rID_;
        
        // grab time
        uint256 _now = now;
        
        // if round is active
        if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[_rID].plyr == 0))) 
        {
            // get earnings from all vaults and return unused to gen vault
            // because we use a custom safemath library.  this will throw if player 
            // tried to spend more eth than they have.
            plyr_[_pID].gen = withdrawEarnings(_pID).sub(_eth);
            
            // call core 
            core(_rID, _pID, _eth, _affID, _team, _eventData_);
        
        // if round is not active and end round needs to be ran   
        } else if (_now > round_[_rID].end && round_[_rID].ended == false) {
            // end the round (distributes pot) & start new round
            round_[_rID].ended = true;
            _eventData_ = endRound(_eventData_);
                
            // build event data
            _eventData_.compressedData = _eventData_.compressedData + (_now * 1000000000000000000);
            _eventData_.compressedIDs = _eventData_.compressedIDs + _pID;
                
            // fire buy and distribute event 
            emit F4Devents.onReLoadAndDistribute
            (
                msg.sender, 
                plyr_[_pID].name, 
                _eventData_.compressedData, 
                _eventData_.compressedIDs, 
                _eventData_.winnerAddr, 
                _eventData_.winnerName, 
                _eventData_.amountWon, 
                _eventData_.newPot, 
                _eventData_.genAmount
            );
        }
    }
    
    /**
     * @dev this is the core logic for any buy/reload that happens while a round 
     * is live.
     */
    function core(uint256 _rID, uint256 _pID, uint256 _eth, uint256 _affID, uint256 _team, F4Ddatasets.EventReturns memory _eventData_)
        private
    {
        // if player is new to round
        if (plyrRnds_[_pID][_rID].keys == 0)
            _eventData_ = managePlayer(_pID, _eventData_);
        
        // early round eth limiter 
        if (round_[_rID].eth < 100000000000000000000 && plyrRnds_[_pID][_rID].eth.add(_eth) > 1000000000000000000)
        {
            uint256 _availableLimit = (1000000000000000000).sub(plyrRnds_[_pID][_rID].eth);
            uint256 _refund = _eth.sub(_availableLimit);
            plyr_[_pID].gen = plyr_[_pID].gen.add(_refund);
            _eth = _availableLimit;
        }
        
        // if eth left is greater than min eth allowed (sorry no pocket lint)
        if (_eth > 1000000000) 
        {
            
            // mint the new keys
            uint256 _keys = (round_[_rID].eth).keysRec(_eth);
            
            // if they bought at least 1 whole key
            if (_keys >= 1000000000000000000)
            {
                updateTimer(_keys, _rID);

                // set new leaders
                if (round_[_rID].plyr != _pID)
                    round_[_rID].plyr = _pID;  
                if (round_[_rID].team != _team)
                    round_[_rID].team = _team; 
                
                // set the new leader bool to true
                _eventData_.compressedData = _eventData_.compressedData + 100;
            }
            
            // update player 
            plyrRnds_[_pID][_rID].keys = _keys.add(plyrRnds_[_pID][_rID].keys);
            plyrRnds_[_pID][_rID].eth = _eth.add(plyrRnds_[_pID][_rID].eth);
            
            // update round
            round_[_rID].keys = _keys.add(round_[_rID].keys);
            round_[_rID].eth = _eth.add(round_[_rID].eth);
            rndTmEth_[_rID][_team] = _eth.add(rndTmEth_[_rID][_team]);
    
            // distribute eth
            _eventData_ = distributeExternal(_rID, _pID, _eth, _eventData_);
            _eventData_ = distributeInternal(_rID, _pID, _eth, _affID, _team, _keys, _eventData_);
            
            // call end tx function to fire end tx event.
		    endTx(_pID, _team, _eth, _keys, _eventData_);
        }
    }
    /**
     * @dev calculates unmasked earnings (just calculates, does not update mask)
     * @return earnings in wei format
     */
    function calcUnMaskedEarnings(uint256 _pID, uint256 _rIDlast)
        private
        view
        returns(uint256)
    {
        return(
            (
                (
                    (round_[_rIDlast].mask).mul(plyrRnds_[_pID][_rIDlast].keys)
                ) / (1000000000000000000)
            ).sub(plyrRnds_[_pID][_rIDlast].mask)
        );
    }
    
    /** 
     * @dev returns the amount of keys you would get given an amount of eth. 
     * -functionhash- 0xce89c80c
     * @param _rID round ID you want price for
     * @param _eth amount of eth sent in 
     * @return keys received 
     */
    function calcKeysReceived(uint256 _rID, uint256 _eth)
        public
        view
        returns(uint256)
    {
        // grab time
        uint256 _now = now;
        
        // are we in a round?
        if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[_rID].plyr == 0)))
            return ( (round_[_rID].eth).keysRec(_eth) );
        else // rounds over.  need keys for new round
            return ( (_eth).keys() );
    }
    
    /** 
     * @dev returns current eth price for X keys.  
     * -functionhash- 0xcf808000
     * @param _keys number of keys desired (in 18 decimal format)
     * @return amount of eth needed to send
     */
    function iWantXKeys(uint256 _keys)
        public
        view
        returns(uint256)
    {
        // setup local rID
        uint256 _rID = rID_;
        
        // grab time
        uint256 _now = now;
        
        // are we in a round?
        if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[_rID].plyr == 0)))
            return ( (round_[_rID].keys.add(_keys)).ethRec(_keys) );
        else // rounds over.  need price for new round
            return ( (_keys).eth() );
    }

    /**
	 * @dev receives name/player info from names contract 
     */
    function receivePlayerInfo(uint256 _pID, address _addr, bytes32 _name, uint256 _laff)
        external
    {
        require (msg.sender == address(PlayerBook), "your not playerNames contract... hmmm..");
        if (pIDxAddr_[_addr] != _pID)
            pIDxAddr_[_addr] = _pID;
        if (pIDxName_[_name] != _pID)
            pIDxName_[_name] = _pID;
        if (plyr_[_pID].addr != _addr)
            plyr_[_pID].addr = _addr;
        if (plyr_[_pID].name != _name)
            plyr_[_pID].name = _name;
        if (plyr_[_pID].laff != _laff)
            plyr_[_pID].laff = _laff;
        if (plyrNames_[_pID][_name] == false)
            plyrNames_[_pID][_name] = true;
    }
    
    /**
     * @dev receives entire player name list 
     */
    function receivePlayerNameList(uint256 _pID, bytes32 _name)
        external
    {
        require (msg.sender == address(PlayerBook), "your not playerNames contract... hmmm..");
        if(plyrNames_[_pID][_name] == false)
            plyrNames_[_pID][_name] = true;
    }   
        
    /**
     * @dev gets existing or registers new pID.  use this when a player may be new
     * @return pID 
     */
    function determinePID(F4Ddatasets.EventReturns memory _eventData_)
        private
        returns (F4Ddatasets.EventReturns)
    {
        uint256 _pID = pIDxAddr_[msg.sender];
        // if player is new to this version of fomo3d
        if (_pID == 0)
        {
            // grab their player ID, name and last aff ID, from player names contract 
            _pID = PlayerBook.getPlayerID(msg.sender);
            bytes32 _name = PlayerBook.getPlayerName(_pID);
            uint256 _laff = PlayerBook.getPlayerLAff(_pID);
            
            // set up player account 
            pIDxAddr_[msg.sender] = _pID;
            plyr_[_pID].addr = msg.sender;
            
            if (_name != "")
            {
                pIDxName_[_name] = _pID;
                plyr_[_pID].name = _name;
                plyrNames_[_pID][_name] = true;
            }
            
            if (_laff != 0 && _laff != _pID)
                plyr_[_pID].laff = _laff;
            
            // set the new player bool to true
            _eventData_.compressedData = _eventData_.compressedData + 1;
        } 
        return (_eventData_);
    }
    
    /**
     * @dev checks to make sure user picked a valid team.  if not sets team 
     * to default (sneks)
     */
    function verifyTeam(uint256 _team)
        private
        pure
        returns (uint256)
    {
        if (_team < 0 || _team > 3)
            return(2);
        else
            return(_team);
    }
    
    /**
     * @dev decides if round end needs to be run & new round started.  and if 
     * player unmasked earnings from previously played rounds need to be moved.
     */
    function managePlayer(uint256 _pID, F4Ddatasets.EventReturns memory _eventData_)
        private
        returns (F4Ddatasets.EventReturns)
    {
        // if player has played a previous round, move their unmasked earnings
        // from that round to gen vault.
        if (plyr_[_pID].lrnd != 0)
            updateGenVault(_pID, plyr_[_pID].lrnd);
            
        // update player's last round played
        plyr_[_pID].lrnd = rID_;
            
        // set the joined round bool to true
        _eventData_.compressedData = _eventData_.compressedData + 10;
        
        return(_eventData_);
    }
    
    /**
     * @dev ends the round. manages paying out winner/splitting up pot
     */
    function endRound(F4Ddatasets.EventReturns memory _eventData_)
        private
        returns (F4Ddatasets.EventReturns)
    {
        // setup local rID
        uint256 _rID = rID_;
        
        // grab our winning player and team id's
        uint256 _winPID = round_[_rID].plyr;
        uint256 _winTID = round_[_rID].team;
        
        // grab our pot amount
        uint256 _pot = round_[_rID].pot;
        
        // calculate our winner share, community rewards, gen share, 
        // p3d share, and amount reserved for next pot 
        uint256 _win = (_pot.mul(48)) / 100;
        uint256 _own = (_pot.mul(14) / 100);
        owner_.transfer(_own);
        uint256 _gen = (_pot.mul(potSplit_[_winTID].gen)) / 100;
        uint256 _res = (((_pot.sub(_win)).sub(_own)).sub(_gen));
        
        // calculate ppt for round mask
        uint256 _ppt = (_gen.mul(1000000000000000000)) / (round_[_rID].keys);
        uint256 _dust = _gen.sub((_ppt.mul(round_[_rID].keys)) / 1000000000000000000);
        if (_dust > 0)
        {
            _gen = _gen.sub(_dust);
            _res = _res.add(_dust);
        }
        
        // pay our winner
        plyr_[_winPID].win = _win.add(plyr_[_winPID].win);
        
        
        // distribute gen portion to key holders
        round_[_rID].mask = _ppt.add(round_[_rID].mask);
        
            
        // prepare event data
        _eventData_.compressedData = _eventData_.compressedData + (round_[_rID].end * 1000000);
        _eventData_.compressedIDs = _eventData_.compressedIDs + (_winPID * 100000000000000000000000000) + (_winTID * 100000000000000000);
        _eventData_.winnerAddr = plyr_[_winPID].addr;
        _eventData_.winnerName = plyr_[_winPID].name;
        _eventData_.amountWon = _win;
        _eventData_.genAmount = _gen;
        _eventData_.newPot = _res;
        
        // start next round
        rID_++;
        _rID++;
        round_[_rID].strt = now;
        round_[_rID].end = now.add(rndInit_).add(rndGap_);
        round_[_rID].pot = _res;
        
        return(_eventData_);
    }
    
    /**
     * @dev moves any unmasked earnings to gen vault.  updates earnings mask
     */
    function updateGenVault(uint256 _pID, uint256 _rIDlast)
        private 
    {
        uint256 _earnings = calcUnMaskedEarnings(_pID, _rIDlast);
        if (_earnings > 0)
        {
            // put in gen vault
            plyr_[_pID].gen = _earnings.add(plyr_[_pID].gen);
            // zero out their earnings by updating mask
            plyrRnds_[_pID][_rIDlast].mask = _earnings.add(plyrRnds_[_pID][_rIDlast].mask);
        }
    }
    
    /**
     * @dev updates round timer based on number of whole keys bought.
     */
    function updateTimer(uint256 _keys, uint256 _rID)
        private
    {
        // grab time
        uint256 _now = now;
        
        // calculate time based on number of keys bought
        uint256 _newTime;
        if (_now > round_[_rID].end && round_[_rID].plyr == 0)
            _newTime = (((_keys) / (1000000000000000000)).mul(rndInc_)).add(_now);
        else
            _newTime = (((_keys) / (1000000000000000000)).mul(rndInc_)).add(round_[_rID].end);
        
        // compare to max and set new end time
        if (_newTime < (rndMax_).add(_now))
            round_[_rID].end = _newTime;
        else
            round_[_rID].end = rndMax_.add(_now);
    }

    /**
     * @dev distributes eth based on fees to com, aff, and p3d
     */
    function distributeExternal(uint256 _rID, uint256 _pID, uint256 _eth, F4Ddatasets.EventReturns memory _eventData_)
        private
        returns(F4Ddatasets.EventReturns)
    {
        // pay 14% out to owner rewards
        uint256 _own = _eth.mul(14) / 100;
        owner_.transfer(_own);
        
        return(_eventData_);
    }
    
    function potSwap()
        external
        payable
    {
        // setup local rID
        uint256 _rID = rID_ + 1;
        
        round_[_rID].pot = round_[_rID].pot.add(msg.value);
        emit F4Devents.onPotSwapDeposit(_rID, msg.value);
    }
    
    /**
     * @dev distributes eth based on fees to gen and pot
     */
    function distributeInternal(uint256 _rID, uint256 _pID, uint256 _eth, uint256 _affID, uint256 _team, uint256 _keys, F4Ddatasets.EventReturns memory _eventData_)
        private
        returns(F4Ddatasets.EventReturns)
    {
        // calculate gen share
        uint256 _gen = (_eth.mul(fees_[_team].gen)) / 100;

        // distribute share to affiliate 10%
        uint256 _aff = _eth / 10;
        
        // decide what to do with affiliate share of fees
        // affiliate must not be self, and must have a name registered
        if (_affID != _pID && plyr_[_affID].name != '') {
            plyr_[_affID].aff = _aff.add(plyr_[_affID].aff);
            emit F4Devents.onAffiliatePayout(_affID, plyr_[_affID].addr, plyr_[_affID].name, _rID, _pID, _aff, now);
        } else {
            _gen = _gen.add(_aff);
        }
        
        // update eth balance (eth = eth - (com share + pot swap share + aff share + p3d share + airdrop pot share))
        _eth = _eth.sub((_eth.mul(14)) / 100);
        
        // calculate pot 
        uint256 _pot = _eth.sub(_gen);
        
        // distribute gen share (thats what updateMasks() does) and adjust
        // balances for dust.
        uint256 _dust = updateMasks(_rID, _pID, _gen, _keys);
        if (_dust > 0)
        {
            _gen = _gen.sub(_dust);
            _pot = _pot.add(_dust);
        }
        
        // add eth to pot
        round_[_rID].pot = _pot.add(round_[_rID].pot);
        
        // set up event data
        _eventData_.genAmount = _gen.add(_eventData_.genAmount);
        _eventData_.potAmount = _pot;
        
        return(_eventData_);
    }

    /**
     * @dev updates masks for round and player when keys are bought
     * @return dust left over 
     */
    function updateMasks(uint256 _rID, uint256 _pID, uint256 _gen, uint256 _keys)
        private
        returns(uint256)
    {
        /* MASKING NOTES
            earnings masks are a tricky thing for people to wrap their minds around.
            the basic thing to understand here.  is were going to have a global
            tracker based on profit per share for each round, that increases in
            relevant proportion to the increase in share supply.
            
            the player will have an additional mask that basically says "based
            on the rounds mask, my shares, and how much i've already withdrawn,
            how much is still owed to me?"
        */
        
        // calc profit per key & round mask based on this buy:  (dust goes to pot)
        uint256 _ppt = (_gen.mul(1000000000000000000)) / (round_[_rID].keys);
        round_[_rID].mask = _ppt.add(round_[_rID].mask);
            
        // calculate player earning from their own buy (only based on the keys
        // they just bought).  & update player earnings mask
        uint256 _pearn = (_ppt.mul(_keys)) / (1000000000000000000);
        plyrRnds_[_pID][_rID].mask = (((round_[_rID].mask.mul(_keys)) / (1000000000000000000)).sub(_pearn)).add(plyrRnds_[_pID][_rID].mask);
        
        // calculate & return dust
        return(_gen.sub((_ppt.mul(round_[_rID].keys)) / (1000000000000000000)));
    }
    
    /**
     * @dev adds up unmasked earnings, & vault earnings, sets them all to 0
     * @return earnings in wei format
     */
    function withdrawEarnings(uint256 _pID)
        private
        returns(uint256)
    {
        // update gen vault
        updateGenVault(_pID, plyr_[_pID].lrnd);
        
        // from vaults 
        uint256 _earnings = (plyr_[_pID].win).add(plyr_[_pID].gen).add(plyr_[_pID].aff);
        if (_earnings > 0)
        {
            plyr_[_pID].win = 0;
            plyr_[_pID].gen = 0;
            plyr_[_pID].aff = 0;
        }

        return(_earnings);
    }
    
    /**
     * @dev prepares compression data and fires event for buy or reload tx's
     */
    function endTx(uint256 _pID, uint256 _team, uint256 _eth, uint256 _keys, F4Ddatasets.EventReturns memory _eventData_)
        private
    {
        _eventData_.compressedData = _eventData_.compressedData + (now * 1000000000000000000) + (_team * 100000000000000000000000000000);
        _eventData_.compressedIDs = _eventData_.compressedIDs + _pID + (rID_ * 10000000000000000000000000000000000000000000000000000);
        
        emit F4Devents.onEndTx
        (
            _eventData_.compressedData,
            _eventData_.compressedIDs,
            plyr_[_pID].name,
            msg.sender,
            _eth,
            _keys,
            _eventData_.winnerAddr,
            _eventData_.winnerName,
            _eventData_.amountWon,
            _eventData_.newPot,
            _eventData_.genAmount,
            _eventData_.potAmount
        );
    }
    /** upon contract deploy, it will be deactivated.  this is a one time
     * use function that will activate the contract.  we do this so devs 
     * have time to set things up on the web end                            **/
    bool public activated_ = false;
    function activate()
        public
    {
        // only team just can activate 
        require(
            msg.sender == owner_,
            "only team just can activate"
        );
        
        // can only be ran once
        require(activated_ == false, "fomo3d already activated");
        
        // activate the contract 
        activated_ = true;
        
        // lets start first round
		rID_ = 1;
        round_[1].strt = now + rndExtra_ - rndGap_;
        round_[1].end = now + rndInit_ + rndExtra_;
    }
}

//structs
library F4Ddatasets {
    //compressedData key
    // [76-33][32][31][30][29][28-18][17][16-6][5-3][2][1][0]
        // 0 - new player (bool)
        // 1 - joined round (bool)
        // 2 - new  leader (bool)
        // 6-16 - round end time
        // 17 - winnerTeam
        // 18 - 28 timestamp 
        // 29 - team
        // 30 - 0 = reinvest (round), 1 = buy (round), 2 = buy (ico), 3 = reinvest (ico)
    //compressedIDs key
    // [77-52][51-26][25-0]
        // 0-25 - pID 
        // 26-51 - winPID
        // 52-77 - rID
    struct EventReturns {
        uint256 compressedData;
        uint256 compressedIDs;
        address winnerAddr;         // winner address
        bytes32 winnerName;         // winner name
        uint256 amountWon;          // amount won
        uint256 newPot;             // amount in new pot
        uint256 genAmount;          // amount distributed to gen
        uint256 potAmount;          // amount added to pot
    }
    struct Player {
        address addr;   // player address
        bytes32 name;   // player name
        uint256 win;    // winnings vault
        uint256 gen;    // general vault
        uint256 aff;    // affiliate vault
        uint256 lrnd;   // last round played
        uint256 laff;   // last affiliate id used
    }
    struct PlayerRounds {
        uint256 eth;    // eth player has added to round (used for eth limiter)
        uint256 keys;   // keys
        uint256 mask;   // player mask 
    }
    struct Round {
        uint256 plyr;   // pID of player in lead
        uint256 team;   // tID of team in lead
        uint256 end;    // time ends/ended
        bool ended;     // has round end function been ran
        uint256 strt;   // time round started
        uint256 keys;   // keys
        uint256 eth;    // total eth in
        uint256 pot;    // eth to pot (during round) / final amount paid to winner (after round ends)
        uint256 mask;   // global mask
    }
    struct TeamFee {
        uint256 gen;    // % of buy in thats paid to key holders of current round
    }
    struct PotSplit {
        uint256 gen;    // % of pot thats paid to key holders of current round
    }
}

library F4DKeysCalcLong {
    using SafeMath for *;
    /**
     * @dev calculates number of keys received given X eth 
     * @param _curEth current amount of eth in contract 
     * @param _newEth eth being spent
     * @return amount of ticket purchased
     */
    function keysRec(uint256 _curEth, uint256 _newEth)
        internal
        pure
        returns (uint256)
    {
        return(
                keys((_curEth).add(_newEth))
                .sub(
                    keys(_curEth)
                ) 
        );
    }
    
    /**
     * @dev calculates amount of eth received if you sold X keys 
     * @param _curKeys current amount of keys that exist 
     * @param _sellKeys amount of keys you wish to sell
     * @return amount of eth received
     */
    function ethRec(uint256 _curKeys, uint256 _sellKeys)
        internal
        pure
        returns (uint256)
    {
        return((eth(_curKeys)).sub(eth(_curKeys.sub(_sellKeys))));
    }

    /**
     * @dev calculates how many keys would exist with given an amount of eth
     * @param _eth eth "in contract"
     * @return number of keys that would exist
     */
    function keys(uint256 _eth) 
        internal
        pure
        returns(uint256)
    {
        // (sqrt(_eth * 10^18 * 312500000 * 10 ^ 18 + 5624988281256103515625000000000000000000000000 * 10 ^ 18) - 74999921875000 * 10 ^ 18) / 156250000
        return (
                    (
                        (
                            (
                                (
                                    (_eth).mul(1000000000000000000)
                                ).mul(312500000000000000000000000)
                            ).add(5624988281256103515625000000000000000000000000000000000000000000)
                        ).sqrt()
                    ).sub(74999921875000000000000000000000)
                ) / (156250000);
    }
    
    /**
     * @dev calculates how much eth would be in contract given a number of keys
     * @param _keys number of keys "in contract" 
     * @return eth that would exists
     */
    function eth(uint256 _keys) 
        internal
        pure
        returns(uint256)  
    {
        return ((78125000).mul(_keys.sq()).add(((149999843750000).mul(_keys.mul(1000000000000000000))) / (2))) / ((1000000000000000000).sq());
    }
}

interface PlayerBookInterface {
    function getPlayerID(address _addr) external returns (uint256);
    function getPlayerName(uint256 _pID) external view returns (bytes32);
    function getPlayerLAff(uint256 _pID) external view returns (uint256);
    function getPlayerAddr(uint256 _pID) external view returns (address);
    function getNameFee() external view returns (uint256);
    function registerNameXIDFromDapp(address _addr, bytes32 _name, uint256 _affCode, bool _all) external payable returns(bool, uint256);
    function registerNameXaddrFromDapp(address _addr, bytes32 _name, address _affCode, bool _all) external payable returns(bool, uint256);
    function registerNameXnameFromDapp(address _addr, bytes32 _name, bytes32 _affCode, bool _all) external payable returns(bool, uint256);
}


library NameFilter {
    /**
     * @dev filters name strings
     * -converts uppercase to lower case.  
     * -makes sure it does not start/end with a space
     * -makes sure it does not contain multiple spaces in a row
     * -cannot be only numbers
     * -cannot start with 0x 
     * -restricts characters to A-Z, a-z, 0-9, and space.
     * @return reprocessed string in bytes32 format
     */
    function nameFilter(string _input)
        internal
        pure
        returns(bytes32)
    {
        bytes memory _temp = bytes(_input);
        uint256 _length = _temp.length;
        
        //sorry limited to 32 characters
        require (_length <= 32 && _length > 0, "string must be between 1 and 32 characters");
        // make sure it doesnt start with or end with space
        require(_temp[0] != 0x20 && _temp[_length-1] != 0x20, "string cannot start or end with space");
        // make sure first two characters are not 0x
        if (_temp[0] == 0x30)
        {
            require(_temp[1] != 0x78, "string cannot start with 0x");
            require(_temp[1] != 0x58, "string cannot start with 0X");
        }
        
        // create a bool to track if we have a non number character
        bool _hasNonNumber;
        
        // convert & check
        for (uint256 i = 0; i < _length; i++)
        {
            // if its uppercase A-Z
            if (_temp[i] > 0x40 && _temp[i] < 0x5b)
            {
                // convert to lower case a-z
                _temp[i] = byte(uint(_temp[i]) + 32);
                
                // we have a non number
                if (_hasNonNumber == false)
                    _hasNonNumber = true;
            } else {
                require
                (
                    // require character is a space
                    _temp[i] == 0x20 || 
                    // OR lowercase a-z
                    (_temp[i] > 0x60 && _temp[i] < 0x7b) ||
                    // or 0-9
                    (_temp[i] > 0x2f && _temp[i] < 0x3a),
                    "string contains invalid characters"
                );
                // make sure theres not 2x spaces in a row
                if (_temp[i] == 0x20)
                    require( _temp[i+1] != 0x20, "string cannot contain consecutive spaces");
                
                // see if we have a character other than a number
                if (_hasNonNumber == false && (_temp[i] < 0x30 || _temp[i] > 0x39))
                    _hasNonNumber = true;    
            }
        }
        
        require(_hasNonNumber == true, "string cannot be only numbers");
        
        bytes32 _ret;
        assembly {
            _ret := mload(add(_temp, 32))
        }
        return (_ret);
    }
}

/**
 * @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 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);
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"getBuyPrice","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":false,"inputs":[{"name":"_affCode","type":"bytes32"},{"name":"_team","type":"uint256"},{"name":"_eth","type":"uint256"}],"name":"reLoadXname","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":true,"inputs":[{"name":"","type":"uint256"}],"name":"round_","outputs":[{"name":"plyr","type":"uint256"},{"name":"team","type":"uint256"},{"name":"end","type":"uint256"},{"name":"ended","type":"bool"},{"name":"strt","type":"uint256"},{"name":"keys","type":"uint256"},{"name":"eth","type":"uint256"},{"name":"pot","type":"uint256"},{"name":"mask","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"bytes32"}],"name":"plyrNames_","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"fees_","outputs":[{"name":"gen","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"pIDxName_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_affCode","type":"uint256"},{"name":"_team","type":"uint256"},{"name":"_eth","type":"uint256"}],"name":"reLoadXid","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_nameString","type":"string"},{"name":"_affCode","type":"address"},{"name":"_all","type":"bool"}],"name":"registerNameXaddr","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_pID","type":"uint256"},{"name":"_addr","type":"address"},{"name":"_name","type":"bytes32"},{"name":"_laff","type":"uint256"}],"name":"receivePlayerInfo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"name":"rndTmEth_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rID_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_pID","type":"uint256"}],"name":"getPlayerVaults","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_nameString","type":"string"},{"name":"_affCode","type":"bytes32"},{"name":"_all","type":"bool"}],"name":"registerNameXname","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentRoundInfo","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"bytes32"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_affCode","type":"address"},{"name":"_team","type":"uint256"},{"name":"_eth","type":"uint256"}],"name":"reLoadXaddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_affCode","type":"uint256"},{"name":"_team","type":"uint256"}],"name":"buyXid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_pID","type":"uint256"},{"name":"_name","type":"bytes32"}],"name":"receivePlayerNameList","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_nameString","type":"string"},{"name":"_affCode","type":"uint256"},{"name":"_all","type":"bool"}],"name":"registerNameXID","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_affCode","type":"address"},{"name":"_team","type":"uint256"}],"name":"buyXaddr","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"name":"plyrRnds_","outputs":[{"name":"eth","type":"uint256"},{"name":"keys","type":"uint256"},{"name":"mask","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_affCode","type":"bytes32"},{"name":"_team","type":"uint256"}],"name":"buyXname","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"potSplit_","outputs":[{"name":"gen","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTimeLeft","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_rID","type":"uint256"},{"name":"_eth","type":"uint256"}],"name":"calcKeysReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_keys","type":"uint256"}],"name":"iWantXKeys","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"activated_","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"plyr_","outputs":[{"name":"addr","type":"address"},{"name":"name","type":"bytes32"},{"name":"win","type":"uint256"},{"name":"gen","type":"uint256"},{"name":"aff","type":"uint256"},{"name":"lrnd","type":"uint256"},{"name":"laff","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"potSwap","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"getPlayerInfoByAddress","outputs":[{"name":"","type":"uint256"},{"name":"","type":"bytes32"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"playerID","type":"uint256"},{"indexed":true,"name":"playerAddress","type":"address"},{"indexed":true,"name":"playerName","type":"bytes32"},{"indexed":false,"name":"isNewPlayer","type":"bool"},{"indexed":false,"name":"affiliateID","type":"uint256"},{"indexed":false,"name":"affiliateAddress","type":"address"},{"indexed":false,"name":"affiliateName","type":"bytes32"},{"indexed":false,"name":"amountPaid","type":"uint256"},{"indexed":false,"name":"timeStamp","type":"uint256"}],"name":"onNewName","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"compressedData","type":"uint256"},{"indexed":false,"name":"compressedIDs","type":"uint256"},{"indexed":false,"name":"playerName","type":"bytes32"},{"indexed":false,"name":"playerAddress","type":"address"},{"indexed":false,"name":"ethIn","type":"uint256"},{"indexed":false,"name":"keysBought","type":"uint256"},{"indexed":false,"name":"winnerAddr","type":"address"},{"indexed":false,"name":"winnerName","type":"bytes32"},{"indexed":false,"name":"amountWon","type":"uint256"},{"indexed":false,"name":"newPot","type":"uint256"},{"indexed":false,"name":"genAmount","type":"uint256"},{"indexed":false,"name":"potAmount","type":"uint256"}],"name":"onEndTx","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"playerID","type":"uint256"},{"indexed":false,"name":"playerAddress","type":"address"},{"indexed":false,"name":"playerName","type":"bytes32"},{"indexed":false,"name":"ethOut","type":"uint256"},{"indexed":false,"name":"timeStamp","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"playerAddress","type":"address"},{"indexed":false,"name":"playerName","type":"bytes32"},{"indexed":false,"name":"ethOut","type":"uint256"},{"indexed":false,"name":"compressedData","type":"uint256"},{"indexed":false,"name":"compressedIDs","type":"uint256"},{"indexed":false,"name":"winnerAddr","type":"address"},{"indexed":false,"name":"winnerName","type":"bytes32"},{"indexed":false,"name":"amountWon","type":"uint256"},{"indexed":false,"name":"newPot","type":"uint256"},{"indexed":false,"name":"genAmount","type":"uint256"}],"name":"onWithdrawAndDistribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"playerAddress","type":"address"},{"indexed":false,"name":"playerName","type":"bytes32"},{"indexed":false,"name":"ethIn","type":"uint256"},{"indexed":false,"name":"compressedData","type":"uint256"},{"indexed":false,"name":"compressedIDs","type":"uint256"},{"indexed":false,"name":"winnerAddr","type":"address"},{"indexed":false,"name":"winnerName","type":"bytes32"},{"indexed":false,"name":"amountWon","type":"uint256"},{"indexed":false,"name":"newPot","type":"uint256"},{"indexed":false,"name":"genAmount","type":"uint256"}],"name":"onBuyAndDistribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"playerAddress","type":"address"},{"indexed":false,"name":"playerName","type":"bytes32"},{"indexed":false,"name":"compressedData","type":"uint256"},{"indexed":false,"name":"compressedIDs","type":"uint256"},{"indexed":false,"name":"winnerAddr","type":"address"},{"indexed":false,"name":"winnerName","type":"bytes32"},{"indexed":false,"name":"amountWon","type":"uint256"},{"indexed":false,"name":"newPot","type":"uint256"},{"indexed":false,"name":"genAmount","type":"uint256"}],"name":"onReLoadAndDistribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"affiliateID","type":"uint256"},{"indexed":false,"name":"affiliateAddress","type":"address"},{"indexed":false,"name":"affiliateName","type":"bytes32"},{"indexed":true,"name":"roundID","type":"uint256"},{"indexed":true,"name":"buyerID","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"timeStamp","type":"uint256"}],"name":"onAffiliatePayout","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundID","type":"uint256"},{"indexed":false,"name":"amountAddedToPot","type":"uint256"}],"name":"onPotSwapDeposit","type":"event"}]

608060405260006001819055600255600d805460ff1916905534801561002457600080fd5b5060008054600160a060020a03191633178155604080516020818101835260188252838052600b80825291517fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76558251808201845260268152600180865283835290517f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf558351808301855260328152600280875284845290517fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba916345584518084018652602a81526003808852948452517f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d33e5584518084018652600c80825287805280855290517f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e855855180850187526013815292875280845291517fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c5584518084018652601a8152908652818352517f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd720558351808301909452601e845291909352909152517fc0da782485e77ae272268ae0a3ff44c1552ecb60b3743924de17a815e0a3cfd755614ae4806101fa6000396000f3006080604052600436106101ab5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663018a25e8811461034957806306fdde0314610370578063079ce327146103fa5780630f15f4c01461041a57806310f01eba1461042f57806324c33d33146104505780632660316e146104af5780632ce21999146104de5780632e19ebdc146104f6578063349cdcac1461050e5780633ccfd60b1461052c5780633ddd46981461054157806349cc635d1461059d5780635893d481146105c7578063624ae5c0146105e257806363066434146105f7578063685ffd831461062d578063747dff421461068057806382bfc739146107035780638f38f3091461072a5780638f7140ea14610738578063921dec211461075357806395d89b41146107a657806398a0871d146107bb578063a2bccae9146107d2578063a65b37a1146107ed578063c519500e146107fb578063c7e284b814610813578063ce89c80c14610828578063cf80800014610843578063d53b26791461085b578063de7874f314610870578063ed78cf4a146108ca578063ee0b5d8b146108d2575b6101b36149c6565b600d5460009060ff161515600114610217576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b801561025e576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca008110156102b6576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af6800000811115610306576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b61030f8561092b565b33600090815260046020908152604080832054808452600692839052922001549196509450610342908590600288610be0565b5050505050005b34801561035557600080fd5b5061035e610dc6565b60408051918252519081900360200190f35b34801561037c57600080fd5b50610385610e8b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bf5781810151838201526020016103a7565b50505050905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561040657600080fd5b50610418600435602435604435610ec2565b005b34801561042657600080fd5b506104186110ce565b34801561043b57600080fd5b5061035e600160a060020a0360043516611201565b34801561045c57600080fd5b50610468600435611213565b60408051998a5260208a0198909852888801969096529315156060880152608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b3480156104bb57600080fd5b506104ca600435602435611262565b604080519115158252519081900360200190f35b3480156104ea57600080fd5b5061035e600435611282565b34801561050257600080fd5b5061035e600435611294565b34801561051a57600080fd5b506104186004356024356044356112a6565b34801561053857600080fd5b5061041861148f565b6040805160206004803580820135601f810184900484028501840190955284845261041894369492936024939284019190819084018382808284375094975050600160a060020a03853516955050505050602001351515611804565b3480156105a957600080fd5b50610418600435600160a060020a03602435166044356064356119bd565b3480156105d357600080fd5b5061035e600435602435611bb0565b3480156105ee57600080fd5b5061035e611bcd565b34801561060357600080fd5b5061060f600435611bd3565b60408051938452602084019290925282820152519081900360600190f35b6040805160206004803580820135601f8101849004840285018401909552848452610418943694929360249392840191908190840183828082843750949750508435955050505050602001351515611d79565b34801561068c57600080fd5b50610695611e59565b604080519d8e5260208e019c909c528c8c019a909a5260608c019890985260808b019690965260a08a019490945260c0890192909252600160a060020a031660e088015261010087015261012086015261014085015261016084015261018083015251908190036101a00190f35b34801561070f57600080fd5b50610418600160a060020a0360043516602435604435612035565b610418600435602435612231565b34801561074457600080fd5b5061041860043560243561241b565b6040805160206004803580820135601f81018490048402850184019095528484526104189436949293602493928401919081908401838280828437509497505084359550505050506020013515156124f8565b3480156107b257600080fd5b506103856125d8565b610418600160a060020a036004351660243561260f565b3480156107de57600080fd5b5061060f600435602435612826565b610418600435602435612852565b34801561080757600080fd5b5061035e600435612a4f565b34801561081f57600080fd5b5061035e612a61565b34801561083457600080fd5b5061035e600435602435612af0565b34801561084f57600080fd5b5061035e600435612b98565b34801561086757600080fd5b506104ca612c4a565b34801561087c57600080fd5b50610888600435612c53565b60408051600160a060020a0390981688526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b610418612c9b565b3480156108de57600080fd5b506108f3600160a060020a0360043516612d18565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b6109336149c6565b336000908152600460205260408120549080821515610bd757604080517fe56556a9000000000000000000000000000000000000000000000000000000008152336004820152905173eb367060583fd067edec36202339360071e617db9163e56556a99160248083019260209291908290030181600087803b1580156109b857600080fd5b505af11580156109cc573d6000803e3d6000fd5b505050506040513d60208110156109e257600080fd5b5051604080517f82e37b2c00000000000000000000000000000000000000000000000000000000815260048101839052905191945073eb367060583fd067edec36202339360071e617db916382e37b2c916024808201926020929091908290030181600087803b158015610a5557600080fd5b505af1158015610a69573d6000803e3d6000fd5b505050506040513d6020811015610a7f57600080fd5b5051604080517fe3c08adf00000000000000000000000000000000000000000000000000000000815260048101869052905191935073eb367060583fd067edec36202339360071e617db9163e3c08adf916024808201926020929091908290030181600087803b158015610af257600080fd5b505af1158015610b06573d6000803e3d6000fd5b505050506040513d6020811015610b1c57600080fd5b505133600081815260046020908152604080832088905587835260069091529020805473ffffffffffffffffffffffffffffffffffffffff1916909117905590508115610ba557600082815260056020908152604080832086905585835260068252808320600190810186905560088352818420868552909252909120805460ff191690911790555b8015801590610bb45750828114155b15610bcf576000838152600660208190526040909120018190555b845160010185525b50929392505050565b60035460025460008281526009602052604090206004015442910181118015610c4b575060008281526009602052604090206002015481111580610c4b575060008281526009602052604090206002015481118015610c4b5750600082815260096020526040902054155b15610c6357610c5e828734888888612ded565b610dbe565b60008281526009602052604090206002015481118015610c95575060008281526009602052604090206003015460ff16155b15610d89576000828152600960205260409020600301805460ff19166001179055610cbf836130e1565b8051670de0b6b3a7640000830201815260208082018051890181526000898152600683526040908190206001015484519251828601516060808801516080808a015160a0808c015160c0808e01518b513381529d8e019a909a52348d8c0152958c019a909a52918a0195909552600160a060020a039093169288019290925286015260e0850152610100840192909252610120830191909152519194507f5905265be09e3f6f7813c1dce4febfad76d4b3a46288aa344d2531532c3519c991908190036101400190a15b600086815260066020526040902060030154610dab903463ffffffff61346216565b6000878152600660205260409020600301555b505050505050565b60035460025460008281526009602052604081206004015490929142910181118015610e34575060008281526009602052604090206002015481111580610e34575060008281526009602052604090206002015481118015610e345750600082815260096020526040902054155b15610e7c57600082815260096020526040902060050154610e7590670de0b6b3a764000090610e69908263ffffffff61346216565b9063ffffffff6134c316565b9250610e86565b6544364c5bb00092505b505090565b60408051808201909152600681527f466f6d6f34440000000000000000000000000000000000000000000000000000602082015281565b610eca6149c6565b600d54600090819060ff161515600114610f30576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015610f77576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b85633b9aca00811015610fcf576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af680000081111561101f576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b33600090815260046020526040902054945088158061104e575060008581526006602052604090206001015489145b1561106d576000858152600660208190526040909120015493506110ab565b6000898152600560209081526040808320548884526006928390529220015490945084146110ab576000858152600660208190526040909120018490555b6110b4886134f0565b97506110c385858a8a8a613515565b505050505050505050565b600054600160a060020a03163314611130576040805160e560020a62461bcd02815260206004820152601b60248201527f6f6e6c79207465616d206a7573742063616e2061637469766174650000000000604482015290519081900360640190fd5b600d5460ff161561118b576040805160e560020a62461bcd02815260206004820152601860248201527f666f6d6f336420616c7265616479206163746976617465640000000000000000604482015290519081900360640190fd5b600d805460ff19166001908117909155600381905560025481546000929092526009602052429091019081037f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3a55610e10017f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3855565b60046020526000908152604090205481565b60096020526000908152604090208054600182015460028301546003840154600485015460058601546006870154600788015460089098015496979596949560ff909416949293919290919089565b600860209081526000928352604080842090915290825290205460ff1681565b600b6020526000908152604090205481565b60056020526000908152604090205481565b6112ae6149c6565b600d5460009060ff161515600114611312576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015611359576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b84633b9aca008110156113b1576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af6800000811115611401576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b33600090815260046020526040902054935087158061141f57508388145b1561143e5760008481526006602081905260409091200154975061146d565b60008481526006602081905260409091200154881461146d576000848152600660208190526040909120018890555b611476876134f0565b96506114858489898989613515565b5050505050505050565b60008060008061149d6149c6565b600d5460ff1615156001146114fe576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015611545576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b60035433600090815260046020908152604080832054848452600990925290912060020154919850429750955086118015611592575060008781526009602052604090206003015460ff16155b80156115ab575060008781526009602052604090205415155b15611745576000878152600960205260409020600301805460ff191660011790556115d5836130e1565b92506115e0856136e2565b9350600084111561163157600085815260066020526040808220549051600160a060020a039091169186156108fc02918791818181858888f1935050505015801561162f573d6000803e3d6000fd5b505b85670de0b6b3a764000002836000015101836000018181525050848360200151018360200181815250507f9e9c9331834267c84342f2dce38f9ba35eb0bfbcc207c64872e1e74f9706f2a33360066000888152602001908152602001600020600101548686600001518760200151886040015189606001518a608001518b60a001518c60c00151604051808b600160a060020a0316600160a060020a031681526020018a6000191660001916815260200189815260200188815260200187815260200186600160a060020a0316600160a060020a0316815260200185600019166000191681526020018481526020018381526020018281526020019a505050505050505050505060405180910390a16117fb565b61174e856136e2565b9350600084111561179f57600085815260066020526040808220549051600160a060020a039091169186156108fc02918791818181858888f1935050505015801561179d573d6000803e3d6000fd5b505b6000858152600660209081526040918290206001015482513381529182015280820186905260608101889052905186917f8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a919081900360800190a25b50505050505050565b6000808080808033803b8015611852576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b61185b8b613769565b604080517faa4d490b000000000000000000000000000000000000000000000000000000008152336004820181905260248201849052600160a060020a038e1660448301528c151560648301528251939b50995034985073eb367060583fd067edec36202339360071e617db9263aa4d490b928a926084808201939182900301818588803b1580156118ec57600080fd5b505af1158015611900573d6000803e3d6000fd5b50505050506040513d604081101561191757600080fd5b508051602091820151600160a060020a03808b1660008181526004865260408082205485835260068852918190208054600190910154825188151581529889018790529416878201526060870193909352608086018c90524260a0870152915193995091975095508a92909186917fdd6176433ff5026bbce96b068584b7bbe3514227e72df9c630b749ae87e64442919081900360c00190a45050505050505050505050565b3373eb367060583fd067edec36202339360071e617db14611a4e576040805160e560020a62461bcd02815260206004820152602760248201527f796f7572206e6f7420706c617965724e616d657320636f6e74726163742e2e2e60448201527f20686d6d6d2e2e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a0383166000908152600460205260409020548414611a8957600160a060020a03831660009081526004602052604090208490555b6000828152600560205260409020548414611ab05760008281526005602052604090208490555b600084815260066020526040902054600160a060020a03848116911614611b06576000848152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0385161790555b6000848152600660205260409020600101548214611b335760008481526006602052604090206001018290555b600084815260066020819052604090912001548114611b62576000848152600660208190526040909120018190555b600084815260086020908152604080832085845290915290205460ff161515611baa5760008481526008602090815260408083208584529091529020805460ff191660011790555b50505050565b600a60209081526000928352604080842090915290825290205481565b60035481565b6003546000818152600960205260408120600201549091829182919042118015611c0f575060008181526009602052604090206003015460ff16155b8015611c28575060008181526009602052604090205415155b15611d4957600081815260096020526040902054851415611d0d57600081815260096020526040902060070154611c9690606490611c6d90603063ffffffff613f7c16565b811515611c7657fe5b60008881526006602052604090206002015491900463ffffffff61346216565b6000868152600760209081526040808320858452909152902060020154611cef90611cd190611cc58986613ff3565b9063ffffffff6140be16565b6000888152600660205260409020600301549063ffffffff61346216565b60008781526006602052604090206004015491955093509150611d71565b600085815260066020908152604080832060029081015460078452828520868652909352922090910154611cef90611cd190611cc58986613ff3565b60008581526006602052604090206002810154600590910154611cef90611cd190889061411e565b509193909250565b6000808080808033803b8015611dc7576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b611dd08b613769565b604080517f745ea0c1000000000000000000000000000000000000000000000000000000008152336004820181905260248201849052604482018e90528c151560648301528251939b50995034985073eb367060583fd067edec36202339360071e617db9263745ea0c1928a926084808201939182900301818588803b1580156118ec57600080fd5b600080600080600080600080600080600080600080600354905060008160096000848152602001908152602001600020600501546009600085815260200190815260200160002060020154600960008681526020019081526020016000206004015460096000878152602001908152602001600020600701546009600088815260200190815260200160002060000154600a0260096000898152602001908152602001600020600101540160066000600960008b815260200190815260200160002060000154815260200190815260200160002060000160009054906101000a9004600160a060020a031660066000600960008c815260200190815260200160002060000154815260200190815260200160002060010154600a60008b8152602001908152602001600020600080815260200190815260200160002054600a60008c815260200190815260200160002060006001815260200190815260200160002054600a60008d815260200190815260200160002060006002815260200190815260200160002054600a60008e8152602001908152602001600020600060038152602001908152602001600020548c9c509d509d509d509d509d509d509d509d509d509d509d509d509d5050909192939495969798999a9b9c565b61203d6149c6565b600d54600090819060ff1615156001146120a3576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b80156120ea576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b85633b9aca00811015612142576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af6800000811115612192576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b336000908152600460205260409020549450600160a060020a03891615806121c25750600160a060020a03891633145b156121e1576000858152600660208190526040909120015493506110ab565b600160a060020a0389166000908152600460209081526040808320548884526006928390529220015490945084146110ab576000858152600660208190526040909120018490556110b4886134f0565b6122396149c6565b600d5460009060ff16151560011461229d576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b80156122e4576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca0081101561233c576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af680000081111561238c576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b6123958561092b565b3360009081526004602052604090205490955093508615806123b657508387145b156123d557600084815260066020819052604090912001549650612404565b600084815260066020819052604090912001548714612404576000848152600660208190526040909120018790555b61240d866134f0565b95506117fb84888888610be0565b3373eb367060583fd067edec36202339360071e617db146124ac576040805160e560020a62461bcd02815260206004820152602760248201527f796f7572206e6f7420706c617965724e616d657320636f6e74726163742e2e2e60448201527f20686d6d6d2e2e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600082815260086020908152604080832084845290915290205460ff1615156124f45760008281526008602090815260408083208484529091529020805460ff191660011790555b5050565b6000808080808033803b8015612546576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b61254f8b613769565b604080517fc0942dfd000000000000000000000000000000000000000000000000000000008152336004820181905260248201849052604482018e90528c151560648301528251939b50995034985073eb367060583fd067edec36202339360071e617db9263c0942dfd928a926084808201939182900301818588803b1580156118ec57600080fd5b60408051808201909152600381527f4634440000000000000000000000000000000000000000000000000000000000602082015281565b6126176149c6565b600d54600090819060ff16151560011461267d576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b80156126c4576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca0081101561271c576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af680000081111561276c576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b6127758661092b565b336000908152600460205260409020549096509450600160a060020a03881615806127a85750600160a060020a03881633145b156127c75760008581526006602081905260409091200154935061280f565b600160a060020a03881660009081526004602090815260408083205488845260069283905292200154909450841461280f576000858152600660208190526040909120018490555b612818876134f0565b965061148585858989610be0565b600760209081526000928352604080842090915290825290208054600182015460029092015490919083565b61285a6149c6565b600d54600090819060ff1615156001146128c0576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015612907576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca0081101561295f576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af68000008111156129af576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b6129b88661092b565b3360009081526004602052604090205490965094508715806129ea575060008581526006602052604090206001015488145b15612a095760008581526006602081905260409091200154935061280f565b60008881526005602090815260408083205488845260069283905292200154909450841461280f57600085815260066020819052604090912001849055612818876134f0565b600c6020526000908152604090205481565b6003546000818152600960205260408120600201549091904290811015612ae75760025460008381526009602052604090206004015401811115612ac157600082815260096020526040902060020154610e75908263ffffffff6140be16565b600254600083815260096020526040902060040154610e7591018263ffffffff6140be16565b60009250610e86565b600254600083815260096020526040812060040154909142910181118015612b5a575060008481526009602052604090206002015481111580612b5a575060008481526009602052604090206002015481118015612b5a5750600084815260096020526040902054155b15612b8857600084815260096020526040902060060154612b81908463ffffffff61417b16565b9150612b91565b612b818361419c565b5092915050565b60035460025460008281526009602052604081206004015490929142910181118015612c06575060008281526009602052604090206002015481111580612c06575060008281526009602052604090206002015481118015612c065750600082815260096020526040902054155b15612c3a57600082815260096020526040902060050154612c33908590610e69908263ffffffff61346216565b9250612c43565b612c3384614214565b5050919050565b600d5460ff1681565b60066020819052600091825260409091208054600182015460028301546003840154600485015460058601549590960154600160a060020a0390941695929491939092919087565b600354600101600081815260096020526040902060070154612cc3903463ffffffff61346216565b600082815260096020908152604091829020600701929092558051838152349281019290925280517f74b1d2f771e0eff1b2c36c38499febdbea80fe4013bdace4fc4b653322c2895c9281900390910190a150565b6000806000806000806000806000600354915050600160a060020a038916600090815260046020908152604080832054808452600680845282852060018082015460078752858820898952875294872001549583905293526002830154600590930154909384939091612dae90612d9090869061411e565b6000878152600660205260409020600301549063ffffffff61346216565b600095865260066020908152604080882060040154600783528189209989529890915290952054939e929d50909b509950919750919550909350915050565b6000858152600760209081526040808320898452909152812060010154819081901515612e2157612e1e8885614281565b93505b60008981526009602052604090206006015468056bc75e2d63100000118015612e7b575060008881526007602090815260408083208c8452909152902054670de0b6b3a764000090612e79908963ffffffff61346216565b115b15612f025760008881526007602090815260408083208c8452909152902054612eb390670de0b6b3a76400009063ffffffff6140be16565b9250612ec5878463ffffffff6140be16565b600089815260066020526040902060030154909250612eea908363ffffffff61346216565b60008981526006602052604090206003015591955085915b633b9aca008711156110c357600089815260096020526040902060060154612f30908863ffffffff61417b16565b9050670de0b6b3a76400008110612fa757612f4b818a6142e1565b6000898152600960205260409020548814612f725760008981526009602052604090208890555b6000898152600960205260409020600101548514612f9f5760008981526009602052604090206001018590555b835160640184525b60008881526007602090815260408083208c8452909152902060010154612fd590829063ffffffff61346216565b60008981526007602090815260408083208d84529091529020600181019190915554613002908890613462565b60008981526007602090815260408083208d845282528083209390935560099052206005015461303990829063ffffffff61346216565b60008a815260096020526040902060058101919091556006015461306490889063ffffffff61346216565b60008a815260096020908152604080832060060193909355600a81528282208883529052205461309b90889063ffffffff61346216565b60008a8152600a602090815260408083208984529091529020556130c1898989876143bf565b93506130d28989898989868a614430565b93506110c38886898488614628565b6130e96149c6565b60035460008181526009602052604081208054600182015460079092015490928080808080606461312188603063ffffffff613f7c16565b81151561312a57fe5b049550606461314088600e63ffffffff613f7c16565b81151561314957fe5b60008054604051939092049750600160a060020a039091169187156108fc0291889190818181858888f19350505050158015613189573d6000803e3d6000fd5b506000888152600c60205260409020546064906131ad90899063ffffffff613f7c16565b8115156131b657fe5b0493506131cf84611cc587818b8b63ffffffff6140be16565b60008b8152600960205260409020600501549093506131fc85670de0b6b3a764000063ffffffff613f7c16565b81151561320557fe5b60008c815260096020526040902060050154919004925061325390670de0b6b3a76400009061323b90859063ffffffff613f7c16565b81151561324457fe5b8691900463ffffffff6140be16565b905060008111156132835761326e848263ffffffff6140be16565b9350613280838263ffffffff61346216565b92505b6000898152600660205260409020600201546132a690879063ffffffff61346216565b60008a8152600660209081526040808320600201939093558c82526009905220600801546132db90839063ffffffff61346216565b600960008c815260200190815260200160002060080181905550600960008b815260200190815260200160002060020154620f4240028c60000151018c60000181815250508767016345785d8a000002896a52b7d2dcc80cd2e4000000028d6020015101018c6020018181525050600660008a815260200190815260200160002060000160009054906101000a9004600160a060020a03168c60400190600160a060020a03169081600160a060020a031681525050600660008a8152602001908152602001600020600101548c606001906000191690816000191681525050858c6080018181525050838c60c0018181525050828c60a001818152505060036000815480929190600101919050555089806001019a505042600960008c815260200190815260200160002060040181905550613434600254613428610e104261346290919063ffffffff16565b9063ffffffff61346216565b60008b815260096020526040902060028101919091556007018390558b9a5050505050505050505050919050565b818101828110156134bd576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b60006134e96134e06134db858563ffffffff6140be16565b614214565b611cc585614214565b9392505050565b6000808210806135005750600382115b1561350d57506002613510565b50805b919050565b600354600254600082815260096020526040902060040154429101811180156135805750600082815260096020526040902060020154811115806135805750600082815260096020526040902060020154811180156135805750600082815260096020526040902054155b156135b75761359284611cc5896136e2565b6000888152600660205260409020600301556135b2828886898988612ded565b6117fb565b600082815260096020526040902060020154811180156135e9575060008281526009602052604090206003015460ff16155b156117fb576000828152600960205260409020600301805460ff19166001179055613613836130e1565b8051670de0b6b3a76400008302018152602080820180518a01815260008a8152600683526040908190206001015484519251828601516060808801516080808a015160a0808c015160c0808e01518b513381529d8e019a909a528c8b019b909b52948b0196909652600160a060020a0390941690890152928701929092529385019390935260e0840192909252610100830191909152519194507f603a740c9291cc914e0c8d16b355cdb091aefd5d9bbdf4f95371ce756f5e8a4091908190036101200190a150505050505050565b600081815260066020526040812060050154819061370190849061477f565b60008381526006602052604090206004810154600382015460029092015461373392613428919063ffffffff61346216565b9050600081111561375f5760008381526006602052604081206002810182905560038101829055600401555b8091505b50919050565b80516000908290828080602084118015906137845750600084115b1515613800576040805160e560020a62461bcd02815260206004820152602a60248201527f737472696e67206d757374206265206265747765656e203120616e642033322060448201527f6368617261637465727300000000000000000000000000000000000000000000606482015290519081900360840190fd5b84600081518110151561380f57fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a02141580156138765750846001850381518110151561384e57fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a0214155b15156138f2576040805160e560020a62461bcd02815260206004820152602560248201527f737472696e672063616e6e6f74207374617274206f7220656e6420776974682060448201527f7370616365000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b84600081518110151561390157fe5b90602001015160f860020a900460f860020a02600160f860020a031916603060f860020a021415613a445784600181518110151561393b57fe5b90602001015160f860020a900460f860020a02600160f860020a031916607860f860020a02141515156139b8576040805160e560020a62461bcd02815260206004820152601b60248201527f737472696e672063616e6e6f7420737461727420776974682030780000000000604482015290519081900360640190fd5b8460018151811015156139c757fe5b90602001015160f860020a900460f860020a02600160f860020a031916605860f860020a0214151515613a44576040805160e560020a62461bcd02815260206004820152601b60248201527f737472696e672063616e6e6f7420737461727420776974682030580000000000604482015290519081900360640190fd5b600091505b83821015613f145784517f400000000000000000000000000000000000000000000000000000000000000090869084908110613a8157fe5b90602001015160f860020a900460f860020a02600160f860020a031916118015613af5575084517f5b0000000000000000000000000000000000000000000000000000000000000090869084908110613ad657fe5b90602001015160f860020a900460f860020a02600160f860020a031916105b15613b62578482815181101515613b0857fe5b90602001015160f860020a900460f860020a0260f860020a900460200160f860020a028583815181101515613b3957fe5b906020010190600160f860020a031916908160001a905350821515613b5d57600192505b613f09565b8482815181101515613b7057fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a021480613c40575084517f600000000000000000000000000000000000000000000000000000000000000090869084908110613bcc57fe5b90602001015160f860020a900460f860020a02600160f860020a031916118015613c40575084517f7b0000000000000000000000000000000000000000000000000000000000000090869084908110613c2157fe5b90602001015160f860020a900460f860020a02600160f860020a031916105b80613cea575084517f2f0000000000000000000000000000000000000000000000000000000000000090869084908110613c7657fe5b90602001015160f860020a900460f860020a02600160f860020a031916118015613cea575084517f3a0000000000000000000000000000000000000000000000000000000000000090869084908110613ccb57fe5b90602001015160f860020a900460f860020a02600160f860020a031916105b1515613d66576040805160e560020a62461bcd02815260206004820152602260248201527f737472696e6720636f6e7461696e7320696e76616c696420636861726163746560448201527f7273000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b8482815181101515613d7457fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a021415613e53578482600101815181101515613db057fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a0214151515613e53576040805160e560020a62461bcd02815260206004820152602860248201527f737472696e672063616e6e6f7420636f6e7461696e20636f6e7365637574697660448201527f6520737061636573000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b82158015613eff575084517f300000000000000000000000000000000000000000000000000000000000000090869084908110613e8c57fe5b90602001015160f860020a900460f860020a02600160f860020a0319161080613eff575084517f390000000000000000000000000000000000000000000000000000000000000090869084908110613ee057fe5b90602001015160f860020a900460f860020a02600160f860020a031916115b15613f0957600192505b600190910190613a49565b600183151514613f6e576040805160e560020a62461bcd02815260206004820152601d60248201527f737472696e672063616e6e6f74206265206f6e6c79206e756d62657273000000604482015290519081900360640190fd5b505050506020015192915050565b6000821515613f8d575060006134bd565b50818102818382811515613f9d57fe5b04146134bd576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000828152600760208181526040808420858552825280842060019081015460098085528387206005810154938101548852600c86529387205488885294529190930154670de0b6b3a7640000936140ad936140a192614078918791606491614062919063ffffffff613f7c16565b81151561406b57fe5b049063ffffffff613f7c16565b81151561408157fe5b60008881526009602052604090206008015491900463ffffffff61346216565b9063ffffffff613f7c16565b8115156140b657fe5b049392505050565b600082821115614118576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b6000828152600760209081526040808320848452825280832060028101546001909101546009909352908320600801546134e992670de0b6b3a76400009161416591613f7c565b81151561416e57fe5b049063ffffffff6140be16565b60006134e96141898461419c565b611cc561419c868663ffffffff61346216565b60006309502f906142046d03b2a1d15167e7c5699bfde00000611cc56141ff7a0dac7055469777a6122ee4310dd6c14410500f29048400000000006134286b01027e72f1f12813088000006140a18a670de0b6b3a764000063ffffffff613f7c16565b614816565b81151561420d57fe5b0492915050565b6000614227670de0b6b3a7640000614869565b614204600261425a61424786670de0b6b3a764000063ffffffff613f7c16565b65886c8f6730709063ffffffff613f7c16565b81151561426357fe5b0461342861427086614869565b6304a817c89063ffffffff613f7c16565b6142896149c6565b600083815260066020526040902060050154156142bd576000838152600660205260409020600501546142bd90849061477f565b506003546000838152600660205260409020600501558051600a0181528092915050565b600081815260096020526040812060020154429190821180156143105750600083815260096020526040902054155b156143345761432d82613428601e670de0b6b3a76400008861406b565b9050614361565b60008381526009602052604090206002015461435e90613428601e670de0b6b3a76400008861406b565b90505b614374620151808363ffffffff61346216565b811015614394576000838152600960205260409020600201819055611baa565b6143a7620151808363ffffffff61346216565b60008481526009602052604090206002015550505050565b6143c76149c6565b600060646143dc85600e63ffffffff613f7c16565b8115156143e557fe5b60008054604051939092049350600160a060020a039091169183156108fc0291849190818181858888f19350505050158015614425573d6000803e3d6000fd5b509195945050505050565b6144386149c6565b6000848152600b6020526040812054819081908190606490614461908c9063ffffffff613f7c16565b81151561446a57fe5b049350600a8a0492508a8914158015614493575060008981526006602052604090206001015415155b15614533576000898152600660205260409020600401546144bb90849063ffffffff61346216565b60008a815260066020908152604091829020600481019390935582546001909301548251600160a060020a03909416845290830152818101859052426060830152518c918e918c917f590bbc0fc16915a85269a48f74783c39842b7ae9eceb7c295c95dbe8b3ec7331919081900360800190a4614546565b614543848463ffffffff61346216565b93505b614574606461455c8c600e63ffffffff613f7c16565b81151561456557fe5b8c91900463ffffffff6140be16565b99506145868a8563ffffffff6140be16565b91506145948c8c868a614875565b905060008111156145c4576145af848263ffffffff6140be16565b93506145c1828263ffffffff61346216565b91505b60008c8152600960205260409020600701546145e790839063ffffffff61346216565b60008d81526009602052604090206007015560c086015161460f90859063ffffffff61346216565b60c08701525060e0850152509198975050505050505050565b836c01431e0fae6d7217caa00000000242670de0b6b3a76400000282600001510101816000018181525050600354751aba4714957d300d0e549208b31adb100000000000000285826020015101018160200181815250507f9a7c9c87d6b6f6612f5105b409490de2755b5b67db0172ab189b7431e57c7c848160000151826020015160066000898152602001908152602001600020600101543387878760400151886060015189608001518a60a001518b60c001518c60e00151604051808d81526020018c81526020018b600019166000191681526020018a600160a060020a0316600160a060020a0316815260200189815260200188815260200187600160a060020a0316600160a060020a0316815260200186600019166000191681526020018581526020018481526020018381526020018281526020019c5050505050505050505050505060405180910390a15050505050565b600061478b838361411e565b90506000811115614811576000838152600660205260409020600301546147b990829063ffffffff61346216565b60008481526006602090815260408083206003019390935560078152828220858352905220600201546147f390829063ffffffff61346216565b60008481526007602090815260408083208684529091529020600201555b505050565b6000806002614826846001613462565b81151561482f57fe5b0490508291505b81811015613763578091506002614858828581151561485157fe5b0483613462565b81151561486157fe5b049050614836565b60006134bd8283613f7c565b600084815260096020526040812060050154819081906148a386670de0b6b3a764000063ffffffff613f7c16565b8115156148ac57fe5b60008981526009602052604090206008015491900492506148d490839063ffffffff61346216565b600088815260096020526040902060080155670de0b6b3a76400006148ff838663ffffffff613f7c16565b81151561490857fe5b60008881526007602090815260408083208c845282528083206002015460099092529091206008015492909104925061495b91613428908490670de0b6b3a764000090614165908a63ffffffff613f7c16565b60008781526007602090815260408083208b84528252808320600201939093556009905220600501546149bb90670de0b6b3a7640000906149a390859063ffffffff613f7c16565b8115156149ac57fe5b8791900463ffffffff6140be16565b979650505050505050565b6101006040519081016040528060008152602001600081526020016000600160a060020a031681526020016000801916815260200160008152602001600081526020016000815260200160008152509056006e20646973636f72640000000000000000000000000000000000000000000000706f636b6574206c696e743a206e6f7420612076616c69642063757272656e63697473206e6f74207265616479207965742e2020636865636b203f65746120696e6f20766974616c696b2c206e6f000000000000000000000000000000000000736f7272792068756d616e73206f6e6c79000000000000000000000000000000a165627a7a72305820d908ff92e0c2a0191005f338111a685cf996673caca3129f2dccee78c038177a0029

Deployed Bytecode

0x6080604052600436106101ab5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663018a25e8811461034957806306fdde0314610370578063079ce327146103fa5780630f15f4c01461041a57806310f01eba1461042f57806324c33d33146104505780632660316e146104af5780632ce21999146104de5780632e19ebdc146104f6578063349cdcac1461050e5780633ccfd60b1461052c5780633ddd46981461054157806349cc635d1461059d5780635893d481146105c7578063624ae5c0146105e257806363066434146105f7578063685ffd831461062d578063747dff421461068057806382bfc739146107035780638f38f3091461072a5780638f7140ea14610738578063921dec211461075357806395d89b41146107a657806398a0871d146107bb578063a2bccae9146107d2578063a65b37a1146107ed578063c519500e146107fb578063c7e284b814610813578063ce89c80c14610828578063cf80800014610843578063d53b26791461085b578063de7874f314610870578063ed78cf4a146108ca578063ee0b5d8b146108d2575b6101b36149c6565b600d5460009060ff161515600114610217576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b801561025e576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca008110156102b6576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af6800000811115610306576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b61030f8561092b565b33600090815260046020908152604080832054808452600692839052922001549196509450610342908590600288610be0565b5050505050005b34801561035557600080fd5b5061035e610dc6565b60408051918252519081900360200190f35b34801561037c57600080fd5b50610385610e8b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bf5781810151838201526020016103a7565b50505050905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561040657600080fd5b50610418600435602435604435610ec2565b005b34801561042657600080fd5b506104186110ce565b34801561043b57600080fd5b5061035e600160a060020a0360043516611201565b34801561045c57600080fd5b50610468600435611213565b60408051998a5260208a0198909852888801969096529315156060880152608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b3480156104bb57600080fd5b506104ca600435602435611262565b604080519115158252519081900360200190f35b3480156104ea57600080fd5b5061035e600435611282565b34801561050257600080fd5b5061035e600435611294565b34801561051a57600080fd5b506104186004356024356044356112a6565b34801561053857600080fd5b5061041861148f565b6040805160206004803580820135601f810184900484028501840190955284845261041894369492936024939284019190819084018382808284375094975050600160a060020a03853516955050505050602001351515611804565b3480156105a957600080fd5b50610418600435600160a060020a03602435166044356064356119bd565b3480156105d357600080fd5b5061035e600435602435611bb0565b3480156105ee57600080fd5b5061035e611bcd565b34801561060357600080fd5b5061060f600435611bd3565b60408051938452602084019290925282820152519081900360600190f35b6040805160206004803580820135601f8101849004840285018401909552848452610418943694929360249392840191908190840183828082843750949750508435955050505050602001351515611d79565b34801561068c57600080fd5b50610695611e59565b604080519d8e5260208e019c909c528c8c019a909a5260608c019890985260808b019690965260a08a019490945260c0890192909252600160a060020a031660e088015261010087015261012086015261014085015261016084015261018083015251908190036101a00190f35b34801561070f57600080fd5b50610418600160a060020a0360043516602435604435612035565b610418600435602435612231565b34801561074457600080fd5b5061041860043560243561241b565b6040805160206004803580820135601f81018490048402850184019095528484526104189436949293602493928401919081908401838280828437509497505084359550505050506020013515156124f8565b3480156107b257600080fd5b506103856125d8565b610418600160a060020a036004351660243561260f565b3480156107de57600080fd5b5061060f600435602435612826565b610418600435602435612852565b34801561080757600080fd5b5061035e600435612a4f565b34801561081f57600080fd5b5061035e612a61565b34801561083457600080fd5b5061035e600435602435612af0565b34801561084f57600080fd5b5061035e600435612b98565b34801561086757600080fd5b506104ca612c4a565b34801561087c57600080fd5b50610888600435612c53565b60408051600160a060020a0390981688526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b610418612c9b565b3480156108de57600080fd5b506108f3600160a060020a0360043516612d18565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b6109336149c6565b336000908152600460205260408120549080821515610bd757604080517fe56556a9000000000000000000000000000000000000000000000000000000008152336004820152905173eb367060583fd067edec36202339360071e617db9163e56556a99160248083019260209291908290030181600087803b1580156109b857600080fd5b505af11580156109cc573d6000803e3d6000fd5b505050506040513d60208110156109e257600080fd5b5051604080517f82e37b2c00000000000000000000000000000000000000000000000000000000815260048101839052905191945073eb367060583fd067edec36202339360071e617db916382e37b2c916024808201926020929091908290030181600087803b158015610a5557600080fd5b505af1158015610a69573d6000803e3d6000fd5b505050506040513d6020811015610a7f57600080fd5b5051604080517fe3c08adf00000000000000000000000000000000000000000000000000000000815260048101869052905191935073eb367060583fd067edec36202339360071e617db9163e3c08adf916024808201926020929091908290030181600087803b158015610af257600080fd5b505af1158015610b06573d6000803e3d6000fd5b505050506040513d6020811015610b1c57600080fd5b505133600081815260046020908152604080832088905587835260069091529020805473ffffffffffffffffffffffffffffffffffffffff1916909117905590508115610ba557600082815260056020908152604080832086905585835260068252808320600190810186905560088352818420868552909252909120805460ff191690911790555b8015801590610bb45750828114155b15610bcf576000838152600660208190526040909120018190555b845160010185525b50929392505050565b60035460025460008281526009602052604090206004015442910181118015610c4b575060008281526009602052604090206002015481111580610c4b575060008281526009602052604090206002015481118015610c4b5750600082815260096020526040902054155b15610c6357610c5e828734888888612ded565b610dbe565b60008281526009602052604090206002015481118015610c95575060008281526009602052604090206003015460ff16155b15610d89576000828152600960205260409020600301805460ff19166001179055610cbf836130e1565b8051670de0b6b3a7640000830201815260208082018051890181526000898152600683526040908190206001015484519251828601516060808801516080808a015160a0808c015160c0808e01518b513381529d8e019a909a52348d8c0152958c019a909a52918a0195909552600160a060020a039093169288019290925286015260e0850152610100840192909252610120830191909152519194507f5905265be09e3f6f7813c1dce4febfad76d4b3a46288aa344d2531532c3519c991908190036101400190a15b600086815260066020526040902060030154610dab903463ffffffff61346216565b6000878152600660205260409020600301555b505050505050565b60035460025460008281526009602052604081206004015490929142910181118015610e34575060008281526009602052604090206002015481111580610e34575060008281526009602052604090206002015481118015610e345750600082815260096020526040902054155b15610e7c57600082815260096020526040902060050154610e7590670de0b6b3a764000090610e69908263ffffffff61346216565b9063ffffffff6134c316565b9250610e86565b6544364c5bb00092505b505090565b60408051808201909152600681527f466f6d6f34440000000000000000000000000000000000000000000000000000602082015281565b610eca6149c6565b600d54600090819060ff161515600114610f30576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015610f77576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b85633b9aca00811015610fcf576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af680000081111561101f576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b33600090815260046020526040902054945088158061104e575060008581526006602052604090206001015489145b1561106d576000858152600660208190526040909120015493506110ab565b6000898152600560209081526040808320548884526006928390529220015490945084146110ab576000858152600660208190526040909120018490555b6110b4886134f0565b97506110c385858a8a8a613515565b505050505050505050565b600054600160a060020a03163314611130576040805160e560020a62461bcd02815260206004820152601b60248201527f6f6e6c79207465616d206a7573742063616e2061637469766174650000000000604482015290519081900360640190fd5b600d5460ff161561118b576040805160e560020a62461bcd02815260206004820152601860248201527f666f6d6f336420616c7265616479206163746976617465640000000000000000604482015290519081900360640190fd5b600d805460ff19166001908117909155600381905560025481546000929092526009602052429091019081037f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3a55610e10017f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3855565b60046020526000908152604090205481565b60096020526000908152604090208054600182015460028301546003840154600485015460058601546006870154600788015460089098015496979596949560ff909416949293919290919089565b600860209081526000928352604080842090915290825290205460ff1681565b600b6020526000908152604090205481565b60056020526000908152604090205481565b6112ae6149c6565b600d5460009060ff161515600114611312576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015611359576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b84633b9aca008110156113b1576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af6800000811115611401576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b33600090815260046020526040902054935087158061141f57508388145b1561143e5760008481526006602081905260409091200154975061146d565b60008481526006602081905260409091200154881461146d576000848152600660208190526040909120018890555b611476876134f0565b96506114858489898989613515565b5050505050505050565b60008060008061149d6149c6565b600d5460ff1615156001146114fe576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015611545576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b60035433600090815260046020908152604080832054848452600990925290912060020154919850429750955086118015611592575060008781526009602052604090206003015460ff16155b80156115ab575060008781526009602052604090205415155b15611745576000878152600960205260409020600301805460ff191660011790556115d5836130e1565b92506115e0856136e2565b9350600084111561163157600085815260066020526040808220549051600160a060020a039091169186156108fc02918791818181858888f1935050505015801561162f573d6000803e3d6000fd5b505b85670de0b6b3a764000002836000015101836000018181525050848360200151018360200181815250507f9e9c9331834267c84342f2dce38f9ba35eb0bfbcc207c64872e1e74f9706f2a33360066000888152602001908152602001600020600101548686600001518760200151886040015189606001518a608001518b60a001518c60c00151604051808b600160a060020a0316600160a060020a031681526020018a6000191660001916815260200189815260200188815260200187815260200186600160a060020a0316600160a060020a0316815260200185600019166000191681526020018481526020018381526020018281526020019a505050505050505050505060405180910390a16117fb565b61174e856136e2565b9350600084111561179f57600085815260066020526040808220549051600160a060020a039091169186156108fc02918791818181858888f1935050505015801561179d573d6000803e3d6000fd5b505b6000858152600660209081526040918290206001015482513381529182015280820186905260608101889052905186917f8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a919081900360800190a25b50505050505050565b6000808080808033803b8015611852576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b61185b8b613769565b604080517faa4d490b000000000000000000000000000000000000000000000000000000008152336004820181905260248201849052600160a060020a038e1660448301528c151560648301528251939b50995034985073eb367060583fd067edec36202339360071e617db9263aa4d490b928a926084808201939182900301818588803b1580156118ec57600080fd5b505af1158015611900573d6000803e3d6000fd5b50505050506040513d604081101561191757600080fd5b508051602091820151600160a060020a03808b1660008181526004865260408082205485835260068852918190208054600190910154825188151581529889018790529416878201526060870193909352608086018c90524260a0870152915193995091975095508a92909186917fdd6176433ff5026bbce96b068584b7bbe3514227e72df9c630b749ae87e64442919081900360c00190a45050505050505050505050565b3373eb367060583fd067edec36202339360071e617db14611a4e576040805160e560020a62461bcd02815260206004820152602760248201527f796f7572206e6f7420706c617965724e616d657320636f6e74726163742e2e2e60448201527f20686d6d6d2e2e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a0383166000908152600460205260409020548414611a8957600160a060020a03831660009081526004602052604090208490555b6000828152600560205260409020548414611ab05760008281526005602052604090208490555b600084815260066020526040902054600160a060020a03848116911614611b06576000848152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0385161790555b6000848152600660205260409020600101548214611b335760008481526006602052604090206001018290555b600084815260066020819052604090912001548114611b62576000848152600660208190526040909120018190555b600084815260086020908152604080832085845290915290205460ff161515611baa5760008481526008602090815260408083208584529091529020805460ff191660011790555b50505050565b600a60209081526000928352604080842090915290825290205481565b60035481565b6003546000818152600960205260408120600201549091829182919042118015611c0f575060008181526009602052604090206003015460ff16155b8015611c28575060008181526009602052604090205415155b15611d4957600081815260096020526040902054851415611d0d57600081815260096020526040902060070154611c9690606490611c6d90603063ffffffff613f7c16565b811515611c7657fe5b60008881526006602052604090206002015491900463ffffffff61346216565b6000868152600760209081526040808320858452909152902060020154611cef90611cd190611cc58986613ff3565b9063ffffffff6140be16565b6000888152600660205260409020600301549063ffffffff61346216565b60008781526006602052604090206004015491955093509150611d71565b600085815260066020908152604080832060029081015460078452828520868652909352922090910154611cef90611cd190611cc58986613ff3565b60008581526006602052604090206002810154600590910154611cef90611cd190889061411e565b509193909250565b6000808080808033803b8015611dc7576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b611dd08b613769565b604080517f745ea0c1000000000000000000000000000000000000000000000000000000008152336004820181905260248201849052604482018e90528c151560648301528251939b50995034985073eb367060583fd067edec36202339360071e617db9263745ea0c1928a926084808201939182900301818588803b1580156118ec57600080fd5b600080600080600080600080600080600080600080600354905060008160096000848152602001908152602001600020600501546009600085815260200190815260200160002060020154600960008681526020019081526020016000206004015460096000878152602001908152602001600020600701546009600088815260200190815260200160002060000154600a0260096000898152602001908152602001600020600101540160066000600960008b815260200190815260200160002060000154815260200190815260200160002060000160009054906101000a9004600160a060020a031660066000600960008c815260200190815260200160002060000154815260200190815260200160002060010154600a60008b8152602001908152602001600020600080815260200190815260200160002054600a60008c815260200190815260200160002060006001815260200190815260200160002054600a60008d815260200190815260200160002060006002815260200190815260200160002054600a60008e8152602001908152602001600020600060038152602001908152602001600020548c9c509d509d509d509d509d509d509d509d509d509d509d509d509d5050909192939495969798999a9b9c565b61203d6149c6565b600d54600090819060ff1615156001146120a3576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b80156120ea576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b85633b9aca00811015612142576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af6800000811115612192576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b336000908152600460205260409020549450600160a060020a03891615806121c25750600160a060020a03891633145b156121e1576000858152600660208190526040909120015493506110ab565b600160a060020a0389166000908152600460209081526040808320548884526006928390529220015490945084146110ab576000858152600660208190526040909120018490556110b4886134f0565b6122396149c6565b600d5460009060ff16151560011461229d576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b80156122e4576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca0081101561233c576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af680000081111561238c576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b6123958561092b565b3360009081526004602052604090205490955093508615806123b657508387145b156123d557600084815260066020819052604090912001549650612404565b600084815260066020819052604090912001548714612404576000848152600660208190526040909120018790555b61240d866134f0565b95506117fb84888888610be0565b3373eb367060583fd067edec36202339360071e617db146124ac576040805160e560020a62461bcd02815260206004820152602760248201527f796f7572206e6f7420706c617965724e616d657320636f6e74726163742e2e2e60448201527f20686d6d6d2e2e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600082815260086020908152604080832084845290915290205460ff1615156124f45760008281526008602090815260408083208484529091529020805460ff191660011790555b5050565b6000808080808033803b8015612546576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b61254f8b613769565b604080517fc0942dfd000000000000000000000000000000000000000000000000000000008152336004820181905260248201849052604482018e90528c151560648301528251939b50995034985073eb367060583fd067edec36202339360071e617db9263c0942dfd928a926084808201939182900301818588803b1580156118ec57600080fd5b60408051808201909152600381527f4634440000000000000000000000000000000000000000000000000000000000602082015281565b6126176149c6565b600d54600090819060ff16151560011461267d576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b80156126c4576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca0081101561271c576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af680000081111561276c576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b6127758661092b565b336000908152600460205260409020549096509450600160a060020a03881615806127a85750600160a060020a03881633145b156127c75760008581526006602081905260409091200154935061280f565b600160a060020a03881660009081526004602090815260408083205488845260069283905292200154909450841461280f576000858152600660208190526040909120018490555b612818876134f0565b965061148585858989610be0565b600760209081526000928352604080842090915290825290208054600182015460029092015490919083565b61285a6149c6565b600d54600090819060ff1615156001146128c0576040805160e560020a62461bcd0281526020600482015260296024820152600080516020614a598339815191526044820152600080516020614a19833981519152606482015290519081900360840190fd5b33803b8015612907576040805160e560020a62461bcd0281526020600482015260116024820152600080516020614a99833981519152604482015290519081900360640190fd5b34633b9aca0081101561295f576040805160e560020a62461bcd0281526020600482015260216024820152600080516020614a39833981519152604482015260f860020a607902606482015290519081900360840190fd5b69152d02c7e14af68000008111156129af576040805160e560020a62461bcd02815260206004820152600e6024820152600080516020614a79833981519152604482015290519081900360640190fd5b6129b88661092b565b3360009081526004602052604090205490965094508715806129ea575060008581526006602052604090206001015488145b15612a095760008581526006602081905260409091200154935061280f565b60008881526005602090815260408083205488845260069283905292200154909450841461280f57600085815260066020819052604090912001849055612818876134f0565b600c6020526000908152604090205481565b6003546000818152600960205260408120600201549091904290811015612ae75760025460008381526009602052604090206004015401811115612ac157600082815260096020526040902060020154610e75908263ffffffff6140be16565b600254600083815260096020526040902060040154610e7591018263ffffffff6140be16565b60009250610e86565b600254600083815260096020526040812060040154909142910181118015612b5a575060008481526009602052604090206002015481111580612b5a575060008481526009602052604090206002015481118015612b5a5750600084815260096020526040902054155b15612b8857600084815260096020526040902060060154612b81908463ffffffff61417b16565b9150612b91565b612b818361419c565b5092915050565b60035460025460008281526009602052604081206004015490929142910181118015612c06575060008281526009602052604090206002015481111580612c06575060008281526009602052604090206002015481118015612c065750600082815260096020526040902054155b15612c3a57600082815260096020526040902060050154612c33908590610e69908263ffffffff61346216565b9250612c43565b612c3384614214565b5050919050565b600d5460ff1681565b60066020819052600091825260409091208054600182015460028301546003840154600485015460058601549590960154600160a060020a0390941695929491939092919087565b600354600101600081815260096020526040902060070154612cc3903463ffffffff61346216565b600082815260096020908152604091829020600701929092558051838152349281019290925280517f74b1d2f771e0eff1b2c36c38499febdbea80fe4013bdace4fc4b653322c2895c9281900390910190a150565b6000806000806000806000806000600354915050600160a060020a038916600090815260046020908152604080832054808452600680845282852060018082015460078752858820898952875294872001549583905293526002830154600590930154909384939091612dae90612d9090869061411e565b6000878152600660205260409020600301549063ffffffff61346216565b600095865260066020908152604080882060040154600783528189209989529890915290952054939e929d50909b509950919750919550909350915050565b6000858152600760209081526040808320898452909152812060010154819081901515612e2157612e1e8885614281565b93505b60008981526009602052604090206006015468056bc75e2d63100000118015612e7b575060008881526007602090815260408083208c8452909152902054670de0b6b3a764000090612e79908963ffffffff61346216565b115b15612f025760008881526007602090815260408083208c8452909152902054612eb390670de0b6b3a76400009063ffffffff6140be16565b9250612ec5878463ffffffff6140be16565b600089815260066020526040902060030154909250612eea908363ffffffff61346216565b60008981526006602052604090206003015591955085915b633b9aca008711156110c357600089815260096020526040902060060154612f30908863ffffffff61417b16565b9050670de0b6b3a76400008110612fa757612f4b818a6142e1565b6000898152600960205260409020548814612f725760008981526009602052604090208890555b6000898152600960205260409020600101548514612f9f5760008981526009602052604090206001018590555b835160640184525b60008881526007602090815260408083208c8452909152902060010154612fd590829063ffffffff61346216565b60008981526007602090815260408083208d84529091529020600181019190915554613002908890613462565b60008981526007602090815260408083208d845282528083209390935560099052206005015461303990829063ffffffff61346216565b60008a815260096020526040902060058101919091556006015461306490889063ffffffff61346216565b60008a815260096020908152604080832060060193909355600a81528282208883529052205461309b90889063ffffffff61346216565b60008a8152600a602090815260408083208984529091529020556130c1898989876143bf565b93506130d28989898989868a614430565b93506110c38886898488614628565b6130e96149c6565b60035460008181526009602052604081208054600182015460079092015490928080808080606461312188603063ffffffff613f7c16565b81151561312a57fe5b049550606461314088600e63ffffffff613f7c16565b81151561314957fe5b60008054604051939092049750600160a060020a039091169187156108fc0291889190818181858888f19350505050158015613189573d6000803e3d6000fd5b506000888152600c60205260409020546064906131ad90899063ffffffff613f7c16565b8115156131b657fe5b0493506131cf84611cc587818b8b63ffffffff6140be16565b60008b8152600960205260409020600501549093506131fc85670de0b6b3a764000063ffffffff613f7c16565b81151561320557fe5b60008c815260096020526040902060050154919004925061325390670de0b6b3a76400009061323b90859063ffffffff613f7c16565b81151561324457fe5b8691900463ffffffff6140be16565b905060008111156132835761326e848263ffffffff6140be16565b9350613280838263ffffffff61346216565b92505b6000898152600660205260409020600201546132a690879063ffffffff61346216565b60008a8152600660209081526040808320600201939093558c82526009905220600801546132db90839063ffffffff61346216565b600960008c815260200190815260200160002060080181905550600960008b815260200190815260200160002060020154620f4240028c60000151018c60000181815250508767016345785d8a000002896a52b7d2dcc80cd2e4000000028d6020015101018c6020018181525050600660008a815260200190815260200160002060000160009054906101000a9004600160a060020a03168c60400190600160a060020a03169081600160a060020a031681525050600660008a8152602001908152602001600020600101548c606001906000191690816000191681525050858c6080018181525050838c60c0018181525050828c60a001818152505060036000815480929190600101919050555089806001019a505042600960008c815260200190815260200160002060040181905550613434600254613428610e104261346290919063ffffffff16565b9063ffffffff61346216565b60008b815260096020526040902060028101919091556007018390558b9a5050505050505050505050919050565b818101828110156134bd576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b60006134e96134e06134db858563ffffffff6140be16565b614214565b611cc585614214565b9392505050565b6000808210806135005750600382115b1561350d57506002613510565b50805b919050565b600354600254600082815260096020526040902060040154429101811180156135805750600082815260096020526040902060020154811115806135805750600082815260096020526040902060020154811180156135805750600082815260096020526040902054155b156135b75761359284611cc5896136e2565b6000888152600660205260409020600301556135b2828886898988612ded565b6117fb565b600082815260096020526040902060020154811180156135e9575060008281526009602052604090206003015460ff16155b156117fb576000828152600960205260409020600301805460ff19166001179055613613836130e1565b8051670de0b6b3a76400008302018152602080820180518a01815260008a8152600683526040908190206001015484519251828601516060808801516080808a015160a0808c015160c0808e01518b513381529d8e019a909a528c8b019b909b52948b0196909652600160a060020a0390941690890152928701929092529385019390935260e0840192909252610100830191909152519194507f603a740c9291cc914e0c8d16b355cdb091aefd5d9bbdf4f95371ce756f5e8a4091908190036101200190a150505050505050565b600081815260066020526040812060050154819061370190849061477f565b60008381526006602052604090206004810154600382015460029092015461373392613428919063ffffffff61346216565b9050600081111561375f5760008381526006602052604081206002810182905560038101829055600401555b8091505b50919050565b80516000908290828080602084118015906137845750600084115b1515613800576040805160e560020a62461bcd02815260206004820152602a60248201527f737472696e67206d757374206265206265747765656e203120616e642033322060448201527f6368617261637465727300000000000000000000000000000000000000000000606482015290519081900360840190fd5b84600081518110151561380f57fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a02141580156138765750846001850381518110151561384e57fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a0214155b15156138f2576040805160e560020a62461bcd02815260206004820152602560248201527f737472696e672063616e6e6f74207374617274206f7220656e6420776974682060448201527f7370616365000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b84600081518110151561390157fe5b90602001015160f860020a900460f860020a02600160f860020a031916603060f860020a021415613a445784600181518110151561393b57fe5b90602001015160f860020a900460f860020a02600160f860020a031916607860f860020a02141515156139b8576040805160e560020a62461bcd02815260206004820152601b60248201527f737472696e672063616e6e6f7420737461727420776974682030780000000000604482015290519081900360640190fd5b8460018151811015156139c757fe5b90602001015160f860020a900460f860020a02600160f860020a031916605860f860020a0214151515613a44576040805160e560020a62461bcd02815260206004820152601b60248201527f737472696e672063616e6e6f7420737461727420776974682030580000000000604482015290519081900360640190fd5b600091505b83821015613f145784517f400000000000000000000000000000000000000000000000000000000000000090869084908110613a8157fe5b90602001015160f860020a900460f860020a02600160f860020a031916118015613af5575084517f5b0000000000000000000000000000000000000000000000000000000000000090869084908110613ad657fe5b90602001015160f860020a900460f860020a02600160f860020a031916105b15613b62578482815181101515613b0857fe5b90602001015160f860020a900460f860020a0260f860020a900460200160f860020a028583815181101515613b3957fe5b906020010190600160f860020a031916908160001a905350821515613b5d57600192505b613f09565b8482815181101515613b7057fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a021480613c40575084517f600000000000000000000000000000000000000000000000000000000000000090869084908110613bcc57fe5b90602001015160f860020a900460f860020a02600160f860020a031916118015613c40575084517f7b0000000000000000000000000000000000000000000000000000000000000090869084908110613c2157fe5b90602001015160f860020a900460f860020a02600160f860020a031916105b80613cea575084517f2f0000000000000000000000000000000000000000000000000000000000000090869084908110613c7657fe5b90602001015160f860020a900460f860020a02600160f860020a031916118015613cea575084517f3a0000000000000000000000000000000000000000000000000000000000000090869084908110613ccb57fe5b90602001015160f860020a900460f860020a02600160f860020a031916105b1515613d66576040805160e560020a62461bcd02815260206004820152602260248201527f737472696e6720636f6e7461696e7320696e76616c696420636861726163746560448201527f7273000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b8482815181101515613d7457fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a021415613e53578482600101815181101515613db057fe5b90602001015160f860020a900460f860020a02600160f860020a031916602060f860020a0214151515613e53576040805160e560020a62461bcd02815260206004820152602860248201527f737472696e672063616e6e6f7420636f6e7461696e20636f6e7365637574697660448201527f6520737061636573000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b82158015613eff575084517f300000000000000000000000000000000000000000000000000000000000000090869084908110613e8c57fe5b90602001015160f860020a900460f860020a02600160f860020a0319161080613eff575084517f390000000000000000000000000000000000000000000000000000000000000090869084908110613ee057fe5b90602001015160f860020a900460f860020a02600160f860020a031916115b15613f0957600192505b600190910190613a49565b600183151514613f6e576040805160e560020a62461bcd02815260206004820152601d60248201527f737472696e672063616e6e6f74206265206f6e6c79206e756d62657273000000604482015290519081900360640190fd5b505050506020015192915050565b6000821515613f8d575060006134bd565b50818102818382811515613f9d57fe5b04146134bd576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000828152600760208181526040808420858552825280842060019081015460098085528387206005810154938101548852600c86529387205488885294529190930154670de0b6b3a7640000936140ad936140a192614078918791606491614062919063ffffffff613f7c16565b81151561406b57fe5b049063ffffffff613f7c16565b81151561408157fe5b60008881526009602052604090206008015491900463ffffffff61346216565b9063ffffffff613f7c16565b8115156140b657fe5b049392505050565b600082821115614118576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b6000828152600760209081526040808320848452825280832060028101546001909101546009909352908320600801546134e992670de0b6b3a76400009161416591613f7c565b81151561416e57fe5b049063ffffffff6140be16565b60006134e96141898461419c565b611cc561419c868663ffffffff61346216565b60006309502f906142046d03b2a1d15167e7c5699bfde00000611cc56141ff7a0dac7055469777a6122ee4310dd6c14410500f29048400000000006134286b01027e72f1f12813088000006140a18a670de0b6b3a764000063ffffffff613f7c16565b614816565b81151561420d57fe5b0492915050565b6000614227670de0b6b3a7640000614869565b614204600261425a61424786670de0b6b3a764000063ffffffff613f7c16565b65886c8f6730709063ffffffff613f7c16565b81151561426357fe5b0461342861427086614869565b6304a817c89063ffffffff613f7c16565b6142896149c6565b600083815260066020526040902060050154156142bd576000838152600660205260409020600501546142bd90849061477f565b506003546000838152600660205260409020600501558051600a0181528092915050565b600081815260096020526040812060020154429190821180156143105750600083815260096020526040902054155b156143345761432d82613428601e670de0b6b3a76400008861406b565b9050614361565b60008381526009602052604090206002015461435e90613428601e670de0b6b3a76400008861406b565b90505b614374620151808363ffffffff61346216565b811015614394576000838152600960205260409020600201819055611baa565b6143a7620151808363ffffffff61346216565b60008481526009602052604090206002015550505050565b6143c76149c6565b600060646143dc85600e63ffffffff613f7c16565b8115156143e557fe5b60008054604051939092049350600160a060020a039091169183156108fc0291849190818181858888f19350505050158015614425573d6000803e3d6000fd5b509195945050505050565b6144386149c6565b6000848152600b6020526040812054819081908190606490614461908c9063ffffffff613f7c16565b81151561446a57fe5b049350600a8a0492508a8914158015614493575060008981526006602052604090206001015415155b15614533576000898152600660205260409020600401546144bb90849063ffffffff61346216565b60008a815260066020908152604091829020600481019390935582546001909301548251600160a060020a03909416845290830152818101859052426060830152518c918e918c917f590bbc0fc16915a85269a48f74783c39842b7ae9eceb7c295c95dbe8b3ec7331919081900360800190a4614546565b614543848463ffffffff61346216565b93505b614574606461455c8c600e63ffffffff613f7c16565b81151561456557fe5b8c91900463ffffffff6140be16565b99506145868a8563ffffffff6140be16565b91506145948c8c868a614875565b905060008111156145c4576145af848263ffffffff6140be16565b93506145c1828263ffffffff61346216565b91505b60008c8152600960205260409020600701546145e790839063ffffffff61346216565b60008d81526009602052604090206007015560c086015161460f90859063ffffffff61346216565b60c08701525060e0850152509198975050505050505050565b836c01431e0fae6d7217caa00000000242670de0b6b3a76400000282600001510101816000018181525050600354751aba4714957d300d0e549208b31adb100000000000000285826020015101018160200181815250507f9a7c9c87d6b6f6612f5105b409490de2755b5b67db0172ab189b7431e57c7c848160000151826020015160066000898152602001908152602001600020600101543387878760400151886060015189608001518a60a001518b60c001518c60e00151604051808d81526020018c81526020018b600019166000191681526020018a600160a060020a0316600160a060020a0316815260200189815260200188815260200187600160a060020a0316600160a060020a0316815260200186600019166000191681526020018581526020018481526020018381526020018281526020019c5050505050505050505050505060405180910390a15050505050565b600061478b838361411e565b90506000811115614811576000838152600660205260409020600301546147b990829063ffffffff61346216565b60008481526006602090815260408083206003019390935560078152828220858352905220600201546147f390829063ffffffff61346216565b60008481526007602090815260408083208684529091529020600201555b505050565b6000806002614826846001613462565b81151561482f57fe5b0490508291505b81811015613763578091506002614858828581151561485157fe5b0483613462565b81151561486157fe5b049050614836565b60006134bd8283613f7c565b600084815260096020526040812060050154819081906148a386670de0b6b3a764000063ffffffff613f7c16565b8115156148ac57fe5b60008981526009602052604090206008015491900492506148d490839063ffffffff61346216565b600088815260096020526040902060080155670de0b6b3a76400006148ff838663ffffffff613f7c16565b81151561490857fe5b60008881526007602090815260408083208c845282528083206002015460099092529091206008015492909104925061495b91613428908490670de0b6b3a764000090614165908a63ffffffff613f7c16565b60008781526007602090815260408083208b84528252808320600201939093556009905220600501546149bb90670de0b6b3a7640000906149a390859063ffffffff613f7c16565b8115156149ac57fe5b8791900463ffffffff6140be16565b979650505050505050565b6101006040519081016040528060008152602001600081526020016000600160a060020a031681526020016000801916815260200160008152602001600081526020016000815260200160008152509056006e20646973636f72640000000000000000000000000000000000000000000000706f636b6574206c696e743a206e6f7420612076616c69642063757272656e63697473206e6f74207265616479207965742e2020636865636b203f65746120696e6f20766974616c696b2c206e6f000000000000000000000000000000000000736f7272792068756d616e73206f6e6c79000000000000000000000000000000a165627a7a72305820d908ff92e0c2a0191005f338111a685cf996673caca3129f2dccee78c038177a0029

Swarm Source

bzzr://d908ff92e0c2a0191005f338111a685cf996673caca3129f2dccee78c038177a

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.