ETH Price: $3,404.05 (+3.14%)

Contract

0x36770fF967bD05248B1c4c899FfB70caa3391b84
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim60164022018-07-23 15:00:442315 days ago1532358044IN
0x36770fF9...aa3391b84
0 ETH0.0008492220
Claim60141332018-07-23 5:33:222315 days ago1532324002IN
0x36770fF9...aa3391b84
0 ETH0.000382149
Claim51162282018-02-19 2:59:382469 days ago1519009178IN
0x36770fF9...aa3391b84
0 ETH0.00021235
Claim50890112018-02-14 13:33:192474 days ago1518615199IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50861752018-02-14 2:01:512474 days ago1518573711IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50855092018-02-13 23:18:052474 days ago1518563885IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50806182018-02-13 3:36:402475 days ago1518493000IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50742272018-02-12 1:52:222476 days ago1518400342IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50633002018-02-10 6:06:052478 days ago1518242765IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50539642018-02-08 16:29:312480 days ago1518107371IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50474382018-02-07 14:07:042481 days ago1518012424IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50327112018-02-05 2:47:322483 days ago1517798852IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim50141372018-02-01 23:44:232486 days ago1517528663IN
0x36770fF9...aa3391b84
0 ETH0.000169844
Claim49897972018-01-28 20:06:142490 days ago1517169974IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim49725002018-01-25 22:48:502493 days ago1516920530IN
0x36770fF9...aa3391b84
0 ETH0.000042461
Claim49595282018-01-23 18:26:582495 days ago1516732018IN
0x36770fF9...aa3391b84
0 ETH0.000169844
Claim49439832018-01-21 2:34:142498 days ago1516502054IN
0x36770fF9...aa3391b84
0 ETH0.000169844
Claim49384302018-01-20 3:57:212499 days ago1516420641IN
0x36770fF9...aa3391b84
0 ETH0.0005746110
Claim49383532018-01-20 3:39:232499 days ago1516419563IN
0x36770fF9...aa3391b84
0 ETH0.000169844
Claim49383512018-01-20 3:39:102499 days ago1516419550IN
0x36770fF9...aa3391b84
0 ETH0.000087014
Claim49354342018-01-19 15:24:272500 days ago1516375467IN
0x36770fF9...aa3391b84
0 ETH0.0004246110
Claim49326972018-01-19 3:49:062500 days ago1516333746IN
0x36770fF9...aa3391b84
0 ETH0.0024202757
Claim49311902018-01-18 21:26:092500 days ago1516310769IN
0x36770fF9...aa3391b84
0 ETH0.0024202757
Claim49297542018-01-18 15:15:442501 days ago1516288544IN
0x36770fF9...aa3391b84
0 ETH0.0021230550
Claim49276832018-01-18 6:24:272501 days ago1516256667IN
0x36770fF9...aa3391b84
0 ETH0.0012738330
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
60164022018-07-23 15:00:442315 days ago1532358044
0x36770fF9...aa3391b84
30.93275582 ETH
60141332018-07-23 5:33:222315 days ago1532324002
0x36770fF9...aa3391b84
30.93275582 ETH
60136652018-07-23 3:41:082315 days ago1532317268
0x36770fF9...aa3391b84
0.59236666 ETH
60136632018-07-23 3:40:412315 days ago1532317241
0x36770fF9...aa3391b84
0.21426666 ETH
60136622018-07-23 3:40:132315 days ago1532317213
0x36770fF9...aa3391b84
0.16676666 ETH
60136582018-07-23 3:39:172315 days ago1532317157
0x36770fF9...aa3391b84
0.1307 ETH
60136552018-07-23 3:38:532315 days ago1532317133
0x36770fF9...aa3391b84
0.2335 ETH
60136502018-07-23 3:36:582315 days ago1532317018
0x36770fF9...aa3391b84
0.16406666 ETH
60136442018-07-23 3:35:402315 days ago1532316940
0x36770fF9...aa3391b84
0.24856666 ETH
60136412018-07-23 3:34:592315 days ago1532316899
0x36770fF9...aa3391b84
0.17743333 ETH
60136382018-07-23 3:34:162315 days ago1532316856
0x36770fF9...aa3391b84
0.20093333 ETH
60136332018-07-23 3:33:222315 days ago1532316802
0x36770fF9...aa3391b84
0.15196666 ETH
60136252018-07-23 3:32:132315 days ago1532316733
0x36770fF9...aa3391b84
0.1427 ETH
60136232018-07-23 3:31:382315 days ago1532316698
0x36770fF9...aa3391b84
0.0971 ETH
60136212018-07-23 3:30:462315 days ago1532316646
0x36770fF9...aa3391b84
0.07146666 ETH
60136142018-07-23 3:29:232315 days ago1532316563
0x36770fF9...aa3391b84
0.08236666 ETH
60136122018-07-23 3:28:492315 days ago1532316529
0x36770fF9...aa3391b84
0.1482 ETH
60136072018-07-23 3:27:212315 days ago1532316441
0x36770fF9...aa3391b84
0.17719999 ETH
60136042018-07-23 3:26:182315 days ago1532316378
0x36770fF9...aa3391b84
0.3756 ETH
60136002018-07-23 3:25:442315 days ago1532316344
0x36770fF9...aa3391b84
0.15503333 ETH
60135982018-07-23 3:24:362315 days ago1532316276
0x36770fF9...aa3391b84
0.1765 ETH
60135532018-07-23 3:13:462315 days ago1532315626
0x36770fF9...aa3391b84
0.2039 ETH
60135442018-07-23 3:11:152315 days ago1532315475
0x36770fF9...aa3391b84
0.12146666 ETH
60135392018-07-23 3:09:032315 days ago1532315343
0x36770fF9...aa3391b84
0.23493333 ETH
60135322018-07-23 3:07:272315 days ago1532315247
0x36770fF9...aa3391b84
0.08186666 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bank

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-01-14
*/

pragma solidity ^0.4.18;

// zeppelin-solidity: 1.5.0

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
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 Bank {
  using SafeMath for *;

  uint public totalShares = 0;
  uint public totalReleased = 0;

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

  function Bank(address[] _payees, uint[] _shares) public payable {
    require(_payees.length == _shares.length);

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

  function addPayee(address _payee, uint _shares) internal {
    require(_payee != address(0));
    require(_shares > 0);
    require(shares[_payee] == 0);

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

  function claim() public {
    address payee = msg.sender;

    require(shares[payee] > 0);

    uint totalReceived = this.balance.add(totalReleased);
    uint 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);
  }

  function () public payable {}
}

Contract Security Audit

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":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

60606040526000805560006001556040516109c63803806109c68339810160405280805182019190602001805182019190505060008151835114151561004457600080fd5b600090505b82518110156100aa5761009d838281518110151561006357fe5b90602001906020020151838381518110151561007b57fe5b906020019060200201516100b26401000000000261054e176401000000009004565b8080600101915050610049565b50505061028d565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156100ee57600080fd5b6000811115156100fd57600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414151561014b57600080fd5b6004805480600101828161015f919061023c565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506102148160005461021e640100000000026104c1179091906401000000009004565b6000819055505050565b600080828401905083811015151561023257fe5b8091505092915050565b815481835581811511610263578183600052602060002091820191016102629190610268565b5b505050565b61028a91905b8082111561028657600081600090555060010161026e565b5090565b90565b61072a8061029c6000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633a98ef391461007a5780634e71d92d146100a357806363037b0c146100b85780639852595c1461011b578063ce7c2ac214610168578063e33b7de3146101b5575b005b341561008557600080fd5b61008d6101de565b6040518082815260200191505060405180910390f35b34156100ae57600080fd5b6100b66101e4565b005b34156100c357600080fd5b6100d9600480803590602001909190505061044c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012657600080fd5b610152600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061048b565b6040518082815260200191505060405180910390f35b341561017357600080fd5b61019f600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506104a3565b6040518082815260200191505060405180910390f35b34156101c057600080fd5b6101c86104bb565b6040518082815260200191505060405180910390f35b60005481565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411151561023a57600080fd5b6102666001543073ffffffffffffffffffffffffffffffffffffffff16316104c190919063ffffffff16565b915061031f600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610311600054610303600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876104df90919063ffffffff16565b61051a90919063ffffffff16565b61053590919063ffffffff16565b90506000811415151561033157600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561035757600080fd5b6103a981600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104c190919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610401816001546104c190919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561044757600080fd5b505050565b60048181548110151561045b57fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60026020528060005260406000206000915090505481565b60015481565b60008082840190508381101515156104d557fe5b8091505092915050565b60008060008414156104f45760009150610513565b828402905082848281151561050557fe5b0414151561050f57fe5b8091505b5092915050565b600080828481151561052857fe5b0490508091505092915050565b600082821115151561054357fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561058a57600080fd5b60008111151561059957600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415156105e757600080fd5b600480548060010182816105fb91906106ad565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506106a3816000546104c190919063ffffffff16565b6000819055505050565b8154818355818115116106d4578183600052602060002091820191016106d391906106d9565b5b505050565b6106fb91905b808211156106f75760008160009055506001016106df565b5090565b905600a165627a7a72305820bba3150273116cf2e762ed0f9910c8779a0d65738655ebde96b01290fae50bd50029000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000e6f031d7be9ad7702385a5dc0df7bd70eb1f91000000000000000000000000ca18e65c1928875df1839234040908bbf2277067000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633a98ef391461007a5780634e71d92d146100a357806363037b0c146100b85780639852595c1461011b578063ce7c2ac214610168578063e33b7de3146101b5575b005b341561008557600080fd5b61008d6101de565b6040518082815260200191505060405180910390f35b34156100ae57600080fd5b6100b66101e4565b005b34156100c357600080fd5b6100d9600480803590602001909190505061044c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012657600080fd5b610152600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061048b565b6040518082815260200191505060405180910390f35b341561017357600080fd5b61019f600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506104a3565b6040518082815260200191505060405180910390f35b34156101c057600080fd5b6101c86104bb565b6040518082815260200191505060405180910390f35b60005481565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411151561023a57600080fd5b6102666001543073ffffffffffffffffffffffffffffffffffffffff16316104c190919063ffffffff16565b915061031f600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610311600054610303600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876104df90919063ffffffff16565b61051a90919063ffffffff16565b61053590919063ffffffff16565b90506000811415151561033157600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561035757600080fd5b6103a981600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104c190919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610401816001546104c190919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561044757600080fd5b505050565b60048181548110151561045b57fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60026020528060005260406000206000915090505481565b60015481565b60008082840190508381101515156104d557fe5b8091505092915050565b60008060008414156104f45760009150610513565b828402905082848281151561050557fe5b0414151561050f57fe5b8091505b5092915050565b600080828481151561052857fe5b0490508091505092915050565b600082821115151561054357fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561058a57600080fd5b60008111151561059957600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415156105e757600080fd5b600480548060010182816105fb91906106ad565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506106a3816000546104c190919063ffffffff16565b6000819055505050565b8154818355818115116106d4578183600052602060002091820191016106d391906106d9565b5b505050565b6106fb91905b808211156106f75760008160009055506001016106df565b5090565b905600a165627a7a72305820bba3150273116cf2e762ed0f9910c8779a0d65738655ebde96b01290fae50bd50029

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000e6f031d7be9ad7702385a5dc0df7bd70eb1f91000000000000000000000000ca18e65c1928875df1839234040908bbf2277067000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _payees (address[]): 0x00e6F031D7be9ad7702385A5DC0DF7bD70eB1f91,0xCa18E65C1928875DF1839234040908bBF2277067
Arg [1] : _shares (uint256[]): 1,1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 00000000000000000000000000e6f031d7be9ad7702385a5dc0df7bd70eb1f91
Arg [4] : 000000000000000000000000ca18e65c1928875df1839234040908bbf2277067
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001


Swarm Source

bzzr://bba3150273116cf2e762ed0f9910c8779a0d65738655ebde96b01290fae50bd5

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.