ERC-20
Overview
Max Total Supply
14,228.518503940121389511 Jiggs
Holders
17
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
8,316.787282643063104286 JiggsValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
JiggsRezurrection
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-14 */ pragma solidity ^0.4.21; /* * JIGSAW IS BACK * * YOU TOUGHT THE GAME WAS OVER? THINK AGAIN * ARE YOU READY TO PARTICIPATE? OR ARE YOU AFRAID? MAKE JIGSAW LAUGH! * https://discord.gg/ZxEja6a * Jiggs.io is the only official website! * Only 1 token to activate your masterkey * 20% IN / 20% OUT / 33% MASTERNODE - DONT LIKE IT? STAY AWAY! DIVIDENDS LOVERS ONLY! * NO FUNNY ADMINISTRATOR/AMBASSADOR FUNCTIONS, FREEDOM TO EVERYONE! * NO DEV FEES, WHO NEED DEV FEES IF THE SITE KEEPS RUNNING FOR $10 A MONTH? WHAT A BULLSHIT * WE STAY REAL, 5% CHARITY FEE TO SEND JIGSAW ON VACATION, STRAIGHT TO THE POINT */ contract JiggsRezurrection { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStronghands() { require(myDividends(true) > 0); _; } modifier notContract() { require (msg.sender == tx.origin); _; } /*============================== = EVENTS = ==============================*/ event onTokenPurchase( address indexed customerAddress, uint256 incomingEthereum, uint256 tokensMinted, address indexed referredBy ); event onTokenSell( address indexed customerAddress, uint256 tokensBurned, uint256 ethereumEarned ); event onReinvestment( address indexed customerAddress, uint256 ethereumReinvested, uint256 tokensMinted ); event onWithdraw( address indexed customerAddress, uint256 ethereumWithdrawn ); // ERC20 event Transfer( address indexed from, address indexed to, uint256 tokens ); /*===================================== = CONFIGURABLES = =====================================*/ string public name = "Jiggs Rezurrection"; string public symbol = "Jiggs"; uint8 constant public decimals = 18; uint8 constant internal dividendFee_ = 20; // FOR DIV LOVERS ONLY, THE AIR IS FOR FREE uint8 constant internal charityFee_ = 5; // 5% CHARITY TO SEND JIGSAW ON VACATION uint256 constant internal tokenPriceInitial_ = 0.000000000001 ether; uint256 constant internal tokenPriceIncremental_ = 0.000000001 ether; uint256 constant internal magnitude = 2**64; address constant public giveEthCharityAddress = 0xE40FFEA88309174321ef230e10bfcCC7c2687f76; uint256 public totalEthCharityRecieved; // WHAT IS SEND TO JIGSAW..? uint256 public totalEthCharityCollected; // HOW MANY FLIGHT TICKETS CAN WE PURCHASE FOR JIGSAW? // NO BULLSHIT, ONLY 1 TOKEN NEEDED, WE TAKE ALREADY 20% OF YOUR ETH uint256 public stakingRequirement = 1e18; /*================================ = DATASETS = ================================*/ // amount of shares for each address (scaled number) mapping(address => uint256) internal tokenBalanceLedger_; mapping(address => uint256) internal referralBalance_; mapping(address => int256) internal payoutsTo_; mapping(address => uint256) internal ambassadorAccumulatedQuota_; uint256 internal tokenSupply_ = 0; uint256 internal profitPerShare_; /*======================================= = PUBLIC FUNCTIONS = =======================================*/ /* * -- APPLICATION ENTRY POINTS -- */ function JiggsR() public { } /** * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any) */ function buy(address _referredBy) public payable returns(uint256) { purchaseInternal(msg.value, _referredBy); } /** * Fallback function to handle ethereum that was send straight to the contract * Unfortunately we cannot use a referral address this way. */ function() payable public { purchaseInternal(msg.value, 0x0); } function payCharity() payable public { uint256 ethToPay = SafeMath.sub(totalEthCharityCollected, totalEthCharityRecieved); require(ethToPay > 1); totalEthCharityRecieved = SafeMath.add(totalEthCharityRecieved, ethToPay); if(!giveEthCharityAddress.call.value(ethToPay).gas(400000)()) { totalEthCharityRecieved = SafeMath.sub(totalEthCharityRecieved, ethToPay); } } /** * Converts all of caller's dividends to tokens. */ function reinvest() onlyStronghands() public { // fetch dividends uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code // pay out the dividends virtually address _customerAddress = msg.sender; payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // retrieve ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // dispatch a buy order with the virtualized "withdrawn dividends" uint256 _tokens = purchaseTokens(_dividends, 0x0); // fire event onReinvestment(_customerAddress, _dividends, _tokens); } /** * Alias of sell() and withdraw(). */ function exit() public { // get token count for caller & sell them all address _customerAddress = msg.sender; uint256 _tokens = tokenBalanceLedger_[_customerAddress]; if(_tokens > 0) sell(_tokens); // lambo delivery service withdraw(); } /** * Withdraws all of the callers earnings. */ function withdraw() onlyStronghands() public { // setup data address _customerAddress = msg.sender; uint256 _dividends = myDividends(false); // get ref. bonus later in the code // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // add ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // lambo delivery service _customerAddress.transfer(_dividends); // fire event onWithdraw(_customerAddress, _dividends); } /** * Liquifies tokens to ethereum. */ function sell(uint256 _amountOfTokens) onlyBagholders() public { // setup data address _customerAddress = msg.sender; // russian hackers BTFO require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); uint256 _tokens = _amountOfTokens; uint256 _ethereum = tokensToEthereum_(_tokens); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); // Take out dividends and then _charityPayout uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout); // Add ethereum to send to charity totalEthCharityCollected = SafeMath.add(totalEthCharityCollected, _charityPayout); // burn the sold tokens tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens); tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens); // update dividends tracker int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude)); payoutsTo_[_customerAddress] -= _updatedPayouts; // dividing by zero is a bad idea if (tokenSupply_ > 0) { // update the amount of dividends per token profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_); } // fire event onTokenSell(_customerAddress, _tokens, _taxedEthereum); } /** * Transfer tokens from the caller to a new holder. * REMEMBER THIS IS 0% TRANSFER FEE */ function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders() public returns(bool) { // setup address _customerAddress = msg.sender; // make sure we have the requested tokens // also disables transfers until ambassador phase is over // ( we dont want whale premines ) require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); // withdraw all outstanding dividends first if(myDividends(true) > 0) withdraw(); // exchange tokens tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens); tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _amountOfTokens); // update dividend trackers payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens); payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _amountOfTokens); // fire event Transfer(_customerAddress, _toAddress, _amountOfTokens); // ERC20 return true; } /*---------- HELPERS AND CALCULATORS ----------*/ /** * Method to view the current Ethereum stored in the contract * Example: totalEthereumBalance() */ function totalEthereumBalance() public view returns(uint) { return this.balance; } /** * Retrieve the total token supply. */ function totalSupply() public view returns(uint256) { return tokenSupply_; } /** * Retrieve the tokens owned by the caller. */ function myTokens() public view returns(uint256) { address _customerAddress = msg.sender; return balanceOf(_customerAddress); } /** * Retrieve the dividends owned by the caller. * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations. * The reason for this, is that in the frontend, we will want to get the total divs (global + ref) * But in the internal calculations, we want them separate. */ function myDividends(bool _includeReferralBonus) public view returns(uint256) { address _customerAddress = msg.sender; return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ; } /** * Retrieve the token balance of any single address. */ function balanceOf(address _customerAddress) view public returns(uint256) { return tokenBalanceLedger_[_customerAddress]; } /** * Retrieve the dividend balance of any single address. */ function dividendsOf(address _customerAddress) view public returns(uint256) { return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude; } /** * Return the buy price of 1 individual token. */ function sellPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ - tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout); return _taxedEthereum; } } /** * Return the sell price of 1 individual token. */ function buyPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ + tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); uint256 _taxedEthereum = SafeMath.add(SafeMath.add(_ethereum, _dividends), _charityPayout); return _taxedEthereum; } } /** * Function for the frontend to dynamically retrieve the price scaling of buy orders. */ function calculateTokensReceived(uint256 _ethereumToSpend) public view returns(uint256) { uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereumToSpend, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereumToSpend, charityFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereumToSpend, _dividends), _charityPayout); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); return _amountOfTokens; } /** * Function for the frontend to dynamically retrieve the price scaling of sell orders. */ function calculateEthereumReceived(uint256 _tokensToSell) public view returns(uint256) { require(_tokensToSell <= tokenSupply_); uint256 _ethereum = tokensToEthereum_(_tokensToSell); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout); return _taxedEthereum; } /** * Function for the frontend to show ether waiting to be send to charity in contract */ function etherToSendCharity() public view returns(uint256) { return SafeMath.sub(totalEthCharityCollected, totalEthCharityRecieved); } /*========================================== = INTERNAL FUNCTIONS = ==========================================*/ // Make sure we will send back excess if user sends more then 5 ether before 100 ETH in contract function purchaseInternal(uint256 _incomingEthereum, address _referredBy) notContract()// no contracts allowed internal returns(uint256) { uint256 purchaseEthereum = _incomingEthereum; uint256 excess; if(purchaseEthereum > 5 ether) { // check if the transaction is over 5 ether if (SafeMath.sub(address(this).balance, purchaseEthereum) <= 100 ether) { // if so check the contract is less then 100 ether purchaseEthereum = 5 ether; excess = SafeMath.sub(_incomingEthereum, purchaseEthereum); } } purchaseTokens(purchaseEthereum, _referredBy); if (excess > 0) { msg.sender.transfer(excess); } } function purchaseTokens(uint256 _incomingEthereum, address _referredBy) internal returns(uint256) { // data setup uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, dividendFee_), 100); uint256 _referralBonus = SafeMath.div(_undividedDividends, 3); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_incomingEthereum, charityFee_), 100); uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_incomingEthereum, _undividedDividends), _charityPayout); totalEthCharityCollected = SafeMath.add(totalEthCharityCollected, _charityPayout); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); uint256 _fee = _dividends * magnitude; // no point in continuing execution if OP is a poorfag russian hacker // prevents overflow in the case that the pyramid somehow magically starts being used by everyone in the world // (or hackers) // and yes we know that the safemath function automatically rules out the "greater then" equasion. require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_)); // is the user referred by a masternode? if( // is this a referred purchase? _referredBy != 0x0000000000000000000000000000000000000000 && // no cheating! _referredBy != msg.sender && // does the referrer have at least X whole tokens? // i.e is the referrer a godly chad masternode tokenBalanceLedger_[_referredBy] >= stakingRequirement ){ // wealth redistribution referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus); } else { // no ref purchase // add the referral bonus back to the global dividends cake _dividends = SafeMath.add(_dividends, _referralBonus); _fee = _dividends * magnitude; } // we can't give people infinite ethereum if(tokenSupply_ > 0){ // add tokens to the pool tokenSupply_ = SafeMath.add(tokenSupply_, _amountOfTokens); // take the amount of dividends gained through this transaction, and allocates them evenly to each shareholder profitPerShare_ += (_dividends * magnitude / (tokenSupply_)); // calculate the amount of tokens the customer receives over his purchase _fee = _fee - (_fee-(_amountOfTokens * (_dividends * magnitude / (tokenSupply_)))); } else { // add tokens to the pool tokenSupply_ = _amountOfTokens; } // update circulating supply & the ledger address for the customer tokenBalanceLedger_[msg.sender] = SafeMath.add(tokenBalanceLedger_[msg.sender], _amountOfTokens); // Tells the contract that the buyer doesn't deserve dividends for the tokens before they owned them; //really i know you think you do but you don't int256 _updatedPayouts = (int256) ((profitPerShare_ * _amountOfTokens) - _fee); payoutsTo_[msg.sender] += _updatedPayouts; // fire event onTokenPurchase(msg.sender, _incomingEthereum, _amountOfTokens, _referredBy); return _amountOfTokens; } /** * Calculate Token price based on an amount of incoming ethereum * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */ function ethereumToTokens_(uint256 _ethereum) internal view returns(uint256) { uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18; uint256 _tokensReceived = ( ( // underflow attempts BTFO SafeMath.sub( (sqrt ( (_tokenPriceInitial**2) + (2*(tokenPriceIncremental_ * 1e18)*(_ethereum * 1e18)) + (((tokenPriceIncremental_)**2)*(tokenSupply_**2)) + (2*(tokenPriceIncremental_)*_tokenPriceInitial*tokenSupply_) ) ), _tokenPriceInitial ) )/(tokenPriceIncremental_) )-(tokenSupply_) ; return _tokensReceived; } /** * Calculate token sell value. * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */ function tokensToEthereum_(uint256 _tokens) internal view returns(uint256) { uint256 tokens_ = (_tokens + 1e18); uint256 _tokenSupply = (tokenSupply_ + 1e18); uint256 _etherReceived = ( // underflow attempts BTFO SafeMath.sub( ( ( ( tokenPriceInitial_ +(tokenPriceIncremental_ * (_tokenSupply/1e18)) )-tokenPriceIncremental_ )*(tokens_ - 1e18) ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2 ) /1e18); return _etherReceived; } //This is where all your gas goes, sorry //Not sorry, you probably only paid 1 gwei function sqrt(uint x) internal pure returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } }
Contract 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":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumToSpend","type":"uint256"}],"name":"calculateTokensReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"etherToSendCharity","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"payCharity","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthCharityRecieved","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"giveEthCharityAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthCharityCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"JiggsR","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"},{"indexed":true,"name":"referredBy","type":"address"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
60c0604052601260808190527f4a696767732052657a757272656374696f6e000000000000000000000000000060a0908152620000409160009190620000ad565b506040805180820190915260058082527f4a6967677300000000000000000000000000000000000000000000000000000060209092019182526200008791600191620000ad565b50670de0b6b3a76400006004556000600955348015620000a657600080fd5b5062000152565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000f057805160ff191683800117855562000120565b8280016001018555821562000120579182015b828111156200012057825182559160200191906001019062000103565b506200012e92915062000132565b5090565b6200014f91905b808211156200012e576000815560010162000139565b90565b61117080620001626000396000f3006080604052600436106101525763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016057806306fdde031461019357806310d0ffdd1461021d57806318160ddd14610235578063226093731461024a578063313ce567146102625780633b545d2f1461028d5780633ccfd60b146102a25780634071f89b146102b95780634b750334146102c157806356d399e8146102d6578063688abbf7146102eb5780636b2f46321461030557806370a082311461031a5780638620410b1461033b57806391a266ac14610350578063949e8acd1461036557806395d89b411461037a578063a9059cbb1461038f578063b743f7b6146103c7578063cbe0a1aa146103f8578063e35c606b1461040d578063e4849b3214610422578063e9fad8ee1461043a578063f088d5471461044f578063fdb5a03e14610463575b61015d346000610478565b50005b34801561016c57600080fd5b50610181600160a060020a0360043516610518565b60408051918252519081900360200190f35b34801561019f57600080fd5b506101a8610553565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e25781810151838201526020016101ca565b50505050905090810190601f16801561020f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561022957600080fd5b506101816004356105e1565b34801561024157600080fd5b50610181610636565b34801561025657600080fd5b5061018160043561063c565b34801561026e57600080fd5b50610277610693565b6040805160ff9092168252519081900360200190f35b34801561029957600080fd5b50610181610698565b3480156102ae57600080fd5b506102b76106ad565b005b6102b7610780565b3480156102cd57600080fd5b506101816107f5565b3480156102e257600080fd5b50610181610862565b3480156102f757600080fd5b506101816004351515610868565b34801561031157600080fd5b506101816108ab565b34801561032657600080fd5b50610181600160a060020a03600435166108b0565b34801561034757600080fd5b506101816108cb565b34801561035c57600080fd5b50610181610930565b34801561037157600080fd5b50610181610936565b34801561038657600080fd5b506101a8610948565b34801561039b57600080fd5b506103b3600160a060020a03600435166024356109a2565b604080519115158252519081900360200190f35b3480156103d357600080fd5b506103dc610ad1565b60408051600160a060020a039092168252519081900360200190f35b34801561040457600080fd5b50610181610ae9565b34801561041957600080fd5b506102b7610aef565b34801561042e57600080fd5b506102b7600435610af1565b34801561044657600080fd5b506102b7610c70565b610181600160a060020a0360043516610c9d565b34801561046f57600080fd5b506102b7610ca9565b6000808033321461048857600080fd5b849150674563918244f400008211156104cd5768056bc75e2d631000006104b0303184610d5f565b116104cd57674563918244f4000091506104ca8583610d5f565b90505b6104d78285610d71565b50600081111561051057604051339082156108fc029083906000818181858888f1935050505015801561050e573d6000803e3d6000fd5b505b505092915050565b600160a060020a0316600090815260076020908152604080832054600590925290912054600a54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105d95780601f106105ae576101008083540402835291602001916105d9565b820191906000526020600020905b8154815290600101906020018083116105bc57829003601f168201915b505050505081565b6000808080806105fc6105f5876014610fc3565b6064610ff5565b935061060c6105f5876005610fc3565b925061062161061b8786610d5f565b84610d5f565b915061062c8261100c565b9695505050505050565b60095490565b6000806000806000600954861115151561065557600080fd5b61065e86611096565b935061066e6105f5856014610fc3565b925061067e6105f5856005610fc3565b915061062c61068d8585610d5f565b83610d5f565b601281565b60006106a8600354600254610d5f565b905090565b60008060006106bc6001610868565b116106c657600080fd5b3391506106d36000610868565b600160a060020a038316600081815260076020908152604080832080546801000000000000000087020190556006909152808220805490839055905193019350909183156108fc0291849190818181858888f1935050505015801561073c573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b6000610790600354600254610d5f565b90506001811161079f57600080fd5b6107ab60025482611100565b60025560405173e40ffea88309174321ef230e10bfccc7c2687f769062061a809083906000818181858888f1935050505015156107f2576107ee60025482610d5f565b6002555b50565b60008060008060006009546000141561081557633b8b87bf19945061085b565b610826670de0b6b3a7640000611096565b93506108366105f5856014610fc3565b92506108466105f5856005610fc3565b915061085561068d8585610d5f565b90508094505b5050505090565b60045481565b6000338261087e5761087981610518565b6108a2565b600160a060020a0381166000908152600660205260409020546108a082610518565b015b91505b50919050565b303190565b600160a060020a031660009081526005602052604090205490565b6000806000806000600954600014156108ea57633baa0c40945061085b565b6108fb670de0b6b3a7640000611096565b935061090b6105f5856014610fc3565b925061091b6105f5856005610fc3565b915061085561092a8585611100565b83611100565b60025481565b600033610942816108b0565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105d95780601f106105ae576101008083540402835291602001916105d9565b60008060006109af610936565b116109b957600080fd5b50336000818152600560205260409020548311156109d657600080fd5b60006109e26001610868565b11156109f0576109f06106ad565b600160a060020a038116600090815260056020526040902054610a139084610d5f565b600160a060020a038083166000908152600560205260408082209390935590861681522054610a429084611100565b600160a060020a03858116600081815260056020908152604080832095909555600a8054948716808452600783528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b73e40ffea88309174321ef230e10bfccc7c2687f7681565b60035481565b565b600080600080600080600080610b05610936565b11610b0f57600080fd5b33600081815260056020526040902054909750881115610b2e57600080fd5b879550610b3a86611096565b9450610b4a6105f5866014610fc3565b9350610b5a6105f5866005610fc3565b9250610b6961061b8686610d5f565b9150610b7760035484611100565b600355600954610b879087610d5f565b600955600160a060020a038716600090815260056020526040902054610bad9087610d5f565b600160a060020a038816600090815260056020908152604080832093909355600a5460079091529181208054928902680100000000000000008602019283900390556009549192501015610c2357610c1f600a54600954680100000000000000008702811515610c1957fe5b04611100565b600a555b60408051878152602081018490528151600160a060020a038a16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050565b3360008181526005602052604081205490811115610c9157610c9181610af1565b610c996106ad565b5050565b60006108a53483610478565b600080600080610cb96001610868565b11610cc357600080fd5b610ccd6000610868565b33600081815260076020908152604080832080546801000000000000000087020190556006909152812080549082905590920194509250610d0f908490610d71565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600082821115610d6b57fe5b50900390565b60008080808080808080610d896105f58c6014610fc3565b9750610d96886003610ff5565b9650610da66105f58c6005610fc3565b9550610db28888610d5f565b9450610dc7610dc18c8a610d5f565b87610d5f565b9350610dd560035487611100565b600355610de18461100c565b92506801000000000000000085029150600083118015610e0b5750600954610e098482611100565b115b1515610e1657600080fd5b600160a060020a038a1615801590610e375750600160a060020a038a163314155b8015610e5d5750600454600160a060020a038b1660009081526005602052604090205410155b15610ea357600160a060020a038a16600090815260066020526040902054610e859088611100565b600160a060020a038b16600090815260066020526040902055610ebe565b610ead8588611100565b945068010000000000000000850291505b60006009541115610f2257610ed560095484611100565b6009819055680100000000000000008602811515610eef57fe5b600a8054929091049091019055600954680100000000000000008602811515610f1457fe5b048302820382039150610f28565b60098390555b33600090815260056020526040902054610f429084611100565b33600081815260056020908152604080832094909455600a5460078252918490208054928802879003928301905583518f81529081018790528351919450600160a060020a038e16937f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d592918290030190a350909998505050505050505050565b600080831515610fd65760009150610aca565b50828202828482811515610fe657fe5b0414610fee57fe5b9392505050565b600080828481151561100357fe5b04949350505050565b60095460009069d3c21bcecceda1000000908290633b9aca0061108361107d7259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016d629b8c891b267182b6140000000085020173af298d050e4395d69670b12b7f410000000000000161110f565b85610d5f565b81151561108c57fe5b0403949350505050565b600954600090670de0b6b3a76400008381019181019083906110ed633b8b87bf19828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca00028115156110e757fe5b04610d5f565b8115156110f657fe5b0495945050505050565b600082820183811015610fee57fe5b80600260018201045b818110156108a557809150600281828581151561113157fe5b040181151561113c57fe5b0490506111185600a165627a7a723058201209fac2d96ac2b4ee1a994b291632e1a12bb416f8822474aa675b3e21a2d3c90029
Deployed Bytecode
0x6080604052600436106101525763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016057806306fdde031461019357806310d0ffdd1461021d57806318160ddd14610235578063226093731461024a578063313ce567146102625780633b545d2f1461028d5780633ccfd60b146102a25780634071f89b146102b95780634b750334146102c157806356d399e8146102d6578063688abbf7146102eb5780636b2f46321461030557806370a082311461031a5780638620410b1461033b57806391a266ac14610350578063949e8acd1461036557806395d89b411461037a578063a9059cbb1461038f578063b743f7b6146103c7578063cbe0a1aa146103f8578063e35c606b1461040d578063e4849b3214610422578063e9fad8ee1461043a578063f088d5471461044f578063fdb5a03e14610463575b61015d346000610478565b50005b34801561016c57600080fd5b50610181600160a060020a0360043516610518565b60408051918252519081900360200190f35b34801561019f57600080fd5b506101a8610553565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e25781810151838201526020016101ca565b50505050905090810190601f16801561020f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561022957600080fd5b506101816004356105e1565b34801561024157600080fd5b50610181610636565b34801561025657600080fd5b5061018160043561063c565b34801561026e57600080fd5b50610277610693565b6040805160ff9092168252519081900360200190f35b34801561029957600080fd5b50610181610698565b3480156102ae57600080fd5b506102b76106ad565b005b6102b7610780565b3480156102cd57600080fd5b506101816107f5565b3480156102e257600080fd5b50610181610862565b3480156102f757600080fd5b506101816004351515610868565b34801561031157600080fd5b506101816108ab565b34801561032657600080fd5b50610181600160a060020a03600435166108b0565b34801561034757600080fd5b506101816108cb565b34801561035c57600080fd5b50610181610930565b34801561037157600080fd5b50610181610936565b34801561038657600080fd5b506101a8610948565b34801561039b57600080fd5b506103b3600160a060020a03600435166024356109a2565b604080519115158252519081900360200190f35b3480156103d357600080fd5b506103dc610ad1565b60408051600160a060020a039092168252519081900360200190f35b34801561040457600080fd5b50610181610ae9565b34801561041957600080fd5b506102b7610aef565b34801561042e57600080fd5b506102b7600435610af1565b34801561044657600080fd5b506102b7610c70565b610181600160a060020a0360043516610c9d565b34801561046f57600080fd5b506102b7610ca9565b6000808033321461048857600080fd5b849150674563918244f400008211156104cd5768056bc75e2d631000006104b0303184610d5f565b116104cd57674563918244f4000091506104ca8583610d5f565b90505b6104d78285610d71565b50600081111561051057604051339082156108fc029083906000818181858888f1935050505015801561050e573d6000803e3d6000fd5b505b505092915050565b600160a060020a0316600090815260076020908152604080832054600590925290912054600a54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105d95780601f106105ae576101008083540402835291602001916105d9565b820191906000526020600020905b8154815290600101906020018083116105bc57829003601f168201915b505050505081565b6000808080806105fc6105f5876014610fc3565b6064610ff5565b935061060c6105f5876005610fc3565b925061062161061b8786610d5f565b84610d5f565b915061062c8261100c565b9695505050505050565b60095490565b6000806000806000600954861115151561065557600080fd5b61065e86611096565b935061066e6105f5856014610fc3565b925061067e6105f5856005610fc3565b915061062c61068d8585610d5f565b83610d5f565b601281565b60006106a8600354600254610d5f565b905090565b60008060006106bc6001610868565b116106c657600080fd5b3391506106d36000610868565b600160a060020a038316600081815260076020908152604080832080546801000000000000000087020190556006909152808220805490839055905193019350909183156108fc0291849190818181858888f1935050505015801561073c573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b6000610790600354600254610d5f565b90506001811161079f57600080fd5b6107ab60025482611100565b60025560405173e40ffea88309174321ef230e10bfccc7c2687f769062061a809083906000818181858888f1935050505015156107f2576107ee60025482610d5f565b6002555b50565b60008060008060006009546000141561081557633b8b87bf19945061085b565b610826670de0b6b3a7640000611096565b93506108366105f5856014610fc3565b92506108466105f5856005610fc3565b915061085561068d8585610d5f565b90508094505b5050505090565b60045481565b6000338261087e5761087981610518565b6108a2565b600160a060020a0381166000908152600660205260409020546108a082610518565b015b91505b50919050565b303190565b600160a060020a031660009081526005602052604090205490565b6000806000806000600954600014156108ea57633baa0c40945061085b565b6108fb670de0b6b3a7640000611096565b935061090b6105f5856014610fc3565b925061091b6105f5856005610fc3565b915061085561092a8585611100565b83611100565b60025481565b600033610942816108b0565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105d95780601f106105ae576101008083540402835291602001916105d9565b60008060006109af610936565b116109b957600080fd5b50336000818152600560205260409020548311156109d657600080fd5b60006109e26001610868565b11156109f0576109f06106ad565b600160a060020a038116600090815260056020526040902054610a139084610d5f565b600160a060020a038083166000908152600560205260408082209390935590861681522054610a429084611100565b600160a060020a03858116600081815260056020908152604080832095909555600a8054948716808452600783528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b73e40ffea88309174321ef230e10bfccc7c2687f7681565b60035481565b565b600080600080600080600080610b05610936565b11610b0f57600080fd5b33600081815260056020526040902054909750881115610b2e57600080fd5b879550610b3a86611096565b9450610b4a6105f5866014610fc3565b9350610b5a6105f5866005610fc3565b9250610b6961061b8686610d5f565b9150610b7760035484611100565b600355600954610b879087610d5f565b600955600160a060020a038716600090815260056020526040902054610bad9087610d5f565b600160a060020a038816600090815260056020908152604080832093909355600a5460079091529181208054928902680100000000000000008602019283900390556009549192501015610c2357610c1f600a54600954680100000000000000008702811515610c1957fe5b04611100565b600a555b60408051878152602081018490528151600160a060020a038a16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050565b3360008181526005602052604081205490811115610c9157610c9181610af1565b610c996106ad565b5050565b60006108a53483610478565b600080600080610cb96001610868565b11610cc357600080fd5b610ccd6000610868565b33600081815260076020908152604080832080546801000000000000000087020190556006909152812080549082905590920194509250610d0f908490610d71565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600082821115610d6b57fe5b50900390565b60008080808080808080610d896105f58c6014610fc3565b9750610d96886003610ff5565b9650610da66105f58c6005610fc3565b9550610db28888610d5f565b9450610dc7610dc18c8a610d5f565b87610d5f565b9350610dd560035487611100565b600355610de18461100c565b92506801000000000000000085029150600083118015610e0b5750600954610e098482611100565b115b1515610e1657600080fd5b600160a060020a038a1615801590610e375750600160a060020a038a163314155b8015610e5d5750600454600160a060020a038b1660009081526005602052604090205410155b15610ea357600160a060020a038a16600090815260066020526040902054610e859088611100565b600160a060020a038b16600090815260066020526040902055610ebe565b610ead8588611100565b945068010000000000000000850291505b60006009541115610f2257610ed560095484611100565b6009819055680100000000000000008602811515610eef57fe5b600a8054929091049091019055600954680100000000000000008602811515610f1457fe5b048302820382039150610f28565b60098390555b33600090815260056020526040902054610f429084611100565b33600081815260056020908152604080832094909455600a5460078252918490208054928802879003928301905583518f81529081018790528351919450600160a060020a038e16937f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d592918290030190a350909998505050505050505050565b600080831515610fd65760009150610aca565b50828202828482811515610fe657fe5b0414610fee57fe5b9392505050565b600080828481151561100357fe5b04949350505050565b60095460009069d3c21bcecceda1000000908290633b9aca0061108361107d7259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016d629b8c891b267182b6140000000085020173af298d050e4395d69670b12b7f410000000000000161110f565b85610d5f565b81151561108c57fe5b0403949350505050565b600954600090670de0b6b3a76400008381019181019083906110ed633b8b87bf19828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca00028115156110e757fe5b04610d5f565b8115156110f657fe5b0495945050505050565b600082820183811015610fee57fe5b80600260018201045b818110156108a557809150600281828581151561113157fe5b040181151561113c57fe5b0490506111185600a165627a7a723058201209fac2d96ac2b4ee1a994b291632e1a12bb416f8822474aa675b3e21a2d3c90029
Swarm Source
bzzr://1209fac2d96ac2b4ee1a994b291632e1a12bb416f8822474aa675b3e21a2d3c9
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.