More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 40,295 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 5742596 | 2112 days ago | IN | 0.5 ETH | 0.00111875 | ||||
Transfer | 5616793 | 2134 days ago | IN | 0.2 ETH | 0.00051462 | ||||
Transfer | 5138976 | 2216 days ago | IN | 0.2 ETH | 0.00051462 | ||||
Transfer | 5090010 | 2224 days ago | IN | 0.47249844 ETH | 0.00063 | ||||
Transfer | 5086834 | 2224 days ago | IN | 0 ETH | 0.0013425 | ||||
Transfer | 5071300 | 2227 days ago | IN | 0.2 ETH | 0.00067125 | ||||
Transfer | 5065097 | 2228 days ago | IN | 0.19 ETH | 0.000895 | ||||
Transfer | 5057532 | 2229 days ago | IN | 0.2 ETH | 0.0013425 | ||||
Transfer | 5057532 | 2229 days ago | IN | 0.2 ETH | 0.00111875 | ||||
Transfer | 5057532 | 2229 days ago | IN | 0.24 ETH | 0.00111875 | ||||
Transfer | 5055748 | 2230 days ago | IN | 0.2 ETH | 0.000895 | ||||
Transfer | 5048548 | 2231 days ago | IN | 0.2 ETH | 0.00051947 | ||||
Transfer | 5046644 | 2231 days ago | IN | 0 ETH | 0.00045172 | ||||
Transfer | 5043008 | 2232 days ago | IN | 0.000017 ETH | 0.000336 | ||||
Transfer | 5035479 | 2233 days ago | IN | 0.2 ETH | 0.00110671 | ||||
Transfer | 5035157 | 2233 days ago | IN | 0.2 ETH | 0.0011293 | ||||
Transfer | 5031997 | 2234 days ago | IN | 0.15 ETH | 0.00002258 | ||||
Transfer | 5031877 | 2234 days ago | IN | 0.2 ETH | 0.00058723 | ||||
Transfer | 5027398 | 2234 days ago | IN | 0.2 ETH | 0.00135516 | ||||
Transfer | 5027248 | 2234 days ago | IN | 0.5 ETH | 0.00051947 | ||||
Transfer | 5026791 | 2234 days ago | IN | 0.2 ETH | 0 | ||||
Transfer | 5026580 | 2234 days ago | IN | 0.2 ETH | 0.0006324 | ||||
Transfer | 5026538 | 2234 days ago | IN | 0.2 ETH | 0.00067758 | ||||
Transfer | 5026528 | 2234 days ago | IN | 0.2 ETH | 0.00065499 | ||||
Transfer | 5026514 | 2234 days ago | IN | 0.2 ETH | 0.00067758 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
5012920 | 2237 days ago | 0.07 ETH | ||||
5012529 | 2237 days ago | 0.46397804 ETH | ||||
5012529 | 2237 days ago | 3.03602195 ETH | ||||
5012529 | 2237 days ago | 9 ETH | ||||
5012529 | 2237 days ago | 5 ETH | ||||
5012529 | 2237 days ago | 5.82133663 ETH | ||||
5012529 | 2237 days ago | 3.4 ETH | ||||
5012529 | 2237 days ago | 23 ETH | ||||
5012529 | 2237 days ago | 5.82222711 ETH | ||||
5012529 | 2237 days ago | 4 ETH | ||||
5012529 | 2237 days ago | 4 ETH | ||||
5012529 | 2237 days ago | 5.7 ETH | ||||
5012529 | 2237 days ago | 1.8 ETH | ||||
5012529 | 2237 days ago | 20 ETH | ||||
5012529 | 2237 days ago | 5 ETH | ||||
5012529 | 2237 days ago | 5 ETH | ||||
5012529 | 2237 days ago | 15 ETH | ||||
5012529 | 2237 days ago | 2.75 ETH | ||||
5012529 | 2237 days ago | 11 ETH | ||||
5012529 | 2237 days ago | 50 ETH | ||||
5012529 | 2237 days ago | 50 ETH | ||||
5012529 | 2237 days ago | 50 ETH | ||||
5012529 | 2237 days ago | 1.5 ETH | ||||
5012529 | 2237 days ago | 88.7 ETH | ||||
5012529 | 2237 days ago | 6.65478144 ETH |
Loading...
Loading
Contract Name:
Contribution
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-01-29 */ pragma solidity ^0.4.18; // File: zeppelin-solidity/contracts/token/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } // File: contracts/ExchangerI.sol contract ExchangerI { ERC20Basic public wpr; /// @notice This method should be called by the WCT holders to collect their /// corresponding WPRs function collect(address caller) public; } // File: contracts/MiniMeToken.sol /* Copyright 2016, Jordi Baylina This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /// @title MiniMeToken Contract /// @author Jordi Baylina /// @dev This token contract's goal is to make it easy for anyone to clone this /// token using the token distribution at a given block, this will allow DAO's /// and DApps to upgrade their features in a decentralized manner without /// affecting the original token /// @dev It is ERC20 compliant, but still needs to under go further testing. /// @dev The token controller contract must implement these functions contract TokenController { /// @notice Called when `_owner` sends ether to the MiniMe Token contract /// @param _owner The address that sent the ether to create tokens /// @return True if the ether is accepted, false if it throws function proxyPayment(address _owner) payable returns(bool); /// @notice Notifies the controller about a token transfer allowing the /// controller to react if desired /// @param _from The origin of the transfer /// @param _to The destination of the transfer /// @param _amount The amount of the transfer /// @return False if the controller does not authorize the transfer function onTransfer(address _from, address _to, uint _amount) returns(bool); /// @notice Notifies the controller about an approval allowing the /// controller to react if desired /// @param _owner The address that calls `approve()` /// @param _spender The spender in the `approve()` call /// @param _amount The amount in the `approve()` call /// @return False if the controller does not authorize the approval function onApprove(address _owner, address _spender, uint _amount) returns(bool); } contract Controlled { /// @notice The address of the controller is the only address that can call /// a function with this modifier modifier onlyController { require(msg.sender == controller); _; } address public controller; function Controlled() { controller = msg.sender;} /// @notice Changes the controller of the contract /// @param _newController The new controller of the contract function changeController(address _newController) onlyController { controller = _newController; } } contract ApproveAndCallFallBack { function receiveApproval(address from, uint256 _amount, address _token, bytes _data); } /// @dev The actual token contract, the default controller is the msg.sender /// that deploys the contract, so usually this token will be deployed by a /// token controller contract, which Giveth will call a "Campaign" contract MiniMeToken is Controlled { string public name; //The Token's name: e.g. DigixDAO Tokens uint8 public decimals; //Number of decimals of the smallest unit string public symbol; //An identifier: e.g. REP string public version = 'MMT_0.1'; //An arbitrary versioning scheme /// @dev `Checkpoint` is the structure that attaches a block number to a /// given value, the block number attached is the one that last changed the /// value struct Checkpoint { // `fromBlock` is the block number that the value was generated from uint128 fromBlock; // `value` is the amount of tokens at a specific block number uint128 value; } // `parentToken` is the Token address that was cloned to produce this token; // it will be 0x0 for a token that was not cloned MiniMeToken public parentToken; // `parentSnapShotBlock` is the block number from the Parent Token that was // used to determine the initial distribution of the Clone Token uint public parentSnapShotBlock; // `creationBlock` is the block number that the Clone Token was created uint public creationBlock; // `balances` is the map that tracks the balance of each address, in this // contract when the balance changes the block number that the change // occurred is also included in the map mapping (address => Checkpoint[]) balances; // `allowed` tracks any extra transfer rights as in all ERC20 tokens mapping (address => mapping (address => uint256)) allowed; // Tracks the history of the `totalSupply` of the token Checkpoint[] totalSupplyHistory; // Flag that determines if the token is transferable or not. bool public transfersEnabled; // The factory used to create new clone tokens MiniMeTokenFactory public tokenFactory; //////////////// // Constructor //////////////// /// @notice Constructor to create a MiniMeToken /// @param _tokenFactory The address of the MiniMeTokenFactory contract that /// will create the Clone token contracts, the token factory needs to be /// deployed first /// @param _parentToken Address of the parent token, set to 0x0 if it is a /// new token /// @param _parentSnapShotBlock Block of the parent token that will /// determine the initial distribution of the clone token, set to 0 if it /// is a new token /// @param _tokenName Name of the new token /// @param _decimalUnits Number of decimals of the new token /// @param _tokenSymbol Token Symbol for the new token /// @param _transfersEnabled If true, tokens will be able to be transferred function MiniMeToken( address _tokenFactory, address _parentToken, uint _parentSnapShotBlock, string _tokenName, uint8 _decimalUnits, string _tokenSymbol, bool _transfersEnabled ) { tokenFactory = MiniMeTokenFactory(_tokenFactory); name = _tokenName; // Set the name decimals = _decimalUnits; // Set the decimals symbol = _tokenSymbol; // Set the symbol parentToken = MiniMeToken(_parentToken); parentSnapShotBlock = _parentSnapShotBlock; transfersEnabled = _transfersEnabled; creationBlock = block.number; } /////////////////// // ERC20 Methods /////////////////// /// @notice Send `_amount` tokens to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _amount The amount of tokens to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _amount) returns (bool success) { require(transfersEnabled); return doTransfer(msg.sender, _to, _amount); } /// @notice Send `_amount` tokens to `_to` from `_from` on the condition it /// is approved by `_from` /// @param _from The address holding the tokens being transferred /// @param _to The address of the recipient /// @param _amount The amount of tokens to be transferred /// @return True if the transfer was successful function transferFrom(address _from, address _to, uint256 _amount ) returns (bool success) { // The controller of this contract can move tokens around at will, // controller of this contract, which in most situations should be // another open source smart contract or 0x0 if (msg.sender != controller) { require(transfersEnabled); // The standard ERC 20 transferFrom functionality if (allowed[_from][msg.sender] < _amount) return false; allowed[_from][msg.sender] -= _amount; } return doTransfer(_from, _to, _amount); } /// @dev This is the actual transfer function in the token contract, it can /// only be called by other functions in this contract. /// @param _from The address holding the tokens being transferred /// @param _to The address of the recipient /// @param _amount The amount of tokens to be transferred /// @return True if the transfer was successful function doTransfer(address _from, address _to, uint _amount ) internal returns(bool) { if (_amount == 0) { return true; } require(parentSnapShotBlock < block.number); // Do not allow transfer to 0x0 or the token contract itself require((_to != 0) && (_to != address(this))); // If the amount being transfered is more than the balance of the // account the transfer returns false var previousBalanceFrom = balanceOfAt(_from, block.number); if (previousBalanceFrom < _amount) { return false; } // Alerts the token controller of the transfer if (isContract(controller)) { require(TokenController(controller).onTransfer(_from, _to, _amount)); } // First update the balance array with the new value for the address // sending the tokens updateValueAtNow(balances[_from], previousBalanceFrom - _amount); // Then update the balance array with the new value for the address // receiving the tokens var previousBalanceTo = balanceOfAt(_to, block.number); require(previousBalanceTo + _amount >= previousBalanceTo); // Check for overflow updateValueAtNow(balances[_to], previousBalanceTo + _amount); // An event to make the transfer easy to find on the blockchain Transfer(_from, _to, _amount); return true; } /// @param _owner The address that's balance is being requested /// @return The balance of `_owner` at the current block function balanceOf(address _owner) constant returns (uint256 balance) { return balanceOfAt(_owner, block.number); } /// @notice `msg.sender` approves `_spender` to spend `_amount` tokens on /// its behalf. This is a modified version of the ERC20 approve function /// to be a little bit safer /// @param _spender The address of the account able to transfer the tokens /// @param _amount The amount of tokens to be approved for transfer /// @return True if the approval was successful function approve(address _spender, uint256 _amount) returns (bool success) { require(transfersEnabled); // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender,0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 require((_amount == 0) || (allowed[msg.sender][_spender] == 0)); // Alerts the token controller of the approve function call if (isContract(controller)) { require(TokenController(controller).onApprove(msg.sender, _spender, _amount)); } allowed[msg.sender][_spender] = _amount; Approval(msg.sender, _spender, _amount); return true; } /// @dev This function makes it easy to read the `allowed[]` map /// @param _owner The address of the account that owns the token /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens of _owner that _spender is allowed /// to spend function allowance(address _owner, address _spender ) constant returns (uint256 remaining) { return allowed[_owner][_spender]; } /// @notice `msg.sender` approves `_spender` to send `_amount` tokens on /// its behalf, and then a function is triggered in the contract that is /// being approved, `_spender`. This allows users to use their tokens to /// interact with contracts in one function call instead of two /// @param _spender The address of the contract able to transfer the tokens /// @param _amount The amount of tokens to be approved for transfer /// @return True if the function call was successful function approveAndCall(address _spender, uint256 _amount, bytes _extraData ) returns (bool success) { require(approve(_spender, _amount)); ApproveAndCallFallBack(_spender).receiveApproval( msg.sender, _amount, this, _extraData ); return true; } /// @dev This function makes it easy to get the total number of tokens /// @return The total number of tokens function totalSupply() constant returns (uint) { return totalSupplyAt(block.number); } //////////////// // Query balance and totalSupply in History //////////////// /// @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) { // These next few lines are used when the balance of the token is // requested before a check point was ever created for this token, it // requires that the `parentToken.balanceOfAt` be queried at the // genesis block for that token as this contains initial balance of // this token if ((balances[_owner].length == 0) || (balances[_owner][0].fromBlock > _blockNumber)) { if (address(parentToken) != 0) { return parentToken.balanceOfAt(_owner, min(_blockNumber, parentSnapShotBlock)); } else { // Has no parent return 0; } // This will return the expected balance during normal situations } else { return getValueAt(balances[_owner], _blockNumber); } } /// @notice Total amount of tokens at a specific `_blockNumber`. /// @param _blockNumber The block number when the totalSupply is queried /// @return The total amount of tokens at `_blockNumber` function totalSupplyAt(uint _blockNumber) constant returns(uint) { // These next few lines are used when the totalSupply of the token is // requested before a check point was ever created for this token, it // requires that the `parentToken.totalSupplyAt` be queried at the // genesis block for this token as that contains totalSupply of this // token at this block number. if ((totalSupplyHistory.length == 0) || (totalSupplyHistory[0].fromBlock > _blockNumber)) { if (address(parentToken) != 0) { return parentToken.totalSupplyAt(min(_blockNumber, parentSnapShotBlock)); } else { return 0; } // This will return the expected totalSupply during normal situations } else { return getValueAt(totalSupplyHistory, _blockNumber); } } //////////////// // Clone Token Method //////////////// /// @notice Creates a new clone token with the initial distribution being /// this token at `_snapshotBlock` /// @param _cloneTokenName Name of the clone token /// @param _cloneDecimalUnits Number of decimals of the smallest unit /// @param _cloneTokenSymbol Symbol of the clone token /// @param _snapshotBlock Block when the distribution of the parent token is /// copied to set the initial distribution of the new clone token; /// if the block is zero than the actual block, the current block is used /// @param _transfersEnabled True if transfers are allowed in the clone /// @return The address of the new MiniMeToken Contract function createCloneToken( string _cloneTokenName, uint8 _cloneDecimalUnits, string _cloneTokenSymbol, uint _snapshotBlock, bool _transfersEnabled ) returns(address) { if (_snapshotBlock == 0) _snapshotBlock = block.number; MiniMeToken cloneToken = tokenFactory.createCloneToken( this, _snapshotBlock, _cloneTokenName, _cloneDecimalUnits, _cloneTokenSymbol, _transfersEnabled ); cloneToken.changeController(msg.sender); // An event to make the token easy to find on the blockchain NewCloneToken(address(cloneToken), _snapshotBlock); return address(cloneToken); } //////////////// // Generate and destroy tokens //////////////// /// @notice Generates `_amount` tokens that are assigned to `_owner` /// @param _owner The address that will be assigned the new tokens /// @param _amount The quantity of tokens generated /// @return True if the tokens are generated correctly function generateTokens(address _owner, uint _amount ) onlyController returns (bool) { uint curTotalSupply = totalSupply(); require(curTotalSupply + _amount >= curTotalSupply); // Check for overflow uint previousBalanceTo = balanceOf(_owner); require(previousBalanceTo + _amount >= previousBalanceTo); // Check for overflow updateValueAtNow(totalSupplyHistory, curTotalSupply + _amount); updateValueAtNow(balances[_owner], previousBalanceTo + _amount); Transfer(0, _owner, _amount); return true; } /// @notice Burns `_amount` tokens from `_owner` /// @param _owner The address that will lose the tokens /// @param _amount The quantity of tokens to burn /// @return True if the tokens are burned correctly function destroyTokens(address _owner, uint _amount ) onlyController returns (bool) { uint curTotalSupply = totalSupply(); require(curTotalSupply >= _amount); uint previousBalanceFrom = balanceOf(_owner); require(previousBalanceFrom >= _amount); updateValueAtNow(totalSupplyHistory, curTotalSupply - _amount); updateValueAtNow(balances[_owner], previousBalanceFrom - _amount); Transfer(_owner, 0, _amount); return true; } //////////////// // Enable tokens transfers //////////////// /// @notice Enables token holders to transfer their tokens freely if true /// @param _transfersEnabled True if transfers are allowed in the clone function enableTransfers(bool _transfersEnabled) onlyController { transfersEnabled = _transfersEnabled; } //////////////// // Internal helper functions to query and set a value in a snapshot array //////////////// /// @dev `getValueAt` retrieves the number of tokens at a given block number /// @param checkpoints The history of values being queried /// @param _block The block number to retrieve the value at /// @return The number of tokens being queried function getValueAt(Checkpoint[] storage checkpoints, uint _block ) constant internal returns (uint) { if (checkpoints.length == 0) return 0; // Shortcut for the actual value if (_block >= checkpoints[checkpoints.length-1].fromBlock) return checkpoints[checkpoints.length-1].value; if (_block < checkpoints[0].fromBlock) return 0; // Binary search of the value in the array uint min = 0; uint max = checkpoints.length-1; while (max > min) { uint mid = (max + min + 1)/ 2; if (checkpoints[mid].fromBlock<=_block) { min = mid; } else { max = mid-1; } } return checkpoints[min].value; } /// @dev `updateValueAtNow` used to update the `balances` map and the /// `totalSupplyHistory` /// @param checkpoints The history of data being updated /// @param _value The new number of tokens function updateValueAtNow(Checkpoint[] storage checkpoints, uint _value ) internal { if ((checkpoints.length == 0) || (checkpoints[checkpoints.length -1].fromBlock < block.number)) { Checkpoint storage newCheckPoint = checkpoints[ checkpoints.length++ ]; newCheckPoint.fromBlock = uint128(block.number); newCheckPoint.value = uint128(_value); } else { Checkpoint storage oldCheckPoint = checkpoints[checkpoints.length-1]; oldCheckPoint.value = uint128(_value); } } /// @dev Internal function to determine if an address is a contract /// @param _addr The address being queried /// @return True if `_addr` is a contract function isContract(address _addr) constant internal returns(bool) { uint size; if (_addr == 0) return false; assembly { size := extcodesize(_addr) } return size>0; } /// @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; } /// @notice The fallback function: If the contract's controller has not been /// set to 0, then the `proxyPayment` method is called which relays the /// ether and creates tokens as described in the token controller contract function () payable { require(isContract(controller)); require(TokenController(controller).proxyPayment.value(msg.value)(msg.sender)); } ////////// // Safety Methods ////////// /// @notice This method can be used by the controller 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) onlyController { if (_token == 0x0) { controller.transfer(this.balance); return; } MiniMeToken token = MiniMeToken(_token); uint balance = token.balanceOf(this); token.transfer(controller, balance); ClaimedTokens(_token, controller, balance); } //////////////// // Events //////////////// event ClaimedTokens(address indexed _token, address indexed _controller, uint _amount); event Transfer(address indexed _from, address indexed _to, uint256 _amount); event NewCloneToken(address indexed _cloneToken, uint _snapshotBlock); event Approval( address indexed _owner, address indexed _spender, uint256 _amount ); } //////////////// // MiniMeTokenFactory //////////////// /// @dev This contract is used to generate clone contracts from a contract. /// In solidity this is the way to create a contract from a contract of the /// same class contract MiniMeTokenFactory { /// @notice Update the DApp by creating a new token with new functionalities /// the msg.sender becomes the controller of this clone token /// @param _parentToken Address of the token being cloned /// @param _snapshotBlock Block of the parent token that will /// determine the initial distribution of the clone token /// @param _tokenName Name of the new token /// @param _decimalUnits Number of decimals of the new token /// @param _tokenSymbol Token Symbol for the new token /// @param _transfersEnabled If true, tokens will be able to be transferred /// @return The address of the new token contract function createCloneToken( address _parentToken, uint _snapshotBlock, string _tokenName, uint8 _decimalUnits, string _tokenSymbol, bool _transfersEnabled ) returns (MiniMeToken) { MiniMeToken newToken = new MiniMeToken( this, _parentToken, _snapshotBlock, _tokenName, _decimalUnits, _tokenSymbol, _transfersEnabled ); newToken.changeController(msg.sender); return newToken; } } // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { 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) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } } // File: zeppelin-solidity/contracts/math/SafeMath.sol /** * @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; } } // File: zeppelin-solidity/contracts/token/BasicToken.sol /** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */ contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } } // File: zeppelin-solidity/contracts/token/ERC20.sol /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } // File: zeppelin-solidity/contracts/token/StandardToken.sol /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); Transfer(_from, _to, _value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; } /** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender The address which will spend the funds. * @param _addedValue The amount of tokens to increase the allowance by. */ function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } /** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender The address which will spend the funds. * @param _subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } } // File: zeppelin-solidity/contracts/token/MintableToken.sol /** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */ contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; modifier canMint() { require(!mintingFinished); _; } /** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */ function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { totalSupply = totalSupply.add(_amount); balances[_to] = balances[_to].add(_amount); Mint(_to, _amount); Transfer(address(0), _to, _amount); return true; } /** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */ function finishMinting() onlyOwner canMint public returns (bool) { mintingFinished = true; MintFinished(); return true; } } // File: zeppelin-solidity/contracts/lifecycle/Pausable.sol /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(paused); _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() onlyOwner whenNotPaused public { paused = true; Pause(); } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() onlyOwner whenPaused public { paused = false; Unpause(); } } // File: zeppelin-solidity/contracts/token/PausableToken.sol /** * @title Pausable token * * @dev StandardToken modified with pausable transfers. **/ contract PausableToken is StandardToken, Pausable { function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) { return super.transfer(_to, _value); } function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) { return super.transferFrom(_from, _to, _value); } function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) { return super.approve(_spender, _value); } function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) { return super.increaseApproval(_spender, _addedValue); } function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) { return super.decreaseApproval(_spender, _subtractedValue); } } // File: contracts/WPR.sol /** * @title WePower Contribution Token */ contract WPR is MintableToken, PausableToken { string constant public name = "WePower Token"; string constant public symbol = "WPR"; uint constant public decimals = 18; function WPR() { } ////////// // Safety Methods ////////// /// @notice This method can be used by the controller 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) public onlyOwner { if (_token == 0x0) { owner.transfer(this.balance); return; } ERC20 token = ERC20(_token); uint balance = token.balanceOf(this); token.transfer(owner, balance); ClaimedTokens(_token, owner, balance); } event ClaimedTokens(address indexed _token, address indexed _controller, uint _amount); function disown() public onlyOwner { OwnershipTransferred(owner, address(0)); owner = address(0); } } // File: contracts/Contribution.sol contract Contribution is Ownable { using SafeMath for uint256; WPR public wpr; address public contributionWallet; address public teamHolder; address public communityHolder; address public futureHolder; address public exchanger; // Wings Integration uint256 public totalCollected; uint256 public totalWeiCap; // Total Wei to be collected uint256 public totalWeiCollected; // How much Wei has been collected uint256 public presaleTokensIssued; uint256 public minimumPerTransaction = 0.01 ether; uint256 public numWhitelistedInvestors; mapping (address => bool) public canPurchase; mapping (address => uint256) public individualWeiCollected; uint256 public startTime; uint256 public endTime; uint256 public initializedTime; uint256 public finalizedTime; uint256 public initializedBlock; uint256 public finalizedBlock; bool public paused; modifier initialized() { require(initializedBlock != 0); _; } modifier contributionOpen() { require(getBlockTimestamp() >= startTime && getBlockTimestamp() <= endTime && finalizedTime == 0); _; } modifier notPaused() { require(!paused); _; } function Contribution(address _wpr) { require(_wpr != 0x0); wpr = WPR(_wpr); } function initialize( address _wct1, address _wct2, address _exchanger, address _contributionWallet, address _futureHolder, address _teamHolder, address _communityHolder, uint256 _totalWeiCap, uint256 _startTime, uint256 _endTime ) public onlyOwner { // Initialize only once require(initializedBlock == 0); require(initializedTime == 0); assert(wpr.totalSupply() == 0); assert(wpr.owner() == address(this)); assert(wpr.decimals() == 18); // Same amount of decimals as ETH wpr.pause(); require(_contributionWallet != 0x0); contributionWallet = _contributionWallet; require(_futureHolder != 0x0); futureHolder = _futureHolder; require(_teamHolder != 0x0); teamHolder = _teamHolder; require(_communityHolder != 0x0); communityHolder = _communityHolder; require(_startTime >= getBlockTimestamp()); require(_startTime < _endTime); startTime = _startTime; endTime = _endTime; require(_totalWeiCap > 0); totalWeiCap = _totalWeiCap; initializedBlock = getBlockNumber(); initializedTime = getBlockTimestamp(); require(_wct1 != 0x0); require(_wct2 != 0x0); require(_exchanger != 0x0); presaleTokensIssued = MiniMeToken(_wct1).totalSupplyAt(initializedBlock); presaleTokensIssued = presaleTokensIssued.add( MiniMeToken(_wct2).totalSupplyAt(initializedBlock) ); // Exchange rate from wct to wpr 10000 require(wpr.mint(_exchanger, presaleTokensIssued.mul(10000))); exchanger = _exchanger; Initialized(initializedBlock); } /// @notice interface for founders to blacklist investors /// @param _investors array of investors function blacklistAddresses(address[] _investors) public onlyOwner { for (uint256 i = 0; i < _investors.length; i++) { blacklist(_investors[i]); } } /// @notice Notifies if an investor is whitelisted for contribution /// @param _investor investor address /// @return status function isWhitelisted(address _investor) public onlyOwner constant returns(bool) { return canPurchase[_investor]; } /// @notice interface for founders to whitelist investors /// @param _investors array of investors function whitelistAddresses(address[] _investors) public onlyOwner { for (uint256 i = 0; i < _investors.length; i++) { whitelist(_investors[i]); } } function whitelist(address investor) public onlyOwner { if (canPurchase[investor]) return; numWhitelistedInvestors++; canPurchase[investor] = true; } function blacklist(address investor) public onlyOwner { if (!canPurchase[investor]) return; numWhitelistedInvestors--; canPurchase[investor] = false; } // ETH-WPR exchange rate function exchangeRate() constant public initialized returns (uint256) { return 8000; } function tokensToGenerate(uint256 toFund) internal returns (uint256 generatedTokens) { generatedTokens = toFund.mul(exchangeRate()); } /// @notice If anybody sends Ether directly to this contract, consider he is /// getting WPRs. function () public payable notPaused { proxyPayment(msg.sender); } ////////// // TokenController functions ////////// /// @notice This method will generally be called by the WPR token contract to /// acquire WPRs. Or directly from third parties that want to acquire WPRs in /// behalf of a token holder. /// @param _th WPR holder where the WPRs will be minted. function proxyPayment(address _th) public payable notPaused initialized contributionOpen returns (bool) { require(_th != 0x0); if (msg.value == 0) { wpr.unpause(); ExchangerI(exchanger).collect(_th); wpr.pause(); } else { doBuy(_th); } return true; } function doBuy(address _th) internal { // whitelisting only during the first day // if (getBlockTimestamp() <= startTime + 1 days) { require(canPurchase[_th]); // } require(msg.value >= minimumPerTransaction); uint256 toFund = msg.value; uint256 toCollect = weiToCollectByInvestor(_th); require(toCollect > 0); // Check total supply cap reached, sell the all remaining tokens if (toFund > toCollect) { toFund = toCollect; } uint256 tokensGenerated = tokensToGenerate(toFund); require(tokensGenerated > 0); require(wpr.mint(_th, tokensGenerated)); contributionWallet.transfer(toFund); // Wings Integration totalCollected = totalCollected.add(toFund); individualWeiCollected[_th] = individualWeiCollected[_th].add(toFund); totalWeiCollected = totalWeiCollected.add(toFund); NewSale(_th, toFund, tokensGenerated); uint256 toReturn = msg.value.sub(toFund); if (toReturn > 0) { _th.transfer(toReturn); } } /// @notice This method will can be called by the controller before the contribution period /// end or by anybody after the `endTime`. This method finalizes the contribution period /// by creating the remaining tokens and transferring the controller to the configured /// controller. function finalize() public initialized { require(finalizedBlock == 0); require(finalizedTime == 0); require(getBlockTimestamp() >= startTime); require(msg.sender == owner || getBlockTimestamp() > endTime || weiToCollect() == 0); uint CROWDSALE_PCT = 62; uint TEAMHOLDER_PCT = 20; uint COMMUNITYHOLDER_PCT = 15; uint FUTUREHOLDER_PCT = 3; assert(CROWDSALE_PCT + TEAMHOLDER_PCT + COMMUNITYHOLDER_PCT + FUTUREHOLDER_PCT == 100); // WPR generated so far is 62% of total uint256 tokenCap = wpr.totalSupply().mul(100).div(CROWDSALE_PCT); // team Wallet will have 20% of the total Tokens and will be in a 36 months // vesting contract with 3 months cliff. wpr.mint(teamHolder, tokenCap.mul(TEAMHOLDER_PCT).div(100)); // community Wallet will have access to 15% of the total Tokens. wpr.mint(communityHolder, tokenCap.mul(COMMUNITYHOLDER_PCT).div(100)); // future Wallet will have 3% of the total Tokens and will be able to retrieve // after a 4 years. wpr.mint(futureHolder, tokenCap.mul(FUTUREHOLDER_PCT).div(100)); require(wpr.finishMinting()); wpr.transferOwnership(owner); finalizedBlock = getBlockNumber(); finalizedTime = getBlockTimestamp(); Finalized(finalizedBlock); } ////////// // Constant functions ////////// /// @return Total eth that still available for collection in weis. function weiToCollect() public constant returns(uint256) { return totalWeiCap > totalWeiCollected ? totalWeiCap.sub(totalWeiCollected) : 0; } /// @return Total eth that still available for collection in weis. function weiToCollectByInvestor(address investor) public constant returns(uint256) { uint256 cap; uint256 collected; // adding 1 day as a placeholder for X hours. // This should change into a variable or coded into the contract. if (getBlockTimestamp() <= startTime + 5 hours) { cap = totalWeiCap.div(numWhitelistedInvestors); collected = individualWeiCollected[investor]; } else { cap = totalWeiCap; collected = totalWeiCollected; } return cap > collected ? cap.sub(collected) : 0; } ////////// // Testing specific methods ////////// /// @notice This function is overridden by the test Mocks. function getBlockNumber() internal constant returns (uint256) { return block.number; } function getBlockTimestamp() internal constant returns (uint256) { return block.timestamp; } ////////// // Safety Methods ////////// // Wings Integration // This function can be used by the contract owner to add ether collected // outside of this contract, such as from a presale function setTotalCollected(uint _totalCollected) public onlyOwner { totalCollected = _totalCollected; } /// @notice This method can be used by the controller 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) public onlyOwner { if (wpr.owner() == address(this)) { wpr.claimTokens(_token); } if (_token == 0x0) { owner.transfer(this.balance); return; } ERC20 token = ERC20(_token); uint256 balance = token.balanceOf(this); token.transfer(owner, balance); ClaimedTokens(_token, owner, balance); } /// @notice Pauses the contribution if there is any issue function pauseContribution(bool _paused) onlyOwner { paused = _paused; } event ClaimedTokens(address indexed _token, address indexed _controller, uint256 _amount); event NewSale(address indexed _th, uint256 _amount, uint256 _tokens); event Initialized(uint _now); event Finalized(uint _now); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"wpr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_wct1","type":"address"},{"name":"_wct2","type":"address"},{"name":"_exchanger","type":"address"},{"name":"_contributionWallet","type":"address"},{"name":"_futureHolder","type":"address"},{"name":"_teamHolder","type":"address"},{"name":"_communityHolder","type":"address"},{"name":"_totalWeiCap","type":"uint256"},{"name":"_startTime","type":"uint256"},{"name":"_endTime","type":"uint256"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_paused","type":"bool"}],"name":"pauseContribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_investors","type":"address[]"}],"name":"whitelistAddresses","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"endTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_investor","type":"address"}],"name":"isWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"canPurchase","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finalizedBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"teamHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"presaleTokensIssued","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"exchanger","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minimumPerTransaction","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_investors","type":"address[]"}],"name":"blacklistAddresses","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"communityHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiToCollect","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"investor","type":"address"}],"name":"whitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"numWhitelistedInvestors","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"futureHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initializedBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalWeiCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"individualWeiCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"investor","type":"address"}],"name":"weiToCollectByInvestor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalWeiCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contributionWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_totalCollected","type":"uint256"}],"name":"setTotalCollected","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_th","type":"address"}],"name":"proxyPayment","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"initializedTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"investor","type":"address"}],"name":"blacklist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"finalizedTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_wpr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_th","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_tokens","type":"uint256"}],"name":"NewSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_now","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_now","type":"uint256"}],"name":"Finalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
6060604052662386f26fc10000600b55341561001a57600080fd5b60405160208061312383398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff161415151561009c57600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050613036806100ed6000396000f3006060604052600436106101cd576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630747e4eb146101f55780630974f94c1461024a578063296032f2146103585780632bf043041461037d5780633197cbb6146103d75780633af32abf146104005780633ba0b9a9146104515780633e3b429a1461047a5780634084c3ab146104cb5780634b66cb7e146104f45780634bb278f3146105495780634c49515d1461055e5780634d12fca4146105875780635c975abb146105dc5780635eed886b1461060957806377a54eb81461063257806378bba5301461068c57806378e97925146106e157806378fbc9ea1461070a5780638da5cb5b146107335780639b19251a146107885780639fed39c5146107c1578063a305ac76146107ea578063ada5cf631461083f578063adf9cd4914610868578063d142bc5c14610891578063d54b02ec146108de578063df8de3e71461092b578063e29eb83614610964578063e7d0242b1461098d578063e846f997146109b6578063f2fde38b14610a0b578063f3466b4714610a44578063f48c305414610a67578063f81f810114610aad578063f9f92be414610ad6578063fe67a18914610b0f575b601560009054906101000a900460ff161515156101e957600080fd5b6101f233610b38565b50005b341561020057600080fd5b610208610dec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561025557600080fd5b610356600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091908035906020019091908035906020019091905050610e12565b005b341561036357600080fd5b61037b600480803515159060200190919050506116b8565b005b341561038857600080fd5b6103d5600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050611730565b005b34156103e257600080fd5b6103ea6117cc565b6040518082815260200191505060405180910390f35b341561040b57600080fd5b610437600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506117d2565b604051808215151515815260200191505060405180910390f35b341561045c57600080fd5b610464611883565b6040518082815260200191505060405180910390f35b341561048557600080fd5b6104b1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061189e565b604051808215151515815260200191505060405180910390f35b34156104d657600080fd5b6104de6118be565b6040518082815260200191505060405180910390f35b34156104ff57600080fd5b6105076118c4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561055457600080fd5b61055c6118ea565b005b341561056957600080fd5b610571612040565b6040518082815260200191505060405180910390f35b341561059257600080fd5b61059a612046565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105e757600080fd5b6105ef61206c565b604051808215151515815260200191505060405180910390f35b341561061457600080fd5b61061c61207f565b6040518082815260200191505060405180910390f35b341561063d57600080fd5b61068a600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050612085565b005b341561069757600080fd5b61069f612121565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156106ec57600080fd5b6106f4612147565b6040518082815260200191505060405180910390f35b341561071557600080fd5b61071d61214d565b6040518082815260200191505060405180910390f35b341561073e57600080fd5b61074661217e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561079357600080fd5b6107bf600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506121a3565b005b34156107cc57600080fd5b6107d46122c3565b6040518082815260200191505060405180910390f35b34156107f557600080fd5b6107fd6122c9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561084a57600080fd5b6108526122ef565b6040518082815260200191505060405180910390f35b341561087357600080fd5b61087b6122f5565b6040518082815260200191505060405180910390f35b341561089c57600080fd5b6108c8600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506122fb565b6040518082815260200191505060405180910390f35b34156108e957600080fd5b610915600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612313565b6040518082815260200191505060405180910390f35b341561093657600080fd5b610962600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506123c4565b005b341561096f57600080fd5b6109776128a2565b6040518082815260200191505060405180910390f35b341561099857600080fd5b6109a06128a8565b6040518082815260200191505060405180910390f35b34156109c157600080fd5b6109c96128ae565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610a1657600080fd5b610a42600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506128d4565b005b3415610a4f57600080fd5b610a656004808035906020019091905050612a29565b005b610a93600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b38565b604051808215151515815260200191505060405180910390f35b3415610ab857600080fd5b610ac0612a8e565b6040518082815260200191505060405180910390f35b3415610ae157600080fd5b610b0d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612a94565b005b3415610b1a57600080fd5b610b22612bb6565b6040518082815260200191505060405180910390f35b6000601560009054906101000a900460ff16151515610b5657600080fd5b600060135414151515610b6857600080fd5b600f54610b73612bbc565b10158015610b8a5750601054610b87612bbc565b11155b8015610b9857506000601254145b1515610ba357600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff1614151515610bc957600080fd5b6000341415610dd957600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633f4ba83a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515610c5757600080fd5b6102c65a03f11515610c6857600080fd5b505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306ec16f8836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515610d2757600080fd5b6102c65a03f11515610d3857600080fd5b505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638456cb596040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515610dc057600080fd5b6102c65a03f11515610dd157600080fd5b505050610de3565b610de282612bc4565b5b60019050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6d57600080fd5b6000601354141515610e7e57600080fd5b6000601154141515610e8f57600080fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515610f1f57600080fd5b6102c65a03f11515610f3057600080fd5b50505060405180519050141515610f4357fe5b3073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515610fe857600080fd5b6102c65a03f11515610ff957600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1614151561102257fe5b6012600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156110b257600080fd5b6102c65a03f115156110c357600080fd5b505050604051805190501415156110d657fe5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638456cb596040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b151561115b57600080fd5b6102c65a03f1151561116c57600080fd5b50505060008773ffffffffffffffffffffffffffffffffffffffff161415151561119557600080fd5b86600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008673ffffffffffffffffffffffffffffffffffffffff16141515156111fc57600080fd5b85600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008573ffffffffffffffffffffffffffffffffffffffff161415151561126357600080fd5b84600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008473ffffffffffffffffffffffffffffffffffffffff16141515156112ca57600080fd5b83600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611313612bbc565b821015151561132157600080fd5b808210151561132f57600080fd5b81600f819055508060108190555060008311151561134c57600080fd5b8260088190555061135b612f52565b601381905550611369612bbc565b60118190555060008a73ffffffffffffffffffffffffffffffffffffffff161415151561139557600080fd5b60008973ffffffffffffffffffffffffffffffffffffffff16141515156113bb57600080fd5b60008873ffffffffffffffffffffffffffffffffffffffff16141515156113e157600080fd5b8973ffffffffffffffffffffffffffffffffffffffff1663981b24d06013546000604051602001526040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b151561145a57600080fd5b6102c65a03f1151561146b57600080fd5b50505060405180519050600a819055506115238973ffffffffffffffffffffffffffffffffffffffff1663981b24d06013546000604051602001526040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b15156114f757600080fd5b6102c65a03f1151561150857600080fd5b50505060405180519050600a54612f5a90919063ffffffff16565b600a81905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f198961157f612710600a54612f7890919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561160c57600080fd5b6102c65a03f1151561161d57600080fd5b50505060405180519050151561163257600080fd5b87600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fbe9b076dc5b65990cca9dd9d7366682482e7817a6f6bc7f4faf4dc32af497f326013546040518082815260200191505060405180910390a150505050505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561171357600080fd5b80601560006101000a81548160ff02191690831515021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561178d57600080fd5b600090505b81518110156117c8576117bb82828151811015156117ac57fe5b906020019060200201516121a3565b8080600101915050611792565b5050565b60105481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561182f57600080fd5b600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000806013541415151561189657600080fd5b611f40905090565b600d6020528060005260406000206000915054906101000a900460ff1681565b60145481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000806000806013541415151561190357600080fd5b600060145414151561191457600080fd5b600060125414151561192557600080fd5b600f54611930612bbc565b1015151561193d57600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806119a0575060105461199e612bbc565b115b806119b2575060006119b061214d565b145b15156119bd57600080fd5b603e945060149350600f9250600391506064828486880101011415156119df57fe5b611aad85611a9f6064600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611a7657600080fd5b6102c65a03f11515611a8757600080fd5b50505060405180519050612f7890919063ffffffff16565b612fb390919063ffffffff16565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b366064611b288987612f7890919063ffffffff16565b612fb390919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515611bc357600080fd5b6102c65a03f11515611bd457600080fd5b5050506040518051905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611c666064611c588887612f7890919063ffffffff16565b612fb390919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515611cf357600080fd5b6102c65a03f11515611d0457600080fd5b5050506040518051905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611d966064611d888787612f7890919063ffffffff16565b612fb390919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515611e2357600080fd5b6102c65a03f11515611e3457600080fd5b5050506040518051905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637d64bcb46000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611ecd57600080fd5b6102c65a03f11515611ede57600080fd5b505050604051805190501515611ef357600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515611fd057600080fd5b6102c65a03f11515611fe157600080fd5b505050611fec612f52565b601481905550611ffa612bbc565b6012819055507f839cf22e1ba87ce2f5b9bbf46cf0175a09eed52febdfaac8852478e68203c7636014546040518082815260200191505060405180910390a15050505050565b600a5481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601560009054906101000a900460ff1681565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156120e257600080fd5b600090505b815181101561211d57612110828281518110151561210157fe5b90602001906020020151612a94565b80806001019150506120e7565b5050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f5481565b600060095460085411612161576000612179565b612178600954600854612fce90919063ffffffff16565b5b905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156121fe57600080fd5b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612255576122c0565b600c600081548092919060010191905055506001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b600c5481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60135481565b60085481565b600e6020528060005260406000206000915090505481565b6000806000614650600f5401612327612bbc565b11151561238e57612345600c54600854612fb390919063ffffffff16565b9150600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050612399565b600854915060095490505b8082116123a75760006123bb565b6123ba8183612fce90919063ffffffff16565b5b92505050919050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561242257600080fd5b3073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156124c757600080fd5b6102c65a03f115156124d857600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1614156125cf57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df8de3e7846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15156125ba57600080fd5b6102c65a03f115156125cb57600080fd5b5050505b60008373ffffffffffffffffffffffffffffffffffffffff16141561266b576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561266657600080fd5b61289d565b8291508173ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561271157600080fd5b6102c65a03f1151561272257600080fd5b5050506040518051905090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156127fa57600080fd5b6102c65a03f1151561280b57600080fd5b50505060405180519050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c836040518082815260200191505060405180910390a35b505050565b60075481565b60095481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561292f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561296b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612a8457600080fd5b8060078190555050565b60115481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612aef57600080fd5b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515612b4757612bb3565b600c60008154809291906001900391905055506000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b60125481565b600042905090565b600080600080600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515612c2257600080fd5b600b543410151515612c3357600080fd5b349350612c3f85612313565b9250600083111515612c5057600080fd5b82841115612c5c578293505b612c6584612fe7565b9150600082111515612c7657600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1986846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515612d4357600080fd5b6102c65a03f11515612d5457600080fd5b505050604051805190501515612d6957600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f193505050501515612dcb57600080fd5b612de084600754612f5a90919063ffffffff16565b600781905550612e3884600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f5a90919063ffffffff16565b600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612e9084600954612f5a90919063ffffffff16565b6009819055508473ffffffffffffffffffffffffffffffffffffffff167fa3ed4207b1480804a4590a74f4b9cc310dc0fc839af8d10e2141ca3b72fd93488584604051808381526020018281526020019250505060405180910390a2612eff8434612fce90919063ffffffff16565b90506000811115612f4b578473ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515612f4a57600080fd5b5b5050505050565b600043905090565b6000808284019050838110151515612f6e57fe5b8091505092915050565b6000806000841415612f8d5760009150612fac565b8284029050828482811515612f9e57fe5b04141515612fa857fe5b8091505b5092915050565b6000808284811515612fc157fe5b0490508091505092915050565b6000828211151515612fdc57fe5b818303905092915050565b6000613003612ff4611883565b83612f7890919063ffffffff16565b90509190505600a165627a7a723058204407df9114583a06ad696c3330bad88430da3425d09f9007c357fa28e355d43600290000000000000000000000004cf488387f035ff08c371515562cba712f9015d4
Deployed Bytecode
0x6060604052600436106101cd576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630747e4eb146101f55780630974f94c1461024a578063296032f2146103585780632bf043041461037d5780633197cbb6146103d75780633af32abf146104005780633ba0b9a9146104515780633e3b429a1461047a5780634084c3ab146104cb5780634b66cb7e146104f45780634bb278f3146105495780634c49515d1461055e5780634d12fca4146105875780635c975abb146105dc5780635eed886b1461060957806377a54eb81461063257806378bba5301461068c57806378e97925146106e157806378fbc9ea1461070a5780638da5cb5b146107335780639b19251a146107885780639fed39c5146107c1578063a305ac76146107ea578063ada5cf631461083f578063adf9cd4914610868578063d142bc5c14610891578063d54b02ec146108de578063df8de3e71461092b578063e29eb83614610964578063e7d0242b1461098d578063e846f997146109b6578063f2fde38b14610a0b578063f3466b4714610a44578063f48c305414610a67578063f81f810114610aad578063f9f92be414610ad6578063fe67a18914610b0f575b601560009054906101000a900460ff161515156101e957600080fd5b6101f233610b38565b50005b341561020057600080fd5b610208610dec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561025557600080fd5b610356600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091908035906020019091908035906020019091905050610e12565b005b341561036357600080fd5b61037b600480803515159060200190919050506116b8565b005b341561038857600080fd5b6103d5600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050611730565b005b34156103e257600080fd5b6103ea6117cc565b6040518082815260200191505060405180910390f35b341561040b57600080fd5b610437600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506117d2565b604051808215151515815260200191505060405180910390f35b341561045c57600080fd5b610464611883565b6040518082815260200191505060405180910390f35b341561048557600080fd5b6104b1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061189e565b604051808215151515815260200191505060405180910390f35b34156104d657600080fd5b6104de6118be565b6040518082815260200191505060405180910390f35b34156104ff57600080fd5b6105076118c4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561055457600080fd5b61055c6118ea565b005b341561056957600080fd5b610571612040565b6040518082815260200191505060405180910390f35b341561059257600080fd5b61059a612046565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105e757600080fd5b6105ef61206c565b604051808215151515815260200191505060405180910390f35b341561061457600080fd5b61061c61207f565b6040518082815260200191505060405180910390f35b341561063d57600080fd5b61068a600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050612085565b005b341561069757600080fd5b61069f612121565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156106ec57600080fd5b6106f4612147565b6040518082815260200191505060405180910390f35b341561071557600080fd5b61071d61214d565b6040518082815260200191505060405180910390f35b341561073e57600080fd5b61074661217e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561079357600080fd5b6107bf600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506121a3565b005b34156107cc57600080fd5b6107d46122c3565b6040518082815260200191505060405180910390f35b34156107f557600080fd5b6107fd6122c9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561084a57600080fd5b6108526122ef565b6040518082815260200191505060405180910390f35b341561087357600080fd5b61087b6122f5565b6040518082815260200191505060405180910390f35b341561089c57600080fd5b6108c8600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506122fb565b6040518082815260200191505060405180910390f35b34156108e957600080fd5b610915600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612313565b6040518082815260200191505060405180910390f35b341561093657600080fd5b610962600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506123c4565b005b341561096f57600080fd5b6109776128a2565b6040518082815260200191505060405180910390f35b341561099857600080fd5b6109a06128a8565b6040518082815260200191505060405180910390f35b34156109c157600080fd5b6109c96128ae565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610a1657600080fd5b610a42600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506128d4565b005b3415610a4f57600080fd5b610a656004808035906020019091905050612a29565b005b610a93600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b38565b604051808215151515815260200191505060405180910390f35b3415610ab857600080fd5b610ac0612a8e565b6040518082815260200191505060405180910390f35b3415610ae157600080fd5b610b0d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612a94565b005b3415610b1a57600080fd5b610b22612bb6565b6040518082815260200191505060405180910390f35b6000601560009054906101000a900460ff16151515610b5657600080fd5b600060135414151515610b6857600080fd5b600f54610b73612bbc565b10158015610b8a5750601054610b87612bbc565b11155b8015610b9857506000601254145b1515610ba357600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff1614151515610bc957600080fd5b6000341415610dd957600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633f4ba83a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515610c5757600080fd5b6102c65a03f11515610c6857600080fd5b505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306ec16f8836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515610d2757600080fd5b6102c65a03f11515610d3857600080fd5b505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638456cb596040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515610dc057600080fd5b6102c65a03f11515610dd157600080fd5b505050610de3565b610de282612bc4565b5b60019050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6d57600080fd5b6000601354141515610e7e57600080fd5b6000601154141515610e8f57600080fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515610f1f57600080fd5b6102c65a03f11515610f3057600080fd5b50505060405180519050141515610f4357fe5b3073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515610fe857600080fd5b6102c65a03f11515610ff957600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1614151561102257fe5b6012600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156110b257600080fd5b6102c65a03f115156110c357600080fd5b505050604051805190501415156110d657fe5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638456cb596040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b151561115b57600080fd5b6102c65a03f1151561116c57600080fd5b50505060008773ffffffffffffffffffffffffffffffffffffffff161415151561119557600080fd5b86600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008673ffffffffffffffffffffffffffffffffffffffff16141515156111fc57600080fd5b85600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008573ffffffffffffffffffffffffffffffffffffffff161415151561126357600080fd5b84600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008473ffffffffffffffffffffffffffffffffffffffff16141515156112ca57600080fd5b83600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611313612bbc565b821015151561132157600080fd5b808210151561132f57600080fd5b81600f819055508060108190555060008311151561134c57600080fd5b8260088190555061135b612f52565b601381905550611369612bbc565b60118190555060008a73ffffffffffffffffffffffffffffffffffffffff161415151561139557600080fd5b60008973ffffffffffffffffffffffffffffffffffffffff16141515156113bb57600080fd5b60008873ffffffffffffffffffffffffffffffffffffffff16141515156113e157600080fd5b8973ffffffffffffffffffffffffffffffffffffffff1663981b24d06013546000604051602001526040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b151561145a57600080fd5b6102c65a03f1151561146b57600080fd5b50505060405180519050600a819055506115238973ffffffffffffffffffffffffffffffffffffffff1663981b24d06013546000604051602001526040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b15156114f757600080fd5b6102c65a03f1151561150857600080fd5b50505060405180519050600a54612f5a90919063ffffffff16565b600a81905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f198961157f612710600a54612f7890919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561160c57600080fd5b6102c65a03f1151561161d57600080fd5b50505060405180519050151561163257600080fd5b87600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fbe9b076dc5b65990cca9dd9d7366682482e7817a6f6bc7f4faf4dc32af497f326013546040518082815260200191505060405180910390a150505050505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561171357600080fd5b80601560006101000a81548160ff02191690831515021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561178d57600080fd5b600090505b81518110156117c8576117bb82828151811015156117ac57fe5b906020019060200201516121a3565b8080600101915050611792565b5050565b60105481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561182f57600080fd5b600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000806013541415151561189657600080fd5b611f40905090565b600d6020528060005260406000206000915054906101000a900460ff1681565b60145481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000806000806013541415151561190357600080fd5b600060145414151561191457600080fd5b600060125414151561192557600080fd5b600f54611930612bbc565b1015151561193d57600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806119a0575060105461199e612bbc565b115b806119b2575060006119b061214d565b145b15156119bd57600080fd5b603e945060149350600f9250600391506064828486880101011415156119df57fe5b611aad85611a9f6064600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611a7657600080fd5b6102c65a03f11515611a8757600080fd5b50505060405180519050612f7890919063ffffffff16565b612fb390919063ffffffff16565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b366064611b288987612f7890919063ffffffff16565b612fb390919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515611bc357600080fd5b6102c65a03f11515611bd457600080fd5b5050506040518051905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611c666064611c588887612f7890919063ffffffff16565b612fb390919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515611cf357600080fd5b6102c65a03f11515611d0457600080fd5b5050506040518051905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611d966064611d888787612f7890919063ffffffff16565b612fb390919063ffffffff16565b6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515611e2357600080fd5b6102c65a03f11515611e3457600080fd5b5050506040518051905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637d64bcb46000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611ecd57600080fd5b6102c65a03f11515611ede57600080fd5b505050604051805190501515611ef357600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515611fd057600080fd5b6102c65a03f11515611fe157600080fd5b505050611fec612f52565b601481905550611ffa612bbc565b6012819055507f839cf22e1ba87ce2f5b9bbf46cf0175a09eed52febdfaac8852478e68203c7636014546040518082815260200191505060405180910390a15050505050565b600a5481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601560009054906101000a900460ff1681565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156120e257600080fd5b600090505b815181101561211d57612110828281518110151561210157fe5b90602001906020020151612a94565b80806001019150506120e7565b5050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f5481565b600060095460085411612161576000612179565b612178600954600854612fce90919063ffffffff16565b5b905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156121fe57600080fd5b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612255576122c0565b600c600081548092919060010191905055506001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b600c5481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60135481565b60085481565b600e6020528060005260406000206000915090505481565b6000806000614650600f5401612327612bbc565b11151561238e57612345600c54600854612fb390919063ffffffff16565b9150600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050612399565b600854915060095490505b8082116123a75760006123bb565b6123ba8183612fce90919063ffffffff16565b5b92505050919050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561242257600080fd5b3073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156124c757600080fd5b6102c65a03f115156124d857600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1614156125cf57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df8de3e7846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15156125ba57600080fd5b6102c65a03f115156125cb57600080fd5b5050505b60008373ffffffffffffffffffffffffffffffffffffffff16141561266b576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561266657600080fd5b61289d565b8291508173ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561271157600080fd5b6102c65a03f1151561272257600080fd5b5050506040518051905090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156127fa57600080fd5b6102c65a03f1151561280b57600080fd5b50505060405180519050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c836040518082815260200191505060405180910390a35b505050565b60075481565b60095481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561292f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561296b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612a8457600080fd5b8060078190555050565b60115481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612aef57600080fd5b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515612b4757612bb3565b600c60008154809291906001900391905055506000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b60125481565b600042905090565b600080600080600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515612c2257600080fd5b600b543410151515612c3357600080fd5b349350612c3f85612313565b9250600083111515612c5057600080fd5b82841115612c5c578293505b612c6584612fe7565b9150600082111515612c7657600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1986846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515612d4357600080fd5b6102c65a03f11515612d5457600080fd5b505050604051805190501515612d6957600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f193505050501515612dcb57600080fd5b612de084600754612f5a90919063ffffffff16565b600781905550612e3884600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f5a90919063ffffffff16565b600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612e9084600954612f5a90919063ffffffff16565b6009819055508473ffffffffffffffffffffffffffffffffffffffff167fa3ed4207b1480804a4590a74f4b9cc310dc0fc839af8d10e2141ca3b72fd93488584604051808381526020018281526020019250505060405180910390a2612eff8434612fce90919063ffffffff16565b90506000811115612f4b578473ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515612f4a57600080fd5b5b5050505050565b600043905090565b6000808284019050838110151515612f6e57fe5b8091505092915050565b6000806000841415612f8d5760009150612fac565b8284029050828482811515612f9e57fe5b04141515612fa857fe5b8091505b5092915050565b6000808284811515612fc157fe5b0490508091505092915050565b6000828211151515612fdc57fe5b818303905092915050565b6000613003612ff4611883565b83612f7890919063ffffffff16565b90509190505600a165627a7a723058204407df9114583a06ad696c3330bad88430da3425d09f9007c357fa28e355d4360029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004cf488387f035ff08c371515562cba712f9015d4
-----Decoded View---------------
Arg [0] : _wpr (address): 0x4CF488387F035FF08c371515562CBa712f9015d4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004cf488387f035ff08c371515562cba712f9015d4
Swarm Source
bzzr://4407df9114583a06ad696c3330bad88430da3425d09f9007c357fa28e355d436
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 23 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.