Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Multi Chain
Multichain Addresses
2 addresses found via
Latest 25 from a total of 496 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Upgrade Controll... | 9339180 | 1341 days 16 hrs ago | IN | 0 ETH | 0.00003411 | ||||
Top Up Balance | 9125847 | 1377 days 19 hrs ago | IN | 0 ETH | 0.00029515 | ||||
Enable Burning | 9125818 | 1377 days 19 hrs ago | IN | 0 ETH | 0.00042608 | ||||
Register | 8459493 | 1486 days 15 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8315299 | 1509 days 1 hr ago | IN | 0 ETH | 0.00066835 | ||||
Activate Whiteli... | 8309028 | 1510 days 37 mins ago | IN | 0 ETH | 0.00027448 | ||||
Contribute For M... | 8308992 | 1510 days 45 mins ago | IN | 301 ETH | 0.00174499 | ||||
Register | 8289708 | 1513 days 36 mins ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8273535 | 1515 days 12 hrs ago | IN | 0 ETH | 0.00129215 | ||||
Register | 8237279 | 1521 days 3 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8225543 | 1522 days 23 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8184622 | 1529 days 7 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8183371 | 1529 days 12 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8167003 | 1532 days 1 hr ago | IN | 0 ETH | 0.00109833 | ||||
Register | 8166909 | 1532 days 2 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8165638 | 1532 days 7 hrs ago | IN | 0 ETH | 0.00129215 | ||||
Register | 8165461 | 1532 days 7 hrs ago | IN | 0 ETH | 0.00129215 | ||||
Register | 8163410 | 1532 days 15 hrs ago | IN | 0 ETH | 0.00129215 | ||||
Register | 8160314 | 1533 days 3 hrs ago | IN | 0 ETH | 0.00129029 | ||||
Register | 8159197 | 1533 days 7 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8153142 | 1534 days 6 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8146742 | 1535 days 6 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8143775 | 1535 days 17 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8142547 | 1535 days 21 hrs ago | IN | 0 ETH | 0.00066835 | ||||
Register | 8141742 | 1536 days 36 mins ago | IN | 0 ETH | 0.00066835 |
Latest 24 internal transactions
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
8308992 | 1510 days 45 mins ago | 301 ETH | ||||
8115952 | 1540 days 1 hr ago | 248.58 ETH | ||||
7920243 | 1570 days 14 hrs ago | 369.8 ETH | ||||
7729168 | 1600 days 10 hrs ago | 340.05 ETH | ||||
7729150 | 1600 days 10 hrs ago | 340.05 ETH | ||||
7533826 | 1630 days 21 hrs ago | 418 ETH | ||||
7348397 | 1659 days 19 hrs ago | 518.7 ETH | ||||
7348379 | 1659 days 19 hrs ago | 518.7 ETH | ||||
7193355 | 1690 days 19 hrs ago | 475.4 ETH | ||||
7037335 | 1720 days 18 hrs ago | 1,658.5 ETH | ||||
6861547 | 1750 days 18 hrs ago | 2,046 ETH | ||||
6679722 | 1780 days 16 hrs ago | 1,052 ETH | ||||
6679701 | 1780 days 16 hrs ago | 1,052 ETH | ||||
6495029 | 1810 days 20 hrs ago | 1,090.7 ETH | ||||
6495015 | 1810 days 21 hrs ago | 0.01 ETH | ||||
6311394 | 1840 days 23 hrs ago | 641.2 ETH | ||||
6133893 | 1870 days 21 hrs ago | 533.07 ETH | ||||
5956345 | 1900 days 22 hrs ago | 768.82 ETH | ||||
5780517 | 1931 days 1 hr ago | 1,037.6 ETH | ||||
5611829 | 1960 days 22 hrs ago | 1,750 ETH | ||||
5611812 | 1960 days 22 hrs ago | 0.1 ETH | ||||
5437948 | 1991 days 1 hr ago | 2,580.9 ETH | ||||
5437925 | 1991 days 1 hr ago | 0.1 ETH | ||||
5437912 | 1991 days 1 hr ago | 0.1 ETH |
Loading...
Loading
Contract Name:
NectarController
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-03-30 */ pragma solidity ^0.4.18; /* 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. /// CHANGE LOG: Will Harborne (Ethfinex) - 07/10/2017 /// `transferFrom` edited to allow infinite approvals /// New function `pledgeFees` for Controller to update balance owned by token holders /// New getter functions `totalPledgedFeesAt` and `totalPledgedFees` /// New Checkpoint[] totalPledgedFeesHistory; /// Addition of onBurn function to Controller, called when user tries to burn tokens /// Version 'MMT_0.2' bumped to 'EFX_0.1' /// @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) public 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) public 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) public returns(bool); /// @notice Notifies the controller about a token burn /// @param _owner The address of the burner /// @param _amount The amount to burn /// @return False if the controller does not authorize the burn function onBurn(address _owner, uint _amount) public 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() public { controller = msg.sender;} /// @notice Changes the controller of the contract /// @param _newController The new controller of the contract function changeController(address _newController) public onlyController { controller = _newController; } } contract ApproveAndCallFallBack { function receiveApproval(address from, uint256 _amount, address _token, bytes _data) public; } /// @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 = 'EFX_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; // Tracks the history of the `pledgedFees` belonging to token holders Checkpoint[] totalPledgedFeesHistory; // in wei // 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 ) public { 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 /////////////////// uint constant MAX_UINT = 2**256 - 1; /// @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) public returns (bool success) { require(transfersEnabled); doTransfer(msg.sender, _to, _amount); return true; } /// @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 ) public returns (bool success) { // The controller of this contract can move tokens around at will, // this is important to recognize! Confirm that you trust the // 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] < MAX_UINT) { require(allowed[_from][msg.sender] >= _amount); allowed[_from][msg.sender] -= _amount; } } doTransfer(_from, _to, _amount); return true; } /// @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 { if (_amount == 0) { Transfer(_from, _to, _amount); // Follow the spec to louch the event when transfer 0 return; } 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 throws var previousBalanceFrom = balanceOfAt(_from, block.number); require(previousBalanceFrom >= _amount); // 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); } /// @param _owner The address that's balance is being requested /// @return The balance of `_owner` at the current block function balanceOf(address _owner) public 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) public 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 ) public 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 ) public 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() public 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) public 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) public 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); } } //////////////// // Query pledgedFees // in wei //////////////// /// @dev This function makes it easy to get the total pledged fees /// @return The total number of fees belonging to token holders function totalPledgedFees() public constant returns (uint) { return totalPledgedFeesAt(block.number); } /// @notice Total amount of fees at a specific `_blockNumber`. /// @param _blockNumber The block number when the totalPledgedFees is queried /// @return The total amount of pledged fees at `_blockNumber` function totalPledgedFeesAt(uint _blockNumber) public constant returns(uint) { // These next few lines are used when the totalPledgedFees of the token is // requested before a check point was ever created for this token, it // requires that the `parentToken.totalPledgedFeesAt` be queried at the // genesis block for this token as that contains totalPledgedFees of this // token at this block number. if ((totalPledgedFeesHistory.length == 0) || (totalPledgedFeesHistory[0].fromBlock > _blockNumber)) { if (address(parentToken) != 0) { return parentToken.totalPledgedFeesAt(min(_blockNumber, parentSnapShotBlock)); } else { return 0; } // This will return the expected totalPledgedFees during normal situations } else { return getValueAt(totalPledgedFeesHistory, _blockNumber); } } //////////////// // Pledge Fees To Token Holders or Reduce Pledged Fees // in wei //////////////// /// @notice Pledges fees to the token holders, later to be claimed by burning /// @param _value The amount sent to the vault by controller, reserved for token holders function pledgeFees(uint _value) public onlyController returns (bool) { uint curTotalFees = totalPledgedFees(); require(curTotalFees + _value >= curTotalFees); // Check for overflow updateValueAtNow(totalPledgedFeesHistory, curTotalFees + _value); return true; } /// @notice Reduces pledged fees to the token holders, i.e. during upgrade or token burning /// @param _value The amount of pledged fees which are being distributed to token holders, reducing liability function reducePledgedFees(uint _value) public onlyController returns (bool) { uint curTotalFees = totalPledgedFees(); require(curTotalFees >= _value); updateValueAtNow(totalPledgedFeesHistory, curTotalFees - _value); return true; } //////////////// // 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 ) public 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 ) public 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 public 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) public 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) pure 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 () public 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) public 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 ) public returns (MiniMeToken) { MiniMeToken newToken = new MiniMeToken( this, _parentToken, _snapshotBlock, _tokenName, _decimalUnits, _tokenSymbol, _transfersEnabled ); newToken.changeController(msg.sender); return newToken; } } /* Copyright 2017, Will Harborne (Ethfinex) */ contract NEC is MiniMeToken { function NEC( address _tokenFactory, address efxVaultWallet ) public MiniMeToken( _tokenFactory, 0x0, // no parent token 0, // no snapshot block number from parent "Ethfinex Nectar Token", // Token name 18, // Decimals "NEC", // Symbol true // Enable transfers ) { generateTokens(efxVaultWallet, 1000000000000000000000000000); enableBurning(false); } // Flag that determines if the token can be burned for rewards or not bool public burningEnabled; //////////////// // Enable token burning by users //////////////// function enableBurning(bool _burningEnabled) public onlyController { burningEnabled = _burningEnabled; } function burnAndRetrieve(uint256 _tokensToBurn) public returns (bool success) { require(burningEnabled); var previousBalanceFrom = balanceOfAt(msg.sender, block.number); if (previousBalanceFrom < _tokensToBurn) { return false; } // Alerts the token controller of the burn function call // If enabled, controller will distribute fees and destroy tokens // Or any other logic chosen by controller if (isContract(controller)) { require(TokenController(controller).onBurn(msg.sender, _tokensToBurn)); } Burned(msg.sender, _tokensToBurn); return true; } event Burned(address indexed who, uint256 _amount); } /// @dev `Owned` is a base level contract that assigns an `owner` that can be /// later changed contract Owned { /// @dev `owner` is the only address that can call a function with this /// modifier modifier onlyOwner { require (msg.sender == owner); _; } address public owner; /// @notice The Constructor assigns the message sender to be `owner` function Owned() public { owner = msg.sender;} /// @notice `owner` can step down and assign some other address to this role /// @param _newOwner The address of the new owner. 0x0 can be used to create /// an unowned neutral vault, however that cannot be undone function changeOwner(address _newOwner) public onlyOwner { owner = _newOwner; } } /* Copyright 2017, Will Harborne (Ethfinex) */ /// @title Whitelist contract - Only addresses which are registered as part of the market maker loyalty scheme can be whitelisted to earn and own Nectar tokens contract Whitelist is Owned { function Whitelist() { admins[msg.sender] = true; } bool public listActive = true; // Only users who are on the whitelist function isRegistered(address _user) public constant returns (bool) { if (!listActive) { return true; } else { return isOnList[_user]; } } // Can add people to the whitelist function isAdmin(address _admin) public view returns(bool) { return admins[_admin]; } /// @notice The owner is able to add new admin /// @param _newAdmin Address of new admin function addAdmin(address _newAdmin) public onlyOwner { admins[_newAdmin] = true; } /// @notice Only owner is able to remove admin /// @param _admin Address of current admin function removeAdmin(address _admin) public onlyOwner { admins[_admin] = false; } // Only authorised sources/contracts can contribute fees on behalf of makers to earn tokens modifier authorised () { require(isAuthorisedMaker[msg.sender]); _; } modifier onlyAdmins() { require(isAdmin(msg.sender)); _; } // These admins are able to add new users to the whitelist mapping (address => bool) public admins; // This is the whitelist of users who are registered to be able to own the tokens mapping (address => bool) public isOnList; // This is a more select list of a few contracts or addresses which can contribute fees on behalf of makers, to generate tokens mapping (address => bool) public isAuthorisedMaker; /// @dev register /// @param newUsers - Array of users to add to the whitelist function register(address[] newUsers) public onlyAdmins { for (uint i = 0; i < newUsers.length; i++) { isOnList[newUsers[i]] = true; } } /// @dev deregister /// @param bannedUsers - Array of users to remove from the whitelist function deregister(address[] bannedUsers) public onlyAdmins { for (uint i = 0; i < bannedUsers.length; i++) { isOnList[bannedUsers[i]] = false; } } /// @dev authoriseMaker /// @param maker - Source to add to authorised contributors function authoriseMaker(address maker) public onlyOwner { isAuthorisedMaker[maker] = true; // Also add any authorised Maker to the whitelist address[] memory makers = new address[](1); makers[0] = maker; register(makers); } /// @dev deauthoriseMaker /// @param maker - Source to remove from authorised contributors function deauthoriseMaker(address maker) public onlyOwner { isAuthorisedMaker[maker] = false; } function activateWhitelist(bool newSetting) public onlyOwner { listActive = newSetting; } /////// Getters to allow the same whitelist to be used also by other contracts (including upgraded Controllers) /////// function getRegistrationStatus(address _user) constant external returns (bool) { return isOnList[_user]; } function getAuthorisationStatus(address _maker) constant external returns (bool) { return isAuthorisedMaker[_maker]; } function getOwner() external constant returns (address) { return owner; } } /** * @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; } } /* Copyright 2018, Will Harborne (Ethfinex) v2.0.0 */ contract NectarController is TokenController, Whitelist { using SafeMath for uint256; NEC public tokenContract; // The new token for this Campaign address public vaultAddress; // The address to hold the funds donated uint public periodLength = 30; // Contribution windows length in days uint public startTime = 1518523865; // Time of window 1 opening mapping (uint => uint) public windowFinalBlock; // Final block before initialisation of new window /// @dev There are several checks to make sure the parameters are acceptable /// @param _vaultAddress The address that will store the donated funds /// @param _tokenAddress Address of the token contract this contract controls function NectarController( address _vaultAddress, address _tokenAddress ) public { require(_vaultAddress != 0); // To prevent burning ETH tokenContract = NEC(_tokenAddress); // The Deployed Token Contract vaultAddress = _vaultAddress; windowFinalBlock[0] = 5082733; windowFinalBlock[1] = 5260326; } /// @dev The fallback function is called when ether is sent to the contract, it /// simply calls `doTakerPayment()` . No tokens are created when takers contribute. /// `_owner`. Payable is a required solidity modifier for functions to receive /// ether, without this modifier functions will throw if ether is sent to them function () public payable { doTakerPayment(); } function contributeForMakers(address _owner) public payable authorised { doMakerPayment(_owner); } ///////////////// // TokenController interface ///////////////// /// @notice `proxyPayment()` allows the caller to send ether to the Campaign /// but does not create tokens. This functions the same as the fallback function. /// @param _owner Does not do anything, but preserved because of MiniMe standard function. function proxyPayment(address _owner) public payable returns(bool) { doTakerPayment(); return true; } /// @notice `proxyAccountingCreation()` allows owner to create tokens without sending ether via the contract /// Creates tokens, pledging an amount of eth to token holders but not sending it through the contract to the vault /// @param _owner The person who will have the created tokens function proxyAccountingCreation(address _owner, uint _pledgedAmount, uint _tokensToCreate) public onlyOwner returns(bool) { // Ethfinex is a hybrid decentralised exchange // This function is only for use to create tokens on behalf of users of the centralised side of Ethfinex // Because there are several different fee tiers (depending on trading volume) token creation rates may not always be proportional to fees contributed. // For example if a user is trading with a 0.025% fee as opposed to the standard 0.1% the tokensToCreate the pledged fees will be lower than through using the standard contributeForMakers function // Tokens to create must be calculated off-chain using the issuance equation and current parameters of this contract, multiplied depending on user's fee tier doProxyAccounting(_owner, _pledgedAmount, _tokensToCreate); return true; } /// @notice Notifies the controller about a transfer. /// Transfers can only happen to whitelisted addresses /// @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) public returns(bool) { if (isRegistered(_to) && isRegistered(_from)) { return true; } else { return false; } } /// @notice Notifies the controller about an approval, for this Campaign all /// approvals are allowed by default and no extra notifications are needed /// @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) public returns(bool) { if (isRegistered(_owner)) { return true; } else { return false; } } /// @notice Notifies the controller about a burn attempt. Initially all burns are disabled. /// Upgraded Controllers in the future will allow token holders to claim the pledged ETH /// @param _owner The address that calls `burn()` /// @param _tokensToBurn The amount in the `burn()` call /// @return False if the controller does not authorize the approval function onBurn(address _owner, uint _tokensToBurn) public returns(bool) { // This plugin can only be called by the token contract require(msg.sender == address(tokenContract)); uint256 feeTotal = tokenContract.totalPledgedFees(); uint256 totalTokens = tokenContract.totalSupply(); uint256 feeValueOfTokens = (feeTotal.mul(_tokensToBurn)).div(totalTokens); // Destroy the owners tokens prior to sending them the associated fees require (tokenContract.destroyTokens(_owner, _tokensToBurn)); require (address(this).balance >= feeValueOfTokens); require (_owner.send(feeValueOfTokens)); emit LogClaim(_owner, feeValueOfTokens); return true; } ///////////////// // Maker and taker fee payments handling ///////////////// /// @dev `doMakerPayment()` is an internal function that sends the ether that this /// contract receives to the `vault` and creates tokens in the address of the /// `_owner`who the fee contribution was sent by /// @param _owner The address that will hold the newly created tokens function doMakerPayment(address _owner) internal { require ((tokenContract.controller() != 0) && (msg.value != 0) ); tokenContract.pledgeFees(msg.value); require (vaultAddress.send(msg.value)); // Set the block number which will be used to calculate issuance rate during // this window if it has not already been set if(windowFinalBlock[currentWindow()-1] == 0) { windowFinalBlock[currentWindow()-1] = block.number -1; } uint256 newIssuance = getFeeToTokenConversion(msg.value); require (tokenContract.generateTokens(_owner, newIssuance)); emit LogContributions (_owner, msg.value, true); return; } /// @dev `doTakerPayment()` is an internal function that sends the ether that this /// contract receives to the `vault`, creating no tokens function doTakerPayment() internal { require ((tokenContract.controller() != 0) && (msg.value != 0) ); tokenContract.pledgeFees(msg.value); require (vaultAddress.send(msg.value)); emit LogContributions (msg.sender, msg.value, false); return; } /// @dev `doProxyAccounting()` is an internal function that creates tokens /// for fees pledged by the owner function doProxyAccounting(address _owner, uint _pledgedAmount, uint _tokensToCreate) internal { require ((tokenContract.controller() != 0)); if(windowFinalBlock[currentWindow()-1] == 0) { windowFinalBlock[currentWindow()-1] = block.number -1; } tokenContract.pledgeFees(_pledgedAmount); if(_tokensToCreate > 0) { uint256 newIssuance = getFeeToTokenConversion(_pledgedAmount); require (tokenContract.generateTokens(_owner, _tokensToCreate)); } emit LogContributions (msg.sender, _pledgedAmount, true); return; } /// @notice `onlyOwner` changes the location that ether is sent /// @param _newVaultAddress The address that will store the fees collected function setVault(address _newVaultAddress) public onlyOwner { vaultAddress = _newVaultAddress; } /// @notice `onlyOwner` can upgrade the controller contract /// @param _newControllerAddress The address that will have the token control logic function upgradeController(address _newControllerAddress) public onlyOwner { tokenContract.changeController(_newControllerAddress); emit UpgradedController(_newControllerAddress); } ///////////////// // Issuance reward related functions - upgraded by changing controller ///////////////// /// @dev getFeeToTokenConversion (v2) - Controller could be changed in the future to update this function /// @param _contributed - The value of fees contributed during the window function getFeeToTokenConversion(uint256 _contributed) public view returns (uint256) { uint calculationBlock = windowFinalBlock[currentWindow()-1]; uint256 previousSupply = tokenContract.totalSupplyAt(calculationBlock); uint256 initialSupply = tokenContract.totalSupplyAt(windowFinalBlock[0]); // Rate = 1000 * (2-totalSupply/InitialSupply)^2 // This imposes a max possible supply of 2 billion if (previousSupply >= 2 * initialSupply) { return 0; } uint256 newTokens = _contributed.mul(1000).mul(bigInt(2)-(bigInt(previousSupply).div(initialSupply))).mul(bigInt(2)-(bigInt(previousSupply).div(initialSupply))).div(bigInt(1).mul(bigInt(1))); return newTokens; } function bigInt(uint256 input) internal pure returns (uint256) { return input.mul(10 ** 10); } function currentWindow() public constant returns (uint) { return windowAt(block.timestamp); } function windowAt(uint timestamp) public constant returns (uint) { return timestamp < startTime ? 0 : timestamp.sub(startTime).div(periodLength * 1 days) + 1; } /// @dev topUpBalance - This is only used to increase this.balance in the case this controller is used to allow burning function topUpBalance() public payable { // Pledged fees could be sent here and used to payout users who burn their tokens emit LogFeeTopUp(msg.value); } /// @dev evacuateToVault - This is only used to evacuate remaining to ether from this contract to the vault address function evacuateToVault() public onlyOwner{ vaultAddress.transfer(address(this).balance); emit LogFeeEvacuation(address(this).balance); } /// @dev enableBurning - Allows the owner to activate burning on the underlying token contract function enableBurning(bool _burningEnabled) public onlyOwner{ tokenContract.enableBurning(_burningEnabled); } ////////// // Safety Methods ////////// /// @notice This method can be used by the owner to extract mistakenly /// sent tokens to this contract. /// @param _token The address of the token contract that you want to recover function claimTokens(address _token) public onlyOwner { NEC token = NEC(_token); uint balance = token.balanceOf(this); token.transfer(owner, balance); emit ClaimedTokens(_token, owner, balance); } //////////////// // Events //////////////// event ClaimedTokens(address indexed _token, address indexed _controller, uint _amount); event LogFeeTopUp(uint _amount); event LogFeeEvacuation(uint _amount); event LogContributions (address _user, uint _amount, bool _maker); event LogClaim (address _user, uint _amount); event UpgradedController (address newAddress); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_maker","type":"address"}],"name":"getAuthorisationStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_admin","type":"address"}],"name":"removeAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"evacuateToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_admin","type":"address"}],"name":"isAdmin","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"bannedUsers","type":"address[]"}],"name":"deregister","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"maker","type":"address"}],"name":"authoriseMaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"isAuthorisedMaker","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"admins","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newUsers","type":"address[]"}],"name":"register","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_tokensToBurn","type":"uint256"}],"name":"onBurn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_pledgedAmount","type":"uint256"},{"name":"_tokensToCreate","type":"uint256"}],"name":"proxyAccountingCreation","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"onTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newSetting","type":"bool"}],"name":"activateWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newVaultAddress","type":"address"}],"name":"setVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newAdmin","type":"address"}],"name":"addAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"isOnList","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"topUpBalance","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"","type":"address"}],"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":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"}],"name":"getRegistrationStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"windowAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_burningEnabled","type":"bool"}],"name":"enableBurning","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newControllerAddress","type":"address"}],"name":"upgradeController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"currentWindow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"}],"name":"isRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"windowFinalBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_contributed","type":"uint256"}],"name":"getFeeToTokenConversion","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"onApprove","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"listActive","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"contributeForMakers","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"maker","type":"address"}],"name":"deauthoriseMaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"proxyPayment","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[{"name":"_vaultAddress","type":"address"},{"name":"_tokenAddress","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":false,"name":"_amount","type":"uint256"}],"name":"LogFeeTopUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_amount","type":"uint256"}],"name":"LogFeeEvacuation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_user","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_maker","type":"bool"}],"name":"LogContributions","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_user","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"LogClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newAddress","type":"address"}],"name":"UpgradedController","type":"event"}]
Contract Creation Code
60606040526000805460a060020a60ff02191674010000000000000000000000000000000000000000179055601e600655635a82d5d9600755341561004357600080fd5b604051604080611a55833981016040528080519190602001805160008054600160a060020a03338116600160a060020a031990921682178355908252600160208190526040909220805460ff19169092179091559092508316151590506100a957600080fd5b60048054600160a060020a03928316600160a060020a031991821617909155600580549390921692169190911790556008602052624d8e6d7f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7556001600052625044267fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac55f556119188061013d6000396000f3006060604052600436106101be5763ffffffff60e060020a6000350416630a5dc24d81146101c85780631785f53c146101fb578063198695551461021a57806324d7806c1461022d5780632b8b66671461024c5780632dff7a2b1461029b57806337aa7f91146102ba578063429b62e5146102d9578063430bf08a146102f857806343dc3ab21461032757806345a1b92c146103765780634714c0aa146103985780634a393149146103bd5780634cedfc0c146103e557806355a373d6146103fd5780636817031b14610410578063704802751461042f5780637330daac1461044e57806378e979251461046d5780637efff88714610492578063893d20e81461049a5780638da5cb5b146104ad578063a6f9dae1146104c0578063a8af4ff5146104df578063aba3d017146104fe578063b45dd87314610514578063b9c2ee821461052c578063ba0bafb41461054b578063c3c5a5471461055e578063cb22d3921461057d578063cdc62c0314610593578063d2ca2115146105a9578063da682aeb146105bc578063db25b407146105e4578063df8de3e7146105f7578063dfca8fd214610616578063e24a1d1e1461062a578063f48c305414610649575b6101c661065d565b005b34156101d357600080fd5b6101e7600160a060020a03600435166107bc565b604051901515815260200160405180910390f35b341561020657600080fd5b6101c6600160a060020a03600435166107de565b341561022557600080fd5b6101c661081a565b341561023857600080fd5b6101e7600160a060020a03600435166108ad565b341561025757600080fd5b6101c660046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506108cb95505050505050565b34156102a657600080fd5b6101c6600160a060020a036004351661093e565b34156102c557600080fd5b6101e7600160a060020a03600435166109d6565b34156102e457600080fd5b6101e7600160a060020a03600435166109eb565b341561030357600080fd5b61030b610a00565b604051600160a060020a03909116815260200160405180910390f35b341561033257600080fd5b6101c66004602481358181019083013580602081810201604051908101604052809392919081815260200183836020028082843750949650610a0f95505050505050565b341561038157600080fd5b6101e7600160a060020a0360043516602435610a7e565b34156103a357600080fd5b6101e7600160a060020a0360043516602435604435610c87565b34156103c857600080fd5b6101e7600160a060020a0360043581169060243516604435610cb9565b34156103f057600080fd5b6101c66004351515610ce9565b341561040857600080fd5b61030b610d44565b341561041b57600080fd5b6101c6600160a060020a0360043516610d53565b341561043a57600080fd5b6101c6600160a060020a0360043516610d9d565b341561045957600080fd5b6101e7600160a060020a0360043516610ddf565b341561047857600080fd5b610480610df4565b60405190815260200160405180910390f35b6101c6610dfa565b34156104a557600080fd5b61030b610e2f565b34156104b857600080fd5b61030b610e3e565b34156104cb57600080fd5b6101c6600160a060020a0360043516610e4d565b34156104ea57600080fd5b6101e7600160a060020a0360043516610e97565b341561050957600080fd5b610480600435610eb5565b341561051f57600080fd5b6101c66004351515610ef1565b341561053757600080fd5b6101c6600160a060020a0360043516610f67565b341561055657600080fd5b610480611022565b341561056957600080fd5b6101e7600160a060020a0360043516611032565b341561058857600080fd5b610480600435611081565b341561059e57600080fd5b610480600435611093565b34156105b457600080fd5b61048061123e565b34156105c757600080fd5b6101e7600160a060020a0360043581169060243516604435611244565b34156105ef57600080fd5b6101e761124f565b341561060257600080fd5b6101c6600160a060020a0360043516611270565b6101c6600160a060020a03600435166113b2565b341561063557600080fd5b6101c6600160a060020a03600435166113e5565b6101e7600160a060020a0360043516611421565b600454600160a060020a031663f77c47916040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561069c57600080fd5b5af115156106a957600080fd5b5050506040518051600160a060020a031615801591506106c857503415155b15156106d357600080fd5b600454600160a060020a0316634fa7e3533460405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561071b57600080fd5b5af1151561072857600080fd5b50505060405180515050600554600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561076657600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33346000604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a1565b600160a060020a03811660009081526003602052604090205460ff165b919050565b60005433600160a060020a039081169116146107f957600080fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b60005433600160a060020a0390811691161461083557600080fd5b600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19350505050151561086e57600080fd5b7f8cf1c5c446b156b14402e4a2526dab237cb6defe71043cbb787f51ce6724b0db30600160a060020a03163160405190815260200160405180910390a1565b600160a060020a031660009081526001602052604090205460ff1690565b60006108d6336108ad565b15156108e157600080fd5b5060005b815181101561093a5760006002600084848151811061090057fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff19169115159190911790556001016108e5565b5050565b6109466118da565b60005433600160a060020a0390811691161461096157600080fd5b600160a060020a03821660009081526003602052604090819020805460ff1916600190811790915590518059106109955750595b9080825280602002602001820160405250905081816000815181106109b657fe5b600160a060020a0390921660209283029091019091015261093a81610a0f565b60036020526000908152604090205460ff1681565b60016020526000908152604090205460ff1681565b600554600160a060020a031681565b6000610a1a336108ad565b1515610a2557600080fd5b5060005b815181101561093a57600160026000848481518110610a4457fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff1916911515919091179055600101610a29565b60045460009081908190819033600160a060020a03908116911614610aa257600080fd5b600454600160a060020a031663311325bd6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ae157600080fd5b5af11515610aee57600080fd5b5050506040518051600454909450600160a060020a031690506318160ddd6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b3a57600080fd5b5af11515610b4757600080fd5b50505060405180519250610b73905082610b67858863ffffffff61143316565b9063ffffffff61146916565b600454909150600160a060020a031663d3ce77fe878760405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610bcc57600080fd5b5af11515610bd957600080fd5b505050604051805190501515610bee57600080fd5b600160a060020a0330163181901015610c0657600080fd5b600160a060020a03861681156108fc0282604051600060405180830381858888f193505050501515610c3757600080fd5b7ffce6d5860f911bc27ece1365300332d2ddbe20c1adc46ee2eddd8f72c48053b28682604051600160a060020a03909216825260208201526040908101905180910390a150600195945050505050565b6000805433600160a060020a03908116911614610ca357600080fd5b610cae848484611480565b5060015b9392505050565b6000610cc483611032565b8015610cd45750610cd484611032565b15610ce157506001610cb2565b506000610cb2565b60005433600160a060020a03908116911614610d0457600080fd5b60008054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600454600160a060020a031681565b60005433600160a060020a03908116911614610d6e57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610db857600080fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b60026020526000908152604090205460ff1681565b60075481565b7f386c5a74f4b48b1c24abbf0aedacece36a9699f01ed737f0486ebfd9d549b14a3460405190815260200160405180910390a1565b600054600160a060020a031690565b600054600160a060020a031681565b60005433600160a060020a03908116911614610e6857600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a031660009081526002602052604090205460ff1690565b60006007548210610ee857610ee06006546201518002610b676007548561167e90919063ffffffff16565b600101610eeb565b60005b92915050565b60005433600160a060020a03908116911614610f0c57600080fd5b600454600160a060020a031663b45dd8738260405160e060020a63ffffffff84160281529015156004820152602401600060405180830381600087803b1515610f5457600080fd5b5af11515610f6157600080fd5b50505050565b60005433600160a060020a03908116911614610f8257600080fd5b600454600160a060020a0316633cebb8238260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610fd257600080fd5b5af11515610fdf57600080fd5b5050507fbef2873659f3bf8b3c7c64380b7543be225c22ebb0f56a811c1a7209b00f822281604051600160a060020a03909116815260200160405180910390a150565b600061102d42610eb5565b905090565b6000805474010000000000000000000000000000000000000000900460ff16151561105f575060016107d9565b50600160a060020a03811660009081526002602052604090205460ff166107d9565b60086020526000908152604090205481565b60008060008060006008600060016110a9611022565b0381526020810191909152604090810160002054600454909550600160a060020a03169063981b24d09086905160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561110957600080fd5b5af1151561111657600080fd5b50505060405180516004546000805260086020527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c754919550600160a060020a0316915063981b24d09060405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561119657600080fd5b5af115156111a357600080fd5b50505060405180519250506002820283106111c15760009450611235565b61122f6111e76111d16001611690565b6111db6001611690565b9063ffffffff61143316565b610b676111f785610b6788611690565b6112016002611690565b036111db61121287610b678a611690565b61121c6002611690565b036111db8c6103e863ffffffff61143316565b90508094505b50505050919050565b60065481565b6000610cd484611032565b60005474010000000000000000000000000000000000000000900460ff1681565b60008054819033600160a060020a0390811691161461128e57600080fd5b82915081600160a060020a03166370a082313060405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156112df57600080fd5b5af115156112ec57600080fd5b5050506040518051600054909250600160a060020a03808516925063a9059cbb91168360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561135257600080fd5b5af1151561135f57600080fd5b50505060405180515050600054600160a060020a039081169084167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c8360405190815260200160405180910390a3505050565b600160a060020a03331660009081526003602052604090205460ff1615156113d957600080fd5b6113e2816116a7565b50565b60005433600160a060020a0390811691161461140057600080fd5b600160a060020a03166000908152600360205260409020805460ff19169055565b600061142b61065d565b506001919050565b6000808315156114465760009150611462565b5082820282848281151561145657fe5b041461145e57fe5b8091505b5092915050565b600080828481151561147757fe5b04949350505050565b600454600090600160a060020a031663f77c47916040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156114c257600080fd5b5af115156114cf57600080fd5b5050506040518051600160a060020a0316151590506114ed57600080fd5b6008600060016114fb611022565b03815260200190815260200160002054600014156115385760014303600860006001611525611022565b0381526020810191909152604001600020555b600454600160a060020a0316634fa7e3538460405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561158057600080fd5b5af1151561158d57600080fd5b505050604051805150506000821115611624576115a983611093565b600454909150600160a060020a031663827f32c0858460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561160257600080fd5b5af1151561160f57600080fd5b50505060405180519050151561162457600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33846001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a150505050565b60008282111561168a57fe5b50900390565b6000610eeb826402540be40063ffffffff61143316565b600454600090600160a060020a031663f77c47916040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156116e957600080fd5b5af115156116f657600080fd5b5050506040518051600160a060020a0316158015915061171557503415155b151561172057600080fd5b600454600160a060020a0316634fa7e3533460405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561176857600080fd5b5af1151561177557600080fd5b50505060405180515050600554600160a060020a03163480156108fc0290604051600060405180830381858888f1935050505015156117b357600080fd5b6008600060016117c1611022565b03815260200190815260200160002054600014156117fe57600143036008600060016117eb611022565b0381526020810191909152604001600020555b61180734611093565b600454909150600160a060020a031663827f32c0838360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561186057600080fd5b5af1151561186d57600080fd5b50505060405180519050151561188257600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c82346001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a15050565b602060405190810160405260008152905600a165627a7a72305820c27e71dd74eb18701ea0bccbed65b4444ba3fc7a86ebc79a81c593ddff235f310029000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828000000000000000000000000cc80c051057b774cd75067dc48f8987c4eb97a5e
Deployed Bytecode
0x6060604052600436106101be5763ffffffff60e060020a6000350416630a5dc24d81146101c85780631785f53c146101fb578063198695551461021a57806324d7806c1461022d5780632b8b66671461024c5780632dff7a2b1461029b57806337aa7f91146102ba578063429b62e5146102d9578063430bf08a146102f857806343dc3ab21461032757806345a1b92c146103765780634714c0aa146103985780634a393149146103bd5780634cedfc0c146103e557806355a373d6146103fd5780636817031b14610410578063704802751461042f5780637330daac1461044e57806378e979251461046d5780637efff88714610492578063893d20e81461049a5780638da5cb5b146104ad578063a6f9dae1146104c0578063a8af4ff5146104df578063aba3d017146104fe578063b45dd87314610514578063b9c2ee821461052c578063ba0bafb41461054b578063c3c5a5471461055e578063cb22d3921461057d578063cdc62c0314610593578063d2ca2115146105a9578063da682aeb146105bc578063db25b407146105e4578063df8de3e7146105f7578063dfca8fd214610616578063e24a1d1e1461062a578063f48c305414610649575b6101c661065d565b005b34156101d357600080fd5b6101e7600160a060020a03600435166107bc565b604051901515815260200160405180910390f35b341561020657600080fd5b6101c6600160a060020a03600435166107de565b341561022557600080fd5b6101c661081a565b341561023857600080fd5b6101e7600160a060020a03600435166108ad565b341561025757600080fd5b6101c660046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506108cb95505050505050565b34156102a657600080fd5b6101c6600160a060020a036004351661093e565b34156102c557600080fd5b6101e7600160a060020a03600435166109d6565b34156102e457600080fd5b6101e7600160a060020a03600435166109eb565b341561030357600080fd5b61030b610a00565b604051600160a060020a03909116815260200160405180910390f35b341561033257600080fd5b6101c66004602481358181019083013580602081810201604051908101604052809392919081815260200183836020028082843750949650610a0f95505050505050565b341561038157600080fd5b6101e7600160a060020a0360043516602435610a7e565b34156103a357600080fd5b6101e7600160a060020a0360043516602435604435610c87565b34156103c857600080fd5b6101e7600160a060020a0360043581169060243516604435610cb9565b34156103f057600080fd5b6101c66004351515610ce9565b341561040857600080fd5b61030b610d44565b341561041b57600080fd5b6101c6600160a060020a0360043516610d53565b341561043a57600080fd5b6101c6600160a060020a0360043516610d9d565b341561045957600080fd5b6101e7600160a060020a0360043516610ddf565b341561047857600080fd5b610480610df4565b60405190815260200160405180910390f35b6101c6610dfa565b34156104a557600080fd5b61030b610e2f565b34156104b857600080fd5b61030b610e3e565b34156104cb57600080fd5b6101c6600160a060020a0360043516610e4d565b34156104ea57600080fd5b6101e7600160a060020a0360043516610e97565b341561050957600080fd5b610480600435610eb5565b341561051f57600080fd5b6101c66004351515610ef1565b341561053757600080fd5b6101c6600160a060020a0360043516610f67565b341561055657600080fd5b610480611022565b341561056957600080fd5b6101e7600160a060020a0360043516611032565b341561058857600080fd5b610480600435611081565b341561059e57600080fd5b610480600435611093565b34156105b457600080fd5b61048061123e565b34156105c757600080fd5b6101e7600160a060020a0360043581169060243516604435611244565b34156105ef57600080fd5b6101e761124f565b341561060257600080fd5b6101c6600160a060020a0360043516611270565b6101c6600160a060020a03600435166113b2565b341561063557600080fd5b6101c6600160a060020a03600435166113e5565b6101e7600160a060020a0360043516611421565b600454600160a060020a031663f77c47916040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561069c57600080fd5b5af115156106a957600080fd5b5050506040518051600160a060020a031615801591506106c857503415155b15156106d357600080fd5b600454600160a060020a0316634fa7e3533460405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561071b57600080fd5b5af1151561072857600080fd5b50505060405180515050600554600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561076657600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33346000604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a1565b600160a060020a03811660009081526003602052604090205460ff165b919050565b60005433600160a060020a039081169116146107f957600080fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b60005433600160a060020a0390811691161461083557600080fd5b600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19350505050151561086e57600080fd5b7f8cf1c5c446b156b14402e4a2526dab237cb6defe71043cbb787f51ce6724b0db30600160a060020a03163160405190815260200160405180910390a1565b600160a060020a031660009081526001602052604090205460ff1690565b60006108d6336108ad565b15156108e157600080fd5b5060005b815181101561093a5760006002600084848151811061090057fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff19169115159190911790556001016108e5565b5050565b6109466118da565b60005433600160a060020a0390811691161461096157600080fd5b600160a060020a03821660009081526003602052604090819020805460ff1916600190811790915590518059106109955750595b9080825280602002602001820160405250905081816000815181106109b657fe5b600160a060020a0390921660209283029091019091015261093a81610a0f565b60036020526000908152604090205460ff1681565b60016020526000908152604090205460ff1681565b600554600160a060020a031681565b6000610a1a336108ad565b1515610a2557600080fd5b5060005b815181101561093a57600160026000848481518110610a4457fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff1916911515919091179055600101610a29565b60045460009081908190819033600160a060020a03908116911614610aa257600080fd5b600454600160a060020a031663311325bd6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ae157600080fd5b5af11515610aee57600080fd5b5050506040518051600454909450600160a060020a031690506318160ddd6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b3a57600080fd5b5af11515610b4757600080fd5b50505060405180519250610b73905082610b67858863ffffffff61143316565b9063ffffffff61146916565b600454909150600160a060020a031663d3ce77fe878760405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610bcc57600080fd5b5af11515610bd957600080fd5b505050604051805190501515610bee57600080fd5b600160a060020a0330163181901015610c0657600080fd5b600160a060020a03861681156108fc0282604051600060405180830381858888f193505050501515610c3757600080fd5b7ffce6d5860f911bc27ece1365300332d2ddbe20c1adc46ee2eddd8f72c48053b28682604051600160a060020a03909216825260208201526040908101905180910390a150600195945050505050565b6000805433600160a060020a03908116911614610ca357600080fd5b610cae848484611480565b5060015b9392505050565b6000610cc483611032565b8015610cd45750610cd484611032565b15610ce157506001610cb2565b506000610cb2565b60005433600160a060020a03908116911614610d0457600080fd5b60008054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600454600160a060020a031681565b60005433600160a060020a03908116911614610d6e57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610db857600080fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b60026020526000908152604090205460ff1681565b60075481565b7f386c5a74f4b48b1c24abbf0aedacece36a9699f01ed737f0486ebfd9d549b14a3460405190815260200160405180910390a1565b600054600160a060020a031690565b600054600160a060020a031681565b60005433600160a060020a03908116911614610e6857600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a031660009081526002602052604090205460ff1690565b60006007548210610ee857610ee06006546201518002610b676007548561167e90919063ffffffff16565b600101610eeb565b60005b92915050565b60005433600160a060020a03908116911614610f0c57600080fd5b600454600160a060020a031663b45dd8738260405160e060020a63ffffffff84160281529015156004820152602401600060405180830381600087803b1515610f5457600080fd5b5af11515610f6157600080fd5b50505050565b60005433600160a060020a03908116911614610f8257600080fd5b600454600160a060020a0316633cebb8238260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610fd257600080fd5b5af11515610fdf57600080fd5b5050507fbef2873659f3bf8b3c7c64380b7543be225c22ebb0f56a811c1a7209b00f822281604051600160a060020a03909116815260200160405180910390a150565b600061102d42610eb5565b905090565b6000805474010000000000000000000000000000000000000000900460ff16151561105f575060016107d9565b50600160a060020a03811660009081526002602052604090205460ff166107d9565b60086020526000908152604090205481565b60008060008060006008600060016110a9611022565b0381526020810191909152604090810160002054600454909550600160a060020a03169063981b24d09086905160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561110957600080fd5b5af1151561111657600080fd5b50505060405180516004546000805260086020527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c754919550600160a060020a0316915063981b24d09060405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561119657600080fd5b5af115156111a357600080fd5b50505060405180519250506002820283106111c15760009450611235565b61122f6111e76111d16001611690565b6111db6001611690565b9063ffffffff61143316565b610b676111f785610b6788611690565b6112016002611690565b036111db61121287610b678a611690565b61121c6002611690565b036111db8c6103e863ffffffff61143316565b90508094505b50505050919050565b60065481565b6000610cd484611032565b60005474010000000000000000000000000000000000000000900460ff1681565b60008054819033600160a060020a0390811691161461128e57600080fd5b82915081600160a060020a03166370a082313060405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156112df57600080fd5b5af115156112ec57600080fd5b5050506040518051600054909250600160a060020a03808516925063a9059cbb91168360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561135257600080fd5b5af1151561135f57600080fd5b50505060405180515050600054600160a060020a039081169084167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c8360405190815260200160405180910390a3505050565b600160a060020a03331660009081526003602052604090205460ff1615156113d957600080fd5b6113e2816116a7565b50565b60005433600160a060020a0390811691161461140057600080fd5b600160a060020a03166000908152600360205260409020805460ff19169055565b600061142b61065d565b506001919050565b6000808315156114465760009150611462565b5082820282848281151561145657fe5b041461145e57fe5b8091505b5092915050565b600080828481151561147757fe5b04949350505050565b600454600090600160a060020a031663f77c47916040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156114c257600080fd5b5af115156114cf57600080fd5b5050506040518051600160a060020a0316151590506114ed57600080fd5b6008600060016114fb611022565b03815260200190815260200160002054600014156115385760014303600860006001611525611022565b0381526020810191909152604001600020555b600454600160a060020a0316634fa7e3538460405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561158057600080fd5b5af1151561158d57600080fd5b505050604051805150506000821115611624576115a983611093565b600454909150600160a060020a031663827f32c0858460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561160257600080fd5b5af1151561160f57600080fd5b50505060405180519050151561162457600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33846001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a150505050565b60008282111561168a57fe5b50900390565b6000610eeb826402540be40063ffffffff61143316565b600454600090600160a060020a031663f77c47916040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156116e957600080fd5b5af115156116f657600080fd5b5050506040518051600160a060020a0316158015915061171557503415155b151561172057600080fd5b600454600160a060020a0316634fa7e3533460405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561176857600080fd5b5af1151561177557600080fd5b50505060405180515050600554600160a060020a03163480156108fc0290604051600060405180830381858888f1935050505015156117b357600080fd5b6008600060016117c1611022565b03815260200190815260200160002054600014156117fe57600143036008600060016117eb611022565b0381526020810191909152604001600020555b61180734611093565b600454909150600160a060020a031663827f32c0838360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561186057600080fd5b5af1151561186d57600080fd5b50505060405180519050151561188257600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c82346001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a15050565b602060405190810160405260008152905600a165627a7a72305820c27e71dd74eb18701ea0bccbed65b4444ba3fc7a86ebc79a81c593ddff235f310029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828000000000000000000000000cc80c051057b774cd75067dc48f8987c4eb97a5e
-----Decoded View---------------
Arg [0] : _vaultAddress (address): 0xC6CDE7C39eB2f0F0095F41570af89eFC2C1Ea828
Arg [1] : _tokenAddress (address): 0xCc80C051057B774cD75067Dc48f8987C4Eb97A5e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828
Arg [1] : 000000000000000000000000cc80c051057b774cd75067dc48f8987c4eb97a5e
Swarm Source
bzzr://c27e71dd74eb18701ea0bccbed65b4444ba3fc7a86ebc79a81c593ddff235f31
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ 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.