Contract Overview
Balance:
0.028700478589851407 Ether
EtherValue:
$3.54 (@ $123.27/ETH)
Transactions:
43 txns
TokenTracker:
Latest 25 transactions from a total of 43 transactions
[ Download CSV Export ]
Latest 12 Internal Transactions Internal Transactions as a result of Contract Execution
[ Download CSV Export ]
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.
Contract Source Code Verified (Exact Match)
Contract Source Code Verified (Exact Match)
Contract Name: | Rain |
Compiler Version: | v0.4.24+commit.e67f0147 |
Optimization Enabled: | Yes |
Runs (Optimizer): | 200 |
Contract Source Code
pragma solidity ^0.4.24; // // /$$ /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ //| $$$ /$$$ | $$ |_ $$_/| $$ | $$__ $$ |__/ //| $$$$ /$$$$ /$$$$$$ | $$ /$$ /$$$$$$ | $$ /$$$$$$ | $$ \ $$ /$$$$$$ /$$ /$$$$$$$ //| $$ $$/$$ $$ |____ $$| $$ /$$/ /$$__ $$ | $$|_ $$_/ | $$$$$$$/ |____ $$| $$| $$__ $$ //| $$ $$$| $$ /$$$$$$$| $$$$$$/ | $$$$$$$$ | $$ | $$ | $$__ $$ /$$$$$$$| $$| $$ \ $$ //| $$\ $ | $$ /$$__ $$| $$_ $$ | $$_____/ | $$ | $$ /$$ | $$ \ $$ /$$__ $$| $$| $$ | $$ //| $$ \/ | $$| $$$$$$$| $$ \ $$| $$$$$$$ /$$$$$$| $$$$/ | $$ | $$| $$$$$$$| $$| $$ | $$ //|__/ |__/ \_______/|__/ \__/ \_______/ |______/ \___/ |__/ |__/ \_______/|__/|__/ |__/ // // site: https://makingitrain.me // // support: [email protected] // // discord: https://discord.gg/kndpqU3 // contract Rain { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStronghands() { require(myDividends(true) > 0); _; } // administrator can: // -> change the name of the contract // -> change the name of the token // -> change the PoS difficulty (How many tokens it costs to hold a masternode, in case it gets crazy high later) // they CANNOT: // -> take funds // -> disable withdrawals // -> kill the contract // -> change the price of tokens modifier onlyAdministrator(){ require(msg.sender == owner); _; } modifier limitBuy() { if(limit && msg.value > 3 ether) { // check if the transaction is over 3 ether and limit is active if ((msg.value) < address(this).balance && (address(this).balance-(msg.value)) >= 50 ether) { // if contract reaches 50 ether disable limit limit = false; } else { revert(); // revert the transaction } } _; } /*============================== = EVENTS = ==============================*/ event onTokenPurchase( address indexed customerAddress, uint256 incomingEthereum, uint256 tokensMinted, address indexed referredBy ); event onTokenSell( address indexed customerAddress, uint256 tokensBurned, uint256 ethereumEarned ); event onReinvestment( address indexed customerAddress, uint256 ethereumReinvested, uint256 tokensMinted ); event onWithdraw( address indexed customerAddress, uint256 ethereumWithdrawn ); event OnRedistribution ( uint256 amount, uint256 timestamp ); // ERC20 event Transfer( address indexed from, address indexed to, uint256 tokens ); /*===================================== = CONFIGURABLES = =====================================*/ string public name = "Rain"; string public symbol = "Rain"; uint8 constant public decimals = 18; uint8 constant internal dividendFee_ = 20; // 20% uint256 constant internal tokenPriceInitial_ = 0.0000001 ether; uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether; uint256 constant internal magnitude = 2**64; // proof of stake (defaults at 10 tokens) uint256 public stakingRequirement = 0; /*================================ = DATASETS = ================================*/ // amount of shares for each address (scaled number) mapping(address => uint256) internal tokenBalanceLedger_; mapping(address => address) internal referralOf_; mapping(address => uint256) internal referralBalance_; mapping(address => int256) internal payoutsTo_; mapping(address => bool) internal alreadyBought; uint256 internal tokenSupply_ = 0; uint256 internal profitPerShare_; mapping(address => bool) internal whitelisted_; bool internal whitelist_ = true; bool internal limit = true; address public owner; /*======================================= = PUBLIC FUNCTIONS = =======================================*/ /* * -- APPLICATION ENTRY POINTS -- */ constructor() public { owner = msg.sender; whitelisted_[msg.sender] = true; whitelist_ = false; } /** * 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) { purchaseTokens(msg.value, _referredBy); } /** * Fallback function to handle ethereum that was send straight to the contract * Unfortunately we cannot use a referral address this way. */ function() payable public { purchaseTokens(msg.value, 0x0); } /** * Converts all of caller's dividends to tokens. */ function reinvest() onlyStronghands() public { // fetch dividends uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code // pay out the dividends virtually address _customerAddress = msg.sender; payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // retrieve ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // dispatch a buy order with the virtualized "withdrawn dividends" uint256 _tokens = purchaseTokens(_dividends, 0x0); // fire event emit onReinvestment(_customerAddress, _dividends, _tokens); } /** * Alias of sell() and withdraw(). */ function exit() public { // get token count for caller & sell them all address _customerAddress = msg.sender; uint256 _tokens = tokenBalanceLedger_[_customerAddress]; if(_tokens > 0) sell(_tokens); // lambo delivery service withdraw(); } /** * Withdraws all of the callers earnings. */ function withdraw() onlyStronghands() public { // setup data address _customerAddress = msg.sender; uint256 _dividends = myDividends(false); // get ref. bonus later in the code // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // add ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // lambo delivery service _customerAddress.transfer(_dividends); // fire event emit onWithdraw(_customerAddress, _dividends); } /** * Liquifies tokens to ethereum. */ function sell(uint256 _amountOfTokens) onlyBagholders() public { // setup data address _customerAddress = msg.sender; // russian hackers BTFO require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); uint256 _tokens = _amountOfTokens; uint256 _ethereum = tokensToEthereum_(_tokens); uint256 _undividedDividends = SafeMath.div(_ethereum*dividendFee_, 100); // 20% dividendFee_ uint256 _referralBonus = SafeMath.div(_undividedDividends, 2); // 50% of dividends: 10% uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus); uint256 _taxedEthereum = SafeMath.sub(_ethereum, (_dividends)); address _referredBy = referralOf_[_customerAddress]; if( // is this a referred purchase? _referredBy != 0x0000000000000000000000000000000000000000 && // no cheating! _referredBy != _customerAddress && // does the referrer have at least X whole tokens? // i.e is the referrer a godly chad masternode tokenBalanceLedger_[_referredBy] >= stakingRequirement ){ // wealth redistribution referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], (_referralBonus / 2)); // Tier 1 gets 50% of referrals (5%) address tier2 = referralOf_[_referredBy]; if (tier2 != 0x0000000000000000000000000000000000000000 && tokenBalanceLedger_[tier2] >= stakingRequirement) { referralBalance_[tier2] = SafeMath.add(referralBalance_[tier2], (_referralBonus*30 / 100)); // Tier 2 gets 30% of referrals (3%) //address tier3 = referralOf_[tier2]; if (referralOf_[tier2] != 0x0000000000000000000000000000000000000000 && tokenBalanceLedger_[referralOf_[tier2]] >= stakingRequirement) { referralBalance_[referralOf_[tier2]] = SafeMath.add(referralBalance_[referralOf_[tier2]], (_referralBonus*20 / 100)); // Tier 3 get 20% of referrals (2%) } else { _dividends = SafeMath.add(_dividends, (_referralBonus*20 / 100)); } } else { _dividends = SafeMath.add(_dividends, (_referralBonus*30 / 100)); } } else { // no ref purchase // add the referral bonus back to the global dividends cake _dividends = SafeMath.add(_dividends, _referralBonus); } // burn the sold tokens tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens); tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens); // update dividends tracker int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude)); payoutsTo_[_customerAddress] -= _updatedPayouts; // dividing by zero is a bad idea if (tokenSupply_ > 0) { // update the amount of dividends per token profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_); } // fire event emit onTokenSell(_customerAddress, _tokens, _taxedEthereum); } /** * Transfer tokens from the caller to a new holder. * 0% fee. */ function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders() public returns(bool) { // setup address _customerAddress = msg.sender; // make sure we have the requested tokens require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); // withdraw all outstanding dividends first if(myDividends(true) > 0) withdraw(); // exchange tokens tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens); tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _amountOfTokens); // update dividend trackers payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens); payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _amountOfTokens); // fire event emit Transfer(_customerAddress, _toAddress, _amountOfTokens); // ERC20 return true; } /** * redistribution of dividends */ function redistribution() external payable { // setup uint256 ethereum = msg.value; // disperse ethereum among holders profitPerShare_ = SafeMath.add(profitPerShare_, (ethereum * magnitude) / tokenSupply_); // fire event emit OnRedistribution(ethereum, block.timestamp); } /** * In case one of us dies, we need to replace ourselves. */ function setAdministrator(address _newAdmin) onlyAdministrator() external { owner = _newAdmin; } /** * Precautionary measures in case we need to adjust the masternode rate. */ function setStakingRequirement(uint256 _amountOfTokens) onlyAdministrator() public { stakingRequirement = _amountOfTokens; } /** * If we want to rebrand, we can. */ function setName(string _name) onlyAdministrator() public { name = _name; } /** * If we want to rebrand, we can. */ function setSymbol(string _symbol) onlyAdministrator() public { symbol = _symbol; } /*---------- HELPERS AND CALCULATORS ----------*/ /** * Method to view the current Ethereum stored in the contract * Example: totalEthereumBalance() */ function totalEthereumBalance() public view returns(uint) { return address(this).balance; } /** * Retrieve the total token supply. */ function totalSupply() public view returns(uint256) { return tokenSupply_; } /** * Retrieve the tokens owned by the caller. */ function myTokens() public view returns(uint256) { address _customerAddress = msg.sender; return balanceOf(_customerAddress); } /** * Retrieve the dividends owned by the caller. * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations. * The reason for this, is that in the frontend, we will want to get the total divs (global + ref) * But in the internal calculations, we want them separate. */ function myDividends(bool _includeReferralBonus) public view returns(uint256) { address _customerAddress = msg.sender; return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ; } /** * Retrieve the token balance of any single address. */ function balanceOf(address _customerAddress) view public returns(uint256) { return tokenBalanceLedger_[_customerAddress]; } /** * Retrieve the dividend balance of any single address. */ function dividendsOf(address _customerAddress) view public returns(uint256) { return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude; } /** * Return the buy price of 1 individual token. */ function sellPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ - tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _dividends = SafeMath.div(_ethereum, dividendFee_); uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends); return _taxedEthereum; } } /** * Return the sell price of 1 individual token. */ function buyPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ + tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _dividends = SafeMath.div(_ethereum, dividendFee_); uint256 _taxedEthereum = SafeMath.add(_ethereum, _dividends); return _taxedEthereum; } } /** * Function for the frontend to dynamically retrieve the price scaling of buy orders. */ function calculateTokensReceived(uint256 _ethereumToSpend) public view returns(uint256) { uint256 _dividends = SafeMath.div(_ethereumToSpend, dividendFee_); uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); return _amountOfTokens; } /** * Function for the frontend to dynamically retrieve the price scaling of sell orders. */ function calculateEthereumReceived(uint256 _tokensToSell) public view returns(uint256) { require(_tokensToSell <= tokenSupply_); uint256 _ethereum = tokensToEthereum_(_tokensToSell); uint256 _dividends = SafeMath.div(_ethereum, dividendFee_); uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends); return _taxedEthereum; } function disableWhitelist() onlyAdministrator() external { whitelist_ = false; } /*========================================== = INTERNAL FUNCTIONS = ==========================================*/ function purchaseTokens(uint256 _incomingEthereum, address _referredBy) limitBuy() internal returns(uint256) { //As long as the whitelist is true, only whitelisted people are allowed to buy. // if the person is not whitelisted but whitelist is true/active, revert the transaction if (whitelisted_[msg.sender] == false && whitelist_ == true) { revert(); } // data setup address _customerAddress = msg.sender; uint256 _undividedDividends = SafeMath.div(_incomingEthereum*dividendFee_, 100); // 20% dividendFee_ uint256 _referralBonus = SafeMath.div(_undividedDividends, 2); // 50% of dividends: 10% uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus); uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, (_undividedDividends)); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); uint256 _fee = _dividends * magnitude; // no point in continuing execution if OP is a poorfag russian hacker // prevents overflow in the case that the pyramid somehow magically starts being used by everyone in the world // (or hackers) // and yes we know that the safemath function automatically rules out the "greater then" equasion. require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_)); // is the user referred by a masternode? if( // is this a referred purchase? _referredBy != 0x0000000000000000000000000000000000000000 && // no cheating! _referredBy != _customerAddress && // does the referrer have at least X whole tokens? // i.e is the referrer a godly chad masternode tokenBalanceLedger_[_referredBy] >= stakingRequirement && referralOf_[_customerAddress] == 0x0000000000000000000000000000000000000000 && alreadyBought[_customerAddress] == false ){ referralOf_[_customerAddress] = _referredBy; // wealth redistribution referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], (_referralBonus / 2)); // Tier 1 gets 50% of referrals (5%) address tier2 = referralOf_[_referredBy]; if (tier2 != 0x0000000000000000000000000000000000000000 && tokenBalanceLedger_[tier2] >= stakingRequirement) { referralBalance_[tier2] = SafeMath.add(referralBalance_[tier2], (_referralBonus*30 / 100)); // Tier 2 gets 30% of referrals (3%) //address tier3 = referralOf_[tier2]; if (referralOf_[tier2] != 0x0000000000000000000000000000000000000000 && tokenBalanceLedger_[referralOf_[tier2]] >= stakingRequirement) { referralBalance_[referralOf_[tier2]] = SafeMath.add(referralBalance_[referralOf_[tier2]], (_referralBonus*20 / 100)); // Tier 3 get 20% of referrals (2%) } else { _dividends = SafeMath.add(_dividends, (_referralBonus*20 / 100)); _fee = _dividends * magnitude; } } else { _dividends = SafeMath.add(_dividends, (_referralBonus*30 / 100)); _fee = _dividends * magnitude; } } else { // no ref purchase // add the referral bonus back to the global dividends cake referralBalance_[owner] = SafeMath.add(referralBalance_[owner], (_referralBonus / 2)); _dividends = SafeMath.add(_dividends, _referralBonus / 2); _fee = _dividends * magnitude; } // we can't give people infinite ethereum if(tokenSupply_ > 0){ // add tokens to the pool tokenSupply_ = SafeMath.add(tokenSupply_, _amountOfTokens); // take the amount of dividends gained through this transaction, and allocates them evenly to each shareholder profitPerShare_ += (_dividends * magnitude / (tokenSupply_)); // calculate the amount of tokens the customer receives over his purchase _fee = _fee - (_fee-(_amountOfTokens * (_dividends * magnitude / (tokenSupply_)))); } else { // add tokens to the pool tokenSupply_ = _amountOfTokens; } // update circulating supply & the ledger address for the customer tokenBalanceLedger_[_customerAddress] = SafeMath.add(tokenBalanceLedger_[_customerAddress], _amountOfTokens); // Tells the contract that the buyer doesn't deserve dividends for the tokens before they owned them; //really i know you think you do but you don't int256 _updatedPayouts = (int256) ((profitPerShare_ * _amountOfTokens) - _fee); payoutsTo_[_customerAddress] += _updatedPayouts; alreadyBought[_customerAddress] = true; // fire event emit onTokenPurchase(_customerAddress, _incomingEthereum, _amountOfTokens, _referredBy); return _amountOfTokens; } /** * Calculate Token price based on an amount of incoming ethereum * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */ function ethereumToTokens_(uint256 _ethereum) internal view returns(uint256) { uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18; uint256 _tokensReceived = ( ( // underflow attempts BTFO SafeMath.sub( (sqrt ( (_tokenPriceInitial**2) + (2*(tokenPriceIncremental_ * 1e18)*(_ethereum * 1e18)) + (((tokenPriceIncremental_)**2)*(tokenSupply_**2)) + (2*(tokenPriceIncremental_)*_tokenPriceInitial*tokenSupply_) ) ), _tokenPriceInitial ) )/(tokenPriceIncremental_) )-(tokenSupply_) ; return _tokensReceived; } /** * Calculate token sell value. * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */ function tokensToEthereum_(uint256 _tokens) internal view returns(uint256) { uint256 tokens_ = (_tokens + 1e18); uint256 _tokenSupply = (tokenSupply_ + 1e18); uint256 _etherReceived = ( // underflow attempts BTFO SafeMath.sub( ( ( ( tokenPriceInitial_ +(tokenPriceIncremental_ * (_tokenSupply/1e18)) )-tokenPriceIncremental_ )*(tokens_ - 1e18) ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2 ) /1e18); return _etherReceived; } //This is where all your gas goes, sorry //Not sorry, you probably only paid 1 gwei function sqrt(uint x) internal pure returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } }
Contract ABI
[{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumToSpend","type":"uint256"}],"name":"calculateTokensReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"setStakingRequirement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"disableWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newAdmin","type":"address"}],"name":"setAdministrator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"redistribution","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"},{"indexed":true,"name":"referredBy","type":"address"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"timestamp","type":"uint256"}],"name":"OnRedistribution","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
60c0604052600460808190527f5261696e0000000000000000000000000000000000000000000000000000000060a0908152620000409160009190620000fc565b506040805180820190915260048082527f5261696e0000000000000000000000000000000000000000000000000000000060209092019182526200008791600191620000fc565b5060006002819055600855600b805461ff001960ff1990911660011716610100179055348015620000b757600080fd5b50600b80546201000060b060020a031916336201000081029190911782556000908152600a60205260409020805460ff199081166001179091558154169055620001a1565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200013f57805160ff19168380011785556200016f565b828001600101855582156200016f579182015b828111156200016f57825182559160200191906001019062000152565b506200017d92915062000181565b5090565b6200019e91905b808211156200017d576000815560010162000188565b90565b6117cd80620001b16000396000f30060806040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016b57806306fdde031461019e57806310d0ffdd1461022857806318160ddd146102405780632260937314610255578063313ce5671461026d5780633ccfd60b146102985780634b750334146102af57806356d399e8146102c4578063688abbf7146102d95780636b2f4632146102f357806370a08231146103085780638328b610146103295780638620410b146103415780638da5cb5b14610356578063949e8acd1461038757806395d89b411461039c578063a9059cbb146103b1578063b84c8246146103e9578063c47f002714610442578063d6b0f4841461049b578063df8089ef146104b0578063e37b346d146104d1578063e4849b32146104d9578063e9fad8ee146104f1578063f088d54714610506578063fdb5a03e1461051a575b61016834600061052f565b50005b34801561017757600080fd5b5061018c600160a060020a0360043516610afa565b60408051918252519081900360200190f35b3480156101aa57600080fd5b506101b3610b35565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ed5781810151838201526020016101d5565b50505050905090810190601f16801561021a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023457600080fd5b5061018c600435610bc3565b34801561024c57600080fd5b5061018c610bf3565b34801561026157600080fd5b5061018c600435610bfa565b34801561027957600080fd5b50610282610c33565b6040805160ff9092168252519081900360200190f35b3480156102a457600080fd5b506102ad610c38565b005b3480156102bb57600080fd5b5061018c610d0b565b3480156102d057600080fd5b5061018c610d5f565b3480156102e557600080fd5b5061018c6004351515610d65565b3480156102ff57600080fd5b5061018c610da8565b34801561031457600080fd5b5061018c600160a060020a0360043516610dad565b34801561033557600080fd5b506102ad600435610dc8565b34801561034d57600080fd5b5061018c610dea565b34801561036257600080fd5b5061036b610e32565b60408051600160a060020a039092168252519081900360200190f35b34801561039357600080fd5b5061018c610e47565b3480156103a857600080fd5b506101b3610e5a565b3480156103bd57600080fd5b506103d5600160a060020a0360043516602435610eb4565b604080519115158252519081900360200190f35b3480156103f557600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102ad943694929360249392840191908190840183828082843750949750610fe19650505050505050565b34801561044e57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102ad9436949293602493928401919081908401838280828437509497506110159650505050505050565b3480156104a757600080fd5b506102ad611045565b3480156104bc57600080fd5b506102ad600160a060020a036004351661106e565b6102ad6110c2565b3480156104e557600080fd5b506102ad600435611123565b3480156104fd57600080fd5b506102ad6114b0565b61018c600160a060020a03600435166114d9565b34801561052657600080fd5b506102ad6114e5565b600080600080600080600080600080600b60019054906101000a900460ff16801561056157506729a2241af62c000034115b1561059c5730313410801561058257506802b5e3af16b18800003430310310155b1561059757600b805461ff001916905561059c565b600080fd5b336000908152600a602052604090205460ff161580156105c35750600b5460ff1615156001145b156105cd57600080fd5b3398506105de60148d02606461159b565b97506105eb88600261159b565b96506105f788886115b2565b95506106038c896115b2565b945061060e856115c4565b935068010000000000000000860292506000841180156106385750600854610636858261165c565b115b151561064357600080fd5b600160a060020a038b161580159061066d575088600160a060020a03168b600160a060020a031614155b80156106935750600254600160a060020a038c1660009081526003602052604090205410155b80156106b75750600160a060020a03808a1660009081526004602052604090205416155b80156106dc5750600160a060020a03891660009081526007602052604090205460ff16155b156108fc578a600460008b600160a060020a0316600160a060020a0316815260200190815260200160002060006101000a815481600160a060020a030219169083600160a060020a03160217905550610766600560008d600160a060020a0316600160a060020a031681526020019081526020016000205460028981151561076057fe5b0461165c565b600160a060020a03808d1660009081526005602090815260408083209490945560049052919091205416915081158015906107bb5750600254600160a060020a03831660009081526003602052604090205410155b156108d757600160a060020a0382166000908152600560205260409020546107e8906064601e8a02610760565b600160a060020a0380841660009081526005602090815260408083209490945560049052919091205416158015906108495750600254600160a060020a03808416600090815260046020908152604080832054909316825260039052205410155b156108b257600160a060020a03808316600090815260046020908152604080832054909316825260059052205461088590606460148a02610760565b600160a060020a0380841660009081526004602090815260408083205490931682526005905220556108d2565b6108c186606460148a02610760565b955068010000000000000000860292505b6108f7565b6108e6866064601e8a02610760565b955068010000000000000000860292505b610967565b600b54620100009004600160a060020a031660009081526005602052604090205461092990600289610760565b600b54620100009004600160a060020a031660009081526005602052604090205561095686600289610760565b955068010000000000000000860292505b600060085411156109cb5761097e6008548561165c565b600881905568010000000000000000870281151561099857fe5b600980549290910490910190556008546801000000000000000087028115156109bd57fe5b0484028303830392506109d1565b60088490555b600160a060020a0389166000908152600360205260409020546109f4908561165c565b600360008b600160a060020a0316600160a060020a031681526020019081526020016000208190555082846009540203905080600660008b600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055506001600760008b600160a060020a0316600160a060020a0316815260200190815260200160002060006101000a81548160ff0219169083151502179055508a600160a060020a031689600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58e87604051808381526020018281526020019250505060405180910390a350919a9950505050505050505050565b600160a060020a0316600090815260066020908152604080832054600390925290912054600954680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bbb5780601f10610b9057610100808354040283529160200191610bbb565b820191906000526020600020905b815481529060010190602001808311610b9e57829003601f168201915b505050505081565b6000808080610bd385601461159b565b9250610bdf85846115b2565b9150610bea826115c4565b95945050505050565b6008545b90565b6000806000806008548511151515610c1157600080fd5b610c1a85611672565b9250610c2783601461159b565b9150610bea83836115b2565b601281565b6000806000610c476001610d65565b11610c5157600080fd5b339150610c5e6000610d65565b600160a060020a038316600081815260066020908152604080832080546801000000000000000087020190556005909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610cc7573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b60008060008060085460001415610d29576414f46b04009350610d59565b610d3a670de0b6b3a7640000611672565b9250610d4783601461159b565b9150610d5383836115b2565b90508093505b50505090565b60025481565b60003382610d7b57610d7681610afa565b610d9f565b600160a060020a038116600090815260056020526040902054610d9d82610afa565b015b91505b50919050565b303190565b600160a060020a031660009081526003602052604090205490565b600b54620100009004600160a060020a03163314610de557600080fd5b600255565b60008060008060085460001415610e085764199c82cc009350610d59565b610e19670de0b6b3a7640000611672565b9250610e2683601461159b565b9150610d53838361165c565b600b54620100009004600160a060020a031681565b600033610e5381610dad565b91505b5090565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bbb5780601f10610b9057610100808354040283529160200191610bbb565b6000806000610ec1610e47565b11610ecb57600080fd5b5033600081815260036020526040902054831115610ee857600080fd5b6000610ef46001610d65565b1115610f0257610f02610c38565b600160a060020a038116600090815260036020526040902054610f2590846115b2565b600160a060020a038083166000908152600360205260408082209390935590861681522054610f54908461165c565b600160a060020a0385811660008181526003602090815260408083209590955560098054948716808452600683528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b600b54620100009004600160a060020a03163314610ffe57600080fd5b8051611011906001906020840190611713565b5050565b600b54620100009004600160a060020a0316331461103257600080fd5b8051611011906000906020840190611713565b600b54620100009004600160a060020a0316331461106257600080fd5b600b805460ff19169055565b600b54620100009004600160a060020a0316331461108b57600080fd5b600b8054600160a060020a03909216620100000275ffffffffffffffffffffffffffffffffffffffff000019909216919091179055565b60095460085434916110e39168010000000000000000840281151561076057fe5b6009556040805182815242602082015281517fcda2c9671a954c8617003d284779b6b0948f2771e11316c5db1510d0d634e542929181900390910190a150565b600080600080600080600080600080600061113c610e47565b1161114657600080fd5b33600081815260036020526040902054909a508b111561116557600080fd5b8a985061117189611672565b975061118160148902606461159b565b965061118e87600261159b565b955061119a87876115b2565b94506111a688866115b2565b600160a060020a03808c1660009081526004602052604090205491955016925082158015906111e7575089600160a060020a031683600160a060020a031614155b801561120d5750600254600160a060020a03841660009081526003602052604090205410155b156113b157600160a060020a03831660009081526005602052604090205461123790600288610760565b600160a060020a03808516600090815260056020908152604080832094909455600490529190912054169150811580159061128c5750600254600160a060020a03831660009081526003602052604090205410155b1561139a57600160a060020a0382166000908152600560205260409020546112b9906064601e8902610760565b600160a060020a03808416600090815260056020908152604080832094909455600490529190912054161580159061131a5750600254600160a060020a03808416600090815260046020908152604080832054909316825260039052205410155b1561138357600160a060020a03808316600090815260046020908152604080832054909316825260059052205461135690606460148902610760565b600160a060020a038084166000908152600460209081526040808320549093168252600590522055611395565b61139285606460148902610760565b94505b6113ac565b6113a9856064601e8902610760565b94505b6113be565b6113bb858761165c565b94505b6113ca6008548a6115b2565b600855600160a060020a038a166000908152600360205260409020546113f0908a6115b2565b600160a060020a038b1660009081526003602090815260408083209390935560095460069091529181208054928c026801000000000000000088020192839003905560085491925010156114605761145c60095460085468010000000000000000880281151561076057fe5b6009555b604080518a8152602081018690528151600160a060020a038d16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050505050565b33600081815260036020526040812054908111156114d1576114d181611123565b611011610c38565b6000610da2348361052f565b6000806000806114f56001610d65565b116114ff57600080fd5b6115096000610d65565b3360008181526006602090815260408083208054680100000000000000008702019055600590915281208054908290559092019450925061154b90849061052f565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008082848115156115a957fe5b04949350505050565b6000828211156115be57fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be400611649611643730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e400000000000000016116de565b856115b2565b81151561165257fe5b0403949350505050565b60008282018381101561166b57fe5b9392505050565b600854600090670de0b6b3a76400008381019181019083906116cb6414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be400028115156116c557fe5b046115b2565b8115156116d457fe5b0495945050505050565b80600260018201045b81811015610da257809150600281828581151561170057fe5b040181151561170b57fe5b0490506116e7565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061175457805160ff1916838001178555611781565b82800160010185558215611781579182015b82811115611781578251825591602001919060010190611766565b50610e5692610bf79250905b80821115610e56576000815560010161178d5600a165627a7a723058206b65b104d59f84cf3f1606b880504d15b3575dd0f41cb2fbb5cbdcd1a5c932250029
Swarm Source:
bzzr://6b65b104d59f84cf3f1606b880504d15b3575dd0f41cb2fbb5cbdcd1a5c93225
Block | Age | transaction | Difficulty | GasUsed | Reward |
---|
Block | Age | Uncle Number | Difficulty | GasUsed | Reward |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.