/** * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any) */ function buy(address _referredBy) public payable returns(uint256) { require(msg.value >= .1 ether); if(savedReferrals_[msg.sender] == 0x0000000000000000000000000000000000000000){ savedReferrals_[msg.sender] = _referredBy; }else{ _referredBy = savedReferrals_[msg.sender]; // This line is completely bogus } purchaseTokens(msg.value, savedReferrals_[msg.sender]); } /* He seems to be saving just one referral address per address for all times. I thinks that's the idea, but is it a good one? Then he completely separates the referrals dividends from the customer's dividends with several different functions Also, they charge development fees for some things and others no. Overall I think the code is a little messy. Still trying to find some real bug/showstopper and still trying to understand what the concept is with all those changes... */
0.4.18