Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 251 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Fund | 5427377 | 2406 days ago | IN | 0.025 ETH | 0.00017819 | ||||
Reinvest Dividen... | 5247924 | 2436 days ago | IN | 0 ETH | 0.0000782 | ||||
Withdraw | 5186152 | 2447 days ago | IN | 0 ETH | 0.00009147 | ||||
Sell My Tokens | 5186138 | 2447 days ago | IN | 0 ETH | 0.00015178 | ||||
Withdraw | 5186133 | 2447 days ago | IN | 0 ETH | 0.00009147 | ||||
Sell My Tokens | 5186112 | 2447 days ago | IN | 0 ETH | 0.00007558 | ||||
Withdraw | 5185757 | 2447 days ago | IN | 0 ETH | 0.00018294 | ||||
Sell My Tokens | 5185751 | 2447 days ago | IN | 0 ETH | 0.00022627 | ||||
Withdraw | 5185750 | 2447 days ago | IN | 0 ETH | 0.00018294 | ||||
Withdraw | 5185630 | 2447 days ago | IN | 0 ETH | 0.00009147 | ||||
Sell My Tokens | 5185623 | 2447 days ago | IN | 0 ETH | 0.00007542 | ||||
Withdraw | 5185609 | 2447 days ago | IN | 0 ETH | 0.00018294 | ||||
Withdraw | 5184830 | 2447 days ago | IN | 0 ETH | 0.0000686 | ||||
Withdraw | 5184721 | 2447 days ago | IN | 0 ETH | 0.00009147 | ||||
Withdraw | 5180663 | 2448 days ago | IN | 0 ETH | 0.00009147 | ||||
Sell My Tokens | 5180601 | 2448 days ago | IN | 0 ETH | 0.00003763 | ||||
Withdraw | 5180454 | 2448 days ago | IN | 0 ETH | 0.00004573 | ||||
Sell My Tokens | 5180437 | 2448 days ago | IN | 0 ETH | 0.00003763 | ||||
Withdraw | 5174697 | 2449 days ago | IN | 0 ETH | 0.00004573 | ||||
Withdraw | 5174693 | 2449 days ago | IN | 0 ETH | 0.00018294 | ||||
Sell My Tokens | 5174684 | 2449 days ago | IN | 0 ETH | 0.00015053 | ||||
Withdraw | 5174610 | 2449 days ago | IN | 0 ETH | 0.00009147 | ||||
Withdraw | 5174603 | 2449 days ago | IN | 0 ETH | 0.00009147 | ||||
Withdraw | 5174603 | 2449 days ago | IN | 0 ETH | 0.00009147 | ||||
Withdraw | 5174538 | 2449 days ago | IN | 0 ETH | 0.00024202 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5186152 | 2447 days ago | 0.34976306 ETH | ||||
5186133 | 2447 days ago | 0.59513907 ETH | ||||
5185757 | 2447 days ago | 0.27693842 ETH | ||||
5185750 | 2447 days ago | 0.01024468 ETH | ||||
5185630 | 2447 days ago | 1.01398226 ETH | ||||
5185609 | 2447 days ago | 0.00086259 ETH | ||||
5184830 | 2447 days ago | 0.00187446 ETH | ||||
5184721 | 2447 days ago | 0.00036153 ETH | ||||
5180663 | 2448 days ago | 0.02240997 ETH | ||||
5180454 | 2448 days ago | 0.01662811 ETH | ||||
5174697 | 2449 days ago | 0.00744574 ETH | ||||
5174693 | 2449 days ago | 0.01107894 ETH | ||||
5174610 | 2449 days ago | 0.01626584 ETH | ||||
5174603 | 2449 days ago | 0.11339557 ETH | ||||
5174603 | 2449 days ago | 0.01791082 ETH | ||||
5174535 | 2449 days ago | 0.00116891 ETH | ||||
5169038 | 2450 days ago | 0.13058521 ETH | ||||
5163421 | 2451 days ago | 0.25625742 ETH | ||||
5157590 | 2452 days ago | 0.45283026 ETH | ||||
5150790 | 2453 days ago | 0.02738863 ETH | ||||
5150021 | 2453 days ago | 0.03325998 ETH | ||||
5147943 | 2453 days ago | 0.00126277 ETH | ||||
5147766 | 2453 days ago | 0.01410416 ETH | ||||
5145178 | 2454 days ago | 0.02181184 ETH | ||||
5139959 | 2455 days ago | 3.1609492 ETH |
Loading...
Loading
Contract Name:
EnnaMaEppadi
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-02-09 */ pragma solidity ^0.4.18; contract EnnaMaEppadi { // scaleFactor is used to convert Ether into tokens and vice-versa: they're of different // orders of magnitude, hence the need to bridge between the two. uint256 constant scaleFactor = 0x10000000000000000; // 2^64 // CRR = 80% // CRR is Cash Reserve Ratio (in this case Crypto Reserve Ratio). // For more on this: check out https://en.wikipedia.org/wiki/Reserve_requirement int constant crr_n = 4; // CRR numerator int constant crr_d = 5; // CRR denominator // The price coefficient. Chosen such that at 1 token total supply // the amount in reserve is 0.8 ether and token price is 1 Ether. int constant price_coeff = -0x678adeacb985cb06; // Typical values that we have to declare. string constant public name = "EnnaMaEppadi"; string constant public symbol = "JustD"; uint8 constant public decimals = 18; // Array between each address and their number of tokens. mapping(address => uint256) public tokenBalance; // Array between each address and how much Ether has been paid out to it. // Note that this is scaled by the scaleFactor variable. mapping(address => int256) public payouts; // Variable tracking how many tokens are in existence overall. uint256 public totalSupply; // Aggregate sum of all payouts. // Note that this is scaled by the scaleFactor variable. int256 totalPayouts; // Variable tracking how much Ether each token is currently worth. // Note that this is scaled by the scaleFactor variable. uint256 earningsPerToken; // Current contract balance in Ether uint256 public contractBalance; function EnnaMaEppadi() public {} // The following functions are used by the front-end for display purposes. // Returns the number of tokens currently held by _owner. function balanceOf(address _owner) public constant returns (uint256 balance) { return tokenBalance[_owner]; } // Withdraws all dividends held by the caller sending the transaction, updates // the requisite global variables, and transfers Ether back to the caller. function withdraw() public { // Retrieve the dividends associated with the address the request came from. var balance = dividends(msg.sender); // Update the payouts array, incrementing the request address by `balance`. payouts[msg.sender] += (int256) (balance * scaleFactor); // Increase the total amount that's been paid out to maintain invariance. totalPayouts += (int256) (balance * scaleFactor); // Send the dividends to the address that requested the withdraw. contractBalance = sub(contractBalance, balance); msg.sender.transfer(balance); } // Converts the Ether accrued as dividends back into EPY tokens without having to // withdraw it first. Saves on gas and potential price spike loss. function reinvestDividends() public { // Retrieve the dividends associated with the address the request came from. var balance = dividends(msg.sender); // Update the payouts array, incrementing the request address by `balance`. // Since this is essentially a shortcut to withdrawing and reinvesting, this step still holds. payouts[msg.sender] += (int256) (balance * scaleFactor); // Increase the total amount that's been paid out to maintain invariance. totalPayouts += (int256) (balance * scaleFactor); // Assign balance to a new variable. uint value_ = (uint) (balance); // If your dividends are worth less than 1 szabo, or more than a million Ether // (in which case, why are you even here), abort. if (value_ < 0.000001 ether || value_ > 1000000 ether) revert(); // msg.sender is the address of the caller. var sender = msg.sender; // A temporary reserve variable used for calculating the reward the holder gets for buying tokens. // (Yes, the buyer receives a part of the distribution as well!) var res = reserve() - balance; // 5% of the total Ether sent is used to pay existing holders. var fee = div(value_, 20); // The amount of Ether used to purchase new tokens for the caller. var numEther = value_ - fee; // The number of tokens which can be purchased for numEther. var numTokens = calculateDividendTokens(numEther, balance); // The buyer fee, scaled by the scaleFactor variable. var buyerFee = fee * scaleFactor; // Check that we have tokens in existence (this should always be true), or // else you're gonna have a bad time. if (totalSupply > 0) { // Compute the bonus co-efficient for all existing holders and the buyer. // The buyer receives part of the distribution for each token bought in the // same way they would have if they bought each token individually. var bonusCoEff = (scaleFactor - (res + numEther) * numTokens * scaleFactor / (totalSupply + numTokens) / numEther) * (uint)(crr_d) / (uint)(crr_d-crr_n); // The total reward to be distributed amongst the masses is the fee (in Ether) // multiplied by the bonus co-efficient. var holderReward = fee * bonusCoEff; buyerFee -= holderReward; // Fee is distributed to all existing token holders before the new tokens are purchased. // rewardPerShare is the amount gained per token thanks to this buy-in. var rewardPerShare = holderReward / totalSupply; // The Ether value per token is increased proportionally. earningsPerToken += rewardPerShare; } // Add the numTokens which were just created to the total supply. We're a crypto central bank! totalSupply = add(totalSupply, numTokens); // Assign the tokens to the balance of the buyer. tokenBalance[sender] = add(tokenBalance[sender], numTokens); // Update the payout array so that the buyer cannot claim dividends on previous purchases. // Also include the fee paid for entering the scheme. // First we compute how much was just paid out to the buyer... var payoutDiff = (int256) ((earningsPerToken * numTokens) - buyerFee); // Then we update the payouts array for the buyer with this amount... payouts[sender] += payoutDiff; // And then we finally add it to the variable tracking the total amount spent to maintain invariance. totalPayouts += payoutDiff; } // Sells your tokens for Ether. This Ether is assigned to the callers entry // in the tokenBalance array, and therefore is shown as a dividend. A second // call to withdraw() must be made to invoke the transfer of Ether back to your address. function sellMyTokens() public { var balance = balanceOf(msg.sender); sell(balance); } // The slam-the-button escape hatch. Sells the callers tokens for Ether, then immediately // invokes the withdraw() function, sending the resulting Ether to the callers address. function getMeOutOfHere() public { sellMyTokens(); withdraw(); } // Gatekeeper function to check if the amount of Ether being sent isn't either // too small or too large. If it passes, goes direct to buy(). function fund() payable public { // Don't allow for funding if the amount of Ether sent is less than 1 szabo. if (msg.value > 0.000001 ether) { contractBalance = add(contractBalance, msg.value); buy(); } else { revert(); } } // Function that returns the (dynamic) price of buying a finney worth of tokens. function buyPrice() public constant returns (uint) { return getTokensForEther(1 finney); } // Function that returns the (dynamic) price of selling a single token. function sellPrice() public constant returns (uint) { var eth = getEtherForTokens(1 finney); var fee = div(eth, 10); return eth - fee; } // Calculate the current dividends associated with the caller address. This is the net result // of multiplying the number of tokens held by their current value in Ether and subtracting the // Ether that has already been paid out. function dividends(address _owner) public constant returns (uint256 amount) { return (uint256) ((int256)(earningsPerToken * tokenBalance[_owner]) - payouts[_owner]) / scaleFactor; } // Version of withdraw that extracts the dividends and sends the Ether to the caller. // This is only used in the case when there is no transaction data, and that should be // quite rare unless interacting directly with the smart contract. function withdrawOld(address to) public { // Retrieve the dividends associated with the address the request came from. var balance = dividends(msg.sender); // Update the payouts array, incrementing the request address by `balance`. payouts[msg.sender] += (int256) (balance * scaleFactor); // Increase the total amount that's been paid out to maintain invariance. totalPayouts += (int256) (balance * scaleFactor); // Send the dividends to the address that requested the withdraw. contractBalance = sub(contractBalance, balance); to.transfer(balance); } // Internal balance function, used to calculate the dynamic reserve value. function balance() internal constant returns (uint256 amount) { // msg.value is the amount of Ether sent by the transaction. return contractBalance - msg.value; } function buy() internal { // Any transaction of less than 1 szabo is likely to be worth less than the gas used to send it. if (msg.value < 0.000001 ether || msg.value > 1000000 ether) revert(); // msg.sender is the address of the caller. var sender = msg.sender; // 5% of the total Ether sent is used to pay existing holders. var fee = div(msg.value, 20); // The amount of Ether used to purchase new tokens for the caller. var numEther = msg.value - fee; // The number of tokens which can be purchased for numEther. var numTokens = getTokensForEther(numEther); // The buyer fee, scaled by the scaleFactor variable. var buyerFee = fee * scaleFactor; // Check that we have tokens in existence (this should always be true), or // else you're gonna have a bad time. if (totalSupply > 0) { // Compute the bonus co-efficient for all existing holders and the buyer. // The buyer receives part of the distribution for each token bought in the // same way they would have if they bought each token individually. var bonusCoEff = (scaleFactor - (reserve() + numEther) * numTokens * scaleFactor / (totalSupply + numTokens) / numEther) * (uint)(crr_d) / (uint)(crr_d-crr_n); // The total reward to be distributed amongst the masses is the fee (in Ether) // multiplied by the bonus co-efficient. var holderReward = fee * bonusCoEff; buyerFee -= holderReward; // Fee is distributed to all existing token holders before the new tokens are purchased. // rewardPerShare is the amount gained per token thanks to this buy-in. var rewardPerShare = holderReward / totalSupply; // The Ether value per token is increased proportionally. earningsPerToken += rewardPerShare; } // Add the numTokens which were just created to the total supply. We're a crypto central bank! totalSupply = add(totalSupply, numTokens); // Assign the tokens to the balance of the buyer. tokenBalance[sender] = add(tokenBalance[sender], numTokens); // Update the payout array so that the buyer cannot claim dividends on previous purchases. // Also include the fee paid for entering the scheme. // First we compute how much was just paid out to the buyer... var payoutDiff = (int256) ((earningsPerToken * numTokens) - buyerFee); // Then we update the payouts array for the buyer with this amount... payouts[sender] += payoutDiff; // And then we finally add it to the variable tracking the total amount spent to maintain invariance. totalPayouts += payoutDiff; } // Sell function that takes tokens and converts them into Ether. Also comes with a 10% fee // to discouraging dumping, and means that if someone near the top sells, the fee distributed // will be *significant*. function sell(uint256 amount) internal { // Calculate the amount of Ether that the holders tokens sell for at the current sell price. var numEthersBeforeFee = getEtherForTokens(amount); // 5% of the resulting Ether is used to pay remaining holders. var fee = div(numEthersBeforeFee, 20); // Net Ether for the seller after the fee has been subtracted. var numEthers = numEthersBeforeFee - fee; // *Remove* the numTokens which were just sold from the total supply. We're /definitely/ a crypto central bank. totalSupply = sub(totalSupply, amount); // Remove the tokens from the balance of the buyer. tokenBalance[msg.sender] = sub(tokenBalance[msg.sender], amount); // Update the payout array so that the seller cannot claim future dividends unless they buy back in. // First we compute how much was just paid out to the seller... var payoutDiff = (int256) (earningsPerToken * amount + (numEthers * scaleFactor)); // We reduce the amount paid out to the seller (this effectively resets their payouts value to zero, // since they're selling all of their tokens). This makes sure the seller isn't disadvantaged if // they decide to buy back in. payouts[msg.sender] -= payoutDiff; // Decrease the total amount that's been paid out to maintain invariance. totalPayouts -= payoutDiff; // Check that we have tokens in existence (this is a bit of an irrelevant check since we're // selling tokens, but it guards against division by zero). if (totalSupply > 0) { // Scale the Ether taken as the selling fee by the scaleFactor variable. var etherFee = fee * scaleFactor; // Fee is distributed to all remaining token holders. // rewardPerShare is the amount gained per token thanks to this sell. var rewardPerShare = etherFee / totalSupply; // The Ether value per token is increased proportionally. earningsPerToken = add(earningsPerToken, rewardPerShare); } } // Dynamic value of Ether in reserve, according to the CRR requirement. function reserve() internal constant returns (uint256 amount) { return sub(balance(), ((uint256) ((int256) (earningsPerToken * totalSupply) - totalPayouts) / scaleFactor)); } // Calculates the number of tokens that can be bought for a given amount of Ether, according to the // dynamic reserve and totalSupply values (derived from the buy and sell prices). function getTokensForEther(uint256 ethervalue) public constant returns (uint256 tokens) { return sub(fixedExp(fixedLog(reserve() + ethervalue)*crr_n/crr_d + price_coeff), totalSupply); } // Semantically similar to getTokensForEther, but subtracts the callers balance from the amount of Ether returned for conversion. function calculateDividendTokens(uint256 ethervalue, uint256 subvalue) public constant returns (uint256 tokens) { return sub(fixedExp(fixedLog(reserve() - subvalue + ethervalue)*crr_n/crr_d + price_coeff), totalSupply); } // Converts a number tokens into an Ether value. function getEtherForTokens(uint256 tokens) public constant returns (uint256 ethervalue) { // How much reserve Ether do we have left in the contract? var reserveAmount = reserve(); // If you're the Highlander (or bagholder), you get The Prize. Everything left in the vault. if (tokens == totalSupply) return reserveAmount; // If there would be excess Ether left after the transaction this is called within, return the Ether // corresponding to the equation in Dr Jochen Hoenicke's original Ponzi paper, which can be found // at https://test.jochen-hoenicke.de/eth/ponzitoken/ in the third equation, with the CRR numerator // and denominator altered to 1 and 2 respectively. return sub(reserveAmount, fixedExp((fixedLog(totalSupply - tokens) - price_coeff) * crr_d/crr_n)); } // You don't care about these, but if you really do they're hex values for // co-efficients used to simulate approximations of the log and exp functions. int256 constant one = 0x10000000000000000; uint256 constant sqrt2 = 0x16a09e667f3bcc908; uint256 constant sqrtdot5 = 0x0b504f333f9de6484; int256 constant ln2 = 0x0b17217f7d1cf79ac; int256 constant ln2_64dot5 = 0x2cb53f09f05cc627c8; int256 constant c1 = 0x1ffffffffff9dac9b; int256 constant c3 = 0x0aaaaaaac16877908; int256 constant c5 = 0x0666664e5e9fa0c99; int256 constant c7 = 0x049254026a7630acf; int256 constant c9 = 0x038bd75ed37753d68; int256 constant c11 = 0x03284a0c14610924f; // The polynomial R = c1*x + c3*x^3 + ... + c11 * x^11 // approximates the function log(1+x)-log(1-x) // Hence R(s) = log((1+s)/(1-s)) = log(a) function fixedLog(uint256 a) internal pure returns (int256 log) { int32 scale = 0; while (a > sqrt2) { a /= 2; scale++; } while (a <= sqrtdot5) { a *= 2; scale--; } int256 s = (((int256)(a) - one) * one) / ((int256)(a) + one); var z = (s*s) / one; return scale * ln2 + (s*(c1 + (z*(c3 + (z*(c5 + (z*(c7 + (z*(c9 + (z*c11/one)) /one))/one))/one))/one))/one); } int256 constant c2 = 0x02aaaaaaaaa015db0; int256 constant c4 = -0x000b60b60808399d1; int256 constant c6 = 0x0000455956bccdd06; int256 constant c8 = -0x000001b893ad04b3a; // The polynomial R = 2 + c2*x^2 + c4*x^4 + ... // approximates the function x*(exp(x)+1)/(exp(x)-1) // Hence exp(x) = (R(x)+x)/(R(x)-x) function fixedExp(int256 a) internal pure returns (uint256 exp) { int256 scale = (a + (ln2_64dot5)) / ln2 - 64; a -= scale*ln2; int256 z = (a*a) / one; int256 R = ((int256)(2) * one) + (z*(c2 + (z*(c4 + (z*(c6 + (z*c8/one))/one))/one))/one); exp = (uint256) (((R + a) * one) / (R - a)); if (scale >= 0) exp <<= scale; else exp >>= -scale; return exp; } // The below are safemath implementations of the four arithmetic operators // designed to explicitly prevent over- and under-flows of integer values. 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; } 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; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } // This allows you to buy tokens by sending Ether directly to the smart contract // without including any transaction data (useful for, say, mobile wallet apps). function () payable public { // msg.value is the amount of Ether sent by the transaction. if (msg.value > 0) { fund(); } else { withdrawOld(msg.sender); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"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":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"}],"name":"withdrawOld","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"ethervalue","type":"uint256"}],"name":"getTokensForEther","outputs":[{"name":"tokens","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"payouts","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"dividends","outputs":[{"name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","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":"contractBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"reinvestDividends","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getMeOutOfHere","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"fund","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"tokens","type":"uint256"}],"name":"getEtherForTokens","outputs":[{"name":"ethervalue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"ethervalue","type":"uint256"},{"name":"subvalue","type":"uint256"}],"name":"calculateDividendTokens","outputs":[{"name":"tokens","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sellMyTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"tokenBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
Contract Creation Code
6060604052341561000f57600080fd5b61142b8061001e6000396000f300606060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461013457806318160ddd146101c2578063313ce567146101eb57806339ffe67c1461021a5780633ccfd60b146102535780634b7503341461026857806362dbf2611461029157806365bcfbe7146102c857806368306e431461031557806370a08231146103625780638620410b146103af5780638b7afe2e146103d8578063957b2e561461040157806395d89b4114610416578063b1e35242146104a4578063b60d4288146104b9578063b9f308f2146104c3578063bda5c450146104fa578063e555c1a31461053a578063eedc966a1461054f575b60003411156101285761012361059c565b610132565b610131336105cf565b5b005b341561013f57600080fd5b6101476106a5565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561018757808201518184015260208101905061016c565b50505050905090810190601f1680156101b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101cd57600080fd5b6101d56106de565b6040518082815260200191505060405180910390f35b34156101f657600080fd5b6101fe6106e4565b604051808260ff1660ff16815260200191505060405180910390f35b341561022557600080fd5b610251600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105cf565b005b341561025e57600080fd5b6102666106e9565b005b341561027357600080fd5b61027b6107be565b6040518082815260200191505060405180910390f35b341561029c57600080fd5b6102b260048080359060200190919050506107ec565b6040518082815260200191505060405180910390f35b34156102d357600080fd5b6102ff600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061084b565b6040518082815260200191505060405180910390f35b341561032057600080fd5b61034c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610863565b6040518082815260200191505060405180910390f35b341561036d57600080fd5b610399600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610904565b6040518082815260200191505060405180910390f35b34156103ba57600080fd5b6103c261094c565b6040518082815260200191505060405180910390f35b34156103e357600080fd5b6103eb610963565b6040518082815260200191505060405180910390f35b341561040c57600080fd5b610414610969565b005b341561042157600080fd5b610429610bec565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561046957808201518184015260208101905061044e565b50505050905090810190601f1680156104965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104af57600080fd5b6104b7610c25565b005b6104c161059c565b005b34156104ce57600080fd5b6104e46004808035906020019091905050610c37565b6040518082815260200191505060405180910390f35b341561050557600080fd5b6105246004808035906020019091908035906020019091905050610cae565b6040518082815260200191505060405180910390f35b341561054557600080fd5b61054d610d10565b005b341561055a57600080fd5b610586600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d29565b6040518082815260200191505060405180910390f35b64e8d4a510003411156105c8576105b560055434610d41565b6005819055506105c3610d5f565b6105cd565b600080fd5b565b60006105da33610863565b9050680100000000000000008102600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555068010000000000000000810260036000828254019250508190555061065b60055482610f54565b6005819055508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156106a157600080fd5b5050565b6040805190810160405280600c81526020017f456e6e614d61457070616469000000000000000000000000000000000000000081525081565b60025481565b601281565b60006106f433610863565b9050680100000000000000008102600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555068010000000000000000810260036000828254019250508190555061077560055482610f54565b6005819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156107bb57600080fd5b50565b60008060006107d366038d7ea4c68000610c37565b91506107e082600a610f6d565b90508082039250505090565b600061084461083c7fffffffffffffffffffffffffffffffffffffffffffffffff98752153467a34fa6005600461082b87610825610f88565b01610fbe565b0281151561083557fe5b0501611119565b600254610f54565b9050919050565b60016020528060005260406000206000915090505481565b600068010000000000000000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460045402038115156108fc57fe5b049050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061095e66038d7ea4c680006107ec565b905090565b60055481565b60008060008060008060008060008060008061098433610863565b9b50680100000000000000008c02600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550680100000000000000008c026003600082825401925050819055508b9a5064e8d4a510008b1080610a18575069d3c21bcecceda10000008b115b15610a2257600080fd5b3399508b610a2e610f88565b039850610a3c8b6014610f6d565b9750878b039650610a4d878d610cae565b9550680100000000000000008802945060006002541115610adc5760046005036005888860025401680100000000000000008a8c8f010202811515610a8e57fe5b04811515610a9857fe5b04680100000000000000000302811515610aae57fe5b0493508388029250828503945060025483811515610ac857fe5b049150816004600082825401925050819055505b610ae860025487610d41565b600281905550610b366000808c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205487610d41565b6000808c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555084866004540203905080600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080600360008282540192505081905550505050505050505050505050565b6040805190810160405280600581526020017f4a7573744400000000000000000000000000000000000000000000000000000081525081565b610c2d610d10565b610c356106e9565b565b600080610c42610f88565b9050600254831415610c5657809150610ca8565b610ca581610ca0600460057fffffffffffffffffffffffffffffffffffffffffffffffff98752153467a34fa610c8f8960025403610fbe565b0302811515610c9a57fe5b05611119565b610f54565b91505b50919050565b6000610d08610d007fffffffffffffffffffffffffffffffffffffffffffffffff98752153467a34fa60056004610cef8888610ce8610f88565b0301610fbe565b02811515610cf957fe5b0501611119565b600254610f54565b905092915050565b6000610d1b33610904565b9050610d268161127b565b50565b60006020528060005260406000206000915090505481565b6000808284019050838110151515610d5557fe5b8091505092915050565b600080600080600080600080600064e8d4a51000341080610d89575069d3c21bcecceda100000034115b15610d9357600080fd5b339850610da1346014610f6d565b97508734039650610db1876107ec565b9550680100000000000000008802945060006002541115610e475760046005036005888860025401680100000000000000008a8c610ded610f88565b010202811515610df957fe5b04811515610e0357fe5b04680100000000000000000302811515610e1957fe5b0493508388029250828503945060025483811515610e3357fe5b049150816004600082825401925050819055505b610e5360025487610d41565b600281905550610ea16000808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205487610d41565b6000808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555084866004540203905080600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080600360008282540192505081905550505050505050505050565b6000828211151515610f6257fe5b818303905092915050565b6000808284811515610f7b57fe5b0490508091505092915050565b6000610fb9610f956113f3565b680100000000000000006003546002546004540203811515610fb357fe5b04610f54565b905090565b600080600080600092505b68016a09e667f3bcc908851115610ff657600285811515610fe657fe5b0494508280600101935050610fc9565b5b67b504f333f9de64848511151561101c57600285029450828060019003935050610ff7565b680100000000000000008501680100000000000000008087030281151561103f57fe5b0591506801000000000000000082830281151561105857fe5b059050680100000000000000008068010000000000000000806801000000000000000080673284a0c14610924f870281151561109057fe5b056738bd75ed37753d680186028115156110a657fe5b056749254026a7630acf0185028115156110bc57fe5b0567666664e5e9fa0c990184028115156110d257fe5b0567aaaaaaac168779080183028115156110e857fe5b056801ffffffffff9dac9b0183028115156110ff57fe5b0567b17217f7d1cf79ac8460030b02019350505050919050565b600080600080604067b17217f7d1cf79ac682cb53f09f05cc627c8870181151561113f57fe5b0503925067b17217f7d1cf79ac8302850394506801000000000000000085860281151561116857fe5b059150680100000000000000008068010000000000000000807fffffffffffffffffffffffffffffffffffffffffffffffffffffe476c52fb4c686028115156111ad57fe5b05660455956bccdd060185028115156111c257fe5b057fffffffffffffffffffffffffffffffffffffffffffffffffff49f49f7f7c662f0184028115156111f057fe5b05672aaaaaaaaa015db001830281151561120657fe5b0568010000000000000000600202019050848103680100000000000000008683010281151561123157fe5b059350600083121515611257578284600082121561124b57fe5b9060020a029350611270565b8260000384600082121561126757fe5b9060020a900493505b839350505050919050565b60008060008060008061128d87610c37565b955061129a866014610f6d565b945084860393506112ad60025488610f54565b6002819055506112fb6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488610f54565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550680100000000000000008402876004540201925082600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555082600360008282540392505081905550600060025411156113ea576801000000000000000085029150600254828115156113d457fe5b0490506113e360045482610d41565b6004819055505b50505050505050565b600034600554039050905600a165627a7a7230582024d4e785df331caf10d9f928bb997ca039ae5005174cfb30daa7c00ca8607b1d0029
Deployed Bytecode
0x606060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461013457806318160ddd146101c2578063313ce567146101eb57806339ffe67c1461021a5780633ccfd60b146102535780634b7503341461026857806362dbf2611461029157806365bcfbe7146102c857806368306e431461031557806370a08231146103625780638620410b146103af5780638b7afe2e146103d8578063957b2e561461040157806395d89b4114610416578063b1e35242146104a4578063b60d4288146104b9578063b9f308f2146104c3578063bda5c450146104fa578063e555c1a31461053a578063eedc966a1461054f575b60003411156101285761012361059c565b610132565b610131336105cf565b5b005b341561013f57600080fd5b6101476106a5565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561018757808201518184015260208101905061016c565b50505050905090810190601f1680156101b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101cd57600080fd5b6101d56106de565b6040518082815260200191505060405180910390f35b34156101f657600080fd5b6101fe6106e4565b604051808260ff1660ff16815260200191505060405180910390f35b341561022557600080fd5b610251600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105cf565b005b341561025e57600080fd5b6102666106e9565b005b341561027357600080fd5b61027b6107be565b6040518082815260200191505060405180910390f35b341561029c57600080fd5b6102b260048080359060200190919050506107ec565b6040518082815260200191505060405180910390f35b34156102d357600080fd5b6102ff600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061084b565b6040518082815260200191505060405180910390f35b341561032057600080fd5b61034c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610863565b6040518082815260200191505060405180910390f35b341561036d57600080fd5b610399600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610904565b6040518082815260200191505060405180910390f35b34156103ba57600080fd5b6103c261094c565b6040518082815260200191505060405180910390f35b34156103e357600080fd5b6103eb610963565b6040518082815260200191505060405180910390f35b341561040c57600080fd5b610414610969565b005b341561042157600080fd5b610429610bec565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561046957808201518184015260208101905061044e565b50505050905090810190601f1680156104965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104af57600080fd5b6104b7610c25565b005b6104c161059c565b005b34156104ce57600080fd5b6104e46004808035906020019091905050610c37565b6040518082815260200191505060405180910390f35b341561050557600080fd5b6105246004808035906020019091908035906020019091905050610cae565b6040518082815260200191505060405180910390f35b341561054557600080fd5b61054d610d10565b005b341561055a57600080fd5b610586600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d29565b6040518082815260200191505060405180910390f35b64e8d4a510003411156105c8576105b560055434610d41565b6005819055506105c3610d5f565b6105cd565b600080fd5b565b60006105da33610863565b9050680100000000000000008102600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555068010000000000000000810260036000828254019250508190555061065b60055482610f54565b6005819055508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156106a157600080fd5b5050565b6040805190810160405280600c81526020017f456e6e614d61457070616469000000000000000000000000000000000000000081525081565b60025481565b601281565b60006106f433610863565b9050680100000000000000008102600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555068010000000000000000810260036000828254019250508190555061077560055482610f54565b6005819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156107bb57600080fd5b50565b60008060006107d366038d7ea4c68000610c37565b91506107e082600a610f6d565b90508082039250505090565b600061084461083c7fffffffffffffffffffffffffffffffffffffffffffffffff98752153467a34fa6005600461082b87610825610f88565b01610fbe565b0281151561083557fe5b0501611119565b600254610f54565b9050919050565b60016020528060005260406000206000915090505481565b600068010000000000000000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460045402038115156108fc57fe5b049050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061095e66038d7ea4c680006107ec565b905090565b60055481565b60008060008060008060008060008060008061098433610863565b9b50680100000000000000008c02600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550680100000000000000008c026003600082825401925050819055508b9a5064e8d4a510008b1080610a18575069d3c21bcecceda10000008b115b15610a2257600080fd5b3399508b610a2e610f88565b039850610a3c8b6014610f6d565b9750878b039650610a4d878d610cae565b9550680100000000000000008802945060006002541115610adc5760046005036005888860025401680100000000000000008a8c8f010202811515610a8e57fe5b04811515610a9857fe5b04680100000000000000000302811515610aae57fe5b0493508388029250828503945060025483811515610ac857fe5b049150816004600082825401925050819055505b610ae860025487610d41565b600281905550610b366000808c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205487610d41565b6000808c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555084866004540203905080600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080600360008282540192505081905550505050505050505050505050565b6040805190810160405280600581526020017f4a7573744400000000000000000000000000000000000000000000000000000081525081565b610c2d610d10565b610c356106e9565b565b600080610c42610f88565b9050600254831415610c5657809150610ca8565b610ca581610ca0600460057fffffffffffffffffffffffffffffffffffffffffffffffff98752153467a34fa610c8f8960025403610fbe565b0302811515610c9a57fe5b05611119565b610f54565b91505b50919050565b6000610d08610d007fffffffffffffffffffffffffffffffffffffffffffffffff98752153467a34fa60056004610cef8888610ce8610f88565b0301610fbe565b02811515610cf957fe5b0501611119565b600254610f54565b905092915050565b6000610d1b33610904565b9050610d268161127b565b50565b60006020528060005260406000206000915090505481565b6000808284019050838110151515610d5557fe5b8091505092915050565b600080600080600080600080600064e8d4a51000341080610d89575069d3c21bcecceda100000034115b15610d9357600080fd5b339850610da1346014610f6d565b97508734039650610db1876107ec565b9550680100000000000000008802945060006002541115610e475760046005036005888860025401680100000000000000008a8c610ded610f88565b010202811515610df957fe5b04811515610e0357fe5b04680100000000000000000302811515610e1957fe5b0493508388029250828503945060025483811515610e3357fe5b049150816004600082825401925050819055505b610e5360025487610d41565b600281905550610ea16000808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205487610d41565b6000808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555084866004540203905080600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080600360008282540192505081905550505050505050505050565b6000828211151515610f6257fe5b818303905092915050565b6000808284811515610f7b57fe5b0490508091505092915050565b6000610fb9610f956113f3565b680100000000000000006003546002546004540203811515610fb357fe5b04610f54565b905090565b600080600080600092505b68016a09e667f3bcc908851115610ff657600285811515610fe657fe5b0494508280600101935050610fc9565b5b67b504f333f9de64848511151561101c57600285029450828060019003935050610ff7565b680100000000000000008501680100000000000000008087030281151561103f57fe5b0591506801000000000000000082830281151561105857fe5b059050680100000000000000008068010000000000000000806801000000000000000080673284a0c14610924f870281151561109057fe5b056738bd75ed37753d680186028115156110a657fe5b056749254026a7630acf0185028115156110bc57fe5b0567666664e5e9fa0c990184028115156110d257fe5b0567aaaaaaac168779080183028115156110e857fe5b056801ffffffffff9dac9b0183028115156110ff57fe5b0567b17217f7d1cf79ac8460030b02019350505050919050565b600080600080604067b17217f7d1cf79ac682cb53f09f05cc627c8870181151561113f57fe5b0503925067b17217f7d1cf79ac8302850394506801000000000000000085860281151561116857fe5b059150680100000000000000008068010000000000000000807fffffffffffffffffffffffffffffffffffffffffffffffffffffe476c52fb4c686028115156111ad57fe5b05660455956bccdd060185028115156111c257fe5b057fffffffffffffffffffffffffffffffffffffffffffffffffff49f49f7f7c662f0184028115156111f057fe5b05672aaaaaaaaa015db001830281151561120657fe5b0568010000000000000000600202019050848103680100000000000000008683010281151561123157fe5b059350600083121515611257578284600082121561124b57fe5b9060020a029350611270565b8260000384600082121561126757fe5b9060020a900493505b839350505050919050565b60008060008060008061128d87610c37565b955061129a866014610f6d565b945084860393506112ad60025488610f54565b6002819055506112fb6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488610f54565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550680100000000000000008402876004540201925082600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555082600360008282540392505081905550600060025411156113ea576801000000000000000085029150600254828115156113d457fe5b0490506113e360045482610d41565b6004819055505b50505050505050565b600034600554039050905600a165627a7a7230582024d4e785df331caf10d9f928bb997ca039ae5005174cfb30daa7c00ca8607b1d0029
Swarm Source
bzzr://24d4e785df331caf10d9f928bb997ca039ae5005174cfb30daa7c00ca8607b1d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,139.19 | 0.1392 | $436.94 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.