Sponsored:   Ubex.com - Additional 17% of tokens are available for purchase! Trading on exchanges already started.
Contract Overview
Balance: 1.65 Ether
Ether Value: $436.56 (@ $264.58/ETH)
Transactions: 4 txns
 Latest 4 txns

TxHash Age From To Value [TxFee]
0x7b218037e5bff39fd9ed156e2f98715a8b9fdb4600d46d173aa385efbe653f3e143 days 11 hrs ago0xef9ab8658f145319e97ce96ecd7b3903b3480128  IN   0x388a037ab169b128e70cf67e1228ecd03f0400f20 Ether0.000114922
0x960fe4c52a761acd286db861a0047c78069ac6013b99601106a3723260839403243 days 15 hrs agoMew_Donate_Old  IN   0x388a037ab169b128e70cf67e1228ecd03f0400f20 Ether0.001206681
0xb50dd4afdc81a3f4a3fa5ae59b486a66ea53f9b482c8b62d0231fdcb38cd4f1e253 days 2 hrs ago0x23e0619e5339184cf21ad78a3fede6c4d12bc467  IN   0x388a037ab169b128e70cf67e1228ecd03f0400f20 Ether0.000652149
0x09c762503cb4a54e867b2ad8575e88319733437c1e3d61fb5af3eb3baf56bbc2257 days 1 hr ago0x7ca95e89e56bfe4d2b727e0276916719001d5a73  IN    Contract Creation0 Ether0.003346828
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 21 Internal Transactions

ParentTxHash Block Age From To Value
0x7b218037e5bff39fd9ed156e2f98715a8b9fdb4600d46d173aa385efbe653f3e5310646143 days 11 hrs ago0x388a037ab169b128e70cf67e1228ecd03f0400f20xef9ab8658f145319e97ce96ecd7b3903b348012816.5 Ether
0x960fe4c52a761acd286db861a0047c78069ac6013b99601106a37232608394034727941243 days 15 hrs ago0x388a037ab169b128e70cf67e1228ecd03f0400f20x7cb57b5a97eabe94205c07890be4c1ad31e486a811.55 Ether
0xb50dd4afdc81a3f4a3fa5ae59b486a66ea53f9b482c8b62d0231fdcb38cd4f1e4673817253 days 2 hrs ago0x388a037ab169b128e70cf67e1228ecd03f0400f20x23e0619e5339184cf21ad78a3fede6c4d12bc4673.3 Ether
0x5575ab3a4e750fbdc44aa399ee514a60d20372b9b6c47fac3f9fe74c7070ab764664333254 days 17 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f24.82039 Ether
0x46689ed6073f40d22a5a2b034af879364b1d449e90091ddc92d64e8254e1a8e14664200254 days 17 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f21 Ether
0x932640fef13b94e1802d45d5d2abbe197a841b400c9624876d8c301d61dd3eb54663982254 days 18 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.02161 Ether
0x0f7900ce6d6394d0a95a7c4f987353fda70d7e0da9cd82f92bdd08279e4ddfdb4663234254 days 21 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f24 Ether
0x8fdb858eab3af70eb51c08aacaada5dae1a21a8871c0c531a5b2973cd558950a4663100254 days 22 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f23 Ether
0xc6ceee6103b8fef8f8784fd85a66b2068bc505ae1e3fbdc6020f19524030659d4663089254 days 22 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f21 Ether
0x224dda93c67c23cffa5fdf74a0c1ad30a9aa03f4c467fb245d1b1059ac005b074663079254 days 22 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f210 Ether
0xfbf811d3261ab593a630ad5d11cba9c5300c152b6430f152313accc4f2cb33cb4663012254 days 22 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f23 Ether
0x9d38db4389dacb2081cac67cdf3f395f00695ff5479b2eefa2a128a1a3f4e84a4662999254 days 22 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f23.3 Ether
0x16584635497a2bd13c28cc68bde4fa05736ecdd1e44b2b07d659289a36f37b444661724255 days 3 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f21 Ether
0x9dd925375a24c2dac5a64ec8d53cc1e2623ca51eb94442513c19887f712c7f054658941255 days 14 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.5 Ether
0x4ca6e6a9fbdd0af14aa116d0489a371e91ec845f4bcd74c27d31a217b83f72854658882255 days 14 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.05 Ether
0x18c5ca5424b3a779e7ab763b56481ad6c688c3f3ccd3c32d9049eed4fcc566a84658465255 days 16 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.1 Ether
0x2fb34fb341f6861025e8e68206d219ed1b69f2976cb631749c760fce9d8e3c184658438255 days 16 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.01 Ether
0x89cd46ccee89852bc14a324bb21909b8fedcbf117cf2f8fa2c1210de56d7a1384658092255 days 17 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.1 Ether
0x46cb84380bcc3eb0bd5b1db0d7626ddb9398758978b489a8944084d330aa78bb4657660255 days 19 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.5 Ether
0xc2aae0e43c11ac4c27b892e4a2ab619b5dae891b0bc79115e48059900042cf5f4657402255 days 20 hrs ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.098 Ether
0xce2aa75004871fb32baf979720144efe4e5ee1c207a35ff2e6547285cdd8131f4650092257 days 1 hr ago0x1debc6427df10a3193553382ec3cab99f9d702f30x388a037ab169b128e70cf67e1228ecd03f0400f20.5 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact match)
Contract Name: DonationSplitter
Compiler Version: v0.4.18+commit.9cf6e910
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.13;

library SafeMath {
  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;
  }
}

contract SplitPayment {
  using SafeMath for uint256;

  uint256 public totalShares = 0;
  uint256 public totalReleased = 0;

  mapping(address => uint256) public shares;
  mapping(address => uint256) public released;
  address[] public payees;

  /**
   * @dev Constructor
   */
  function SplitPayment(address[] _payees, uint256[] _shares) public {
    require(_payees.length == _shares.length);

    for (uint256 i = 0; i < _payees.length; i++) {
      addPayee(_payees[i], _shares[i]);
    }
  }

  /**
   * @dev Add a new payee to the contract.
   * @param _payee The address of the payee to add.
   * @param _shares The number of shares owned by the payee.
   */
  function addPayee(address _payee, uint256 _shares) internal {
    require(_payee != address(0));
    require(_shares > 0);
    require(shares[_payee] == 0);

    payees.push(_payee);
    shares[_payee] = _shares;
    totalShares = totalShares.add(_shares);
  }

  /**
   * @dev Claim your share of the balance.
   */
  function claim() public {
    address payee = msg.sender;

    require(shares[payee] > 0);

    uint256 totalReceived = this.balance.add(totalReleased);
    uint256 payment = totalReceived.mul(shares[payee]).div(totalShares).sub(released[payee]);

    require(payment != 0);
    require(this.balance >= payment);

    released[payee] = released[payee].add(payment);
    totalReleased = totalReleased.add(payment);

    payee.transfer(payment);
  }
}

contract DonationSplitter is SplitPayment {
    function DonationSplitter (address[] _payees, uint256[] _shares)
        SplitPayment(_payees, _shares)
        public
    {

    }

    // accept ether
    function () public payable {}
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"totalShares","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"payees","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"released","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"shares","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalReleased","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_payees","type":"address[]"},{"name":"_shares","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
6060604052600080556000600155341561001857600080fd5b6040516109d53803806109d583398101604052808051820191906020018051820191905050818160008151835114151561005157600080fd5b600090505b82518110156100b7576100aa838281518110151561007057fe5b90602001906020020151838381518110151561008857fe5b906020019060200201516100c16401000000000261054e176401000000009004565b8080600101915050610056565b505050505061029c565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156100fd57600080fd5b60008111151561010c57600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414151561015a57600080fd5b6004805480600101828161016e919061024b565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506102238160005461022d640100000000026104c1179091906401000000009004565b6000819055505050565b600080828401905083811015151561024157fe5b8091505092915050565b815481835581811511610272578183600052602060002091820191016102719190610277565b5b505050565b61029991905b8082111561029557600081600090555060010161027d565b5090565b90565b61072a806102ab6000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633a98ef391461007a5780634e71d92d146100a357806363037b0c146100b85780639852595c1461011b578063ce7c2ac214610168578063e33b7de3146101b5575b005b341561008557600080fd5b61008d6101de565b6040518082815260200191505060405180910390f35b34156100ae57600080fd5b6100b66101e4565b005b34156100c357600080fd5b6100d9600480803590602001909190505061044c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012657600080fd5b610152600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061048b565b6040518082815260200191505060405180910390f35b341561017357600080fd5b61019f600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506104a3565b6040518082815260200191505060405180910390f35b34156101c057600080fd5b6101c86104bb565b6040518082815260200191505060405180910390f35b60005481565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411151561023a57600080fd5b6102666001543073ffffffffffffffffffffffffffffffffffffffff16316104c190919063ffffffff16565b915061031f600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610311600054610303600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876104df90919063ffffffff16565b61051a90919063ffffffff16565b61053590919063ffffffff16565b90506000811415151561033157600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561035757600080fd5b6103a981600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104c190919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610401816001546104c190919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561044757600080fd5b505050565b60048181548110151561045b57fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60026020528060005260406000206000915090505481565b60015481565b60008082840190508381101515156104d557fe5b8091505092915050565b60008060008414156104f45760009150610513565b828402905082848281151561050557fe5b0414151561050f57fe5b8091505b5092915050565b600080828481151561052857fe5b0490508091505092915050565b600082821115151561054357fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561058a57600080fd5b60008111151561059957600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415156105e757600080fd5b600480548060010182816105fb91906106ad565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506106a3816000546104c190919063ffffffff16565b6000819055505050565b8154818355818115116106d4578183600052602060002091820191016106d391906106d9565b5b505050565b6106fb91905b808211156106f75760008160009055506001016106df565b5090565b905600a165627a7a72305820e57b776e3fb2bb7fd7c95d22fd36390945048a805809481b62c8e374a1dcb76b0029000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000400000000000000000000000023e0619e5339184cf21ad78a3fede6c4d12bc467000000000000000000000000ef9ab8658f145319e97ce96ecd7b3903b34801280000000000000000000000007cb57b5a97eabe94205c07890be4c1ad31e486a80000000000000000000000009ae80465047dc67876b8f95bd17b187e3a4a482a0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000005

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000400000000000000000000000023e0619e5339184cf21ad78a3fede6c4d12bc467000000000000000000000000ef9ab8658f145319e97ce96ecd7b3903b34801280000000000000000000000007cb57b5a97eabe94205c07890be4c1ad31e486a80000000000000000000000009ae80465047dc67876b8f95bd17b187e3a4a482a0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Found 12 constructor arguments :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 00000000000000000000000023e0619e5339184cf21ad78a3fede6c4d12bc467
Arg [4] : 000000000000000000000000ef9ab8658f145319e97ce96ecd7b3903b3480128
Arg [5] : 0000000000000000000000007cb57b5a97eabe94205c07890be4c1ad31e486a8
Arg [6] : 0000000000000000000000009ae80465047dc67876b8f95bd17b187e3a4a482a
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005


   Swarm Source:
bzzr://e57b776e3fb2bb7fd7c95d22fd36390945048a805809481b62c8e374a1dcb76b

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.