ETH Price: $2,648.81 (-0.64%)

Contract

0x2bDdf6220CEA20790eF373b9c076766d240F8778
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Vote42721122017-09-14 6:06:122707 days ago1505369172IN
0x2bDdf622...d240F8778
0 ETH0.0015680722.10799999
Vote42716032017-09-14 2:43:482707 days ago1505357028IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42712992017-09-14 0:41:322707 days ago1505349692IN
0x2bDdf622...d240F8778
0 ETH0.0021278430
Vote42707652017-09-13 21:03:022707 days ago1505336582IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42705172017-09-13 19:17:362707 days ago1505330256IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42704942017-09-13 19:07:442707 days ago1505329664IN
0x2bDdf622...d240F8778
0 ETH0.0015932722.4632305
Vote42704642017-09-13 18:58:382707 days ago1505329118IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42704542017-09-13 18:55:372707 days ago1505328937IN
0x2bDdf622...d240F8778
0.0021 ETH0.0014894821
Vote42704472017-09-13 18:53:082707 days ago1505328788IN
0x2bDdf622...d240F8778
0.002389 ETH0.0014894821
Vote42704462017-09-13 18:52:122707 days ago1505328732IN
0x2bDdf622...d240F8778
0.002389 ETH0.0014894821
Vote42701372017-09-13 16:45:562707 days ago1505321156IN
0x2bDdf622...d240F8778
0 ETH0.0042556860
Vote42698082017-09-13 14:40:232708 days ago1505313623IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42695802017-09-13 13:04:022708 days ago1505307842IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42693672017-09-13 11:36:012708 days ago1505302561IN
0x2bDdf622...d240F8778
0 ETH0.0042556860
Vote42672262017-09-12 21:06:352708 days ago1505250395IN
0x2bDdf622...d240F8778
0 ETH0.001773225
Vote42670912017-09-12 20:14:412708 days ago1505247281IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42666892017-09-12 17:41:322708 days ago1505238092IN
0x2bDdf622...d240F8778
0 ETH0.001773225
Vote42665422017-09-12 16:40:472708 days ago1505234447IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42665272017-09-12 16:32:292709 days ago1505233949IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42664882017-09-12 16:17:292709 days ago1505233049IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42664252017-09-12 15:49:162709 days ago1505231356IN
0x2bDdf622...d240F8778
0 ETH0.001773225
Vote42662752017-09-12 14:44:342709 days ago1505227474IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42662752017-09-12 14:44:342709 days ago1505227474IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
Vote42661622017-09-12 13:59:562709 days ago1505224796IN
0x2bDdf622...d240F8778
0 ETH0.001773225
Vote42661032017-09-12 13:34:402709 days ago1505223280IN
0x2bDdf622...d240F8778
0 ETH0.0014894821
View all transactions

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Voting

Compiler Version
v0.4.15+commit.bbb8e64f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-09-07
*/

pragma solidity ^0.4.15;

/*
  Copyright 2017 Mothership Foundation https://mothership.cx

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to
  deal in the Software without restriction, including without limitation the
  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  sell copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  IN THE SOFTWARE.
*/

/// @title ERC20Basic
/// @dev Simpler version of ERC20 interface
/// @dev see https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20Basic.sol
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) constant returns (uint256);
  function transfer(address to, uint256 value) returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

contract Token is ERC20Basic{
  /// @dev Queries the balance of `_owner` at a specific `_blockNumber`
  /// @param _owner The address from which the balance will be retrieved
  /// @param _blockNumber The block number when the balance is queried
  /// @return The balance at `_blockNumber`
  function balanceOfAt(address _owner, uint _blockNumber) constant returns (uint);
}

/// @title Ownable
/// @dev The Ownable contract has an owner address, and provides basic authorization control
/// functions, this simplifies the implementation of "user permissions".
///
/// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/ownership/Ownable.sol
contract Ownable {
  address public owner;

  /// @dev The Ownable constructor sets the original `owner` of the contract to the sender
  /// account.
  function Ownable() {
    owner = msg.sender;
  }

  /// @dev Throws if called by any account other than the owner.
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /// @dev Allows the current owner to transfer control of the contract to a newOwner.
  /// @param newOwner The address to transfer ownership to.
  function transferOwnership(address newOwner) onlyOwner {
    require(newOwner != address(0));
    owner = newOwner;
  }
}

contract Voting is Ownable {
  // Number of candidates. NOTE Candidates IDs sequience starts at 1.
  uint8 public candidates;
  // An interface to a token contract to check the balance
  Token public msp;
  // The cap for a voter's MSP balance to count in voting result
  uint public cap;
  // The last block that the voting period is active
  uint public endBlock;

  // A map to store voting candidate for each user address
  mapping(address => uint8) public votes;
  // A list of all voters
  address[] public voters;

  /// @dev Constructor to create a Voting
  /// @param _candidatesCount Number of cadidates for the voting
  /// @param _msp Address of the MSP token contract
  /// @param _cap The cap for a voter's MSP balance to count in voting result
  /// @param _endBlock The last block that the voting period is active
  function Voting(uint8 _candidatesCount, address _msp, uint _cap, uint _endBlock) {
    candidates = _candidatesCount;
    msp = Token(_msp);
    cap = _cap;
    endBlock = _endBlock;
  }

  /// @dev A method to signal a vote for a given `_candidate`
  /// @param _candidate Voting candidate ID
  function vote(uint8 _candidate) {
    require(_candidate > 0 && _candidate <= candidates);
    assert(endBlock == 0 || getBlockNumber() <= endBlock);
    if (votes[msg.sender] == 0) {
      voters.push(msg.sender);
    }
    votes[msg.sender] = _candidate;
    Vote(msg.sender, _candidate);
  }

  /// @return Number of voters
  function votersCount()
    constant
    returns(uint) {
    return voters.length;
  }

  /// @dev Queries the list with `_offset` and `_limit` of `voters`, candidates
  ///  choosen and MSP amount at the current block
  /// @param _offset The offset at the `voters` list
  /// @param _limit The number of voters to return
  /// @return The voters, candidates and MSP amount at current block
  function getVoters(uint _offset, uint _limit)
    constant
    returns(address[] _voters, uint8[] _candidates, uint[] _amounts) {
    return getVotersAt(_offset, _limit, getBlockNumber());
  }

  /// @dev Queries the list with `_offset` and `_limit` of `voters`, candidates
  ///  choosen and MSP amount at a specific `_blockNumber`
  /// @param _offset The offset at the `voters` list
  /// @param _limit The number of voters to return
  /// @param _blockNumber The block number when the voters's MSP balances is queried
  /// @return The voters, candidates and MSP amount at `_blockNumber`
  function getVotersAt(uint _offset, uint _limit, uint _blockNumber)
    constant
    returns(address[] _voters, uint8[] _candidates, uint[] _amounts) {

    if (_offset < voters.length) {
      uint count = 0;
      uint resultLength = voters.length - _offset > _limit ? _limit : voters.length - _offset;
      uint _block = _blockNumber > endBlock ? endBlock : _blockNumber;
      _voters = new address[](resultLength);
      _candidates = new uint8[](resultLength);
      _amounts = new uint[](resultLength);
      for(uint i = _offset; (i < voters.length) && (count < _limit); i++) {
        _voters[count] = voters[i];
        _candidates[count] = votes[voters[i]];
        _amounts[count] = msp.balanceOfAt(voters[i], _block);
        count++;
      }

      return(_voters, _candidates, _amounts);
    }
  }

  function getSummary() constant returns (uint8[] _candidates, uint[] _summary) {
    uint _block = getBlockNumber() > endBlock ? endBlock : getBlockNumber();

    // Fill the candidates IDs list
    _candidates = new uint8[](candidates);
    for(uint8 c = 1; c <= candidates; c++) {
      _candidates[c - 1] = c;
    }

    // Get MSP impact map for each candidate
    _summary = new uint[](candidates);
    uint8 _candidateIndex;
    for(uint i = 0; i < voters.length; i++) {
      _candidateIndex = votes[voters[i]] - 1;
      _summary[_candidateIndex] = _summary[_candidateIndex] + min(msp.balanceOfAt(voters[i], _block), cap);
    }

    return (_candidates, _summary);
  }

  /// @dev This method can be used by the owner to extract mistakenly
  ///  sent tokens to this contract.
  /// @param _token The address of the token contract that you want to recover
  ///  set to 0 in case you want to extract ether.
  function claimTokens(address _token) onlyOwner {
    if (_token == 0x0) {
      owner.transfer(this.balance);
      return;
    }

    ERC20Basic token = ERC20Basic(_token);
    uint balance = token.balanceOf(this);
    token.transfer(owner, balance);
    ClaimedTokens(_token, owner, balance);
  }

  /// @dev This function is overridden by the test Mocks.
  function getBlockNumber() internal constant returns (uint) {
    return block.number;
  }

  /// @dev Helper function to return a min betwen the two uints
  function min(uint a, uint b) internal returns (uint) {
    return a < b ? a : b;
  }

  event Vote(address indexed _voter, uint indexed _candidate);
  event ClaimedTokens(address indexed _token, address indexed _controller, uint _amount);
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_offset","type":"uint256"},{"name":"_limit","type":"uint256"},{"name":"_blockNumber","type":"uint256"}],"name":"getVotersAt","outputs":[{"name":"_voters","type":"address[]"},{"name":"_candidates","type":"uint8[]"},{"name":"_amounts","type":"uint256[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"endBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getSummary","outputs":[{"name":"_candidates","type":"uint8[]"},{"name":"_summary","type":"uint256[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"candidates","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_offset","type":"uint256"},{"name":"_limit","type":"uint256"}],"name":"getVoters","outputs":[{"name":"_voters","type":"address[]"},{"name":"_candidates","type":"uint8[]"},{"name":"_amounts","type":"uint256[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"votersCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"msp","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_candidate","type":"uint8"}],"name":"vote","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"votes","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"voters","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_candidatesCount","type":"uint8"},{"name":"_msp","type":"address"},{"name":"_cap","type":"uint256"},{"name":"_endBlock","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_voter","type":"address"},{"indexed":true,"name":"_candidate","type":"uint256"}],"name":"Vote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_token","type":"address"},{"indexed":true,"name":"_controller","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"}]

6060604052341561000f57600080fd5b6040516080806115bb833981016040528080519060200190919080519060200190919080519060200190919080519060200190919050505b5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b83600060146101000a81548160ff021916908360ff16021790555082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600281905550806003819055505b505050505b6114b3806101086000396000f300606060405236156100ce576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806304830ddd146100d3578063083c6323146101f0578063355274ea146102195780634051ddac146102425780636f0470aa146102f65780638884b807146103255780638da5cb5b1461043957806398c079381461048e578063a8267482146104b7578063b3f98adc1461050c578063d8bff5a514610532578063da58c7d914610585578063df8de3e7146105e8578063f2fde38b14610621575b600080fd5b34156100de57600080fd5b610106600480803590602001909190803590602001909190803590602001909190505061065a565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156101525780820151818401525b602081019050610136565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156101955780820151818401525b602081019050610179565b50505050905001848103825285818151815260200191508051906020019060200280838360005b838110156101d85780820151818401525b6020810190506101bc565b50505050905001965050505050505060405180910390f35b34156101fb57600080fd5b6102036109e2565b6040518082815260200191505060405180910390f35b341561022457600080fd5b61022c6109e8565b6040518082815260200191505060405180910390f35b341561024d57600080fd5b6102556109ee565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561029d5780820151818401525b602081019050610281565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156102e05780820151818401525b6020810190506102c4565b5050505090500194505050505060405180910390f35b341561030157600080fd5b610309610d10565b604051808260ff1660ff16815260200191505060405180910390f35b341561033057600080fd5b61034f6004808035906020019091908035906020019091905050610d23565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561039b5780820151818401525b60208101905061037f565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156103de5780820151818401525b6020810190506103c2565b50505050905001848103825285818151815260200191508051906020019060200280838360005b838110156104215780820151818401525b602081019050610405565b50505050905001965050505050505060405180910390f35b341561044457600080fd5b61044c610d5b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561049957600080fd5b6104a1610d80565b6040518082815260200191505060405180910390f35b34156104c257600080fd5b6104ca610d8e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561051757600080fd5b610530600480803560ff16906020019091905050610db4565b005b341561053d57600080fd5b610569600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610f69565b604051808260ff1660ff16815260200191505060405180910390f35b341561059057600080fd5b6105a66004808035906020019091905050610f89565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105f357600080fd5b61061f600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610fc9565b005b341561062c57600080fd5b610658600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506112fb565b005b6106626113fa565b61066a61140e565b610672611422565b6000806000806005805490508a10156109d45760009350888a60058054905003116106a45789600580549050036106a6565b885b925060035488116106b757876106bb565b6003545b9150826040518059106106cb5750595b908082528060200260200182016040525b509650826040518059106106ed5750595b908082528060200260200182016040525b5095508260405180591061070f5750595b908082528060200260200182016040525b5094508990505b6005805490508110801561073a57508884105b156109c65760058181548110151561074e57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16878581518110151561078957fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600460006005838154811015156107d857fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16868581518110151561085b57fe5b9060200190602002019060ff16908160ff1681525050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ee2cd7e6005838154811015156108be57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561097957600080fd5b6102c65a03f1151561098a57600080fd5b5050506040518051905085858151811015156109a257fe5b906020019060200201818152505083806001019450505b8080600101915050610727565b8686869650965096506109d5565b5b5050505093509350939050565b60035481565b60025481565b6109f661140e565b6109fe611422565b600080600080600354610a0f6113d7565b11610a2157610a1c6113d7565b610a25565b6003545b9350600060149054906101000a900460ff1660ff16604051805910610a475750595b908082528060200260200182016040525b509550600192505b600060149054906101000a900460ff1660ff168360ff16111515610ab75782866001850360ff16815181101515610a9357fe5b9060200190602002019060ff16908160ff16815250505b8280600101935050610a60565b600060149054906101000a900460ff1660ff16604051805910610ad75750595b908082528060200260200182016040525b509450600090505b600580549050811015610d0157600160046000600584815481101515610b1257fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16039150610cb8600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ee2cd7e600584815481101515610bda57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610c9557600080fd5b6102c65a03f11515610ca657600080fd5b505050604051805190506002546113e0565b858360ff16815181101515610cc957fe5b9060200190602002015101858360ff16815181101515610ce557fe5b90602001906020020181815250505b8080600101915050610af0565b8585955095505b505050509091565b600060149054906101000a900460ff1681565b610d2b6113fa565b610d3361140e565b610d3b611422565b610d4d8585610d486113d7565b61065a565b9250925092505b9250925092565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060058054905090505b90565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008160ff16118015610ddc5750600060149054906101000a900460ff1660ff168160ff1611155b1515610de757600080fd5b60006003541480610e015750600354610dfe6113d7565b11155b1515610e0957fe5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff161415610ec65760058054806001018281610e759190611436565b916000526020600020900160005b33909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508060ff163373ffffffffffffffffffffffffffffffffffffffff167ff668ead05c744b9178e571d2edb452e72baf6529c8d72160e64e59b50d865bd060405160405180910390a35b50565b60046020528060005260406000206000915054906101000a900460ff1681565b600581815481101515610f9857fe5b906000526020600020900160005b915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561102757600080fd5b60008373ffffffffffffffffffffffffffffffffffffffff1614156110c3576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156110be57600080fd5b6112f5565b8291508173ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561116957600080fd5b6102c65a03f1151561117a57600080fd5b5050506040518051905090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561125257600080fd5b6102c65a03f1151561126357600080fd5b50505060405180519050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c836040518082815260200191505060405180910390a35b5b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561135657600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561139257600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b50565b60004390505b90565b60008183106113ef57816113f1565b825b90505b92915050565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b81548183558181151161145d5781836000526020600020918201910161145c9190611462565b5b505050565b61148491905b80821115611480576000816000905550600101611468565b5090565b905600a165627a7a72305820da102cfc3bafcd7b74fb687ec885a70f9912013f2b6f5763cc3dbc2931d1c8c20029000000000000000000000000000000000000000000000000000000000000000200000000000000000000000068aa3f232da9bdc2343465545794ef3eea5209bd00000000000000000000000000000000000000000000152d02c7e14af68000000000000000000000000000000000000000000000000000000000000000413090

Deployed Bytecode

0x606060405236156100ce576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806304830ddd146100d3578063083c6323146101f0578063355274ea146102195780634051ddac146102425780636f0470aa146102f65780638884b807146103255780638da5cb5b1461043957806398c079381461048e578063a8267482146104b7578063b3f98adc1461050c578063d8bff5a514610532578063da58c7d914610585578063df8de3e7146105e8578063f2fde38b14610621575b600080fd5b34156100de57600080fd5b610106600480803590602001909190803590602001909190803590602001909190505061065a565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156101525780820151818401525b602081019050610136565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156101955780820151818401525b602081019050610179565b50505050905001848103825285818151815260200191508051906020019060200280838360005b838110156101d85780820151818401525b6020810190506101bc565b50505050905001965050505050505060405180910390f35b34156101fb57600080fd5b6102036109e2565b6040518082815260200191505060405180910390f35b341561022457600080fd5b61022c6109e8565b6040518082815260200191505060405180910390f35b341561024d57600080fd5b6102556109ee565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561029d5780820151818401525b602081019050610281565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156102e05780820151818401525b6020810190506102c4565b5050505090500194505050505060405180910390f35b341561030157600080fd5b610309610d10565b604051808260ff1660ff16815260200191505060405180910390f35b341561033057600080fd5b61034f6004808035906020019091908035906020019091905050610d23565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561039b5780820151818401525b60208101905061037f565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156103de5780820151818401525b6020810190506103c2565b50505050905001848103825285818151815260200191508051906020019060200280838360005b838110156104215780820151818401525b602081019050610405565b50505050905001965050505050505060405180910390f35b341561044457600080fd5b61044c610d5b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561049957600080fd5b6104a1610d80565b6040518082815260200191505060405180910390f35b34156104c257600080fd5b6104ca610d8e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561051757600080fd5b610530600480803560ff16906020019091905050610db4565b005b341561053d57600080fd5b610569600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610f69565b604051808260ff1660ff16815260200191505060405180910390f35b341561059057600080fd5b6105a66004808035906020019091905050610f89565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105f357600080fd5b61061f600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610fc9565b005b341561062c57600080fd5b610658600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506112fb565b005b6106626113fa565b61066a61140e565b610672611422565b6000806000806005805490508a10156109d45760009350888a60058054905003116106a45789600580549050036106a6565b885b925060035488116106b757876106bb565b6003545b9150826040518059106106cb5750595b908082528060200260200182016040525b509650826040518059106106ed5750595b908082528060200260200182016040525b5095508260405180591061070f5750595b908082528060200260200182016040525b5094508990505b6005805490508110801561073a57508884105b156109c65760058181548110151561074e57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16878581518110151561078957fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600460006005838154811015156107d857fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16868581518110151561085b57fe5b9060200190602002019060ff16908160ff1681525050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ee2cd7e6005838154811015156108be57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561097957600080fd5b6102c65a03f1151561098a57600080fd5b5050506040518051905085858151811015156109a257fe5b906020019060200201818152505083806001019450505b8080600101915050610727565b8686869650965096506109d5565b5b5050505093509350939050565b60035481565b60025481565b6109f661140e565b6109fe611422565b600080600080600354610a0f6113d7565b11610a2157610a1c6113d7565b610a25565b6003545b9350600060149054906101000a900460ff1660ff16604051805910610a475750595b908082528060200260200182016040525b509550600192505b600060149054906101000a900460ff1660ff168360ff16111515610ab75782866001850360ff16815181101515610a9357fe5b9060200190602002019060ff16908160ff16815250505b8280600101935050610a60565b600060149054906101000a900460ff1660ff16604051805910610ad75750595b908082528060200260200182016040525b509450600090505b600580549050811015610d0157600160046000600584815481101515610b1257fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16039150610cb8600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ee2cd7e600584815481101515610bda57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610c9557600080fd5b6102c65a03f11515610ca657600080fd5b505050604051805190506002546113e0565b858360ff16815181101515610cc957fe5b9060200190602002015101858360ff16815181101515610ce557fe5b90602001906020020181815250505b8080600101915050610af0565b8585955095505b505050509091565b600060149054906101000a900460ff1681565b610d2b6113fa565b610d3361140e565b610d3b611422565b610d4d8585610d486113d7565b61065a565b9250925092505b9250925092565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060058054905090505b90565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008160ff16118015610ddc5750600060149054906101000a900460ff1660ff168160ff1611155b1515610de757600080fd5b60006003541480610e015750600354610dfe6113d7565b11155b1515610e0957fe5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff161415610ec65760058054806001018281610e759190611436565b916000526020600020900160005b33909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508060ff163373ffffffffffffffffffffffffffffffffffffffff167ff668ead05c744b9178e571d2edb452e72baf6529c8d72160e64e59b50d865bd060405160405180910390a35b50565b60046020528060005260406000206000915054906101000a900460ff1681565b600581815481101515610f9857fe5b906000526020600020900160005b915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561102757600080fd5b60008373ffffffffffffffffffffffffffffffffffffffff1614156110c3576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156110be57600080fd5b6112f5565b8291508173ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561116957600080fd5b6102c65a03f1151561117a57600080fd5b5050506040518051905090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561125257600080fd5b6102c65a03f1151561126357600080fd5b50505060405180519050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c836040518082815260200191505060405180910390a35b5b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561135657600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561139257600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b50565b60004390505b90565b60008183106113ef57816113f1565b825b90505b92915050565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b81548183558181151161145d5781836000526020600020918201910161145c9190611462565b5b505050565b61148491905b80821115611480576000816000905550600101611468565b5090565b905600a165627a7a72305820da102cfc3bafcd7b74fb687ec885a70f9912013f2b6f5763cc3dbc2931d1c8c20029

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

000000000000000000000000000000000000000000000000000000000000000200000000000000000000000068aa3f232da9bdc2343465545794ef3eea5209bd00000000000000000000000000000000000000000000152d02c7e14af68000000000000000000000000000000000000000000000000000000000000000413090

-----Decoded View---------------
Arg [0] : _candidatesCount (uint8): 2
Arg [1] : _msp (address): 0x68AA3F232dA9bdC2343465545794ef3eEa5209BD
Arg [2] : _cap (uint256): 100000000000000000000000
Arg [3] : _endBlock (uint256): 4272272

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [1] : 00000000000000000000000068aa3f232da9bdc2343465545794ef3eea5209bd
Arg [2] : 00000000000000000000000000000000000000000000152d02c7e14af6800000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000413090


Swarm Source

bzzr://da102cfc3bafcd7b74fb687ec885a70f9912013f2b6f5763cc3dbc2931d1c8c2

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  ]

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.