Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
208,737.329038792109542506 ZTH
Holders
1,669 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Zethr
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-07-27 */ pragma solidity ^0.4.23; /** https://zethr.io https://zethr.io https://zethr.io https://zethr.io https://zethr.io ███████╗███████╗████████╗██╗ ██╗██████╗ ╚══███╔╝██╔════╝╚══██╔══╝██║ ██║██╔══██╗ ███╔╝ █████╗ ██║ ███████║██████╔╝ ███╔╝ ██╔══╝ ██║ ██╔══██║██╔══██╗ ███████╗███████╗ ██║ ██║ ██║██║ ██║ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ .------..------. .------..------..------. .------..------..------..------..------. |B.--. ||E.--. |.-. |T.--. ||H.--. ||E.--. |.-. |H.--. ||O.--. ||U.--. ||S.--. ||E.--. | | :(): || (\/) (( )) | :/\: || :/\: || (\/) (( )) | :/\: || :/\: || (\/) || :/\: || (\/) | | ()() || :\/: |'-.-.| (__) || (__) || :\/: |'-.-.| (__) || :\/: || :\/: || :\/: || :\/: | | '--'B|| '--'E| (( )) '--'T|| '--'H|| '--'E| (( )) '--'H|| '--'O|| '--'U|| '--'S|| '--'E| `------'`------' '-'`------'`------'`------' '-'`------'`------'`------'`------'`------' An interactive, variable-dividend rate contract with an ICO-capped price floor and collectibles. Credits ======= Analysis: blurr Randall Contract Developers: Etherguy klob Norsefire Front-End Design: cryptodude oguzhanox TropicalRogue **/ contract Zethr { using SafeMath for uint; /*================================= = MODIFIERS = =================================*/ modifier onlyHolders() { require(myFrontEndTokens() > 0); _; } modifier dividendHolder() { require(myDividends(true) > 0); _; } modifier onlyAdministrator(){ address _customerAddress = msg.sender; require(administrators[_customerAddress]); _; } /*============================== = EVENTS = ==============================*/ event onTokenPurchase( address indexed customerAddress, uint incomingEthereum, uint tokensMinted, address indexed referredBy ); event UserDividendRate( address user, uint divRate ); event onTokenSell( address indexed customerAddress, uint tokensBurned, uint ethereumEarned ); event onReinvestment( address indexed customerAddress, uint ethereumReinvested, uint tokensMinted ); event onWithdraw( address indexed customerAddress, uint ethereumWithdrawn ); event Transfer( address indexed from, address indexed to, uint tokens ); event Approval( address indexed tokenOwner, address indexed spender, uint tokens ); event Allocation( uint toBankRoll, uint toReferrer, uint toTokenHolders, uint toDivCardHolders, uint forTokens ); event Referral( address referrer, uint amountReceived ); /*===================================== = CONSTANTS = =====================================*/ uint8 constant public decimals = 18; uint constant internal tokenPriceInitial_ = 0.000653 ether; uint constant internal magnitude = 2**64; uint constant internal icoHardCap = 250 ether; uint constant internal addressICOLimit = 1 ether; uint constant internal icoMinBuyIn = 0.1 finney; uint constant internal icoMaxGasPrice = 50000000000 wei; uint constant internal MULTIPLIER = 9615; uint constant internal MIN_ETH_BUYIN = 0.0001 ether; uint constant internal MIN_TOKEN_SELL_AMOUNT = 0.0001 ether; uint constant internal MIN_TOKEN_TRANSFER = 1e10; uint constant internal referrer_percentage = 25; uint public stakingRequirement = 100e18; /*================================ = CONFIGURABLES = ================================*/ string public name = "Zethr"; string public symbol = "ZTH"; bytes32 constant public icoHashedPass = bytes32(0x5ddcde33b94b19bdef79dd9ea75be591942b9ec78286d64b44a356280fb6a262); address internal bankrollAddress; ZethrDividendCards divCardContract; /*================================ = DATASETS = ================================*/ // Tracks front & backend tokens mapping(address => uint) internal frontTokenBalanceLedger_; mapping(address => uint) internal dividendTokenBalanceLedger_; mapping(address => mapping (address => uint)) public allowed; // Tracks dividend rates for users mapping(uint8 => bool) internal validDividendRates_; mapping(address => bool) internal userSelectedRate; mapping(address => uint8) internal userDividendRate; // Payout tracking mapping(address => uint) internal referralBalance_; mapping(address => int256) internal payoutsTo_; // ICO per-address limit tracking mapping(address => uint) internal ICOBuyIn; uint public tokensMintedDuringICO; uint public ethInvestedDuringICO; uint public currentEthInvested; uint internal tokenSupply = 0; uint internal divTokenSupply = 0; uint internal profitPerDivToken; mapping(address => bool) public administrators; bool public icoPhase = false; bool public regularPhase = false; uint icoOpenTime; /*======================================= = PUBLIC FUNCTIONS = =======================================*/ constructor (address _bankrollAddress, address _divCardAddress) public { bankrollAddress = _bankrollAddress; divCardContract = ZethrDividendCards(_divCardAddress); administrators[0x4F4eBF556CFDc21c3424F85ff6572C77c514Fcae] = true; // Norsefire administrators[0x11e52c75998fe2E7928B191bfc5B25937Ca16741] = true; // klob administrators[0x20C945800de43394F70D789874a4daC9cFA57451] = true; // Etherguy administrators[0xef764BAC8a438E7E498c2E5fcCf0f174c3E3F8dB] = true; // blurr administrators[0x8537aa2911b193e5B377938A723D805bb0865670] = true; // oguzhanox administrators[0x9D221b2100CbE5F05a0d2048E2556a6Df6f9a6C3] = true; // Randall administrators[0xDa83156106c4dba7A26E9bF2Ca91E273350aa551] = true; // TropicalRogue administrators[0x71009e9E4e5e68e77ECc7ef2f2E95cbD98c6E696] = true; // cryptodude administrators[msg.sender] = true; // Helps with debugging! validDividendRates_[2] = true; validDividendRates_[5] = true; validDividendRates_[10] = true; validDividendRates_[15] = true; validDividendRates_[20] = true; validDividendRates_[25] = true; validDividendRates_[33] = true; userSelectedRate[bankrollAddress] = true; userDividendRate[bankrollAddress] = 33; } /** * Same as buy, but explicitly sets your dividend percentage. * If this has been called before, it will update your `default' dividend * percentage for regular buy transactions going forward. */ function buyAndSetDivPercentage(address _referredBy, uint8 _divChoice, string providedUnhashedPass) public payable returns (uint) { require(icoPhase || regularPhase); if (icoPhase) { // Anti-bot measures - not perfect, but should help some. bytes32 hashedProvidedPass = keccak256(providedUnhashedPass); require(hashedProvidedPass == icoHashedPass || msg.sender == bankrollAddress); uint gasPrice = tx.gasprice; // Prevents ICO buyers from getting substantially burned if the ICO is reached // before their transaction is processed. require(gasPrice <= icoMaxGasPrice && ethInvestedDuringICO <= icoHardCap); } // Dividend percentage should be a currently accepted value. require (validDividendRates_[_divChoice]); // Set the dividend fee percentage denominator. userSelectedRate[msg.sender] = true; userDividendRate[msg.sender] = _divChoice; emit UserDividendRate(msg.sender, _divChoice); // Finally, purchase tokens. purchaseTokens(msg.value, _referredBy); } // All buys except for the above one require regular phase. function buy(address _referredBy) public payable returns(uint) { require(regularPhase); address _customerAddress = msg.sender; require (userSelectedRate[_customerAddress]); purchaseTokens(msg.value, _referredBy); } function buyAndTransfer(address _referredBy, address target) public payable { bytes memory empty; buyAndTransfer(_referredBy,target, empty, 20); } function buyAndTransfer(address _referredBy, address target, bytes _data) public payable { buyAndTransfer(_referredBy, target, _data, 20); } // Overload function buyAndTransfer(address _referredBy, address target, bytes _data, uint8 divChoice) public payable { require(regularPhase); address _customerAddress = msg.sender; uint256 frontendBalance = frontTokenBalanceLedger_[msg.sender]; if (userSelectedRate[_customerAddress] && divChoice == 0) { purchaseTokens(msg.value, _referredBy); } else { buyAndSetDivPercentage(_referredBy, divChoice, "0x0"); } uint256 difference = SafeMath.sub(frontTokenBalanceLedger_[msg.sender], frontendBalance); transferTo(msg.sender, target, difference, _data); } // Fallback function only works during regular phase - part of anti-bot protection. function() payable public { /** / If the user has previously set a dividend rate, sending / Ether directly to the contract simply purchases more at / the most recent rate. If this is their first time, they / are automatically placed into the 20% rate `bucket'. **/ require(regularPhase); address _customerAddress = msg.sender; if (userSelectedRate[_customerAddress]) { purchaseTokens(msg.value, 0x0); } else { buyAndSetDivPercentage(0x0, 20, "0x0"); } } function reinvest() dividendHolder() public { require(regularPhase); uint _dividends = myDividends(false); // Pay out requisite `virtual' dividends. address _customerAddress = msg.sender; payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; uint _tokens = purchaseTokens(_dividends, 0x0); // Fire logging event. emit onReinvestment(_customerAddress, _dividends, _tokens); } function exit() public { require(regularPhase); // Retrieve token balance for caller, then sell them all. address _customerAddress = msg.sender; uint _tokens = frontTokenBalanceLedger_[_customerAddress]; if(_tokens > 0) sell(_tokens); withdraw(_customerAddress); } function withdraw(address _recipient) dividendHolder() public { require(regularPhase); // Setup data address _customerAddress = msg.sender; uint _dividends = myDividends(false); // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // add ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; if (_recipient == address(0x0)){ _recipient = msg.sender; } _recipient.transfer(_dividends); // Fire logging event. emit onWithdraw(_recipient, _dividends); } // Sells front-end tokens. // Logic concerning step-pricing of tokens pre/post-ICO is encapsulated in tokensToEthereum_. function sell(uint _amountOfTokens) onlyHolders() public { // No selling during the ICO. You don't get to flip that fast, sorry! require(!icoPhase); require(regularPhase); require(_amountOfTokens <= frontTokenBalanceLedger_[msg.sender]); uint _frontEndTokensToBurn = _amountOfTokens; // Calculate how many dividend tokens this action burns. // Computed as the caller's average dividend rate multiplied by the number of front-end tokens held. // As an additional guard, we ensure that the dividend rate is between 2 and 50 inclusive. uint userDivRate = getUserAverageDividendRate(msg.sender); require ((2*magnitude) <= userDivRate && (50*magnitude) >= userDivRate ); uint _divTokensToBurn = (_frontEndTokensToBurn.mul(userDivRate)).div(magnitude); // Calculate ethereum received before dividends uint _ethereum = tokensToEthereum_(_frontEndTokensToBurn); if (_ethereum > currentEthInvested){ // Well, congratulations, you've emptied the coffers. currentEthInvested = 0; } else { currentEthInvested = currentEthInvested - _ethereum; } // Calculate dividends generated from the sale. uint _dividends = (_ethereum.mul(getUserAverageDividendRate(msg.sender)).div(100)).div(magnitude); // Calculate Ethereum receivable net of dividends. uint _taxedEthereum = _ethereum.sub(_dividends); // Burn the sold tokens (both front-end and back-end variants). tokenSupply = tokenSupply.sub(_frontEndTokensToBurn); divTokenSupply = divTokenSupply.sub(_divTokensToBurn); // Subtract the token balances for the seller frontTokenBalanceLedger_[msg.sender] = frontTokenBalanceLedger_[msg.sender].sub(_frontEndTokensToBurn); dividendTokenBalanceLedger_[msg.sender] = dividendTokenBalanceLedger_[msg.sender].sub(_divTokensToBurn); // Update dividends tracker int256 _updatedPayouts = (int256) (profitPerDivToken * _divTokensToBurn + (_taxedEthereum * magnitude)); payoutsTo_[msg.sender] -= _updatedPayouts; // Let's avoid breaking arithmetic where we can, eh? if (divTokenSupply > 0) { // Update the value of each remaining back-end dividend token. profitPerDivToken = profitPerDivToken.add((_dividends * magnitude) / divTokenSupply); } // Fire logging event. emit onTokenSell(msg.sender, _frontEndTokensToBurn, _taxedEthereum); } /** * Transfer tokens from the caller to a new holder. * No charge incurred for the transfer. We'd make a terrible bank. */ function transfer(address _toAddress, uint _amountOfTokens) onlyHolders() public returns(bool) { require(_amountOfTokens >= MIN_TOKEN_TRANSFER && _amountOfTokens <= frontTokenBalanceLedger_[msg.sender]); bytes memory empty; transferFromInternal(msg.sender, _toAddress, _amountOfTokens, empty); return true; } function approve(address spender, uint tokens) public returns (bool) { address _customerAddress = msg.sender; allowed[_customerAddress][spender] = tokens; // Fire logging event. emit Approval(_customerAddress, spender, tokens); // Good old ERC20. return true; } /** * Transfer tokens from the caller to a new holder: the Used By Smart Contracts edition. * No charge incurred for the transfer. No seriously, we'd make a terrible bank. */ function transferFrom(address _from, address _toAddress, uint _amountOfTokens) public returns(bool) { // Setup variables address _customerAddress = _from; bytes memory empty; // Make sure we own the tokens we're transferring, are ALLOWED to transfer that many tokens, // and are transferring at least one full token. require(_amountOfTokens >= MIN_TOKEN_TRANSFER && _amountOfTokens <= frontTokenBalanceLedger_[_customerAddress] && _amountOfTokens <= allowed[_customerAddress][msg.sender]); transferFromInternal(_from, _toAddress, _amountOfTokens, empty); // Good old ERC20. return true; } function transferTo (address _from, address _to, uint _amountOfTokens, bytes _data) public { if (_from != msg.sender){ require(_amountOfTokens >= MIN_TOKEN_TRANSFER && _amountOfTokens <= frontTokenBalanceLedger_[_from] && _amountOfTokens <= allowed[_from][msg.sender]); } else{ require(_amountOfTokens >= MIN_TOKEN_TRANSFER && _amountOfTokens <= frontTokenBalanceLedger_[_from]); } transferFromInternal(_from, _to, _amountOfTokens, _data); } // Who'd have thought we'd need this thing floating around? function totalSupply() public view returns (uint256) { return tokenSupply; } // Anyone can start the regular phase 2 weeks after the ICO phase starts. // In case the devs die. Or something. function publicStartRegularPhase() public { require(now > (icoOpenTime + 2 weeks) && icoOpenTime != 0); icoPhase = false; regularPhase = true; } /*---------- ADMINISTRATOR ONLY FUNCTIONS ----------*/ // Fire the starting gun and then duck for cover. function startICOPhase() onlyAdministrator() public { // Prevent us from startaring the ICO phase again require(icoOpenTime == 0); icoPhase = true; icoOpenTime = now; } // Fire the ... ending gun? function endICOPhase() onlyAdministrator() public { icoPhase = false; } function startRegularPhase() onlyAdministrator public { // disable ico phase in case if that was not disabled yet icoPhase = false; regularPhase = true; } // The death of a great man demands the birth of a great son. function setAdministrator(address _newAdmin, bool _status) onlyAdministrator() public { administrators[_newAdmin] = _status; } function setStakingRequirement(uint _amountOfTokens) onlyAdministrator() public { // This plane only goes one way, lads. Never below the initial. require (_amountOfTokens >= 100e18); stakingRequirement = _amountOfTokens; } function setName(string _name) onlyAdministrator() public { name = _name; } function setSymbol(string _symbol) onlyAdministrator() public { symbol = _symbol; } function changeBankroll(address _newBankrollAddress) onlyAdministrator public { bankrollAddress = _newBankrollAddress; } /*---------- HELPERS AND CALCULATORS ----------*/ function totalEthereumBalance() public view returns(uint) { return address(this).balance; } function totalEthereumICOReceived() public view returns(uint) { return ethInvestedDuringICO; } /** * Retrieves your currently selected dividend rate. */ function getMyDividendRate() public view returns(uint8) { address _customerAddress = msg.sender; require(userSelectedRate[_customerAddress]); return userDividendRate[_customerAddress]; } /** * Retrieve the total frontend token supply */ function getFrontEndTokenSupply() public view returns(uint) { return tokenSupply; } /** * Retreive the total dividend token supply */ function getDividendTokenSupply() public view returns(uint) { return divTokenSupply; } /** * Retrieve the frontend tokens owned by the caller */ function myFrontEndTokens() public view returns(uint) { address _customerAddress = msg.sender; return getFrontEndTokenBalanceOf(_customerAddress); } /** * Retrieve the dividend tokens owned by the caller */ function myDividendTokens() public view returns(uint) { address _customerAddress = msg.sender; return getDividendTokenBalanceOf(_customerAddress); } function myReferralDividends() public view returns(uint) { return myDividends(true) - myDividends(false); } function myDividends(bool _includeReferralBonus) public view returns(uint) { address _customerAddress = msg.sender; return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ; } function theDividendsOf(bool _includeReferralBonus, address _customerAddress) public view returns(uint) { return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ; } function getFrontEndTokenBalanceOf(address _customerAddress) view public returns(uint) { return frontTokenBalanceLedger_[_customerAddress]; } function balanceOf(address _owner) view public returns(uint) { return getFrontEndTokenBalanceOf(_owner); } function getDividendTokenBalanceOf(address _customerAddress) view public returns(uint) { return dividendTokenBalanceLedger_[_customerAddress]; } function dividendsOf(address _customerAddress) view public returns(uint) { return (uint) ((int256)(profitPerDivToken * dividendTokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude; } // Get the sell price at the user's average dividend rate function sellPrice() public view returns(uint) { uint price; if (icoPhase || currentEthInvested < ethInvestedDuringICO) { price = tokenPriceInitial_; } else { // Calculate the tokens received for 100 finney. // Divide to find the average, to calculate the price. uint tokensReceivedForEth = ethereumToTokens_(0.001 ether); price = (1e18 * 0.001 ether) / tokensReceivedForEth; } // Factor in the user's average dividend rate uint theSellPrice = price.sub((price.mul(getUserAverageDividendRate(msg.sender)).div(100)).div(magnitude)); return theSellPrice; } // Get the buy price at a particular dividend rate function buyPrice(uint dividendRate) public view returns(uint) { uint price; if (icoPhase || currentEthInvested < ethInvestedDuringICO) { price = tokenPriceInitial_; } else { // Calculate the tokens received for 100 finney. // Divide to find the average, to calculate the price. uint tokensReceivedForEth = ethereumToTokens_(0.001 ether); price = (1e18 * 0.001 ether) / tokensReceivedForEth; } // Factor in the user's selected dividend rate uint theBuyPrice = (price.mul(dividendRate).div(100)).add(price); return theBuyPrice; } function calculateTokensReceived(uint _ethereumToSpend) public view returns(uint) { uint _dividends = (_ethereumToSpend.mul(userDividendRate[msg.sender])).div(100); uint _taxedEthereum = _ethereumToSpend.sub(_dividends); uint _amountOfTokens = ethereumToTokens_(_taxedEthereum); return _amountOfTokens; } // When selling tokens, we need to calculate the user's current dividend rate. // This is different from their selected dividend rate. function calculateEthereumReceived(uint _tokensToSell) public view returns(uint) { require(_tokensToSell <= tokenSupply); uint _ethereum = tokensToEthereum_(_tokensToSell); uint userAverageDividendRate = getUserAverageDividendRate(msg.sender); uint _dividends = (_ethereum.mul(userAverageDividendRate).div(100)).div(magnitude); uint _taxedEthereum = _ethereum.sub(_dividends); return _taxedEthereum; } /* * Get's a user's average dividend rate - which is just their divTokenBalance / tokenBalance * We multiply by magnitude to avoid precision errors. */ function getUserAverageDividendRate(address user) public view returns (uint) { return (magnitude * dividendTokenBalanceLedger_[user]).div(frontTokenBalanceLedger_[user]); } function getMyAverageDividendRate() public view returns (uint) { return getUserAverageDividendRate(msg.sender); } /*========================================== = INTERNAL FUNCTIONS = ==========================================*/ /* Purchase tokens with Ether. During ICO phase, dividends should go to the bankroll During normal operation: 0.5% should go to the master dividend card 0.5% should go to the matching dividend card 25% of dividends should go to the referrer, if any is provided. */ function purchaseTokens(uint _incomingEthereum, address _referredBy) internal returns(uint) { require(_incomingEthereum >= MIN_ETH_BUYIN || msg.sender == bankrollAddress, "Tried to buy below the min eth buyin threshold."); uint toBankRoll; uint toReferrer; uint toTokenHolders; uint toDivCardHolders; uint dividendAmount; uint tokensBought; uint dividendTokensBought; uint remainingEth = _incomingEthereum; uint fee; // 1% for dividend card holders is taken off before anything else if (regularPhase) { toDivCardHolders = _incomingEthereum.div(100); remainingEth = remainingEth.sub(toDivCardHolders); } /* Next, we tax for dividends: Dividends = (ethereum * div%) / 100 Important note: if we're out of the ICO phase, the 1% sent to div-card holders is handled prior to any dividend taxes are considered. */ // Grab the user's dividend rate uint dividendRate = userDividendRate[msg.sender]; // Calculate the total dividends on this buy dividendAmount = (remainingEth.mul(dividendRate)).div(100); remainingEth = remainingEth.sub(dividendAmount); // If we're in the ICO and bankroll is buying, don't tax if (icoPhase && msg.sender == bankrollAddress) { remainingEth = remainingEth + dividendAmount; } // Calculate how many tokens to buy: tokensBought = ethereumToTokens_(remainingEth); dividendTokensBought = tokensBought.mul(dividendRate); // This is where we actually mint tokens: tokenSupply = tokenSupply.add(tokensBought); divTokenSupply = divTokenSupply.add(dividendTokensBought); /* Update the total investment tracker Note that this must be done AFTER we calculate how many tokens are bought - because ethereumToTokens needs to know the amount *before* investment, not *after* investment. */ currentEthInvested = currentEthInvested + remainingEth; // If ICO phase, all the dividends go to the bankroll if (icoPhase) { toBankRoll = dividendAmount; // If the bankroll is buying, we don't want to send eth back to the bankroll // Instead, let's just give it the tokens it would get in an infinite recursive buy if (msg.sender == bankrollAddress) { toBankRoll = 0; } toReferrer = 0; toTokenHolders = 0; /* ethInvestedDuringICO tracks how much Ether goes straight to tokens, not how much Ether we get total. this is so that our calculation using "investment" is accurate. */ ethInvestedDuringICO = ethInvestedDuringICO + remainingEth; tokensMintedDuringICO = tokensMintedDuringICO + tokensBought; // Cannot purchase more than the hard cap during ICO. require(ethInvestedDuringICO <= icoHardCap); // Contracts aren't allowed to participate in the ICO. require(tx.origin == msg.sender || msg.sender == bankrollAddress); // Cannot purchase more then the limit per address during the ICO. ICOBuyIn[msg.sender] += remainingEth; require(ICOBuyIn[msg.sender] <= addressICOLimit || msg.sender == bankrollAddress); // Stop the ICO phase if we reach the hard cap if (ethInvestedDuringICO == icoHardCap){ icoPhase = false; } } else { // Not ICO phase, check for referrals // 25% goes to referrers, if set // toReferrer = (dividends * 25)/100 if (_referredBy != 0x0000000000000000000000000000000000000000 && _referredBy != msg.sender && frontTokenBalanceLedger_[_referredBy] >= stakingRequirement) { toReferrer = (dividendAmount.mul(referrer_percentage)).div(100); referralBalance_[_referredBy] += toReferrer; emit Referral(_referredBy, toReferrer); } // The rest of the dividends go to token holders toTokenHolders = dividendAmount.sub(toReferrer); fee = toTokenHolders * magnitude; fee = fee - (fee - (dividendTokensBought * (toTokenHolders * magnitude / (divTokenSupply)))); // Finally, increase the divToken value profitPerDivToken = profitPerDivToken.add((toTokenHolders.mul(magnitude)).div(divTokenSupply)); payoutsTo_[msg.sender] += (int256) ((profitPerDivToken * dividendTokensBought) - fee); } // Update the buyer's token amounts frontTokenBalanceLedger_[msg.sender] = frontTokenBalanceLedger_[msg.sender].add(tokensBought); dividendTokenBalanceLedger_[msg.sender] = dividendTokenBalanceLedger_[msg.sender].add(dividendTokensBought); // Transfer to bankroll and div cards if (toBankRoll != 0) { ZethrBankroll(bankrollAddress).receiveDividends.value(toBankRoll)(); } if (regularPhase) { divCardContract.receiveDividends.value(toDivCardHolders)(dividendRate); } // This event should help us track where all the eth is going emit Allocation(toBankRoll, toReferrer, toTokenHolders, toDivCardHolders, remainingEth); // Sanity checking uint sum = toBankRoll + toReferrer + toTokenHolders + toDivCardHolders + remainingEth - _incomingEthereum; assert(sum == 0); } // How many tokens one gets from a certain amount of ethereum. function ethereumToTokens_(uint _ethereumAmount) public view returns(uint) { require(_ethereumAmount > MIN_ETH_BUYIN, "Tried to buy tokens with too little eth."); if (icoPhase) { return _ethereumAmount.div(tokenPriceInitial_) * 1e18; } /* * i = investment, p = price, t = number of tokens * * i_current = p_initial * t_current (for t_current <= t_initial) * i_current = i_initial + (2/3)(t_current)^(3/2) (for t_current > t_initial) * * t_current = i_current / p_initial (for i_current <= i_initial) * t_current = t_initial + ((3/2)(i_current))^(2/3) (for i_current > i_initial) */ // First, separate out the buy into two segments: // 1) the amount of eth going towards ico-price tokens // 2) the amount of eth going towards pyramid-price (variable) tokens uint ethTowardsICOPriceTokens = 0; uint ethTowardsVariablePriceTokens = 0; if (currentEthInvested >= ethInvestedDuringICO) { // Option One: All the ETH goes towards variable-price tokens ethTowardsVariablePriceTokens = _ethereumAmount; } else if (currentEthInvested < ethInvestedDuringICO && currentEthInvested + _ethereumAmount <= ethInvestedDuringICO) { // Option Two: All the ETH goes towards ICO-price tokens ethTowardsICOPriceTokens = _ethereumAmount; } else if (currentEthInvested < ethInvestedDuringICO && currentEthInvested + _ethereumAmount > ethInvestedDuringICO) { // Option Three: Some ETH goes towards ICO-price tokens, some goes towards variable-price tokens ethTowardsICOPriceTokens = ethInvestedDuringICO.sub(currentEthInvested); ethTowardsVariablePriceTokens = _ethereumAmount.sub(ethTowardsICOPriceTokens); } else { // Option Four: Should be impossible, and compiler should optimize it out of existence. revert(); } // Sanity check: assert(ethTowardsICOPriceTokens + ethTowardsVariablePriceTokens == _ethereumAmount); // Separate out the number of tokens of each type this will buy: uint icoPriceTokens = 0; uint varPriceTokens = 0; // Now calculate each one per the above formulas. // Note: since tokens have 18 decimals of precision we multiply the result by 1e18. if (ethTowardsICOPriceTokens != 0) { icoPriceTokens = ethTowardsICOPriceTokens.mul(1e18).div(tokenPriceInitial_); } if (ethTowardsVariablePriceTokens != 0) { // Note: we can't use "currentEthInvested" for this calculation, we must use: // currentEthInvested + ethTowardsICOPriceTokens // This is because a split-buy essentially needs to simulate two separate buys - // including the currentEthInvested update that comes BEFORE variable price tokens are bought! uint simulatedEthBeforeInvested = toPowerOfThreeHalves(tokenSupply.div(MULTIPLIER * 1e6)).mul(2).div(3) + ethTowardsICOPriceTokens; uint simulatedEthAfterInvested = simulatedEthBeforeInvested + ethTowardsVariablePriceTokens; /* We have the equations for total tokens above; note that this is for TOTAL. To get the number of tokens this purchase buys, use the simulatedEthInvestedBefore and the simulatedEthInvestedAfter and calculate the difference in tokens. This is how many we get. */ uint tokensBefore = toPowerOfTwoThirds(simulatedEthBeforeInvested.mul(3).div(2)).mul(MULTIPLIER); uint tokensAfter = toPowerOfTwoThirds(simulatedEthAfterInvested.mul(3).div(2)).mul(MULTIPLIER); /* Note that we could use tokensBefore = tokenSupply + icoPriceTokens instead of dynamically calculating tokensBefore; either should work. Investment IS already multiplied by 1e18; however, because this is taken to a power of (2/3), we need to multiply the result by 1e6 to get back to the correct number of decimals. */ varPriceTokens = (1e6) * tokensAfter.sub(tokensBefore); } uint totalTokensReceived = icoPriceTokens + varPriceTokens; assert(totalTokensReceived > 0); return totalTokensReceived; } // How much Ether we get from selling N tokens function tokensToEthereum_(uint _tokens) public view returns(uint) { require (_tokens >= MIN_TOKEN_SELL_AMOUNT, "Tried to sell too few tokens."); /* * i = investment, p = price, t = number of tokens * * i_current = p_initial * t_current (for t_current <= t_initial) * i_current = i_initial + (2/3)(t_current)^(3/2) (for t_current > t_initial) * * t_current = i_current / p_initial (for i_current <= i_initial) * t_current = t_initial + ((3/2)(i_current))^(2/3) (for i_current > i_initial) */ // First, separate out the sell into two segments: // 1) the amount of tokens selling at the ICO price. // 2) the amount of tokens selling at the variable (pyramid) price uint tokensToSellAtICOPrice = 0; uint tokensToSellAtVariablePrice = 0; if (tokenSupply <= tokensMintedDuringICO) { // Option One: All the tokens sell at the ICO price. tokensToSellAtICOPrice = _tokens; } else if (tokenSupply > tokensMintedDuringICO && tokenSupply - _tokens >= tokensMintedDuringICO) { // Option Two: All the tokens sell at the variable price. tokensToSellAtVariablePrice = _tokens; } else if (tokenSupply > tokensMintedDuringICO && tokenSupply - _tokens < tokensMintedDuringICO) { // Option Three: Some tokens sell at the ICO price, and some sell at the variable price. tokensToSellAtVariablePrice = tokenSupply.sub(tokensMintedDuringICO); tokensToSellAtICOPrice = _tokens.sub(tokensToSellAtVariablePrice); } else { // Option Four: Should be impossible, and the compiler should optimize it out of existence. revert(); } // Sanity check: assert(tokensToSellAtVariablePrice + tokensToSellAtICOPrice == _tokens); // Track how much Ether we get from selling at each price function: uint ethFromICOPriceTokens; uint ethFromVarPriceTokens; // Now, actually calculate: if (tokensToSellAtICOPrice != 0) { /* Here, unlike the sister equation in ethereumToTokens, we DON'T need to multiply by 1e18, since we will be passed in an amount of tokens to sell that's already at the 18-decimal precision. We need to divide by 1e18 or we'll have too much Ether. */ ethFromICOPriceTokens = tokensToSellAtICOPrice.mul(tokenPriceInitial_).div(1e18); } if (tokensToSellAtVariablePrice != 0) { /* Note: Unlike the sister function in ethereumToTokens, we don't have to calculate any "virtual" token count. This is because in sells, we sell the variable price tokens **first**, and then we sell the ICO-price tokens. Thus there isn't any weird stuff going on with the token supply. We have the equations for total investment above; note that this is for TOTAL. To get the eth received from this sell, we calculate the new total investment after this sell. Note that we divide by 1e6 here as the inverse of multiplying by 1e6 in ethereumToTokens. */ uint investmentBefore = toPowerOfThreeHalves(tokenSupply.div(MULTIPLIER * 1e6)).mul(2).div(3); uint investmentAfter = toPowerOfThreeHalves((tokenSupply - tokensToSellAtVariablePrice).div(MULTIPLIER * 1e6)).mul(2).div(3); ethFromVarPriceTokens = investmentBefore.sub(investmentAfter); } uint totalEthReceived = ethFromVarPriceTokens + ethFromICOPriceTokens; assert(totalEthReceived > 0); return totalEthReceived; } function transferFromInternal(address _from, address _toAddress, uint _amountOfTokens, bytes _data) internal { require(regularPhase); require(_toAddress != address(0x0)); address _customerAddress = _from; uint _amountOfFrontEndTokens = _amountOfTokens; // Withdraw all outstanding dividends first (including those generated from referrals). if(theDividendsOf(true, _customerAddress) > 0) withdrawFrom(_customerAddress); // Calculate how many back-end dividend tokens to transfer. // This amount is proportional to the caller's average dividend rate multiplied by the proportion of tokens being transferred. uint _amountOfDivTokens = _amountOfFrontEndTokens.mul(getUserAverageDividendRate(_customerAddress)).div(magnitude); if (_customerAddress != msg.sender){ // Update the allowed balance. // Don't update this if we are transferring our own tokens (via transfer or buyAndTransfer) allowed[_customerAddress][msg.sender] -= _amountOfTokens; } // Exchange tokens frontTokenBalanceLedger_[_customerAddress] = frontTokenBalanceLedger_[_customerAddress].sub(_amountOfFrontEndTokens); frontTokenBalanceLedger_[_toAddress] = frontTokenBalanceLedger_[_toAddress].add(_amountOfFrontEndTokens); dividendTokenBalanceLedger_[_customerAddress] = dividendTokenBalanceLedger_[_customerAddress].sub(_amountOfDivTokens); dividendTokenBalanceLedger_[_toAddress] = dividendTokenBalanceLedger_[_toAddress].add(_amountOfDivTokens); // Recipient inherits dividend percentage if they have not already selected one. if(!userSelectedRate[_toAddress]) { userSelectedRate[_toAddress] = true; userDividendRate[_toAddress] = userDividendRate[_customerAddress]; } // Update dividend trackers payoutsTo_[_customerAddress] -= (int256) (profitPerDivToken * _amountOfDivTokens); payoutsTo_[_toAddress] += (int256) (profitPerDivToken * _amountOfDivTokens); uint length; assembly { length := extcodesize(_toAddress) } if (length > 0){ // its a contract // note: at ethereum update ALL addresses are contracts ERC223Receiving receiver = ERC223Receiving(_toAddress); receiver.tokenFallback(_from, _amountOfTokens, _data); } // Fire logging event. emit Transfer(_customerAddress, _toAddress, _amountOfFrontEndTokens); } // Called from transferFrom. Always checks if _customerAddress has dividends. function withdrawFrom(address _customerAddress) internal { // Setup data uint _dividends = theDividendsOf(false, _customerAddress); // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // add ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; _customerAddress.transfer(_dividends); // Fire logging event. emit onWithdraw(_customerAddress, _dividends); } /*======================= = RESET FUNCTIONS = ======================*/ function injectEther() public payable onlyAdministrator { } /*======================= = MATHS FUNCTIONS = ======================*/ function toPowerOfThreeHalves(uint x) public pure returns (uint) { // m = 3, n = 2 // sqrt(x^3) return sqrt(x**3); } function toPowerOfTwoThirds(uint x) public pure returns (uint) { // m = 2, n = 3 // cbrt(x^2) return cbrt(x**2); } function sqrt(uint x) public pure returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } function cbrt(uint x) public pure returns (uint y) { uint z = (x + 1) / 3; y = x; while (z < y) { y = z; z = (x / (z*z) + 2 * z) / 3; } } } /*======================= = INTERFACES = ======================*/ contract ZethrDividendCards { function ownerOf(uint /*_divCardId*/) public pure returns (address) {} function receiveDividends(uint /*_divCardRate*/) public payable {} } contract ZethrBankroll{ function receiveDividends() public payable {} } contract ERC223Receiving { function tokenFallback(address _from, uint _amountOfTokens, bytes _data) public returns (bool); } // Think it's safe to say y'all know what this is. library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { if (a == 0) { return 0; } uint c = a * b; assert(c / a == b); return c; } function div(uint a, uint b) internal pure returns (uint) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint a, uint b) internal pure returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal pure returns (uint) { uint c = a + b; assert(c >= a); return c; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumICOReceived","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":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"icoHashedPass","outputs":[{"name":"","type":"bytes32"}],"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":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amountOfTokens","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"transferTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"currentEthInvested","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"regularPhase","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[{"name":"_from","type":"address"},{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"},{"name":"target","type":"address"}],"name":"buyAndTransfer","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"startRegularPhase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumAmount","type":"uint256"}],"name":"ethereumToTokens_","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":"publicStartRegularPhase","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":"_customerAddress","type":"address"}],"name":"getFrontEndTokenBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"getDividendTokenBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ethInvestedDuringICO","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"myDividendTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"},{"name":"target","type":"address"},{"name":"_data","type":"bytes"},{"name":"divChoice","type":"uint8"}],"name":"buyAndTransfer","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"x","type":"uint256"}],"name":"sqrt","outputs":[{"name":"y","type":"uint256"}],"payable":false,"stateMutability":"pure","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":"icoPhase","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"injectEther","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"},{"name":"_divChoice","type":"uint8"},{"name":"providedUnhashedPass","type":"string"}],"name":"buyAndSetDivPercentage","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMyAverageDividendRate","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":false,"inputs":[{"name":"_newAdmin","type":"address"},{"name":"_status","type":"bool"}],"name":"setAdministrator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getFrontEndTokenSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"x","type":"uint256"}],"name":"toPowerOfTwoThirds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[],"name":"endICOPhase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"myReferralDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newBankrollAddress","type":"address"}],"name":"changeBankroll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"},{"name":"_customerAddress","type":"address"}],"name":"theDividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMyDividendRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"myFrontEndTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokens","type":"uint256"}],"name":"tokensToEthereum_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"dividendRate","type":"uint256"}],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"startICOPhase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokensMintedDuringICO","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"},{"name":"target","type":"address"},{"name":"_data","type":"bytes"}],"name":"buyAndTransfer","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"x","type":"uint256"}],"name":"cbrt","outputs":[{"name":"y","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"user","type":"address"}],"name":"getUserAverageDividendRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"x","type":"uint256"}],"name":"toPowerOfThreeHalves","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"getDividendTokenSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_bankrollAddress","type":"address"},{"name":"_divCardAddress","type":"address"}],"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":false,"name":"user","type":"address"},{"indexed":false,"name":"divRate","type":"uint256"}],"name":"UserDividendRate","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":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"toBankRoll","type":"uint256"},{"indexed":false,"name":"toReferrer","type":"uint256"},{"indexed":false,"name":"toTokenHolders","type":"uint256"},{"indexed":false,"name":"toDivCardHolders","type":"uint256"},{"indexed":false,"name":"forTokens","type":"uint256"}],"name":"Allocation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"referrer","type":"address"},{"indexed":false,"name":"amountReceived","type":"uint256"}],"name":"Referral","type":"event"}]
Contract Creation Code
68056bc75e2d6310000060005560c0604052600560808190527f5a6574687200000000000000000000000000000000000000000000000000000060a09081526200004d9160019190620003bb565b506040805180820190915260038082527f5a5448000000000000000000000000000000000000000000000000000000000060209092019182526200009491600291620003bb565b50600060118190556012556015805461ffff19169055348015620000b757600080fd5b5060405160408062003108833981016040908152815160209283015160038054600160a060020a03938416600160a060020a0319918216178255600480549385169390911692909217909155601484527f171fe9b6ae47001032b795df1761b84c937dceb72432c649f44d4aaffd2ea1a7805460ff1990811660019081179092557f7870a27a92c4fd98d2f2864af250db797b9c9dce5a6a0222297e639e319a69f080548216831790557f09e71a2f20ae7bc619cbec0114b39edc3658855e729d71c0d332284f44e97ed280548216831790557fdb0000804a104c11a767a9f24a0e890a2db18ab97682a00e8a1bd64199dd3e8280548216831790557f502af99fb0cb773f88872b846f408db84811567408db78014159e87b73e07d0f80548216831790557f4c41f233be10d05f16aa09bc6a3df73aa9058f568ece33f6882dc293c9a0c95b80548216831790557f6a1ff9a67a6057e6f1093c99646188ca891b641a4474f07c7d3bd691b12dd03d80548216831790557f8de9f4014509ac0687ba336f3e47043ff99631883ea9a2b0810a12ce3445c11e805482168317905533600090815285812080548316841790557f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea904180548316841790557f91238f30f286c9a1c6e901c4eda3b214c381c846e3dbe48df95c21488e8e1fdb80548316841790557f586689db7536874b78a6eac0f58556a56a106985743f7c16a699b27bb02f88bd80548316841790557f8fab3b3b6d3bf24f9b00213fe8dda2fb1e188fcd88f523fcb711ff1f6aed59e380548316841790557fbb1110247bce6eaaf3cb168d5660645ab99866afefe1e7c6fa4388014157e5ba80548316841790557f18fd5681ae57cb24534810e7d412d5f5690a9c6f8b4cd1522e2df7c22ae0888680548316841790557f1e00437c059ded11d56fbc0f9acb2b99126636f749097c5c8224b228fcea6fe18054831684179055835485168152600987528581208054831690931790925591549092168252600a909352208054909116602117905562000460565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003fe57805160ff19168380011785556200042e565b828001600101855582156200042e579182015b828111156200042e57825182559160200191906001019062000411565b506200043c92915062000440565b5090565b6200045d91905b808211156200043c576000815560010162000447565b90565b612c9880620004706000396000f3006080604052600436106102de5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461036857806303d499ef1461039b57806306fdde03146103b0578063095ea7b31461043a5780630c3c450e1461047257806310d0ffdd1461048757806318160ddd1461049f57806319fb361f146104b45780631b1686b614610525578063214dda841461053a578063226093731461054f57806323b872dd14610567578063269a7c3f1461059157806327dffba6146105ab5780632a9121c7146105c0578063313ce567146105d85780633c7d6f30146106035780634b750334146106185780634c146f381461062d578063513920411461064e57806351cff8d91461066f57806356d399e8146106905780635c658165146106a55780635ccb5460146106cc5780636135e084146106e1578063627aa6d2146106f6578063677342ce1461075d578063688abbf71461077557806368955fb11461078f5780636a3a2119146107a45780636b2f4632146107ac57806370a08231146107c1578063724fcd4c146107e257806376be1585146108415780637b89eef2146108625780638328b6101461087757806387c950581461088f57806395d89b41146108b557806396242f411461049f578063965447d9146108ca578063a3a06c54146108e2578063a6d87f7d146108f7578063a78bcf6e1461090c578063a9059cbb1461092d578063b1f253f614610951578063b607068c14610977578063b84c82461461098c578063bcaa218e146109e5578063bf3b397b146109fa578063c47f002714610a12578063c4dbf62214610a6b578063ccb5336514610a83578063d161b56a14610a98578063e4849b3214610aad578063e9fad8ee14610ac5578063f088d54714610ada578063f2f8569f14610aee578063f42c56c214610b50578063f8ead7cf14610b68578063fdb5a03e14610b89578063fdc89f7314610b9e578063ffcb1edb14610bb6575b601554600090610100900460ff1615156102f757600080fd5b503360008181526009602052604090205460ff16156103215761031b346000610bcb565b50610365565b610363600060146040805190810160405280600381526020017f307830000000000000000000000000000000000000000000000000000000000081525061119f565b505b50005b34801561037457600080fd5b50610389600160a060020a0360043516611344565b60408051918252519081900360200190f35b3480156103a757600080fd5b5061038961137f565b3480156103bc57600080fd5b506103c5611386565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ff5781810151838201526020016103e7565b50505050905090810190601f16801561042c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561044657600080fd5b5061045e600160a060020a0360043516602435611413565b604080519115158252519081900360200190f35b34801561047e57600080fd5b50610389611480565b34801561049357600080fd5b506103896004356114a4565b3480156104ab57600080fd5b506103896114fb565b3480156104c057600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261052394600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506115019650505050505050565b005b34801561053157600080fd5b506103896115c7565b34801561054657600080fd5b5061045e6115cd565b34801561055b57600080fd5b506103896004356115db565b34801561057357600080fd5b5061045e600160a060020a0360043581169060243516604435611646565b610523600160a060020a03600435811690602435166116ca565b3480156105b757600080fd5b506105236116de565b3480156105cc57600080fd5b5061038960043561170e565b3480156105e457600080fd5b506105ed61197c565b6040805160ff9092168252519081900360200190f35b34801561060f57600080fd5b50610523611981565b34801561062457600080fd5b506103896119b4565b34801561063957600080fd5b50610389600160a060020a0360043516611a57565b34801561065a57600080fd5b50610389600160a060020a0360043516611a72565b34801561067b57600080fd5b50610523600160a060020a0360043516611a8d565b34801561069c57600080fd5b50610389611b8e565b3480156106b157600080fd5b50610389600160a060020a0360043581169060243516611b94565b3480156106d857600080fd5b50610389611bb1565b3480156106ed57600080fd5b50610389611bb7565b604080516020600460443581810135601f8101849004840285018401909552848452610523948235600160a060020a03908116956024803590921695369594606494929301919081908401838280828437509497505050923560ff169350611bca92505050565b34801561076957600080fd5b50610389600435611ca3565b34801561078157600080fd5b506103896004351515611cde565b34801561079b57600080fd5b5061045e611d1f565b610523611d28565b3480156107b857600080fd5b50610389611d49565b3480156107cd57600080fd5b50610389600160a060020a0360043516611d4e565b604080516020600460443581810135601f8101849004840285018401909552848452610389948235600160a060020a0316946024803560ff169536959460649492019190819084018382808284375094975061119f9650505050505050565b34801561084d57600080fd5b5061045e600160a060020a0360043516611d5f565b34801561086e57600080fd5b50610389611d74565b34801561088357600080fd5b50610523600435611d84565b34801561089b57600080fd5b50610523600160a060020a03600435166024351515611dbe565b3480156108c157600080fd5b506103c5611e08565b3480156108d657600080fd5b50610389600435611e60565b3480156108ee57600080fd5b50610523611e6e565b34801561090357600080fd5b50610389611e99565b34801561091857600080fd5b50610523600160a060020a0360043516611eb5565b34801561093957600080fd5b5061045e600160a060020a0360043516602435611f03565b34801561095d57600080fd5b506103896004351515600160a060020a0360243516611f60565b34801561098357600080fd5b506105ed611f92565b34801561099857600080fd5b506040805160206004803580820135601f8101849004840285018401909552848452610523943694929360249392840191908190840183828082843750949750611fd39650505050505050565b3480156109f157600080fd5b50610389612004565b348015610a0657600080fd5b50610389600435612010565b348015610a1e57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526105239436949293602493928401919081908401838280828437509497506121d79650505050505050565b348015610a7757600080fd5b50610389600435612208565b348015610a8f57600080fd5b5061052361228d565b348015610aa457600080fd5b506103896122cc565b348015610ab957600080fd5b506105236004356122d2565b348015610ad157600080fd5b50610523612519565b610389600160a060020a0360043516612564565b604080516020600460443581810135601f8101849004840285018401909552848452610523948235600160a060020a03908116956024803590921695369594606494929301919081908401838280828437509497506125af9650505050505050565b348015610b5c57600080fd5b506103896004356125bc565b348015610b7457600080fd5b50610389600160a060020a03600435166125f6565b348015610b9557600080fd5b50610523612637565b348015610baa57600080fd5b50610389600435612703565b348015610bc257600080fd5b50610389612711565b600080600080600080600080600080600080655af3107a40008e101580610bfc5750600354600160a060020a031633145b1515610c8f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f547269656420746f206275792062656c6f7720746865206d696e20657468206260448201527f7579696e207468726573686f6c642e0000000000000000000000000000000000606482015290519081900360840190fd5b6015548e9450610100900460ff1615610cc857610cb38e606463ffffffff61271716565b9750610cc5848963ffffffff61272e16565b93505b336000908152600a602052604090205460ff169150610cfe6064610cf2868563ffffffff61274016565b9063ffffffff61271716565b9650610d10848863ffffffff61272e16565b60155490945060ff168015610d2f5750600354600160a060020a031633145b15610d3957928601925b610d428461170e565b9550610d54868363ffffffff61274016565b601154909550610d6a908763ffffffff61276b16565b601155601254610d80908663ffffffff61276b16565b601255601080548501905560155460ff1615610e6957600354969a508a96600160a060020a0316331415610db35760009a505b600f8054850190819055600e80548801905560009a508a9950680d8d726b7177a800001015610de157600080fd5b32331480610df95750600354600160a060020a031633145b1515610e0457600080fd5b336000908152600d602052604090208054850190819055670de0b6b3a7640000101580610e3b5750600354600160a060020a031633145b1515610e4657600080fd5b680d8d726b7177a80000600f541415610e64576015805460ff191690555b610fb2565b600160a060020a038d1615801590610e8a5750600160a060020a038d163314155b8015610eaf575060008054600160a060020a038f168252600560205260409091205410155b15610f2557610eca6064610cf289601963ffffffff61274016565b600160a060020a038e166000818152600b6020908152604091829020805485019055815192835282018390528051929c507f5db31c63b6c985d138b0b2896458c45ecf94b259da29b7623bdef92b5853d0cd92918290030190a15b610f35878b63ffffffff61272e16565b601254909950680100000000000000008a02935083811515610f5357fe5b048502830383039250610f90610f81601254610cf2680100000000000000008d61274090919063ffffffff16565b6013549063ffffffff61276b16565b6013819055336000908152600c60205260409020805491870285900390910190555b33600090815260056020526040902054610fd2908763ffffffff61276b16565b33600090815260056020908152604080832093909355600690522054610ffe908663ffffffff61276b16565b336000908152600660205260409020558a1561109a57600360009054906101000a9004600160a060020a0316600160a060020a03166379fc46878c6040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016000604051808303818588803b15801561108057600080fd5b505af1158015611094573d6000803e3d6000fd5b50505050505b601554610100900460ff161561112b5760048054604080517ff2c7d33100000000000000000000000000000000000000000000000000000000815292830185905251600160a060020a039091169163f2c7d331918b9160248082019260009290919082900301818588803b15801561111157600080fd5b505af1158015611125573d6000803e3d6000fd5b50505050505b604080518c8152602081018c90528082018b9052606081018a90526080810186905290517f7dcbb47dfce2f719d7e1984fd3345bbf7923b236005b64931d95b9205100de829181900360a00190a1508989018801870183018d9003801561118e57fe5b505050505050505050505092915050565b6015546000908190819060ff16806111be5750601554610100900460ff165b15156111c957600080fd5b60155460ff16156112a457836040518082805190602001908083835b602083106112045780518252601f1990920191602091820191016111e5565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209450507f5ddcde33b94b19bdef79dd9ea75be591942b9ec78286d64b44a356280fb6a2628414915081905061126c5750600354600160a060020a031633145b151561127757600080fd5b503a640ba43b740081118015906112995750680d8d726b7177a80000600f5411155b15156112a457600080fd5b60ff8086166000908152600860205260409020541615156112c457600080fd5b336000818152600960209081526040808320805460ff19908116600117909155600a835292819020805460ff8b1694168417905580519384529083019190915280517fc95fc9f67beb97905ada724494d1acfcaa30a3c96b432a0eac1824899f9f97c29281900390910190a161133a3487610bcb565b5050509392505050565b600160a060020a03166000908152600c6020908152604080832054600690925290912054601354680100000000000000009102919091030490565b600f545b90565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561140b5780601f106113e05761010080835404028352916020019161140b565b820191906000526020600020905b8154815290600101906020018083116113ee57829003601f168201915b505050505081565b336000818152600760209081526040808320600160a060020a03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a3600191505b5092915050565b7f5ddcde33b94b19bdef79dd9ea75be591942b9ec78286d64b44a356280fb6a26281565b336000908152600a60205260408120548190819081906114d590606490610cf290889060ff1663ffffffff61274016565b92506114e7858463ffffffff61272e16565b91506114f28261170e565b95945050505050565b60115490565b600160a060020a038416331461157d576402540be400821015801561153e5750600160a060020a0384166000908152600560205260409020548211155b801561156d5750600160a060020a03841660009081526007602090815260408083203384529091529020548211155b151561157857600080fd5b6115b5565b6402540be40082101580156115aa5750600160a060020a0384166000908152600560205260409020548211155b15156115b557600080fd5b6115c18484848461277a565b50505050565b60105481565b601554610100900460ff1681565b600080600080600060115486111515156115f457600080fd5b6115fd86612010565b9350611608336125f6565b925061162a68010000000000000000610cf2606481888863ffffffff61274016565b915061163c848363ffffffff61272e16565b9695505050505050565b60008360606402540be40084108015906116785750600160a060020a0382166000908152600560205260409020548411155b80156116a75750600160a060020a03821660009081526007602090815260408083203384529091529020548411155b15156116b257600080fd5b6116be8686868461277a565b50600195945050505050565b60606116d98383836014611bca565b505050565b3360008181526014602052604090205460ff1615156116fc57600080fd5b506015805461ffff1916610100179055565b6000808080808080808080655af3107a40008b116117b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f547269656420746f2062757920746f6b656e73207769746820746f6f206c697460448201527f746c65206574682e000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60155460ff16156117e6576117d58b660251e66909d00063ffffffff61271716565b670de0b6b3a764000002995061196e565b600f5460105460009a508a995010611800578a9750611876565b600f546010541080156118195750600f548b6010540111155b15611826578a9850611876565b600f5460105410801561183e5750600f548b60105401115b1561187157601054600f546118589163ffffffff61272e16565b985061186a8b8a63ffffffff61272e16565b9750611876565b600080fd5b8888018b1461188157fe5b6000965086955088156118b4576118b1660251e66909d000610cf28b670de0b6b3a764000063ffffffff61274016565b96505b871561195c57886118f56003610cf260026118e96118e461258f620f42400260115461271790919063ffffffff16565b612703565b9063ffffffff61274016565b019450878501935061192161258f6118e961191c6002610cf28a600363ffffffff61274016565b611e60565b925061194261258f6118e961191c6002610cf289600363ffffffff61274016565b9150611954828463ffffffff61272e16565b620f42400295505b508585016000811161196a57fe5b8099505b505050505050505050919050565b601281565b601654621275000142118015611998575060165415155b15156119a357600080fd5b6015805461ffff1916610100179055565b60155460009081908190819060ff16806119d15750600f54601054105b156119e557660251e66909d0009250611a14565b6119f566038d7ea4c6800061170e565b9150816d314dc6448d9338c15b0a00000000811515611a1057fe5b0492505b611a4f611a4268010000000000000000610cf26064610cf2611a35336125f6565b899063ffffffff61274016565b849063ffffffff61272e16565b949350505050565b600160a060020a031660009081526005602052604090205490565b600160a060020a031660009081526006602052604090205490565b6000806000611a9c6001611cde565b11611aa657600080fd5b601554610100900460ff161515611abc57600080fd5b339150611ac96000611cde565b600160a060020a038084166000908152600c602090815260408083208054680100000000000000008702019055600b90915281208054919055909101915083161515611b13573392505b604051600160a060020a0384169082156108fc029083906000818181858888f19350505050158015611b49573d6000803e3d6000fd5b50604080518281529051600160a060020a038516917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a2505050565b60005481565b600760209081526000928352604080842090915290825290205481565b600f5481565b600033611bc381611a72565b91505b5090565b6000806000601560019054906101000a900460ff161515611bea57600080fd5b33600081815260056020908152604080832054600990925290912054919450925060ff168015611c1b575060ff8416155b15611c3057611c2a3488610bcb565b50611c72565b611c7087856040805190810160405280600381526020017f307830000000000000000000000000000000000000000000000000000000000081525061119f565b505b33600090815260056020526040902054611c8c908361272e565b9050611c9a33878388611501565b50505050505050565b80600260018201045b81811015611cd8578091506002818285811515611cc557fe5b0401811515611cd057fe5b049050611cac565b50919050565b60003382611cf457611cef81611344565b611d18565b600160a060020a0381166000908152600b6020526040902054611d1682611344565b015b9392505050565b60155460ff1681565b3360008181526014602052604090205460ff161515611d4657600080fd5b50565b303190565b6000611d5982611a57565b92915050565b60146020526000908152604090205460ff1681565b6000611d7f336125f6565b905090565b3360008181526014602052604090205460ff161515611da257600080fd5b68056bc75e2d63100000821015611db857600080fd5b50600055565b3360008181526014602052604090205460ff161515611ddc57600080fd5b50600160a060020a03919091166000908152601460205260409020805460ff1916911515919091179055565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561140b5780601f106113e05761010080835404028352916020019161140b565b6000611d596002830a6125bc565b3360008181526014602052604090205460ff161515611e8c57600080fd5b506015805460ff19169055565b6000611ea56000611cde565b611eaf6001611cde565b03905090565b3360008181526014602052604090205460ff161515611ed357600080fd5b506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600060606000611f11612004565b11611f1b57600080fd5b6402540be4008310158015611f3f5750336000908152600560205260409020548311155b1515611f4a57600080fd5b611f563385858461277a565b5060019392505050565b600082611f7057611cef82611344565b600160a060020a0382166000908152600b6020526040902054611d1683611344565b3360008181526009602052604081205490919060ff161515611fb357600080fd5b600160a060020a03166000908152600a602052604090205460ff16919050565b3360008181526014602052604090205460ff161515611ff157600080fd5b81516116d9906002906020850190612bde565b600033611bc381611a57565b600080808080808080655af3107a400089101561208e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f547269656420746f2073656c6c20746f6f2066657720746f6b656e732e000000604482015290519081900360640190fd5b600e5460115460009850889750116120a857889650612115565b600e546011541180156120c15750600e54896011540310155b156120ce57889550612115565b600e546011541180156120e65750600e548960115403105b1561187157600e546011546121009163ffffffff61272e16565b9550612112898763ffffffff61272e16565b96505b858701891461212057fe5b861561214c57612149670de0b6b3a7640000610cf289660251e66909d00063ffffffff61274016565b94505b85156121bd5761217b6003610cf260026118e96118e461258f620f42400260115461271790919063ffffffff16565b92506121a86003610cf260026118e96118e461258f620f4240028c6011540361271790919063ffffffff16565b91506121ba838363ffffffff61272e16565b93505b50828401600081116121cb57fe5b98975050505050505050565b3360008181526014602052604090205460ff1615156121f557600080fd5b81516116d9906001906020850190612bde565b60155460009081908190819060ff16806122255750600f54601054105b1561223957660251e66909d0009250612268565b61224966038d7ea4c6800061170e565b9150816d314dc6448d9338c15b0a0000000081151561226457fe5b0492505b6114f2836122816064610cf2838a63ffffffff61274016565b9063ffffffff61276b16565b3360008181526014602052604090205460ff1615156122ab57600080fd5b601654156122b857600080fd5b506015805460ff1916600117905542601655565b600e5481565b6000806000806000806000806122e6612004565b116122f057600080fd5b60155460ff161561230057600080fd5b601554610100900460ff16151561231657600080fd5b3360009081526005602052604090205488111561233257600080fd5b87965061233e336125f6565b95506802000000000000000086108015906123625750683200000000000000008611155b151561236d57600080fd5b61238a68010000000000000000610cf2898963ffffffff61274016565b945061239587612010565b93506010548411156123ab5760006010556123b5565b6010805485900390555b6123d368010000000000000000610cf26064610cf2611a35336125f6565b92506123e5848463ffffffff61272e16565b6011549092506123fb908863ffffffff61272e16565b601155601254612411908663ffffffff61272e16565b60125533600090815260056020526040902054612434908863ffffffff61272e16565b33600090815260056020908152604080832093909355600690522054612460908663ffffffff61272e16565b33600090815260066020908152604080832093909355601354600c90915291812080549288026801000000000000000086020192839003905560125491925010156124d5576124d16012546801000000000000000085028115156124c057fe5b60135491900463ffffffff61276b16565b6013555b6040805188815260208101849052815133927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050565b6015546000908190610100900460ff16151561253457600080fd5b5050336000818152600560205260408120549081111561255757612557816122d2565b61256082611a8d565b5050565b6015546000908190610100900460ff16151561257f57600080fd5b503360008181526009602052604090205460ff16151561259e57600080fd5b6125a83484610bcb565b5050919050565b6116d98383836014611bca565b80600360018201045b81811015611cd857809150600381600202828302858115156125e357fe5b04018115156125ee57fe5b0490506125c5565b600160a060020a0381166000908152600560209081526040808320546006909252822054611d5991680100000000000000009091029063ffffffff61271716565b6000806000806126476001611cde565b1161265157600080fd5b601554610100900460ff16151561266757600080fd5b6126716000611cde565b336000818152600c602090815260408083208054680100000000000000008702019055600b9091528120805490829055909201945092506126b3908490610bcb565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b6000611d596003830a611ca3565b60125490565b600080828481151561272557fe5b04949350505050565b60008282111561273a57fe5b50900390565b6000808315156127535760009150611479565b5082820282848281151561276357fe5b0414611d1857fe5b600082820183811015611d1857fe5b6000806000806000601560019054906101000a900460ff16151561279d57600080fd5b600160a060020a03881615156127b257600080fd5b88945086935060006127c5600187611f60565b11156127d4576127d485612b24565b6127fa68010000000000000000610cf26127ed886125f6565b879063ffffffff61274016565b9250600160a060020a038516331461283757600160a060020a03851660009081526007602090815260408083203384529091529020805488900390555b600160a060020a038516600090815260056020526040902054612860908563ffffffff61272e16565b600160a060020a0380871660009081526005602052604080822093909355908a1681522054612895908563ffffffff61276b16565b600160a060020a03808a166000908152600560209081526040808320949094559188168152600690915220546128d1908463ffffffff61272e16565b600160a060020a0380871660009081526006602052604080822093909355908a1681522054612906908463ffffffff61276b16565b600160a060020a03891660009081526006602090815260408083209390935560099052205460ff16151561298057600160a060020a038089166000818152600960209081526040808320805460ff19908116600117909155948a168352600a909152808220549282529020805490921660ff919091161790555b60138054600160a060020a038781166000908152600c602052604080822080549489029094039093559254908b16835290822080549186029091019055883b9250821115612ace57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301908152602483018990526060604484019081528851606485015288518b949385169363c0ee0b8a938e938d938d9360840190602085019080838360005b83811015612a53578181015183820152602001612a3b565b50505050905090810190601f168015612a805780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015612aa157600080fd5b505af1158015612ab5573d6000803e3d6000fd5b505050506040513d6020811015612acb57600080fd5b50505b87600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a3505050505050505050565b6000612b31600083611f60565b600160a060020a0383166000818152600c602090815260408083208054680100000000000000008702019055600b909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015612b9a573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612c1f57805160ff1916838001178555612c4c565b82800160010185558215612c4c579182015b82811115612c4c578251825591602001919060010190612c31565b50611bc6926113839250905b80821115611bc65760008155600101612c585600a165627a7a72305820a323ee92271ea466dd0197814f29e7eb399e1f32135b9163c9ae2e826d700fed00290000000000000000000000007430984e1d05d5f447c747123dd26845f6f175440000000000000000000000005a1dbff1a772bc35f53c77509b4dc1624c65e6ec
Deployed Bytecode
0x6080604052600436106102de5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461036857806303d499ef1461039b57806306fdde03146103b0578063095ea7b31461043a5780630c3c450e1461047257806310d0ffdd1461048757806318160ddd1461049f57806319fb361f146104b45780631b1686b614610525578063214dda841461053a578063226093731461054f57806323b872dd14610567578063269a7c3f1461059157806327dffba6146105ab5780632a9121c7146105c0578063313ce567146105d85780633c7d6f30146106035780634b750334146106185780634c146f381461062d578063513920411461064e57806351cff8d91461066f57806356d399e8146106905780635c658165146106a55780635ccb5460146106cc5780636135e084146106e1578063627aa6d2146106f6578063677342ce1461075d578063688abbf71461077557806368955fb11461078f5780636a3a2119146107a45780636b2f4632146107ac57806370a08231146107c1578063724fcd4c146107e257806376be1585146108415780637b89eef2146108625780638328b6101461087757806387c950581461088f57806395d89b41146108b557806396242f411461049f578063965447d9146108ca578063a3a06c54146108e2578063a6d87f7d146108f7578063a78bcf6e1461090c578063a9059cbb1461092d578063b1f253f614610951578063b607068c14610977578063b84c82461461098c578063bcaa218e146109e5578063bf3b397b146109fa578063c47f002714610a12578063c4dbf62214610a6b578063ccb5336514610a83578063d161b56a14610a98578063e4849b3214610aad578063e9fad8ee14610ac5578063f088d54714610ada578063f2f8569f14610aee578063f42c56c214610b50578063f8ead7cf14610b68578063fdb5a03e14610b89578063fdc89f7314610b9e578063ffcb1edb14610bb6575b601554600090610100900460ff1615156102f757600080fd5b503360008181526009602052604090205460ff16156103215761031b346000610bcb565b50610365565b610363600060146040805190810160405280600381526020017f307830000000000000000000000000000000000000000000000000000000000081525061119f565b505b50005b34801561037457600080fd5b50610389600160a060020a0360043516611344565b60408051918252519081900360200190f35b3480156103a757600080fd5b5061038961137f565b3480156103bc57600080fd5b506103c5611386565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ff5781810151838201526020016103e7565b50505050905090810190601f16801561042c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561044657600080fd5b5061045e600160a060020a0360043516602435611413565b604080519115158252519081900360200190f35b34801561047e57600080fd5b50610389611480565b34801561049357600080fd5b506103896004356114a4565b3480156104ab57600080fd5b506103896114fb565b3480156104c057600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261052394600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506115019650505050505050565b005b34801561053157600080fd5b506103896115c7565b34801561054657600080fd5b5061045e6115cd565b34801561055b57600080fd5b506103896004356115db565b34801561057357600080fd5b5061045e600160a060020a0360043581169060243516604435611646565b610523600160a060020a03600435811690602435166116ca565b3480156105b757600080fd5b506105236116de565b3480156105cc57600080fd5b5061038960043561170e565b3480156105e457600080fd5b506105ed61197c565b6040805160ff9092168252519081900360200190f35b34801561060f57600080fd5b50610523611981565b34801561062457600080fd5b506103896119b4565b34801561063957600080fd5b50610389600160a060020a0360043516611a57565b34801561065a57600080fd5b50610389600160a060020a0360043516611a72565b34801561067b57600080fd5b50610523600160a060020a0360043516611a8d565b34801561069c57600080fd5b50610389611b8e565b3480156106b157600080fd5b50610389600160a060020a0360043581169060243516611b94565b3480156106d857600080fd5b50610389611bb1565b3480156106ed57600080fd5b50610389611bb7565b604080516020600460443581810135601f8101849004840285018401909552848452610523948235600160a060020a03908116956024803590921695369594606494929301919081908401838280828437509497505050923560ff169350611bca92505050565b34801561076957600080fd5b50610389600435611ca3565b34801561078157600080fd5b506103896004351515611cde565b34801561079b57600080fd5b5061045e611d1f565b610523611d28565b3480156107b857600080fd5b50610389611d49565b3480156107cd57600080fd5b50610389600160a060020a0360043516611d4e565b604080516020600460443581810135601f8101849004840285018401909552848452610389948235600160a060020a0316946024803560ff169536959460649492019190819084018382808284375094975061119f9650505050505050565b34801561084d57600080fd5b5061045e600160a060020a0360043516611d5f565b34801561086e57600080fd5b50610389611d74565b34801561088357600080fd5b50610523600435611d84565b34801561089b57600080fd5b50610523600160a060020a03600435166024351515611dbe565b3480156108c157600080fd5b506103c5611e08565b3480156108d657600080fd5b50610389600435611e60565b3480156108ee57600080fd5b50610523611e6e565b34801561090357600080fd5b50610389611e99565b34801561091857600080fd5b50610523600160a060020a0360043516611eb5565b34801561093957600080fd5b5061045e600160a060020a0360043516602435611f03565b34801561095d57600080fd5b506103896004351515600160a060020a0360243516611f60565b34801561098357600080fd5b506105ed611f92565b34801561099857600080fd5b506040805160206004803580820135601f8101849004840285018401909552848452610523943694929360249392840191908190840183828082843750949750611fd39650505050505050565b3480156109f157600080fd5b50610389612004565b348015610a0657600080fd5b50610389600435612010565b348015610a1e57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526105239436949293602493928401919081908401838280828437509497506121d79650505050505050565b348015610a7757600080fd5b50610389600435612208565b348015610a8f57600080fd5b5061052361228d565b348015610aa457600080fd5b506103896122cc565b348015610ab957600080fd5b506105236004356122d2565b348015610ad157600080fd5b50610523612519565b610389600160a060020a0360043516612564565b604080516020600460443581810135601f8101849004840285018401909552848452610523948235600160a060020a03908116956024803590921695369594606494929301919081908401838280828437509497506125af9650505050505050565b348015610b5c57600080fd5b506103896004356125bc565b348015610b7457600080fd5b50610389600160a060020a03600435166125f6565b348015610b9557600080fd5b50610523612637565b348015610baa57600080fd5b50610389600435612703565b348015610bc257600080fd5b50610389612711565b600080600080600080600080600080600080655af3107a40008e101580610bfc5750600354600160a060020a031633145b1515610c8f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f547269656420746f206275792062656c6f7720746865206d696e20657468206260448201527f7579696e207468726573686f6c642e0000000000000000000000000000000000606482015290519081900360840190fd5b6015548e9450610100900460ff1615610cc857610cb38e606463ffffffff61271716565b9750610cc5848963ffffffff61272e16565b93505b336000908152600a602052604090205460ff169150610cfe6064610cf2868563ffffffff61274016565b9063ffffffff61271716565b9650610d10848863ffffffff61272e16565b60155490945060ff168015610d2f5750600354600160a060020a031633145b15610d3957928601925b610d428461170e565b9550610d54868363ffffffff61274016565b601154909550610d6a908763ffffffff61276b16565b601155601254610d80908663ffffffff61276b16565b601255601080548501905560155460ff1615610e6957600354969a508a96600160a060020a0316331415610db35760009a505b600f8054850190819055600e80548801905560009a508a9950680d8d726b7177a800001015610de157600080fd5b32331480610df95750600354600160a060020a031633145b1515610e0457600080fd5b336000908152600d602052604090208054850190819055670de0b6b3a7640000101580610e3b5750600354600160a060020a031633145b1515610e4657600080fd5b680d8d726b7177a80000600f541415610e64576015805460ff191690555b610fb2565b600160a060020a038d1615801590610e8a5750600160a060020a038d163314155b8015610eaf575060008054600160a060020a038f168252600560205260409091205410155b15610f2557610eca6064610cf289601963ffffffff61274016565b600160a060020a038e166000818152600b6020908152604091829020805485019055815192835282018390528051929c507f5db31c63b6c985d138b0b2896458c45ecf94b259da29b7623bdef92b5853d0cd92918290030190a15b610f35878b63ffffffff61272e16565b601254909950680100000000000000008a02935083811515610f5357fe5b048502830383039250610f90610f81601254610cf2680100000000000000008d61274090919063ffffffff16565b6013549063ffffffff61276b16565b6013819055336000908152600c60205260409020805491870285900390910190555b33600090815260056020526040902054610fd2908763ffffffff61276b16565b33600090815260056020908152604080832093909355600690522054610ffe908663ffffffff61276b16565b336000908152600660205260409020558a1561109a57600360009054906101000a9004600160a060020a0316600160a060020a03166379fc46878c6040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016000604051808303818588803b15801561108057600080fd5b505af1158015611094573d6000803e3d6000fd5b50505050505b601554610100900460ff161561112b5760048054604080517ff2c7d33100000000000000000000000000000000000000000000000000000000815292830185905251600160a060020a039091169163f2c7d331918b9160248082019260009290919082900301818588803b15801561111157600080fd5b505af1158015611125573d6000803e3d6000fd5b50505050505b604080518c8152602081018c90528082018b9052606081018a90526080810186905290517f7dcbb47dfce2f719d7e1984fd3345bbf7923b236005b64931d95b9205100de829181900360a00190a1508989018801870183018d9003801561118e57fe5b505050505050505050505092915050565b6015546000908190819060ff16806111be5750601554610100900460ff165b15156111c957600080fd5b60155460ff16156112a457836040518082805190602001908083835b602083106112045780518252601f1990920191602091820191016111e5565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209450507f5ddcde33b94b19bdef79dd9ea75be591942b9ec78286d64b44a356280fb6a2628414915081905061126c5750600354600160a060020a031633145b151561127757600080fd5b503a640ba43b740081118015906112995750680d8d726b7177a80000600f5411155b15156112a457600080fd5b60ff8086166000908152600860205260409020541615156112c457600080fd5b336000818152600960209081526040808320805460ff19908116600117909155600a835292819020805460ff8b1694168417905580519384529083019190915280517fc95fc9f67beb97905ada724494d1acfcaa30a3c96b432a0eac1824899f9f97c29281900390910190a161133a3487610bcb565b5050509392505050565b600160a060020a03166000908152600c6020908152604080832054600690925290912054601354680100000000000000009102919091030490565b600f545b90565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561140b5780601f106113e05761010080835404028352916020019161140b565b820191906000526020600020905b8154815290600101906020018083116113ee57829003601f168201915b505050505081565b336000818152600760209081526040808320600160a060020a03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a3600191505b5092915050565b7f5ddcde33b94b19bdef79dd9ea75be591942b9ec78286d64b44a356280fb6a26281565b336000908152600a60205260408120548190819081906114d590606490610cf290889060ff1663ffffffff61274016565b92506114e7858463ffffffff61272e16565b91506114f28261170e565b95945050505050565b60115490565b600160a060020a038416331461157d576402540be400821015801561153e5750600160a060020a0384166000908152600560205260409020548211155b801561156d5750600160a060020a03841660009081526007602090815260408083203384529091529020548211155b151561157857600080fd5b6115b5565b6402540be40082101580156115aa5750600160a060020a0384166000908152600560205260409020548211155b15156115b557600080fd5b6115c18484848461277a565b50505050565b60105481565b601554610100900460ff1681565b600080600080600060115486111515156115f457600080fd5b6115fd86612010565b9350611608336125f6565b925061162a68010000000000000000610cf2606481888863ffffffff61274016565b915061163c848363ffffffff61272e16565b9695505050505050565b60008360606402540be40084108015906116785750600160a060020a0382166000908152600560205260409020548411155b80156116a75750600160a060020a03821660009081526007602090815260408083203384529091529020548411155b15156116b257600080fd5b6116be8686868461277a565b50600195945050505050565b60606116d98383836014611bca565b505050565b3360008181526014602052604090205460ff1615156116fc57600080fd5b506015805461ffff1916610100179055565b6000808080808080808080655af3107a40008b116117b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f547269656420746f2062757920746f6b656e73207769746820746f6f206c697460448201527f746c65206574682e000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60155460ff16156117e6576117d58b660251e66909d00063ffffffff61271716565b670de0b6b3a764000002995061196e565b600f5460105460009a508a995010611800578a9750611876565b600f546010541080156118195750600f548b6010540111155b15611826578a9850611876565b600f5460105410801561183e5750600f548b60105401115b1561187157601054600f546118589163ffffffff61272e16565b985061186a8b8a63ffffffff61272e16565b9750611876565b600080fd5b8888018b1461188157fe5b6000965086955088156118b4576118b1660251e66909d000610cf28b670de0b6b3a764000063ffffffff61274016565b96505b871561195c57886118f56003610cf260026118e96118e461258f620f42400260115461271790919063ffffffff16565b612703565b9063ffffffff61274016565b019450878501935061192161258f6118e961191c6002610cf28a600363ffffffff61274016565b611e60565b925061194261258f6118e961191c6002610cf289600363ffffffff61274016565b9150611954828463ffffffff61272e16565b620f42400295505b508585016000811161196a57fe5b8099505b505050505050505050919050565b601281565b601654621275000142118015611998575060165415155b15156119a357600080fd5b6015805461ffff1916610100179055565b60155460009081908190819060ff16806119d15750600f54601054105b156119e557660251e66909d0009250611a14565b6119f566038d7ea4c6800061170e565b9150816d314dc6448d9338c15b0a00000000811515611a1057fe5b0492505b611a4f611a4268010000000000000000610cf26064610cf2611a35336125f6565b899063ffffffff61274016565b849063ffffffff61272e16565b949350505050565b600160a060020a031660009081526005602052604090205490565b600160a060020a031660009081526006602052604090205490565b6000806000611a9c6001611cde565b11611aa657600080fd5b601554610100900460ff161515611abc57600080fd5b339150611ac96000611cde565b600160a060020a038084166000908152600c602090815260408083208054680100000000000000008702019055600b90915281208054919055909101915083161515611b13573392505b604051600160a060020a0384169082156108fc029083906000818181858888f19350505050158015611b49573d6000803e3d6000fd5b50604080518281529051600160a060020a038516917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a2505050565b60005481565b600760209081526000928352604080842090915290825290205481565b600f5481565b600033611bc381611a72565b91505b5090565b6000806000601560019054906101000a900460ff161515611bea57600080fd5b33600081815260056020908152604080832054600990925290912054919450925060ff168015611c1b575060ff8416155b15611c3057611c2a3488610bcb565b50611c72565b611c7087856040805190810160405280600381526020017f307830000000000000000000000000000000000000000000000000000000000081525061119f565b505b33600090815260056020526040902054611c8c908361272e565b9050611c9a33878388611501565b50505050505050565b80600260018201045b81811015611cd8578091506002818285811515611cc557fe5b0401811515611cd057fe5b049050611cac565b50919050565b60003382611cf457611cef81611344565b611d18565b600160a060020a0381166000908152600b6020526040902054611d1682611344565b015b9392505050565b60155460ff1681565b3360008181526014602052604090205460ff161515611d4657600080fd5b50565b303190565b6000611d5982611a57565b92915050565b60146020526000908152604090205460ff1681565b6000611d7f336125f6565b905090565b3360008181526014602052604090205460ff161515611da257600080fd5b68056bc75e2d63100000821015611db857600080fd5b50600055565b3360008181526014602052604090205460ff161515611ddc57600080fd5b50600160a060020a03919091166000908152601460205260409020805460ff1916911515919091179055565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561140b5780601f106113e05761010080835404028352916020019161140b565b6000611d596002830a6125bc565b3360008181526014602052604090205460ff161515611e8c57600080fd5b506015805460ff19169055565b6000611ea56000611cde565b611eaf6001611cde565b03905090565b3360008181526014602052604090205460ff161515611ed357600080fd5b506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600060606000611f11612004565b11611f1b57600080fd5b6402540be4008310158015611f3f5750336000908152600560205260409020548311155b1515611f4a57600080fd5b611f563385858461277a565b5060019392505050565b600082611f7057611cef82611344565b600160a060020a0382166000908152600b6020526040902054611d1683611344565b3360008181526009602052604081205490919060ff161515611fb357600080fd5b600160a060020a03166000908152600a602052604090205460ff16919050565b3360008181526014602052604090205460ff161515611ff157600080fd5b81516116d9906002906020850190612bde565b600033611bc381611a57565b600080808080808080655af3107a400089101561208e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f547269656420746f2073656c6c20746f6f2066657720746f6b656e732e000000604482015290519081900360640190fd5b600e5460115460009850889750116120a857889650612115565b600e546011541180156120c15750600e54896011540310155b156120ce57889550612115565b600e546011541180156120e65750600e548960115403105b1561187157600e546011546121009163ffffffff61272e16565b9550612112898763ffffffff61272e16565b96505b858701891461212057fe5b861561214c57612149670de0b6b3a7640000610cf289660251e66909d00063ffffffff61274016565b94505b85156121bd5761217b6003610cf260026118e96118e461258f620f42400260115461271790919063ffffffff16565b92506121a86003610cf260026118e96118e461258f620f4240028c6011540361271790919063ffffffff16565b91506121ba838363ffffffff61272e16565b93505b50828401600081116121cb57fe5b98975050505050505050565b3360008181526014602052604090205460ff1615156121f557600080fd5b81516116d9906001906020850190612bde565b60155460009081908190819060ff16806122255750600f54601054105b1561223957660251e66909d0009250612268565b61224966038d7ea4c6800061170e565b9150816d314dc6448d9338c15b0a0000000081151561226457fe5b0492505b6114f2836122816064610cf2838a63ffffffff61274016565b9063ffffffff61276b16565b3360008181526014602052604090205460ff1615156122ab57600080fd5b601654156122b857600080fd5b506015805460ff1916600117905542601655565b600e5481565b6000806000806000806000806122e6612004565b116122f057600080fd5b60155460ff161561230057600080fd5b601554610100900460ff16151561231657600080fd5b3360009081526005602052604090205488111561233257600080fd5b87965061233e336125f6565b95506802000000000000000086108015906123625750683200000000000000008611155b151561236d57600080fd5b61238a68010000000000000000610cf2898963ffffffff61274016565b945061239587612010565b93506010548411156123ab5760006010556123b5565b6010805485900390555b6123d368010000000000000000610cf26064610cf2611a35336125f6565b92506123e5848463ffffffff61272e16565b6011549092506123fb908863ffffffff61272e16565b601155601254612411908663ffffffff61272e16565b60125533600090815260056020526040902054612434908863ffffffff61272e16565b33600090815260056020908152604080832093909355600690522054612460908663ffffffff61272e16565b33600090815260066020908152604080832093909355601354600c90915291812080549288026801000000000000000086020192839003905560125491925010156124d5576124d16012546801000000000000000085028115156124c057fe5b60135491900463ffffffff61276b16565b6013555b6040805188815260208101849052815133927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050565b6015546000908190610100900460ff16151561253457600080fd5b5050336000818152600560205260408120549081111561255757612557816122d2565b61256082611a8d565b5050565b6015546000908190610100900460ff16151561257f57600080fd5b503360008181526009602052604090205460ff16151561259e57600080fd5b6125a83484610bcb565b5050919050565b6116d98383836014611bca565b80600360018201045b81811015611cd857809150600381600202828302858115156125e357fe5b04018115156125ee57fe5b0490506125c5565b600160a060020a0381166000908152600560209081526040808320546006909252822054611d5991680100000000000000009091029063ffffffff61271716565b6000806000806126476001611cde565b1161265157600080fd5b601554610100900460ff16151561266757600080fd5b6126716000611cde565b336000818152600c602090815260408083208054680100000000000000008702019055600b9091528120805490829055909201945092506126b3908490610bcb565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b6000611d596003830a611ca3565b60125490565b600080828481151561272557fe5b04949350505050565b60008282111561273a57fe5b50900390565b6000808315156127535760009150611479565b5082820282848281151561276357fe5b0414611d1857fe5b600082820183811015611d1857fe5b6000806000806000601560019054906101000a900460ff16151561279d57600080fd5b600160a060020a03881615156127b257600080fd5b88945086935060006127c5600187611f60565b11156127d4576127d485612b24565b6127fa68010000000000000000610cf26127ed886125f6565b879063ffffffff61274016565b9250600160a060020a038516331461283757600160a060020a03851660009081526007602090815260408083203384529091529020805488900390555b600160a060020a038516600090815260056020526040902054612860908563ffffffff61272e16565b600160a060020a0380871660009081526005602052604080822093909355908a1681522054612895908563ffffffff61276b16565b600160a060020a03808a166000908152600560209081526040808320949094559188168152600690915220546128d1908463ffffffff61272e16565b600160a060020a0380871660009081526006602052604080822093909355908a1681522054612906908463ffffffff61276b16565b600160a060020a03891660009081526006602090815260408083209390935560099052205460ff16151561298057600160a060020a038089166000818152600960209081526040808320805460ff19908116600117909155948a168352600a909152808220549282529020805490921660ff919091161790555b60138054600160a060020a038781166000908152600c602052604080822080549489029094039093559254908b16835290822080549186029091019055883b9250821115612ace57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301908152602483018990526060604484019081528851606485015288518b949385169363c0ee0b8a938e938d938d9360840190602085019080838360005b83811015612a53578181015183820152602001612a3b565b50505050905090810190601f168015612a805780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015612aa157600080fd5b505af1158015612ab5573d6000803e3d6000fd5b505050506040513d6020811015612acb57600080fd5b50505b87600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a3505050505050505050565b6000612b31600083611f60565b600160a060020a0383166000818152600c602090815260408083208054680100000000000000008702019055600b909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015612b9a573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612c1f57805160ff1916838001178555612c4c565b82800160010185558215612c4c579182015b82811115612c4c578251825591602001919060010190612c31565b50611bc6926113839250905b80821115611bc65760008155600101612c585600a165627a7a72305820a323ee92271ea466dd0197814f29e7eb399e1f32135b9163c9ae2e826d700fed0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007430984e1d05d5f447c747123dd26845f6f175440000000000000000000000005a1dbff1a772bc35f53c77509b4dc1624c65e6ec
-----Decoded View---------------
Arg [0] : _bankrollAddress (address): 0x7430984e1D05d5F447c747123dd26845f6f17544
Arg [1] : _divCardAddress (address): 0x5a1DbFF1a772bC35F53C77509B4dC1624c65e6Ec
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007430984e1d05d5f447c747123dd26845f6f17544
Arg [1] : 0000000000000000000000005a1dbff1a772bc35f53c77509b4dc1624c65e6ec
Swarm Source
bzzr://a323ee92271ea466dd0197814f29e7eb399e1f32135b9163c9ae2e826d700fed
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.