Balance:1.809 Ether ($502.88) | Buy more

Last 100 sent transactions

HashToAmountTime
 0x97a7cd...0x97d7cC33229Cb82c0974e5c43c81bC4348aB1d960.566 Ether ($157.34)2016-03-05 10:42:25 (2 years ago)
 0xf3fdf8...0x1C2679097d2d6995763fbF6A25f62e9b735D48750.95 Ether ($264.09)2016-02-29 15:49:58 (2 years ago)
 0xa70f3d...0x97d7cC33229Cb82c0974e5c43c81bC4348aB1d960.475 Ether ($132.05)2016-02-29 15:01:43 (2 years ago)

Last 100 received transactions

HashFromAmountTime
0x4882100f...0x97d7cC33229Cb82c0974e5c43c81bC4348aB1d960 Ether ($0.00)2016-03-05 10:42:25 (2 years ago)
0x3a264c9f...0x969A4102D3953C4Edb10F34108084FA34696cc741 Ether ($277.99)2016-02-29 15:49:58 (2 years ago)
0xc958cf7a...0x1C2679097d2d6995763fbF6A25f62e9b735D48751 Ether ($277.99)2016-02-29 15:42:39 (2 years ago)
0x8fc4858d...0x86e1dAaEF619159d7a95757fd28B284Ee0a29Dc40.3 Ether ($83.40)2016-02-29 15:15:54 (2 years ago)
0xadbbda03...0x68B392180E7C193B0C7CAdde87f20C116480B56a0.05 Ether ($13.90)2016-02-29 15:12:49 (2 years ago)
0x81987ceb...0x1C2679097d2d6995763fbF6A25f62e9b735D48751 Ether ($277.99)2016-02-29 15:01:43 (2 years ago)
0xd56505ad...0x97d7cC33229Cb82c0974e5c43c81bC4348aB1d960.5 Ether ($139.00)2016-02-29 14:57:30 (2 years ago)
0xd0ecaaeb...0x97d7cC33229Cb82c0974e5c43c81bC4348aB1d960 Ether ($0.00)2016-02-28 14:47:36 (2 years ago)
 0xc2ba9f...0x97d7cC33229Cb82c0974e5c43c81bC4348aB1d960 Ether ($0.00)2016-02-28 14:47:36 (2 years ago)

Last 100 mined blocks

NumberDifficultyTimeReward

Last 100 mined uncles

Block NumberUncle NumberReward

Verified contract source code available!

How does it work?
  • Contract name: Bunnybank
  • Compiler version: v0.2.1-2016-01-30-91a6b35
  • Optimization used: Yes
  • Source:
    contract Bunnybank {
    
      struct Participant {
          address etherAddress;
          uint amount;
        }
    
      Participant[] public participants;
    
      uint public payoutIdx = 0;
      uint public collectedFees;
      uint public balance = 0;
    
    
      address public owner;
    
      //	simple single-sig function modifier
      modifier onlyowner { if (msg.sender == owner) _ }
    
      //	this function is executed at initialization and sets the owner of the contract
      function Bunnybank() {
        owner = msg.sender;
        }
    
      //	fallback function - simple transactions trigger this
      function() {
        enter();
        }
      
      function enter() {
        if (msg.value < 10 finney) {
            msg.sender.send(msg.value);
            return;
        }
    	
    		uint amount;
    		if (msg.value > 3 ether) {
    			msg.sender.send(msg.value - 3 ether);	
    			amount = 3 ether;
        }
    		else {
    			amount = msg.value;
    		}
    
      	//	add a new participant to array
        uint idx = participants.length;
        participants.length += 1;
        participants[idx].etherAddress = msg.sender;
        participants[idx].amount = amount;
        
        // collect fees and update contract balance
        if (idx != 0) {
          collectedFees += amount / 50;
          balance += amount;
        } 
        else {
          //	first participant has no one above him,
          //	so it goes all to fees
          collectedFees += amount;
        }
    
    	//	while there are enough ether on the balance we can pay out to an earlier participant
        while (balance > participants[payoutIdx].amount / 100 * 188){
          uint transactionAmount = participants[payoutIdx].amount / 100 * 95;
          participants[payoutIdx].etherAddress.send(transactionAmount);
          balance -= participants[payoutIdx].amount / 100 * 188;
          payoutIdx += 1;
        } 
    }
        function collectFees() onlyowner {
          if (collectedFees == 0) return;
          
    	  owner.send(collectedFees);
          collectedFees = 0;
        }
        function setOwner(address _owner) onlyowner {
          owner = _owner;
        }
    }
  • ABI:
    [
      {
        "constant": false,
        "inputs": [
          {
            "name": "_owner",
            "type": "address"
          }
        ],
        "name": "setOwner",
        "outputs": [],
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [
          {
            "name": "",
            "type": "uint256"
          }
        ],
        "name": "participants",
        "outputs": [
          {
            "name": "etherAddress",
            "type": "address"
          },
          {
            "name": "amount",
            "type": "uint256"
          }
        ],
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [],
        "name": "owner",
        "outputs": [
          {
            "name": "",
            "type": "address"
          }
        ],
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [],
        "name": "collectedFees",
        "outputs": [
          {
            "name": "",
            "type": "uint256"
          }
        ],
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [],
        "name": "payoutIdx",
        "outputs": [
          {
            "name": "",
            "type": "uint256"
          }
        ],
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [],
        "name": "balance",
        "outputs": [
          {
            "name": "",
            "type": "uint256"
          }
        ],
        "type": "function"
      },
      {
        "constant": false,
        "inputs": [],
        "name": "collectFees",
        "outputs": [],
        "type": "function"
      },
      {
        "constant": false,
        "inputs": [],
        "name": "enter",
        "outputs": [],
        "type": "function"
      },
      {
        "inputs": [],
        "type": "constructor"
      }
    ]
  • Contract creation bytecode:
    0x60606040526000600181905560035560048054600160a060020a0319163317905561047f8061002e6000396000f36060604052361561006c5760e060020a600035046313af4035811461007757806335c1d349146100ac5780638da5cb5b146100fb5780639003adfe1461010d578063a60f358814610116578063b69ef8a81461011f578063c879657214610128578063e97dcb6214610152575b610190610150610156565b610190600435600454600160a060020a03908116339190911614156100a95760048054600160a060020a031916821790555b50565b6101926004356000805482908110156100025750805260020260008051602061043f83398151915281015460008051602061045f8339815191529190910154600160a060020a03919091169082565b6101b8600454600160a060020a031681565b6101d560025481565b6101d560015481565b6101d560035481565b610190600454600160a060020a03908116339190911614156101505760025460001415610414575b565b6101905b600060006000662386f26fc100003410156101e757604051600160a060020a033316908290349082818181858883f150505050505b505050565b005b6040518083600160a060020a031681526020018281526020019250505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b60408051918252519081900360200190f35b6729a2241af62c000034111561023357604051600160a060020a033316906000906729a2241af62bffff1934019082818181858883f1506729a2241af62c000096506102379350505050565b3492505b600080546001810180835590935090818480158290116102925760020281600202836000526020600020918201910161029291905b80821115610311578054600160a060020a0319168155600060019190910190815561026c565b505050503360006000508381548110156100025781805260020260008051602061043f833981519152018054600160a060020a031916909217909155805484919084908110156100025760020260008051602061045f83398151915201919091558214610315576002805460328504019055600380548401905561031e565b5090565b60028054840190555b5b60015460008054606492908110156100025781805260020260008051602061043f8339815191520190506001015460035491900460bc0290111561018b5760015460008054606492908110156100025760020260008051602061045f8339815191520154600154825493909104605f02935090918110156100025760020260008051602061043f8339815191520154604051600160a060020a03919091169190839082818181858883f15050600154825460649450909150811015610002579080526003805460029290920260008051602061045f83398151915201549290920460bc0290039055600180548101905561031f565b600454600254604051600160a060020a0392909216916000919082818181858883f15050506002555056290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564
PUSH1 0x60 (`)
PUSH1 0x40 (@)
MSTORE
CALLDATASIZE
ISZERO
PUSH2 0x006c (l)
JUMPI
PUSH1 0xe0 (à)
PUSH1 0x02 ()
EXP
PUSH1 0x00 ()
CALLDATALOAD
DIV
PUSH4 0x13af4035 (¯@5)
DUP2
EQ
PUSH2 0x0077 (w)
JUMPI
DUP1
PUSH4 0x35c1d349 (5ÁÓI)
EQ
PUSH2 0x00ac (¬)
JUMPI
DUP1
PUSH4 0x8da5cb5b (¥Ë[)
EQ
PUSH2 0x00fb (û)
JUMPI
DUP1
PUSH4 0x9003adfe (­þ)
EQ
PUSH2 0x010d (
)
JUMPI
DUP1
PUSH4 0xa60f3588 (¦5ˆ)
EQ
PUSH2 0x0116 ()
JUMPI
DUP1
PUSH4 0xb69ef8a8 (¶žø¨)
EQ
PUSH2 0x011f ()
JUMPI
DUP1
PUSH4 0xc8796572 (Èyer)
EQ
PUSH2 0x0128 (()
JUMPI
DUP1
PUSH4 0xe97dcb62 (é}Ëb)
EQ
PUSH2 0x0152 (R)
JUMPI
JUMPDEST
PUSH2 0x0190 ()
PUSH2 0x0150 (P)
PUSH2 0x0156 (V)
JUMP
JUMPDEST
PUSH2 0x0190 ()
PUSH1 0x04 ()
CALLDATALOAD
PUSH1 0x04 ()
SL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H1 0xa0 ( )
PUSH1 0x02 ()
EXP
SUB
SWAP3
SWAP1
SWAP3
AND
SWAP2
PUSH1 0x00 ()
SWAP2
SWAP1
DUP3
DUP2
DUP2
DUP2
DUP6
DUP9
DUP4
CALL
POP
POP
POP
PUSH1 0x02 ()
SSTORE
POP
JUMP
Missing opcode 
Missing opcode 
Missing opcode 
Missing opcode 
SLOAD
DUP12
PUSH3 0xa8d603 (¨Ö)
GASLIMIT
Missing opcode 
DUP9
CODESIZE
PUSH16 0xc84ba6bc95484008f6362f93160ef3e5 (ÈK¦¼•[email protected]ö6/“óå)
PUSH4 0x290decd9 ()
ìÙ)
SLOAD
DUP12
PUSH3 0xa8d603 (¨Ö)
GASLIMIT
Missing opcode 
DUP9
CODESIZE
PUSH16 0xc84ba6bc95484008f6362f93160ef3e5 (ÈK¦¼•[email protected]ö6/“óå)
PUSH5 0x ()

Token balances

TokenBalance

Token transactions

Tx HashBlockTimeFromToAmount
blog comments powered by Disqus