Sponsored:   Temco - Join the Largest VC Backed ICO on the Bitcoin Network! TEMCO KYC Whitelist Starts Now!!
Contract Overview
Balance: 0.6619983141225 Ether
Ether Value: $59.71 (@ $90.20/ETH)
Transactions: 257 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e7at txn 0x707b1abe85b4fd1fdfd3c26a359fc86d4858a7e8ef9069e30d8a2c16d8fd296b
Token Balance:
 Latest 25 transactions from a total of 257 transactions

TxHash Age From To Value [TxFee]
0x9a00c2bb8c6e49d282a57c0f8079c04eb4e79ee528688ff5bd22e676417b25a999 days 23 hrs ago0x62cd96745e3c1c9f6cd83208dc10e2ae0f2cbefa  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0 Ether0.000043828
0x269d62e42973d2cae74502c6b4d2cb482bcb685344df4da6daf3348ac344035f909 days 1 hr ago0x627fbcc6d0590d2186c44df4cc178f2793210a10  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1337 Ether0.00399346
0x95adab095c48b890a5ef2449b99cfef12bb1913300abb84dd2ad1f48419b3f45910 days 3 hrs ago0x04528fb91840ce4bcfc7390919a455d530da8ecb  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.0029731
0x44581852f380953f1017d9b6afc25665068ecee8c43822a1be87eb4b2e424250920 days 2 hrs ago0x6b348e39cbcc8464e83ce7dd643d12cdfb34404d  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.2 Ether0.000441
0x15555706209056dd0393eb943900cab541a1f9a54f48dd5727cabfcc845686a3935 days 25 mins ago0xa61fcd124acd825b85fca6ea093b46bc50d5b2ce  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.0039812
0xf4e692f62430812a5ec095240f779ad06f6cccc367850c9ef2d28cd341dc0c59937 days 8 hrs ago0x05e8befdb6461b95d1f61bba03a8cd5ef6cdc9ac  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.15251196 Ether0.00402022
0xb2e8bf7257375038e3bdd7a908bb9f253ecf5a4ee88ab0828fb59246fda58cfb937 days 9 hrs ago0xf9f6689e2935a4b9d08ea6809a58f95eb616626e  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.15695218 Ether0.00400616
0x87bc85b1c806283947113c07b9533bf3e4b93bb02b28ddf7e3d16972b15a8fec937 days 9 hrs ago0xf9f6689e2935a4b9d08ea6809a58f95eb616626e  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.16095834 Ether0.00402022
0xed6139181775fa434da38a88cb0644c53f82f7437759c7b928209d91a175bf03948 days 3 hrs ago0x8c7b15ce06bfaac4bb05d439437ea5cd9cab1638  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.0039685
0x3d36963f681c1c9ec923150f9dc5ac2a0b8668213461fc1041ece52dcec4aece949 days 23 hrs ago0x8cd0d7f75f84826a69820ba02843730b47712751  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af1 Ether0.004333056
0xf24891785961cdaa8a722925fdac726ba2a20cc81878d899baa6e2a833e285ea950 days ago0x8cd0d7f75f84826a69820ba02843730b47712751  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.005103273
0xa86da7baf2e10baf2c1dde87b6d3de236bb7e95c4499781839ccd57009b9df0a950 days 26 mins ago0x8cd0d7f75f84826a69820ba02843730b47712751  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.001785
0x558ee22aa585d4deba294e540f31ae8c0a671264fd1ab6b750096a6992120222950 days 28 mins ago0x8cd0d7f75f84826a69820ba02843730b47712751  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.001785
0xd248d21296fd4d2ea89222096c5d06b76714ad9f5cec9365c6657667076e6473950 days 3 hrs ago0x8cd0d7f75f84826a69820ba02843730b47712751  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.000441
0x4ed1b4a8accada69c7553ae5d089fdebe10aeb83949f657c60f4524f6a1b2c52950 days 3 hrs ago0x8cd0d7f75f84826a69820ba02843730b47712751  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.000441
0xbb9d2140b5c088b4dd5b9bbd4a805d0b59086a9ed62f572e59207825cabc3479955 days 21 hrs ago0x82921146d8a772ab9a75cfae8d705502176fb524  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.0039685
0xc762c8699242e501100e1eafeee95347c686a6ee2a0e55c264e3588f8df966cc958 days 15 hrs ago0x6b8b8cbc62bb79e88b2f81583f890f8f4a874fbd  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.00618166
0xc077811ccaf24fbd97574fb7435fec0ec48c38702752dca62a0140a8ab270b01959 days 2 hrs agoPoloniex_1  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af1.09 Ether0.00732783
0x54cee525a13eea1a41363b31eef58074d59b547baf3ad7e1e7cdaf189d9226bc959 days 6 hrs ago0xedccbef033467c62be9549e6a40f6480ccae1a51  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af5 Ether0.00967672146
0x61d42fe10a9ea43d1f9885f4559c8be0e8b7267154b9480b672dccfba34f1b18961 days 12 hrs ago0x11e81efe9b4ed8f5288e5f627a194103fb856508  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.0039685
0x321afcbaae074d77a11528bf4bac7633aab9dcf11872eaecd138b3dc9825b8ab964 days 4 hrs ago0x77998b19c7c2860ff98e3d7fed54305ca6d7be23  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af1 Ether0.0053413998
0x3c4660ef338280152e7c2184c3563491462604e61887ee13968791fd61e081c9965 days 5 hrs ago0x40058c3ff7d4b564a5f44d87d6130d58834b6fef  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.6 Ether0.0039812
0xdd0989e83aff32599b44e493849efe4efac61b61da06ab90ac344ab42289b410965 days 15 hrs ago0xe1ea984cb967dc23428e39731afe68d4611575d3  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.0042
0xe1fab014e89cd7f0c7c4d7ae97686cb74f80abf8ae806155cf45ade4fb81d1fe965 days 15 hrs ago0xe1ea984cb967dc23428e39731afe68d4611575d3  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af0.1 Ether0.000441
0xad4eb1109ba923985a6d979cab1bfacf27f6ee54456926579c7d8ca464ee2728966 days 4 hrs ago0x327289b20afd7b7d99050495d4ec6d0cc4d68eb5  IN   0xba6284ca128d72b25f1353fadd06aa145d9095af1 Ether0.00486026
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x269d62e42973d2cae74502c6b4d2cb482bcb685344df4da6daf3348ac344035f1717031909 days 1 hr ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.006685 Ether
0x95adab095c48b890a5ef2449b99cfef12bb1913300abb84dd2ad1f48419b3f451710613910 days 3 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.005 Ether
0x15555706209056dd0393eb943900cab541a1f9a54f48dd5727cabfcc845686a31560515935 days 25 mins ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.005 Ether
0xed6139181775fa434da38a88cb0644c53f82f7437759c7b928209d91a175bf031481409948 days 3 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.005 Ether
0x3d36963f681c1c9ec923150f9dc5ac2a0b8668213461fc1041ece52dcec4aece1470362949 days 23 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.05 Ether
0x3d36963f681c1c9ec923150f9dc5ac2a0b8668213461fc1041ece52dcec4aece1470362949 days 23 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0xdfb692d180cae04bb29b6cd9878ede2ec8e79f456 Ether
0xf24891785961cdaa8a722925fdac726ba2a20cc81878d899baa6e2a833e285ea1470358950 days ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.25 Ether
0xbb9d2140b5c088b4dd5b9bbd4a805d0b59086a9ed62f572e59207825cabc34791434951955 days 21 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.005 Ether
0xc762c8699242e501100e1eafeee95347c686a6ee2a0e55c264e3588f8df966cc1418151958 days 15 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0xb3e3429824d31ba87edea73fac823a67f44c60150.25 Ether
0xc762c8699242e501100e1eafeee95347c686a6ee2a0e55c264e3588f8df966cc1418151958 days 15 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x04528fb91840ce4bcfc7390919a455d530da8ecb6 Ether
0xc077811ccaf24fbd97574fb7435fec0ec48c38702752dca62a0140a8ab270b011415589959 days 2 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.0545 Ether
0x54cee525a13eea1a41363b31eef58074d59b547baf3ad7e1e7cdaf189d9226bc1414525959 days 6 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.25 Ether
0x54cee525a13eea1a41363b31eef58074d59b547baf3ad7e1e7cdaf189d9226bc1414525959 days 6 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0xe2e404bb8de94ffd8c654b2c59fc554bd8c761c71.333333333332 Ether
0x54cee525a13eea1a41363b31eef58074d59b547baf3ad7e1e7cdaf189d9226bc1414525959 days 6 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x5dec981c2216c6390475dd891909a4b0239192671.2 Ether
0x54cee525a13eea1a41363b31eef58074d59b547baf3ad7e1e7cdaf189d9226bc1414525959 days 6 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0xefe0a3409d93135a51c4fcbae0bfb9a540ac25744.8 Ether
0x61d42fe10a9ea43d1f9885f4559c8be0e8b7267154b9480b672dccfba34f1b181401041961 days 12 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.005 Ether
0x321afcbaae074d77a11528bf4bac7633aab9dcf11872eaecd138b3dc9825b8ab1384777964 days 4 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.05 Ether
0x3c4660ef338280152e7c2184c3563491462604e61887ee13968791fd61e081c91378653965 days 5 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.03 Ether
0xad4eb1109ba923985a6d979cab1bfacf27f6ee54456926579c7d8ca464ee27281372822966 days 4 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.05 Ether
0x5331902d4ae39c55c0e2f8c5cec44b345fc6ea74da638dd1a1f7e4e7eb1b06921365416967 days 9 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.013 Ether
0x15ba7539097664c6174637cef2921523929327cbff858f7bbce2ccb71420dc8c1364749967 days 12 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.005 Ether
0x76830dc5d6a47d0bd00812829589d83e1c8e7e31207e7b5ec21ab8b1e74619731360763968 days 4 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x61964af73638eb7a8b7d1c6fb2e2a067b7de63e70.0085 Ether
0xd2d71d9d85561a89f675cde8573787d4ea785b481ae8865f6c88e464e776876c1360677968 days 4 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x2fe0eb0f31ae8bca8e1f5a22945c704213c1a8b10.05 Ether
0xb632e19f209d09ff1df2d3716bca82a03b062b2aa4d9e61242f604c6c15f219e1360674968 days 4 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x2fe0eb0f31ae8bca8e1f5a22945c704213c1a8b10.05 Ether
0xd5404eb5a72c36c95878574754bbfa36f98ac18ef3489f02ee5639f9a43d5dc11360674968 days 4 hrs ago0xba6284ca128d72b25f1353fadd06aa145d9095af0x2fe0eb0f31ae8bca8e1f5a22945c704213c1a8b10.05 Ether
[ Download CSV Export  ] 



  Contract Source Code   Find Similiar Contracts

contract Ethstick {
    
//COPYRIGHT 2016 KATATSUKI ALL RIGHTS RESERVED
//No part of this source code may be reproduced, distributed,
//modified or transmitted in any form or by any means without
//the prior written permission of the creator.
    
    address private pig;
    
    //Stored variables
    uint private balance = 0;
    uint private maxDeposit = 5;
    uint private fee = 0;
    uint private multiplier = 120;
    uint private payoutOrder = 0;
    uint private donkeysInvested = 0;
    uint private investmentRecord = 0;
    uint private carrots = 0;
    uint private eligibleForFees = 5;
    address private donkeyKing = 0x0;
    
    mapping (address => Donkey) private donkeys;
    Entry[] private entries;
    
    Donkey[] private ranking;
    
    event NewKing(address ass);
    
    //Set owner on contract creation
    function Ethstick() {
        pig = msg.sender;
        ranking.length = 10;
    }

    modifier onlypig { if (msg.sender == pig) _ }
    
    struct Donkey {
        address addr;
        string nickname;
        uint invested;
    }
    
    struct Entry {
        address entryAddress;
        uint deposit;
        uint payout;
        bool paid;
    }

    //Fallback function
    function() {
        init();
    }
    
    function init() private{
        //Only deposits >0.1ETH are allowed to join
        if (msg.value < 100 finney) {
            msg.sender.send(msg.value);
            return;
        }
        
        chase();
    }
    
    //Chase the carrot
    function chase() private {
        
        //Limit deposits to XETH
        uint dValue = 100 finney;
        if (msg.value > maxDeposit * 1 ether) {
            
        	msg.sender.send(msg.value - maxDeposit * 1 ether);	
        	dValue = maxDeposit * 1 ether;
        }
        else { dValue = msg.value; }

        //Add new users to the users array if he's a new player
        addNewDonkey(msg.sender);
        
        //Add new entry to the entries array 
        entries.push(Entry(msg.sender, dValue, (dValue * (multiplier) / 100), false));
           
        //Update contract stats
        balance += (dValue * (100 - fee)) / 100;
        donkeysInvested += dValue;
        donkeys[msg.sender].invested += dValue;
        
        
        //Ranking logic: mindfuck edition
        uint index = ranking.length - 1;
        uint newEntry = donkeys[msg.sender].invested;
        bool done = false;
        bool samePosition = false;
        uint existingAt = ranking.length - 1;

        while (ranking[index].invested < newEntry && !done)
        {
            if (index > 0)
            {
                done = donkeys[ranking[index - 1].addr].invested > newEntry;
                
                if (ranking[index].addr == msg.sender)
                    existingAt = index;
                
                if (done)
                {
                    if (ranking[index].addr == msg.sender)
                    { 
                        ranking[index] = donkeys[msg.sender];
                        samePosition = true;
                    }
                }
              
                if (!done) index--;
            }
            else
            {
                done = true;
                index = 0;
                if (ranking[index].addr == msg.sender || ranking[index].addr == address(0x0))
                {
                    ranking[index] = donkeys[msg.sender];
                    samePosition = true;
                }
            }
            
        }
        
        if (!samePosition)
        {
            rankDown(index, existingAt);
            ranking[index] = donkeys[msg.sender];
        }
        
        
        //Pay pending entries if the new balance allows for it
        while (balance > entries[payoutOrder].payout) {
            
            uint payout = entries[payoutOrder].payout;
            
            entries[payoutOrder].entryAddress.send(payout);
            entries[payoutOrder].paid = true;

            balance -= payout;
            
            carrots++;
            payoutOrder++;
        }
        
        //Collect money from fees and possible leftovers from errors (actual balance untouched)
        uint fees = this.balance - balance;
        if (fees > 0)
        {
            if (entries.length >= 50 && entries.length % 5 == 0)
            {
                fees = dValue * fee / 100;
                uint luckyDonkey = rand(eligibleForFees) - 1;
                
                if (ranking[luckyDonkey].addr != address(0x0))
                    ranking[luckyDonkey].addr.send(fees);
                else
                    donkeyKing.send(fees);
            }
            else
                pig.send(fees);
        }        
        
        //Check for new Donkey King
        if (donkeys[msg.sender].invested > investmentRecord)
        {
            donkeyKing = msg.sender;
            NewKing(msg.sender);
            investmentRecord = donkeys[msg.sender].invested;
            
        }
        
        if (ranking[0].addr != donkeys[donkeyKing].addr && ranking[0].addr != address(0x0))
        {
            ranking[1] = donkeys[ranking[0].addr];
            ranking[0] = donkeys[donkeyKing];
        }
        
    }
    
    function rankDown(uint index, uint offset) private
    {
        for (uint i = offset; i > index; i--)
        {
            ranking[i] = donkeys[ranking[i-1].addr];
        }
    }
    
    function addNewDonkey(address Address) private
    {
        if (donkeys[Address].addr == address(0))
        {
            donkeys[Address].addr = Address;
            donkeys[Address].nickname = 'GullibleDonkey';
            donkeys[Address].invested = 0;
        }
    }
    
    //Generate random number between 1 & max
    uint256 constant private FACTOR =  1157920892373161954235709850086879078532699846656405640394575840079131296399;
    function rand(uint max) constant private returns (uint256 result){
        uint256 factor = FACTOR * 100 / max;
        uint256 lastBlockNumber = block.number - 1;
        uint256 hashVal = uint256(block.blockhash(lastBlockNumber));
    
        return uint256((uint256(hashVal) / factor)) % max + 1;
    }
    

    //Contract management
    function changePig(address newPig) onlypig {
        pig = newPig;
    }
    
    
    function changeMultiplier(uint multi) onlypig {
        if (multi < 110 || multi > 130) 
            throw;
        
        multiplier = multi;
    }
    
    function changeFee(uint newFee) onlypig {
        if (newFee > 5) 
            throw;
        
        fee = newFee;
    }
    
    function changeMaxDeposit(uint max) onlypig {
        if (max < 1 || max > 10)
            throw;
            
        maxDeposit = max;
    }
    
    function changeRankingSize(uint size) onlypig {
        if (size < 5 || size > 100)
            throw;
            
        ranking.length = size;
    }
    
    function changeEligibleDonkeys(uint number) onlypig {
        if (number < 5 || number > 15)
            throw;
            
        eligibleForFees = number;
    }
    
    
    //JSON functions
    function setNickname(string name) {
        addNewDonkey(msg.sender);
        
        if (bytes(name).length >= 2 && bytes(name).length <= 16)
            donkeys[msg.sender].nickname = name;
    }
    
    function carrotsCaught() constant returns (uint amount, string info) {
        amount = carrots;
        info = 'The number of payouts sent to participants.';
    }
    
    function currentBalance() constant returns (uint theBalance, string info) {
        theBalance = balance / 1 finney;
        info = 'The balance of the contract in Finneys.';
    }
    
    function theDonkeyKing() constant returns (address king, string nickname, uint totalInvested, string info) {
        king = donkeyKing;  
        nickname = donkeys[donkeyKing].nickname;
        totalInvested = donkeys[donkeyKing].invested / 1 ether;
        info = 'The greediest of all donkeys. You go, ass!';
    }
    
    function donkeyName(address Address) constant returns (string nickname) {
        nickname = donkeys[Address].nickname;
    }
    
    function currentMultiplier() constant returns (uint theMultiplier, string info) {
        theMultiplier = multiplier;
        info = 'The multiplier applied to all deposits (x100). It determines the amount of money you will get when you catch the carrot.';
    }
    
    function generousFee() constant returns (uint feePercentage, string info) {
        feePercentage = fee;
        info = 'The generously modest fee percentage applied to all deposits. It can change to lure more donkeys (max 5%).';
    }
    
    function nextPayoutGoal() constant returns (uint finneys, string info) {
        finneys = (entries[payoutOrder].payout - balance) / 1 finney;
        info = 'The amount of Finneys (Ethers * 1000) that need to be deposited for the next donkey to catch his carrot.';
    }
    
    function totalEntries() constant returns (uint count, string info) {
        count = entries.length;
        info = 'The number of times the carrot was chased by gullible donkeys.';
    }
    
    function entryDetails(uint index) constant returns (address donkey, string nickName, uint deposit, uint payout, bool paid, string info)
    {
        if (index < entries.length || index == 0 && entries.length > 0) {
            donkey = entries[index].entryAddress;
            nickName = donkeys[entries[index].entryAddress].nickname;
            deposit = entries[index].deposit / 1 finney;
            payout = entries[index].payout / 1 finney;
            paid = entries[index].paid;
            info = 'Entry info: donkey address, name, deposit, expected payout in Finneys, payout status.';
        }
    }
    
    function donkeyRanking(uint index) constant returns(address donkey, string nickname, uint totalInvested, string info)
    {
        if (index < ranking.length)
        {
            donkey = ranking[index].addr;
            nickname = donkeys[ranking[index].addr].nickname;
            totalInvested = donkeys[ranking[index].addr].invested / 1 ether;
            info = 'Top donkey stats: address, name, ethers deposited. Lower index number means higher rank.';
        }
    }
    
    function donkeyInvested(address donkey) constant returns(uint invested, string info) {
        invested = donkeys[donkey].addr != address(0x0) ? donkeys[donkey].invested / 1 ether : 0;
        info = 'The amount of Ethers the donkey has chased carrots with.';
    }
    
    function totalInvested() constant returns(uint invested, string info) {
        invested = donkeysInvested / 1 ether;
        info = 'The combined investments of all donkeys in Ethers.';
    }
    
    function currentDepositLimit() constant returns(uint ethers, string info) {
        ethers = maxDeposit;
        info = 'The current maximum number of Ethers you may deposit at once.';
    }
    
    function donkeysEligibleForFees() constant returns(uint top, string info) {
        top = eligibleForFees;
        info = 'The number of donkeys in the ranking that are eligible to receive fees.';
    }
    
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"currentDepositLimit","outputs":[{"name":"ethers","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"size","type":"uint256"}],"name":"changeRankingSize","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"}],"name":"setNickname","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"donkeysEligibleForFees","outputs":[{"name":"top","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"donkeyRanking","outputs":[{"name":"donkey","type":"address"},{"name":"nickname","type":"string"},{"name":"totalInvested","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"nextPayoutGoal","outputs":[{"name":"finneys","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"number","type":"uint256"}],"name":"changeEligibleDonkeys","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"generousFee","outputs":[{"name":"feePercentage","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalInvested","outputs":[{"name":"invested","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"max","type":"uint256"}],"name":"changeMaxDeposit","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"carrotsCaught","outputs":[{"name":"amount","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"newFee","type":"uint256"}],"name":"changeFee","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"currentMultiplier","outputs":[{"name":"theMultiplier","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalEntries","outputs":[{"name":"count","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"theDonkeyKing","outputs":[{"name":"king","type":"address"},{"name":"nickname","type":"string"},{"name":"totalInvested","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":true,"inputs":[{"name":"donkey","type":"address"}],"name":"donkeyInvested","outputs":[{"name":"invested","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"newPig","type":"address"}],"name":"changePig","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"Address","type":"address"}],"name":"donkeyName","outputs":[{"name":"nickname","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"currentBalance","outputs":[{"name":"theBalance","type":"uint256"},{"name":"info","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"multi","type":"uint256"}],"name":"changeMultiplier","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"entryDetails","outputs":[{"name":"donkey","type":"address"},{"name":"nickName","type":"string"},{"name":"deposit","type":"uint256"},{"name":"payout","type":"uint256"},{"name":"paid","type":"bool"},{"name":"info","type":"string"}],"type":"function"},{"inputs":[],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"ass","type":"address"}],"name":"NewKing","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052600060018190556005600281905560038290556078600455818155600682905560078290556008829055600955600a8054600160a060020a031990811682558254163317909155600d80548282558290801582901161007c5760030281600302836000526020600020918201910161007c919061009b565b505050506123a2806101116000396000f35b5050600060028201556001015b8082111561010d578054600160a060020a031916815560018181018054600080835592600290821615610100026000190190911604601f8190106100df575061008e565b601f01602090049060005260206000209081019061008e91905b8082111561010d57600081556001016100f9565b509056606060405236156100fb5760e060020a60003504630295d71b81146101345780630fffbb541461021a5780631c5d9faa1461025257806323509e6914610372578063261616701461040d578063332f93a9146104e55780633fd94686146105f0578063419db07b146106285780635216aeec146106e957806353fefd7d146107695780635cff876b146107a15780636a1db1bf146108165780636fbaaa1e146108435780637fef036e1461090457806383d8a90f14610978578063ad1ef61e14610a0a578063c0b9261214610a45578063c9bbc8c014610a7a578063ce845d1d14610afc578063ced9267014610b7b578063f67abd8714610bb3575b610ca961013267016345785d8a0000341015610eef57604051600160a060020a03331690600090349082818181858883f150505050505b565b604080516020818101835260009091528151600254606082018452603d82527f5468652063757272656e74206d6178696d756d206e756d626572206f66204574928201929092527f6865727320796f75206d6179206465706f736974206174206f6e63652e00000092810192909252905b60405180838152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f16801561020b5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610ca9600435600054600160a060020a0390811633919091161415610a775760058110806102485750606481115b15610f7757610002565b6040805160206004803580820135601f8101849004840285018401909552848452610ca9949193602493909291840191908190840183828082843750949650505050505050611039335b600160a060020a038181166000908152600b60205260408120549091161415610a7757604060008181208054600160a060020a031916841781558251808401909352600e83527f47756c6c69626c65446f6e6b65790000000000000000000000000000000000006020848101918252600160a060020a0386168452600b8152935160019283018054818652948690209095600294861615610100026000190190951693909304601f90810194909404830193909291908390106122c357805160ff19168380011785555b506122f392915061101c565b604080516020818101835260009091528151600954608082018452604782527f546865206e756d626572206f6620646f6e6b65797320696e207468652072616e928201929092527f6b696e6720746861742061726520656c696769626c6520746f20726563656976928101929092527f6520666565732e000000000000000000000000000000000000000000000000006060830152906101a5565b610cab600435604080516020818101835260008083528351918201909352828152600d5483919085101561148257600d8054869081101561000257508054818452600387026000805160206123828339815191520154600160a060020a03169550600b9184918890811015610002575050508483526020908152604080842081516001918201805460029381161561010002600019011692909204601f81018590048502820185019093528281529290919083018282801561139c5780601f106113715761010080835404028352916020019161139c565b60408051602081019091526000808252600554600c80546001546101a5959366038d7ea4c68000939192811015610002579452604080516004959095027fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c9015460a086018252606886527f54686520616d6f756e74206f662046696e6e6579732028457468657273202a2060208701527f31303030292074686174206e65656420746f206265206465706f736974656420918601919091527f666f7220746865206e65787420646f6e6b657920746f2063617463682068697360608601527f20636172726f742e00000000000000000000000000000000000000000000000060808601520304929050565b610ca9600435600054600160a060020a0390811633919091161415610a7757600581108061061e5750600f81115b1561103457610002565b60408051602081810183526000909152815160035460a082018452606a82527f5468652067656e65726f75736c79206d6f64657374206665652070657263656e928201929092527f74616765206170706c69656420746f20616c6c206465706f736974732e204974928101929092527f2063616e206368616e676520746f206c757265206d6f726520646f6e6b65797360608301527f20286d6178203525292e000000000000000000000000000000000000000000006080830152906101a5565b604080516020818101835260009091528151600654606082018452603282527f54686520636f6d62696e656420696e766573746d656e7473206f6620616c6c20928201929092527f646f6e6b65797320696e204574686572732e000000000000000000000000000092810192909252670de0b6b3a76400009004906101a5565b610ca9600435600054600160a060020a0390811633919091161415610a775760018110806107975750600a81115b15610f7257610002565b604080516020818101835260009091528151600854606082018452602b82527f546865206e756d626572206f66207061796f7574732073656e7420746f207061928201929092527f727469636970616e74732e00000000000000000000000000000000000000000092810192909252906101a5565b610ca9600435600054600160a060020a0390811633919091161415610a77576005811115610f6d57610002565b60408051602081810183526000909152815160045460a082018452607882527f546865206d756c7469706c696572206170706c69656420746f20616c6c206465928201929092527f706f73697473202878313030292e2049742064657465726d696e657320746865928101929092527f20616d6f756e74206f66206d6f6e657920796f752077696c6c2067657420776860608301527f656e20796f752063617463682074686520636172726f742e00000000000000006080830152906101a5565b60408051602081810183526000909152600c548251606081018452603e81527f546865206e756d626572206f662074696d65732074686520636172726f742077928101929092527f6173206368617365642062792067756c6c69626c6520646f6e6b6579732e0000928201929092526101a5565b610cab6040805160208181018352600080835283518083018552818152600a54600160a060020a0316808352600b8452858320600190810180548851600293821615610100026000190190911692909204601f8101879004870283018701909852878252919693949293909283018282801561112c5780601f106111015761010080835404028352916020019161112c565b6101a560043560408051602081810183526000808352600160a060020a038581168252600b90925292832054168214156114895760006114b1565b610ca9600435600054600160a060020a0390811633919091161415610a775760008054600160a060020a031916821790555b50565b610d8f60043560408051602081810183526000808352600160a060020a0385168152600b825283902083516001918201805460029381161561010002600019011692909204601f8101849004840282018401909552848152929390918301828280156111f55780601f106111ca576101008083540402835291602001916111f5565b604080516020818101835260009091528151600154606082018452602782527f5468652062616c616e6365206f662074686520636f6e747261637420696e2046928201929092527f696e6e6579732e000000000000000000000000000000000000000000000000009281019290925266038d7ea4c680009004906101a5565b610ca9600435600054600160a060020a0390811633919091161415610a7757606e811080610ba95750608281115b15610f6857610002565b610dfd600435604080516020818101835260008083528351918201909352828152600c5483918291829190871080610bf85750866000148015610bf85750600c548290115b1561136857600c8054889081101561000257508054600082815260048a026000805160206123628339815191520154600160a060020a03169850600b9290918a90811015610002575050878152602091825260409081902081516001918201805460029381161561010002600019011692909204601f81018590048502820185019093528281529290919083018282801561122c5780601f106112015761010080835404028352916020019161122c565b005b6040518085600160a060020a0316815260200180602001848152602001806020018381038352868181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610d245780820380516001836020036101000a031916815260200191505b508381038252848181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610d7d5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610def5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6040518087600160a060020a0316815260200180602001868152602001858152602001848152602001806020018381038352888181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610e825780820380516001836020036101000a031916815260200191505b508381038252848181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610edb5780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b61013260006000600060006000600060006000600067016345785d8a00009850600260005054670de0b6b3a76400000234111561151757604051600254600160a060020a033316918391670de0b6b3a76400000234039082818181858883f15050600254670de0b6b3a7640000029b5061151b92505050565b600455565b600355565b600255565b80600d60005081815481835581811511610faa57600302816003028360005260206000209182019101610faa9190610fbe565b5050505050565b5050600060028201556001015b80821115611030578054600160a060020a031916815560018082018054600080835592600290821615610100026000190190911604601f8190106110025750610fb1565b601f016020900490600052602060002090810190610fb191905b80821115611030576000815560010161101c565b5090565b600955565b600281511015801561104d57506010815111155b15610a775780600b600050600033600160a060020a031681526020019081526020016000206000506001016000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110cc57805160ff19168380011785555b506110fc92915061101c565b828001600101855582156110c0579182015b828111156110c05782518260005055916020019190600101906110de565b505050565b820191906000526020600020905b81548152906001019060200180831161110f57829003601f168201915b5050600a54600160a060020a03166000908152600b6020908152604091829020825160029190910154606082018452602a82527f54686520677265656469657374206f6620616c6c20646f6e6b6579732e20596f928201929092527f7520676f2c2061737321000000000000000000000000000000000000000000009281019290925298999498670de0b6b3a7640000900497509550929350505050565b820191906000526020600020905b8154815290600101906020018083116111d857829003601f168201915b50939695505050505050565b820191906000526020600020905b81548152906001019060200180831161120f57829003601f168201915b50505050509450845066038d7ea4c68000600c60005088815481101561000257815460008390527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c86004830201548490049750811015610002579060005260206000209060040201600050600201600050540492508250600c60005087815481101561000257505060408051600489027fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8ca0154608082018352605582527f456e74727920696e666f3a20646f6e6b657920616464726573732c206e616d6560208301527f2c206465706f7369742c206578706563746564207061796f757420696e204669928201929092527f6e6e6579732c207061796f7574207374617475732e0000000000000000000000606082015260ff91909116925090505b91939550919395565b820191906000526020600020905b81548152906001019060200180831161137f57829003601f168201915b505050505092508250670de0b6b3a7640000600b6000506000600d600050888154811015610002575050600388026000805160206123828339815191520154600160a060020a031681526020918252604090819020815160029190910154608082018352605882527f546f7020646f6e6b65792073746174733a20616464726573732c206e616d652c938201939093527f20657468657273206465706f73697465642e204c6f77657220696e646578206e918101919091527f756d626572206d65616e73206869676865722072616e6b2e00000000000000006060820152919004925090505b9193509193565b600160a060020a0383166000908152600b6020526040902060020154670de0b6b3a764000090045b60408051606081018252603881527f54686520616d6f756e74206f66204574686572732074686520646f6e6b65792060208201527f6861732063686173656420636172726f747320776974682e0000000000000000918101919091529092509050915091565b3498505b6115243361029c565b600c80546001810180835582818380158290116115905760040281600402836000526020600020918201910161159091905b80821115611030578054600160a060020a03191681556000600182018181556002830191909155600391909101805460ff19169055611556565b5050509190906000526020600020906004020160006080604051908101604052803381526020018d815260200160646004600050548f020481526020016000815260200150909190915060008201518160000160006101000a815481600160a060020a0302191690830217905550602082015181600101600050556040820151816002016000505560608201518160030160006101000a81548160ff0219169083021790555050505060646003600050546064038a0204600160008282825054019250508190555088600660008282825054019250508190555088600b600050600033600160a060020a031681526020019081526020016000206000506002016000828282505401925050819055506001600d60005080549050039750600b600050600033600160a060020a0316815260200190815260200160002060005060020160005054965060009550600094506001600d600050805490500393505b86600d6000508981548110156100025750600052507fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb76003890201548790108015611738575085155b156118d15760008811156119d45786600b6000506000600d60005060018c038154811015610002576003026000805160206123828339815191520154600160a060020a0390811683526020939093526040909120600201548154939011985033909116918a908110156100025750600052600389026000805160206123828339815191520154600160a060020a031614156117d1578793505b8515611b1d5733600160a060020a0316600d6000508981548110156100025750600052600389026000805160206123828339815191520154600160a060020a03161415611b1d57600160a060020a0333166000908152600b60205260409020600d80548a9081101561000257906000526020600020906003020160005081548154600160a060020a031916600160a060020a039190911617815560018083018054828401805460008281526020908190209295600283821615610100908102600019908101909516829004601f908101949094048601979287161502909301909416919091049290839010611b3257805485555b50611b0d92915061101c565b841515611bcb57611cec8885805b828111156110fc57600d8054600b916000916000198501908110156100025781546003919091026000805160206123828339815191520154600160a060020a03168352602093909352604090912091839081101561000257600091825260030260008051602061238283398151915201905081548154600160a060020a031916600160a060020a039190911617815560018083018054828401805460008281526020908190209295600283821615610100908102600019908101909516829004601f90810194909404860197928716150290930190941691909104929083901061231257805485555b5061234e92915061101c565b600d80546000995060019750600160a060020a03331691908a908110156100025752600080516020612382833981519152895054600160a060020a03161480611a465750600d8054600091908a9081101561000257505060008051602061238283398151915254600160a060020a0316145b15611b7e57600160a060020a0333166000908152600b60205260409020600d80548a9081101561000257600091825260030260008051602061238283398151915201905081548154600160a060020a031916600160a060020a039190911617815560018083018054828401805460008281526020908190209295600283821615610100908102600019908101909516829004601f908101949094048601979287161502909301909416919091049290839010611b8357805485555b50611b6e92915061101c565b5050600291820154910155600194505b851515611b2d5760001997909701965b611b7e565b828001600101855582156118c557600052602060002091601f016020900482015b828111156118c5578254825591600101919060010190611b53565b5050600291820154910155600194505b6116ef565b82800160010185558215611b0157600052602060002091601f016020900482015b82811115611b01578254825591600101919060010190611ba4565b50506002918201549101555b5b600c805460055490811015610002576000919091526004027fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c901546001541115611de157600554600c805490919081101561000257600091825260040260008051602061236283398151915201905060020154600554600c80549295509181101561000257600091825260040260008051602061236283398151915201905054604051600160a060020a039190911690600090859082818181858883f19350505050506001600c6000506005600050548154811015610002576000918252600402600080516020612362833981519152019050600301805460ff191690911790556001805484900381556008805482019055600580549091019055611bcc565b600160a060020a0333166000908152600b60205260409020600d80548a9081101561000257906000526020600020906003020160005081548154600160a060020a031916600160a060020a039190911617815560018083018054838301805460008281526020908190209295600283821615610100908102600019908101909516829004601f908101949094048601979287161502909301909416919091049290839010611da557805485555b50611bbf92915061101c565b82800160010185558215611d9957600052602060002091601f016020900482015b82811115611d99578254825591600101919060010190611dc6565b60015430600160a060020a0316310391506000821115611ee257600c5460329010801590611e155750600c54600590066000145b15611ec1575050600d80546003546009546064918b02919091049260231982900443600019014004919091069160009190839081101561000257508152600382026000805160206123828339815191520154600160a060020a03161461213e57600d80548290811015610002575050600381026000805160206123828339815191520154604051600160a060020a039190911690600090849082818181858883f1935050505050612164565b60405160008054600160a060020a031691849082818181858883f150505050505b600754600160a060020a0333166000908152600b60205260409020600201541115611f8b57600a8054600160a060020a0319163390811790915560408051600160a060020a039092168252517f6cd8d790853c0b38da6686db770a36ba2c38653bf63c343f3bb93c738c2f89da9181900360200190a1600b600050600033600160a060020a03168152602001908152602001600020600050600201600050546007600050819055505b600a54600160a060020a039081166000908152600b60205260408120600d80549154909316929190811015610002575260008051602061238283398151915254600160a060020a03161480159061200c5750600d805460009190829081101561000257505060008051602061238283398151915254600160a060020a031614155b1561217557600d8054600b9160009182908110156100025750805460008051602061238283398151915254600160a060020a031683526020939093526040909120916001908110156100025782547fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb88054600160a060020a031916600160a060020a039290921691909117815583820180547fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb980546000829052939550936020600285831615610100908102600019908101909716829004601f908101939093047faf2c61b129d942dabc1f4485bf6d0d72c1b1fc04813c211ef96a7351dd6b6f9190810197948616159091029093019093169290920492909183901061218057805485555b506121bc92915061101c565b600a54604051600160a060020a039190911690600090849082818181858883f150505050505b611ee2565b50506002918201549101555b505050505050505050565b8280016001018555821561213257600052602060002091601f016020900482015b828111156121325782548255916001019190600101906121a1565b5050600291820154910155600a54600160a060020a03166000908152600b60205260408120600d80549192909181101561000257908152600080516020612382833981519152905081548154600160a060020a031916600160a060020a039190911617815560018083018054838301805460008281526020908190209295600283821615610100908102600019908101909516829004601f90810194909404860197928716150290930190941691909104929083901061228757805485555b5061216992915061101c565b8280016001018555821561227b57600052602060002091601f016020900482015b8281111561227b5782548255916001019190600101906122a8565b82800160010185558215610366579182015b828111156103665782518260005055916020019190600101906122d5565b5050600160a060020a03166000908152600b6020526040812060020155565b828001600101855582156119c857600052602060002091601f016020900482015b828111156119c8578254825591600101919060010190612333565b5050600291820154910155600019016118df56df6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7d7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.