ETH Price: $3,363.55 (-4.17%)
Gas: 2 Gwei

Contract

0x8D5a41e85F4cE2433BeEf476305D307B9205D98D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Register54344752018-04-13 17:58:222263 days ago1523642302IN
Bitfinex: Old Contract 2
0 ETH0.0013550730
Register54329392018-04-13 11:37:592263 days ago1523619479IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Upgrade Controll...54277122018-04-12 14:20:172264 days ago1523542817IN
Bitfinex: Old Contract 2
0 ETH0.0013153640
Register54039802018-04-08 15:31:052268 days ago1523201465IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register53751962018-04-03 21:15:532273 days ago1522790153IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register53473522018-03-30 6:13:572278 days ago1522390437IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register53020162018-03-22 15:59:072285 days ago1521734347IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register53020122018-03-22 15:57:512285 days ago1521734271IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register53019612018-03-22 15:47:362285 days ago1521733656IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52994832018-03-22 5:49:462286 days ago1521697786IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52901912018-03-20 16:45:382287 days ago1521564338IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52900862018-03-20 16:17:372287 days ago1521562657IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52820292018-03-19 7:28:432288 days ago1521444523IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52793972018-03-18 20:59:082289 days ago1521406748IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013301130
Register52735692018-03-17 21:26:062290 days ago1521321966IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735652018-03-17 21:25:142290 days ago1521321914IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735652018-03-17 21:25:142290 days ago1521321914IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
Register52735652018-03-17 21:25:142290 days ago1521321914IN
Bitfinex: Old Contract 2
0 ETH0.0013301130
Register52735652018-03-17 21:25:142290 days ago1521321914IN
Bitfinex: Old Contract 2
0 ETH0.0013320330
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
52591392018-03-15 10:36:152292 days ago1521110175
Bitfinex: Old Contract 2
662.90941963 ETH
52591252018-03-15 10:32:342292 days ago1521109954
Bitfinex: Old Contract 2
1,313.474704 ETH
52399712018-03-12 3:54:372296 days ago1520826877
Bitfinex: Old Contract 2
0.1 ETH
52399442018-03-12 3:48:242296 days ago1520826504
Bitfinex: Old Contract 2
0.1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NectarController

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-02-13
*/

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 {

  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];
    }
  }

  // Only authorised sources/contracts can contribute fees on behalf of makers to earn tokens
  modifier authorised () {
    require(isAuthorisedMaker[msg.sender]);
    _;
  }

  // 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 onlyOwner {
    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 onlyOwner {
    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)
*/

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;              // 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;
        startTime = block.timestamp;
        windowFinalBlock[0] = block.number-1;
    }

    /// @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 (this.balance >= feeValueOfTokens);
        require (_owner.send(feeValueOfTokens));

        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));

        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));

        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));
        }

        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);
        UpgradedController(_newControllerAddress);
    }

/////////////////
// Issuance reward related functions - upgraded by changing controller
/////////////////

    /// @dev getFeeToTokenConversion - 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 constant returns (uint256) {

        // FYI this assumes a fixed maker trading fee of 0.1%
        // In the case where different fee schedules were used for maker discounts
        // i.e. 0.025% - 4 times the number of tokens would be generated per fee
        // Since these fee discounts are only available via the centralised part of Ethfinex

        uint calculationBlock = windowFinalBlock[currentWindow()-1];
        uint256 previousSupply = tokenContract.totalSupplyAt(calculationBlock);
        uint256 initialSupply = tokenContract.totalSupplyAt(windowFinalBlock[0]);
        uint256 feeTotal = tokenContract.totalPledgedFeesAt(calculationBlock);
        uint256 newTokens = (_contributed.mul(previousSupply.div(1000)).div((initialSupply.div(1000)).add(feeTotal))).mul(1000);
        return newTokens;
    }

    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
        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(this.balance);
        LogFeeEvacuation(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);
        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

Contract ABI

[{"constant":true,"inputs":[{"name":"_maker","type":"address"}],"name":"getAuthorisationStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"evacuateToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"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":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"}]

60606040526000805460a060020a60ff02191674010000000000000000000000000000000000000000179055601e600555341561003b57600080fd5b6040516040806119cb833981016040528080519190602001805160008054600160a060020a03191633600160a060020a039081169190911790915590925083161515905061008857600080fd5b60038054600160a060020a03928316600160a060020a031991821617909155600480549390921692169190911790554260065560008052600760205243600019017f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df556118d1806100fa6000396000f3006060604052600436106101925763ffffffff60e060020a6000350416630a5dc24d811461019c57806319869555146101cf5780632b8b6667146101e25780632dff7a2b1461023157806337aa7f9114610250578063430bf08a1461026f57806343dc3ab21461029e57806345a1b92c146102ed5780634714c0aa1461030f5780634a393149146103345780634cedfc0c1461035c57806355a373d6146103745780636817031b146103875780637330daac146103a657806378e97925146103c55780637efff887146103ea578063893d20e8146103f25780638da5cb5b14610405578063a6f9dae114610418578063a8af4ff514610437578063aba3d01714610456578063b45dd8731461046c578063b9c2ee8214610484578063ba0bafb4146104a3578063c3c5a547146104b6578063cb22d392146104d5578063cdc62c03146104eb578063d2ca211514610501578063da682aeb14610514578063db25b4071461053c578063df8de3e71461054f578063dfca8fd21461056e578063e24a1d1e14610582578063f48c3054146105a1575b61019a6105b5565b005b34156101a757600080fd5b6101bb600160a060020a036004351661072e565b604051901515815260200160405180910390f35b34156101da57600080fd5b61019a610750565b34156101ed57600080fd5b61019a60046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506107e395505050505050565b341561023c57600080fd5b61019a600160a060020a036004351661085c565b341561025b57600080fd5b6101bb600160a060020a03600435166108f4565b341561027a57600080fd5b610282610909565b604051600160a060020a03909116815260200160405180910390f35b34156102a957600080fd5b61019a600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061091895505050505050565b34156102f857600080fd5b6101bb600160a060020a036004351660243561098c565b341561031a57600080fd5b6101bb600160a060020a0360043516602435604435610bbc565b341561033f57600080fd5b6101bb600160a060020a0360043581169060243516604435610bee565b341561036757600080fd5b61019a6004351515610c1e565b341561037f57600080fd5b610282610c79565b341561039257600080fd5b61019a600160a060020a0360043516610c88565b34156103b157600080fd5b6101bb600160a060020a0360043516610cd2565b34156103d057600080fd5b6103d8610ce7565b60405190815260200160405180910390f35b61019a610ced565b34156103fd57600080fd5b610282610d22565b341561041057600080fd5b610282610d31565b341561042357600080fd5b61019a600160a060020a0360043516610d40565b341561044257600080fd5b6101bb600160a060020a0360043516610d8a565b341561046157600080fd5b6103d8600435610da8565b341561047757600080fd5b61019a6004351515610de4565b341561048f57600080fd5b61019a600160a060020a0360043516610e5e565b34156104ae57600080fd5b6103d8610f1d565b34156104c157600080fd5b6101bb600160a060020a0360043516610f2d565b34156104e057600080fd5b6103d8600435610f7c565b34156104f657600080fd5b6103d8600435610f8e565b341561050c57600080fd5b6103d8611198565b341561051f57600080fd5b6101bb600160a060020a036004358116906024351660443561119e565b341561054757600080fd5b6101bb6111a9565b341561055a57600080fd5b61019a600160a060020a03600435166111ca565b61019a600160a060020a0360043516611327565b341561058d57600080fd5b61019a600160a060020a036004351661135a565b6101bb600160a060020a0360043516611396565b600354600160a060020a031663f77c47916000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156105fd57600080fd5b6102c65a03f1151561060e57600080fd5b5050506040518051600160a060020a0316158015915061062d57503415155b151561063857600080fd5b600354600160a060020a0316634fa7e3533460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561068957600080fd5b6102c65a03f1151561069a57600080fd5b50505060405180515050600454600160a060020a03163480156108fc0290604051600060405180830381858888f1935050505015156106d857600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33346000604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a1565b600160a060020a03811660009081526002602052604090205460ff165b919050565b60005433600160a060020a0390811691161461076b57600080fd5b600454600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156107a457600080fd5b7f8cf1c5c446b156b14402e4a2526dab237cb6defe71043cbb787f51ce6724b0db30600160a060020a03163160405190815260200160405180910390a1565b6000805433600160a060020a039081169116146107ff57600080fd5b5060005b81518110156108585760006001600084848151811061081e57fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff1916911515919091179055600101610803565b5050565b610864611893565b60005433600160a060020a0390811691161461087f57600080fd5b600160a060020a03821660009081526002602052604090819020805460ff1916600190811790915590518059106108b35750595b9080825280602002602001820160405250905081816000815181106108d457fe5b600160a060020a0390921660209283029091019091015261085881610918565b60026020526000908152604090205460ff1681565b600454600160a060020a031681565b6000805433600160a060020a0390811691161461093457600080fd5b5060005b815181101561085857600180600084848151811061095257fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff1916911515919091179055600101610938565b60035460009081908190819033600160a060020a039081169116146109b057600080fd5b600354600160a060020a031663311325bd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156109f857600080fd5b6102c65a03f11515610a0957600080fd5b5050506040518051600354909450600160a060020a031690506318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610a5e57600080fd5b6102c65a03f11515610a6f57600080fd5b50505060405180519250610a9b905082610a8f858863ffffffff6113a816565b9063ffffffff6113de16565b600354909150600160a060020a031663d3ce77fe878760006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610afd57600080fd5b6102c65a03f11515610b0e57600080fd5b505050604051805190501515610b2357600080fd5b600160a060020a0330163181901015610b3b57600080fd5b600160a060020a03861681156108fc0282604051600060405180830381858888f193505050501515610b6c57600080fd5b7ffce6d5860f911bc27ece1365300332d2ddbe20c1adc46ee2eddd8f72c48053b28682604051600160a060020a03909216825260208201526040908101905180910390a150600195945050505050565b6000805433600160a060020a03908116911614610bd857600080fd5b610be38484846113f5565b5060015b9392505050565b6000610bf983610f2d565b8015610c095750610c0984610f2d565b15610c1657506001610be7565b506000610be7565b60005433600160a060020a03908116911614610c3957600080fd5b60008054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600354600160a060020a031681565b60005433600160a060020a03908116911614610ca357600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60016020526000908152604090205460ff1681565b60065481565b7f386c5a74f4b48b1c24abbf0aedacece36a9699f01ed737f0486ebfd9d549b14a3460405190815260200160405180910390a1565b600054600160a060020a031690565b600054600160a060020a031681565b60005433600160a060020a03908116911614610d5b57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a031660009081526001602052604090205460ff1690565b60006006548210610ddb57610dd36005546201518002610a8f6006548561161990919063ffffffff16565b600101610dde565b60005b92915050565b60005433600160a060020a03908116911614610dff57600080fd5b600354600160a060020a031663b45dd8738260405160e060020a63ffffffff84160281529015156004820152602401600060405180830381600087803b1515610e4757600080fd5b6102c65a03f11515610e5857600080fd5b50505050565b60005433600160a060020a03908116911614610e7957600080fd5b600354600160a060020a0316633cebb8238260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610ec957600080fd5b6102c65a03f11515610eda57600080fd5b5050507fbef2873659f3bf8b3c7c64380b7543be225c22ebb0f56a811c1a7209b00f822281604051600160a060020a03909116815260200160405180910390a150565b6000610f2842610da8565b905090565b6000805474010000000000000000000000000000000000000000900460ff161515610f5a5750600161074b565b50600160a060020a03811660009081526001602052604090205460ff1661074b565b60076020526000908152604090205481565b600080600080600080600760006001610fa5610f1d565b03815260208101919091526040908101600090812054600354909750600160a060020a03169163981b24d0918891516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561100e57600080fd5b6102c65a03f1151561101f57600080fd5b5050506040518051600354600080805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df54929750600160a060020a03909116925063981b24d091906040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156110aa57600080fd5b6102c65a03f115156110bb57600080fd5b5050506040518051600354909450600160a060020a0316905063c6d1d23d8660006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561111957600080fd5b6102c65a03f1151561112a57600080fd5b5050506040518051925061118d90506103e861118161115f85611153888563ffffffff6113de16565b9063ffffffff61162b16565b610a8f611174896103e863ffffffff6113de16565b8c9063ffffffff6113a816565b9063ffffffff6113a816565b979650505050505050565b60055481565b6000610c0984610f2d565b60005474010000000000000000000000000000000000000000900460ff1681565b60008054819033600160a060020a039081169116146111e857600080fd5b82915081600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561124257600080fd5b6102c65a03f1151561125357600080fd5b505050604051805160008054919350600160a060020a03808616935063a9059cbb92169084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156112c357600080fd5b6102c65a03f115156112d457600080fd5b50505060405180515050600054600160a060020a039081169084167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c8360405190815260200160405180910390a3505050565b600160a060020a03331660009081526002602052604090205460ff16151561134e57600080fd5b6113578161163a565b50565b60005433600160a060020a0390811691161461137557600080fd5b600160a060020a03166000908152600260205260409020805460ff19169055565b60006113a06105b5565b506001919050565b6000808315156113bb57600091506113d7565b508282028284828115156113cb57fe5b04146113d357fe5b8091505b5092915050565b60008082848115156113ec57fe5b04949350505050565b600354600090600160a060020a031663f77c479182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561143f57600080fd5b6102c65a03f1151561145057600080fd5b5050506040518051600160a060020a03161515905061146e57600080fd5b60076000600161147c610f1d565b03815260200190815260200160002054600014156114b957600143036007600060016114a6610f1d565b0381526020810191909152604001600020555b600354600160a060020a0316634fa7e3538460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561150a57600080fd5b6102c65a03f1151561151b57600080fd5b5050506040518051505060008211156115bf5761153783610f8e565b600354909150600160a060020a031663827f32c0858460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561159957600080fd5b6102c65a03f115156115aa57600080fd5b5050506040518051905015156115bf57600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33846001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a150505050565b60008282111561162557fe5b50900390565b6000828201838110156113d357fe5b600354600090600160a060020a031663f77c479182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561168457600080fd5b6102c65a03f1151561169557600080fd5b5050506040518051600160a060020a031615801591506116b457503415155b15156116bf57600080fd5b600354600160a060020a0316634fa7e3533460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561171057600080fd5b6102c65a03f1151561172157600080fd5b50505060405180515050600454600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561175f57600080fd5b60076000600161176d610f1d565b03815260200190815260200160002054600014156117aa5760014303600760006001611797610f1d565b0381526020810191909152604001600020555b6117b334610f8e565b600354909150600160a060020a031663827f32c0838360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561181557600080fd5b6102c65a03f1151561182657600080fd5b50505060405180519050151561183b57600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c82346001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a15050565b602060405190810160405260008152905600a165627a7a7230582061268210d40c92a5071bdcbfeaec073e41d86663401c403a483e349f81d95a560029000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828000000000000000000000000cc80c051057b774cd75067dc48f8987c4eb97a5e

Deployed Bytecode

0x6060604052600436106101925763ffffffff60e060020a6000350416630a5dc24d811461019c57806319869555146101cf5780632b8b6667146101e25780632dff7a2b1461023157806337aa7f9114610250578063430bf08a1461026f57806343dc3ab21461029e57806345a1b92c146102ed5780634714c0aa1461030f5780634a393149146103345780634cedfc0c1461035c57806355a373d6146103745780636817031b146103875780637330daac146103a657806378e97925146103c55780637efff887146103ea578063893d20e8146103f25780638da5cb5b14610405578063a6f9dae114610418578063a8af4ff514610437578063aba3d01714610456578063b45dd8731461046c578063b9c2ee8214610484578063ba0bafb4146104a3578063c3c5a547146104b6578063cb22d392146104d5578063cdc62c03146104eb578063d2ca211514610501578063da682aeb14610514578063db25b4071461053c578063df8de3e71461054f578063dfca8fd21461056e578063e24a1d1e14610582578063f48c3054146105a1575b61019a6105b5565b005b34156101a757600080fd5b6101bb600160a060020a036004351661072e565b604051901515815260200160405180910390f35b34156101da57600080fd5b61019a610750565b34156101ed57600080fd5b61019a60046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506107e395505050505050565b341561023c57600080fd5b61019a600160a060020a036004351661085c565b341561025b57600080fd5b6101bb600160a060020a03600435166108f4565b341561027a57600080fd5b610282610909565b604051600160a060020a03909116815260200160405180910390f35b34156102a957600080fd5b61019a600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061091895505050505050565b34156102f857600080fd5b6101bb600160a060020a036004351660243561098c565b341561031a57600080fd5b6101bb600160a060020a0360043516602435604435610bbc565b341561033f57600080fd5b6101bb600160a060020a0360043581169060243516604435610bee565b341561036757600080fd5b61019a6004351515610c1e565b341561037f57600080fd5b610282610c79565b341561039257600080fd5b61019a600160a060020a0360043516610c88565b34156103b157600080fd5b6101bb600160a060020a0360043516610cd2565b34156103d057600080fd5b6103d8610ce7565b60405190815260200160405180910390f35b61019a610ced565b34156103fd57600080fd5b610282610d22565b341561041057600080fd5b610282610d31565b341561042357600080fd5b61019a600160a060020a0360043516610d40565b341561044257600080fd5b6101bb600160a060020a0360043516610d8a565b341561046157600080fd5b6103d8600435610da8565b341561047757600080fd5b61019a6004351515610de4565b341561048f57600080fd5b61019a600160a060020a0360043516610e5e565b34156104ae57600080fd5b6103d8610f1d565b34156104c157600080fd5b6101bb600160a060020a0360043516610f2d565b34156104e057600080fd5b6103d8600435610f7c565b34156104f657600080fd5b6103d8600435610f8e565b341561050c57600080fd5b6103d8611198565b341561051f57600080fd5b6101bb600160a060020a036004358116906024351660443561119e565b341561054757600080fd5b6101bb6111a9565b341561055a57600080fd5b61019a600160a060020a03600435166111ca565b61019a600160a060020a0360043516611327565b341561058d57600080fd5b61019a600160a060020a036004351661135a565b6101bb600160a060020a0360043516611396565b600354600160a060020a031663f77c47916000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156105fd57600080fd5b6102c65a03f1151561060e57600080fd5b5050506040518051600160a060020a0316158015915061062d57503415155b151561063857600080fd5b600354600160a060020a0316634fa7e3533460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561068957600080fd5b6102c65a03f1151561069a57600080fd5b50505060405180515050600454600160a060020a03163480156108fc0290604051600060405180830381858888f1935050505015156106d857600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33346000604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a1565b600160a060020a03811660009081526002602052604090205460ff165b919050565b60005433600160a060020a0390811691161461076b57600080fd5b600454600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156107a457600080fd5b7f8cf1c5c446b156b14402e4a2526dab237cb6defe71043cbb787f51ce6724b0db30600160a060020a03163160405190815260200160405180910390a1565b6000805433600160a060020a039081169116146107ff57600080fd5b5060005b81518110156108585760006001600084848151811061081e57fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff1916911515919091179055600101610803565b5050565b610864611893565b60005433600160a060020a0390811691161461087f57600080fd5b600160a060020a03821660009081526002602052604090819020805460ff1916600190811790915590518059106108b35750595b9080825280602002602001820160405250905081816000815181106108d457fe5b600160a060020a0390921660209283029091019091015261085881610918565b60026020526000908152604090205460ff1681565b600454600160a060020a031681565b6000805433600160a060020a0390811691161461093457600080fd5b5060005b815181101561085857600180600084848151811061095257fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff1916911515919091179055600101610938565b60035460009081908190819033600160a060020a039081169116146109b057600080fd5b600354600160a060020a031663311325bd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156109f857600080fd5b6102c65a03f11515610a0957600080fd5b5050506040518051600354909450600160a060020a031690506318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610a5e57600080fd5b6102c65a03f11515610a6f57600080fd5b50505060405180519250610a9b905082610a8f858863ffffffff6113a816565b9063ffffffff6113de16565b600354909150600160a060020a031663d3ce77fe878760006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610afd57600080fd5b6102c65a03f11515610b0e57600080fd5b505050604051805190501515610b2357600080fd5b600160a060020a0330163181901015610b3b57600080fd5b600160a060020a03861681156108fc0282604051600060405180830381858888f193505050501515610b6c57600080fd5b7ffce6d5860f911bc27ece1365300332d2ddbe20c1adc46ee2eddd8f72c48053b28682604051600160a060020a03909216825260208201526040908101905180910390a150600195945050505050565b6000805433600160a060020a03908116911614610bd857600080fd5b610be38484846113f5565b5060015b9392505050565b6000610bf983610f2d565b8015610c095750610c0984610f2d565b15610c1657506001610be7565b506000610be7565b60005433600160a060020a03908116911614610c3957600080fd5b60008054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600354600160a060020a031681565b60005433600160a060020a03908116911614610ca357600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60016020526000908152604090205460ff1681565b60065481565b7f386c5a74f4b48b1c24abbf0aedacece36a9699f01ed737f0486ebfd9d549b14a3460405190815260200160405180910390a1565b600054600160a060020a031690565b600054600160a060020a031681565b60005433600160a060020a03908116911614610d5b57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a031660009081526001602052604090205460ff1690565b60006006548210610ddb57610dd36005546201518002610a8f6006548561161990919063ffffffff16565b600101610dde565b60005b92915050565b60005433600160a060020a03908116911614610dff57600080fd5b600354600160a060020a031663b45dd8738260405160e060020a63ffffffff84160281529015156004820152602401600060405180830381600087803b1515610e4757600080fd5b6102c65a03f11515610e5857600080fd5b50505050565b60005433600160a060020a03908116911614610e7957600080fd5b600354600160a060020a0316633cebb8238260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610ec957600080fd5b6102c65a03f11515610eda57600080fd5b5050507fbef2873659f3bf8b3c7c64380b7543be225c22ebb0f56a811c1a7209b00f822281604051600160a060020a03909116815260200160405180910390a150565b6000610f2842610da8565b905090565b6000805474010000000000000000000000000000000000000000900460ff161515610f5a5750600161074b565b50600160a060020a03811660009081526001602052604090205460ff1661074b565b60076020526000908152604090205481565b600080600080600080600760006001610fa5610f1d565b03815260208101919091526040908101600090812054600354909750600160a060020a03169163981b24d0918891516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561100e57600080fd5b6102c65a03f1151561101f57600080fd5b5050506040518051600354600080805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df54929750600160a060020a03909116925063981b24d091906040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156110aa57600080fd5b6102c65a03f115156110bb57600080fd5b5050506040518051600354909450600160a060020a0316905063c6d1d23d8660006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561111957600080fd5b6102c65a03f1151561112a57600080fd5b5050506040518051925061118d90506103e861118161115f85611153888563ffffffff6113de16565b9063ffffffff61162b16565b610a8f611174896103e863ffffffff6113de16565b8c9063ffffffff6113a816565b9063ffffffff6113a816565b979650505050505050565b60055481565b6000610c0984610f2d565b60005474010000000000000000000000000000000000000000900460ff1681565b60008054819033600160a060020a039081169116146111e857600080fd5b82915081600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561124257600080fd5b6102c65a03f1151561125357600080fd5b505050604051805160008054919350600160a060020a03808616935063a9059cbb92169084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156112c357600080fd5b6102c65a03f115156112d457600080fd5b50505060405180515050600054600160a060020a039081169084167ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c8360405190815260200160405180910390a3505050565b600160a060020a03331660009081526002602052604090205460ff16151561134e57600080fd5b6113578161163a565b50565b60005433600160a060020a0390811691161461137557600080fd5b600160a060020a03166000908152600260205260409020805460ff19169055565b60006113a06105b5565b506001919050565b6000808315156113bb57600091506113d7565b508282028284828115156113cb57fe5b04146113d357fe5b8091505b5092915050565b60008082848115156113ec57fe5b04949350505050565b600354600090600160a060020a031663f77c479182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561143f57600080fd5b6102c65a03f1151561145057600080fd5b5050506040518051600160a060020a03161515905061146e57600080fd5b60076000600161147c610f1d565b03815260200190815260200160002054600014156114b957600143036007600060016114a6610f1d565b0381526020810191909152604001600020555b600354600160a060020a0316634fa7e3538460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561150a57600080fd5b6102c65a03f1151561151b57600080fd5b5050506040518051505060008211156115bf5761153783610f8e565b600354909150600160a060020a031663827f32c0858460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561159957600080fd5b6102c65a03f115156115aa57600080fd5b5050506040518051905015156115bf57600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c33846001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a150505050565b60008282111561162557fe5b50900390565b6000828201838110156113d357fe5b600354600090600160a060020a031663f77c479182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561168457600080fd5b6102c65a03f1151561169557600080fd5b5050506040518051600160a060020a031615801591506116b457503415155b15156116bf57600080fd5b600354600160a060020a0316634fa7e3533460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561171057600080fd5b6102c65a03f1151561172157600080fd5b50505060405180515050600454600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561175f57600080fd5b60076000600161176d610f1d565b03815260200190815260200160002054600014156117aa5760014303600760006001611797610f1d565b0381526020810191909152604001600020555b6117b334610f8e565b600354909150600160a060020a031663827f32c0838360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561181557600080fd5b6102c65a03f1151561182657600080fd5b50505060405180519050151561183b57600080fd5b7f07c7bae800cac64b1ccb6998a41bfc58b5da0447a2bcea4f8430983a566cd13c82346001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a15050565b602060405190810160405260008152905600a165627a7a7230582061268210d40c92a5071bdcbfeaec073e41d86663401c403a483e349f81d95a560029

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://61268210d40c92a5071bdcbfeaec073e41d86663401c403a483e349f81d95a56

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.