ETH Price: $3,836.30 (+5.51%)

Token

ETH RSI 60/40 Yield II (ETHRSIAPY)
 

Overview

Max Total Supply

143.531660308518 ETHRSIAPY

Holders

242 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
0x41414141.eth
Balance
0.000000000000468075 ETHRSIAPY

Value
$0.00
0x209583c38817f25c0dc5aed972eadf53bc6d69d0
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The ETH RSI 60/40 Crossover Yield Set attempts to capitalize on trends by detecting the speed and change of price movements for ETH.

# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x26c477C0...3AF15b795
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
RebalancingSetTokenV3

Compiler Version
v0.5.7+commit.6da8b019

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-03-26
*/

pragma solidity ^0.5.2;

/**
 * @title SafeMath
 * @dev Unsigned math operations with safety checks that revert on error
 */
library SafeMath {
    /**
     * @dev Multiplies two unsigned integers, reverts on overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
     * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Adds two unsigned integers, reverts on overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
     * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
     * reverts when dividing by zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.2;

/**
 * @title ERC20 interface
 * @dev see https://eips.ethereum.org/EIPS/eip-20
 */
interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(address from, address to, uint256 value) external returns (bool);

    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.5.2;



/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://eips.ethereum.org/EIPS/eip-20
 * Originally based on code by FirstBlood:
 * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 *
 * This implementation emits additional Approval events, allowing applications to reconstruct the allowance status for
 * all accounts just by listening to said events. Note that this isn't required by the specification, and other
 * compliant implementations may not do it.
 */
contract ERC20 is IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowed;

    uint256 private _totalSupply;

    /**
     * @dev Total number of tokens in existence
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner The address to query the balance of.
     * @return A uint256 representing the amount owned by the passed address.
     */
    function balanceOf(address owner) public view returns (uint256) {
        return _balances[owner];
    }

    /**
     * @dev Function to check the amount of tokens that an owner allowed to a spender.
     * @param owner address The address which owns the funds.
     * @param spender address The address which will spend the funds.
     * @return A uint256 specifying the amount of tokens still available for the spender.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowed[owner][spender];
    }

    /**
     * @dev Transfer token to a specified address
     * @param to The address to transfer to.
     * @param value The amount to be transferred.
     */
    function transfer(address to, uint256 value) public returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     * Beware that changing an allowance with this method brings the risk that someone may use both the old
     * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
     * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     */
    function approve(address spender, uint256 value) public returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    /**
     * @dev Transfer tokens from one address to another.
     * Note that while this function emits an Approval event, this is not required as per the specification,
     * and other compliant implementations may not emit the event.
     * @param from address The address which you want to send tokens from
     * @param to address The address which you want to transfer to
     * @param value uint256 the amount of tokens to be transferred
     */
    function transferFrom(address from, address to, uint256 value) public returns (bool) {
        _transfer(from, to, value);
        _approve(from, msg.sender, _allowed[from][msg.sender].sub(value));
        return true;
    }

    /**
     * @dev Increase the amount of tokens that an owner allowed to a spender.
     * approve should be called when _allowed[msg.sender][spender] == 0. To increment
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * Emits an Approval event.
     * @param spender The address which will spend the funds.
     * @param addedValue The amount of tokens to increase the allowance by.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Decrease the amount of tokens that an owner allowed to a spender.
     * approve should be called when _allowed[msg.sender][spender] == 0. To decrement
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * Emits an Approval event.
     * @param spender The address which will spend the funds.
     * @param subtractedValue The amount of tokens to decrease the allowance by.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue));
        return true;
    }

    /**
     * @dev Transfer token for a specified addresses
     * @param from The address to transfer from.
     * @param to The address to transfer to.
     * @param value The amount to be transferred.
     */
    function _transfer(address from, address to, uint256 value) internal {
        require(to != address(0));

        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(value);
        emit Transfer(from, to, value);
    }

    /**
     * @dev Internal function that mints an amount of the token and assigns it to
     * an account. This encapsulates the modification of balances such that the
     * proper events are emitted.
     * @param account The account that will receive the created tokens.
     * @param value The amount that will be created.
     */
    function _mint(address account, uint256 value) internal {
        require(account != address(0));

        _totalSupply = _totalSupply.add(value);
        _balances[account] = _balances[account].add(value);
        emit Transfer(address(0), account, value);
    }

    /**
     * @dev Internal function that burns an amount of the token of a given
     * account.
     * @param account The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function _burn(address account, uint256 value) internal {
        require(account != address(0));

        _totalSupply = _totalSupply.sub(value);
        _balances[account] = _balances[account].sub(value);
        emit Transfer(account, address(0), value);
    }

    /**
     * @dev Approve an address to spend another addresses' tokens.
     * @param owner The address that owns the tokens.
     * @param spender The address that will spend the tokens.
     * @param value The number of tokens that can be spent.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        require(spender != address(0));
        require(owner != address(0));

        _allowed[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    /**
     * @dev Internal function that burns an amount of the token of a given
     * account, deducting from the sender's allowance for said account. Uses the
     * internal burn function.
     * Emits an Approval event (reflecting the reduced allowance).
     * @param account The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function _burnFrom(address account, uint256 value) internal {
        _burn(account, value);
        _approve(account, msg.sender, _allowed[account][msg.sender].sub(value));
    }
}

// File: contracts/lib/CommonMath.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;



library CommonMath {
    using SafeMath for uint256;

    uint256 public constant SCALE_FACTOR = 10 ** 18;
    uint256 public constant MAX_UINT_256 = 2 ** 256 - 1;

    /**
     * Returns scale factor equal to 10 ** 18
     *
     * @return  10 ** 18
     */
    function scaleFactor()
        internal
        pure
        returns (uint256)
    {
        return SCALE_FACTOR;
    }

    /**
     * Calculates and returns the maximum value for a uint256
     *
     * @return  The maximum value for uint256
     */
    function maxUInt256()
        internal
        pure
        returns (uint256)
    {
        return MAX_UINT_256;
    }

    /**
     * Increases a value by the scale factor to allow for additional precision
     * during mathematical operations
     */
    function scale(
        uint256 a
    )
        internal
        pure
        returns (uint256)
    {
        return a.mul(SCALE_FACTOR);
    }

    /**
     * Divides a value by the scale factor to allow for additional precision
     * during mathematical operations
    */
    function deScale(
        uint256 a
    )
        internal
        pure
        returns (uint256)
    {
        return a.div(SCALE_FACTOR);
    }

    /**
    * @dev Performs the power on a specified value, reverts on overflow.
    */
    function safePower(
        uint256 a,
        uint256 pow
    )
        internal
        pure
        returns (uint256)
    {
        require(a > 0);

        uint256 result = 1;
        for (uint256 i = 0; i < pow; i++){
            uint256 previousResult = result;

            // Using safemath multiplication prevents overflows
            result = previousResult.mul(a);
        }

        return result;
    }

    /**
    * @dev Performs division where if there is a modulo, the value is rounded up
    */
    function divCeil(uint256 a, uint256 b)
        internal
        pure
        returns(uint256)
    {
        return a.mod(b) > 0 ? a.div(b).add(1) : a.div(b);
    }

    /**
     * Checks for rounding errors and returns value of potential partial amounts of a principal
     *
     * @param  _principal       Number fractional amount is derived from
     * @param  _numerator       Numerator of fraction
     * @param  _denominator     Denominator of fraction
     * @return uint256          Fractional amount of principal calculated
     */
    function getPartialAmount(
        uint256 _principal,
        uint256 _numerator,
        uint256 _denominator
    )
        internal
        pure
        returns (uint256)
    {
        // Get remainder of partial amount (if 0 not a partial amount)
        uint256 remainder = mulmod(_principal, _numerator, _denominator);

        // Return if not a partial amount
        if (remainder == 0) {
            return _principal.mul(_numerator).div(_denominator);
        }

        // Calculate error percentage
        uint256 errPercentageTimes1000000 = remainder.mul(1000000).div(_numerator.mul(_principal));

        // Require error percentage is less than 0.1%.
        require(
            errPercentageTimes1000000 < 1000,
            "CommonMath.getPartialAmount: Rounding error exceeds bounds"
        );

        return _principal.mul(_numerator).div(_denominator);
    }

    /*
     * Gets the rounded up log10 of passed value
     *
     * @param  _value         Value to calculate ceil(log()) on
     * @return uint256        Output value
     */
    function ceilLog10(
        uint256 _value
    )
        internal
        pure
        returns (uint256)
    {
        // Make sure passed value is greater than 0
        require (
            _value > 0,
            "CommonMath.ceilLog10: Value must be greater than zero."
        );

        // Since log10(1) = 0, if _value = 1 return 0
        if (_value == 1) return 0;

        // Calcualte ceil(log10())
        uint256 x = _value - 1;

        uint256 result = 0;

        if (x >= 10 ** 64) {
            x /= 10 ** 64;
            result += 64;
        }
        if (x >= 10 ** 32) {
            x /= 10 ** 32;
            result += 32;
        }
        if (x >= 10 ** 16) {
            x /= 10 ** 16;
            result += 16;
        }
        if (x >= 10 ** 8) {
            x /= 10 ** 8;
            result += 8;
        }
        if (x >= 10 ** 4) {
            x /= 10 ** 4;
            result += 4;
        }
        if (x >= 100) {
            x /= 100;
            result += 2;
        }
        if (x >= 10) {
            result += 1;
        }

        return result + 1;
    }
}

// File: contracts/core/lib/RebalancingLibrary.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;


/**
 * @title RebalancingLibrary
 * @author Set Protocol
 *
 * The RebalancingLibrary contains functions for facilitating the rebalancing process for
 * Rebalancing Set Tokens. Removes the old calculation functions
 *
 */
library RebalancingLibrary {

    /* ============ Enums ============ */

    enum State { Default, Proposal, Rebalance, Drawdown }

    /* ============ Structs ============ */

    struct AuctionPriceParameters {
        uint256 auctionStartTime;
        uint256 auctionTimeToPivot;
        uint256 auctionStartPrice;
        uint256 auctionPivotPrice;
    }

    struct BiddingParameters {
        uint256 minimumBid;
        uint256 remainingCurrentSets;
        uint256[] combinedCurrentUnits;
        uint256[] combinedNextSetUnits;
        address[] combinedTokenArray;
    }
}

// File: contracts/core/interfaces/ICore.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;


/**
 * @title ICore
 * @author Set Protocol
 *
 * The ICore Contract defines all the functions exposed in the Core through its
 * various extensions and is a light weight way to interact with the contract.
 */
interface ICore {
    /**
     * Return transferProxy address.
     *
     * @return address       transferProxy address
     */
    function transferProxy()
        external
        view
        returns (address);

    /**
     * Return vault address.
     *
     * @return address       vault address
     */
    function vault()
        external
        view
        returns (address);

    /**
     * Return address belonging to given exchangeId.
     *
     * @param  _exchangeId       ExchangeId number
     * @return address           Address belonging to given exchangeId
     */
    function exchangeIds(
        uint8 _exchangeId
    )
        external
        view
        returns (address);

    /*
     * Returns if valid set
     *
     * @return  bool      Returns true if Set created through Core and isn't disabled
     */
    function validSets(address)
        external
        view
        returns (bool);

    /*
     * Returns if valid module
     *
     * @return  bool      Returns true if valid module
     */
    function validModules(address)
        external
        view
        returns (bool);

    /**
     * Return boolean indicating if address is a valid Rebalancing Price Library.
     *
     * @param  _priceLibrary    Price library address
     * @return bool             Boolean indicating if valid Price Library
     */
    function validPriceLibraries(
        address _priceLibrary
    )
        external
        view
        returns (bool);

    /**
     * Exchanges components for Set Tokens
     *
     * @param  _set          Address of set to issue
     * @param  _quantity     Quantity of set to issue
     */
    function issue(
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Issues a specified Set for a specified quantity to the recipient
     * using the caller's components from the wallet and vault.
     *
     * @param  _recipient    Address to issue to
     * @param  _set          Address of the Set to issue
     * @param  _quantity     Number of tokens to issue
     */
    function issueTo(
        address _recipient,
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Converts user's components into Set Tokens held directly in Vault instead of user's account
     *
     * @param _set          Address of the Set
     * @param _quantity     Number of tokens to redeem
     */
    function issueInVault(
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Function to convert Set Tokens into underlying components
     *
     * @param _set          The address of the Set token
     * @param _quantity     The number of tokens to redeem. Should be multiple of natural unit.
     */
    function redeem(
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Redeem Set token and return components to specified recipient. The components
     * are left in the vault
     *
     * @param _recipient    Recipient of Set being issued
     * @param _set          Address of the Set
     * @param _quantity     Number of tokens to redeem
     */
    function redeemTo(
        address _recipient,
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Function to convert Set Tokens held in vault into underlying components
     *
     * @param _set          The address of the Set token
     * @param _quantity     The number of tokens to redeem. Should be multiple of natural unit.
     */
    function redeemInVault(
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Composite method to redeem and withdraw with a single transaction
     *
     * Normally, you should expect to be able to withdraw all of the tokens.
     * However, some have central abilities to freeze transfers (e.g. EOS). _toExclude
     * allows you to optionally specify which component tokens to exclude when
     * redeeming. They will remain in the vault under the users' addresses.
     *
     * @param _set          Address of the Set
     * @param _to           Address to withdraw or attribute tokens to
     * @param _quantity     Number of tokens to redeem
     * @param _toExclude    Mask of indexes of tokens to exclude from withdrawing
     */
    function redeemAndWithdrawTo(
        address _set,
        address _to,
        uint256 _quantity,
        uint256 _toExclude
    )
        external;

    /**
     * Deposit multiple tokens to the vault. Quantities should be in the
     * order of the addresses of the tokens being deposited.
     *
     * @param  _tokens           Array of the addresses of the ERC20 tokens
     * @param  _quantities       Array of the number of tokens to deposit
     */
    function batchDeposit(
        address[] calldata _tokens,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Withdraw multiple tokens from the vault. Quantities should be in the
     * order of the addresses of the tokens being withdrawn.
     *
     * @param  _tokens            Array of the addresses of the ERC20 tokens
     * @param  _quantities        Array of the number of tokens to withdraw
     */
    function batchWithdraw(
        address[] calldata _tokens,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Deposit any quantity of tokens into the vault.
     *
     * @param  _token           The address of the ERC20 token
     * @param  _quantity        The number of tokens to deposit
     */
    function deposit(
        address _token,
        uint256 _quantity
    )
        external;

    /**
     * Withdraw a quantity of tokens from the vault.
     *
     * @param  _token           The address of the ERC20 token
     * @param  _quantity        The number of tokens to withdraw
     */
    function withdraw(
        address _token,
        uint256 _quantity
    )
        external;

    /**
     * Transfer tokens associated with the sender's account in vault to another user's
     * account in vault.
     *
     * @param  _token           Address of token being transferred
     * @param  _to              Address of user receiving tokens
     * @param  _quantity        Amount of tokens being transferred
     */
    function internalTransfer(
        address _token,
        address _to,
        uint256 _quantity
    )
        external;

    /**
     * Deploys a new Set Token and adds it to the valid list of SetTokens
     *
     * @param  _factory              The address of the Factory to create from
     * @param  _components           The address of component tokens
     * @param  _units                The units of each component token
     * @param  _naturalUnit          The minimum unit to be issued or redeemed
     * @param  _name                 The bytes32 encoded name of the new Set
     * @param  _symbol               The bytes32 encoded symbol of the new Set
     * @param  _callData             Byte string containing additional call parameters
     * @return setTokenAddress       The address of the new Set
     */
    function createSet(
        address _factory,
        address[] calldata _components,
        uint256[] calldata _units,
        uint256 _naturalUnit,
        bytes32 _name,
        bytes32 _symbol,
        bytes calldata _callData
    )
        external
        returns (address);

    /**
     * Exposes internal function that deposits a quantity of tokens to the vault and attributes
     * the tokens respectively, to system modules.
     *
     * @param  _from            Address to transfer tokens from
     * @param  _to              Address to credit for deposit
     * @param  _token           Address of token being deposited
     * @param  _quantity        Amount of tokens to deposit
     */
    function depositModule(
        address _from,
        address _to,
        address _token,
        uint256 _quantity
    )
        external;

    /**
     * Exposes internal function that withdraws a quantity of tokens from the vault and
     * deattributes the tokens respectively, to system modules.
     *
     * @param  _from            Address to decredit for withdraw
     * @param  _to              Address to transfer tokens to
     * @param  _token           Address of token being withdrawn
     * @param  _quantity        Amount of tokens to withdraw
     */
    function withdrawModule(
        address _from,
        address _to,
        address _token,
        uint256 _quantity
    )
        external;

    /**
     * Exposes internal function that deposits multiple tokens to the vault, to system
     * modules. Quantities should be in the order of the addresses of the tokens being
     * deposited.
     *
     * @param  _from              Address to transfer tokens from
     * @param  _to                Address to credit for deposits
     * @param  _tokens            Array of the addresses of the tokens being deposited
     * @param  _quantities        Array of the amounts of tokens to deposit
     */
    function batchDepositModule(
        address _from,
        address _to,
        address[] calldata _tokens,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Exposes internal function that withdraws multiple tokens from the vault, to system
     * modules. Quantities should be in the order of the addresses of the tokens being withdrawn.
     *
     * @param  _from              Address to decredit for withdrawals
     * @param  _to                Address to transfer tokens to
     * @param  _tokens            Array of the addresses of the tokens being withdrawn
     * @param  _quantities        Array of the amounts of tokens to withdraw
     */
    function batchWithdrawModule(
        address _from,
        address _to,
        address[] calldata _tokens,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Expose internal function that exchanges components for Set tokens,
     * accepting any owner, to system modules
     *
     * @param  _owner        Address to use tokens from
     * @param  _recipient    Address to issue Set to
     * @param  _set          Address of the Set to issue
     * @param  _quantity     Number of tokens to issue
     */
    function issueModule(
        address _owner,
        address _recipient,
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Expose internal function that exchanges Set tokens for components,
     * accepting any owner, to system modules
     *
     * @param  _burnAddress         Address to burn token from
     * @param  _incrementAddress    Address to increment component tokens to
     * @param  _set                 Address of the Set to redeem
     * @param  _quantity            Number of tokens to redeem
     */
    function redeemModule(
        address _burnAddress,
        address _incrementAddress,
        address _set,
        uint256 _quantity
    )
        external;

    /**
     * Expose vault function that increments user's balance in the vault.
     * Available to system modules
     *
     * @param  _tokens          The addresses of the ERC20 tokens
     * @param  _owner           The address of the token owner
     * @param  _quantities      The numbers of tokens to attribute to owner
     */
    function batchIncrementTokenOwnerModule(
        address[] calldata _tokens,
        address _owner,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Expose vault function that decrement user's balance in the vault
     * Only available to system modules.
     *
     * @param  _tokens          The addresses of the ERC20 tokens
     * @param  _owner           The address of the token owner
     * @param  _quantities      The numbers of tokens to attribute to owner
     */
    function batchDecrementTokenOwnerModule(
        address[] calldata _tokens,
        address _owner,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Expose vault function that transfer vault balances between users
     * Only available to system modules.
     *
     * @param  _tokens           Addresses of tokens being transferred
     * @param  _from             Address tokens being transferred from
     * @param  _to               Address tokens being transferred to
     * @param  _quantities       Amounts of tokens being transferred
     */
    function batchTransferBalanceModule(
        address[] calldata _tokens,
        address _from,
        address _to,
        uint256[] calldata _quantities
    )
        external;

    /**
     * Transfers token from one address to another using the transfer proxy.
     * Only available to system modules.
     *
     * @param  _token          The address of the ERC20 token
     * @param  _quantity       The number of tokens to transfer
     * @param  _from           The address to transfer from
     * @param  _to             The address to transfer to
     */
    function transferModule(
        address _token,
        uint256 _quantity,
        address _from,
        address _to
    )
        external;

    /**
     * Expose transfer proxy function to transfer tokens from one address to another
     * Only available to system modules.
     *
     * @param  _tokens         The addresses of the ERC20 token
     * @param  _quantities     The numbers of tokens to transfer
     * @param  _from           The address to transfer from
     * @param  _to             The address to transfer to
     */
    function batchTransferModule(
        address[] calldata _tokens,
        uint256[] calldata _quantities,
        address _from,
        address _to
    )
        external;
}

// File: contracts/core/interfaces/IFeeCalculator.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;

/**
 * @title IFeeCalculator
 * @author Set Protocol
 *
 */
interface IFeeCalculator {

    /* ============ External Functions ============ */

    function initialize(
        bytes calldata _feeCalculatorData
    )
        external;

    function getFee()
        external
        view
        returns(uint256);

    function updateAndGetFee()
        external
        returns(uint256);

    function adjustFee(
        bytes calldata _newFeeData
    )
        external;
}

// File: contracts/core/interfaces/ISetToken.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;

/**
 * @title ISetToken
 * @author Set Protocol
 *
 * The ISetToken interface provides a light-weight, structured way to interact with the
 * SetToken contract from another contract.
 */
interface ISetToken {

    /* ============ External Functions ============ */

    /*
     * Get natural unit of Set
     *
     * @return  uint256       Natural unit of Set
     */
    function naturalUnit()
        external
        view
        returns (uint256);

    /*
     * Get addresses of all components in the Set
     *
     * @return  componentAddresses       Array of component tokens
     */
    function getComponents()
        external
        view
        returns (address[] memory);

    /*
     * Get units of all tokens in Set
     *
     * @return  units       Array of component units
     */
    function getUnits()
        external
        view
        returns (uint256[] memory);

    /*
     * Checks to make sure token is component of Set
     *
     * @param  _tokenAddress     Address of token being checked
     * @return  bool             True if token is component of Set
     */
    function tokenIsComponent(
        address _tokenAddress
    )
        external
        view
        returns (bool);

    /*
     * Mint set token for given address.
     * Can only be called by authorized contracts.
     *
     * @param  _issuer      The address of the issuing account
     * @param  _quantity    The number of sets to attribute to issuer
     */
    function mint(
        address _issuer,
        uint256 _quantity
    )
        external;

    /*
     * Burn set token for given address
     * Can only be called by authorized contracts
     *
     * @param  _from        The address of the redeeming account
     * @param  _quantity    The number of sets to burn from redeemer
     */
    function burn(
        address _from,
        uint256 _quantity
    )
        external;

    /**
    * Transfer token for a specified address
    *
    * @param to The address to transfer to.
    * @param value The amount to be transferred.
    */
    function transfer(
        address to,
        uint256 value
    )
        external;
}

// File: contracts/core/interfaces/IRebalancingSetToken.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;
pragma experimental "ABIEncoderV2";


/**
 * @title IRebalancingSetToken
 * @author Set Protocol
 *
 * The IRebalancingSetToken interface provides a light-weight, structured way to interact with the
 * RebalancingSetToken contract from another contract.
 */

interface IRebalancingSetToken {

    /*
     * Get the auction library contract used for the current rebalance
     *
     * @return address    Address of auction library used in the upcoming auction
     */
    function auctionLibrary()
        external
        view
        returns (address);

    /*
     * Get totalSupply of Rebalancing Set
     *
     * @return  totalSupply
     */
    function totalSupply()
        external
        view
        returns (uint256);

    /*
     * Get proposalTimeStamp of Rebalancing Set
     *
     * @return  proposalTimeStamp
     */
    function proposalStartTime()
        external
        view
        returns (uint256);

    /*
     * Get lastRebalanceTimestamp of Rebalancing Set
     *
     * @return  lastRebalanceTimestamp
     */
    function lastRebalanceTimestamp()
        external
        view
        returns (uint256);

    /*
     * Get rebalanceInterval of Rebalancing Set
     *
     * @return  rebalanceInterval
     */
    function rebalanceInterval()
        external
        view
        returns (uint256);

    /*
     * Get rebalanceState of Rebalancing Set
     *
     * @return RebalancingLibrary.State    Current rebalance state of the RebalancingSetToken
     */
    function rebalanceState()
        external
        view
        returns (RebalancingLibrary.State);

    /*
     * Get the starting amount of current SetToken for the current auction
     *
     * @return  rebalanceState
     */
    function startingCurrentSetAmount()
        external
        view
        returns (uint256);

    /**
     * Gets the balance of the specified address.
     *
     * @param owner      The address to query the balance of.
     * @return           A uint256 representing the amount owned by the passed address.
     */
    function balanceOf(
        address owner
    )
        external
        view
        returns (uint256);

    /**
     * Function used to set the terms of the next rebalance and start the proposal period
     *
     * @param _nextSet                      The Set to rebalance into
     * @param _auctionLibrary               The library used to calculate the Dutch Auction price
     * @param _auctionTimeToPivot           The amount of time for the auction to go ffrom start to pivot price
     * @param _auctionStartPrice            The price to start the auction at
     * @param _auctionPivotPrice            The price at which the price curve switches from linear to exponential
     */
    function propose(
        address _nextSet,
        address _auctionLibrary,
        uint256 _auctionTimeToPivot,
        uint256 _auctionStartPrice,
        uint256 _auctionPivotPrice
    )
        external;

    /*
     * Get natural unit of Set
     *
     * @return  uint256       Natural unit of Set
     */
    function naturalUnit()
        external
        view
        returns (uint256);

    /**
     * Returns the address of the current base SetToken with the current allocation
     *
     * @return           A address representing the base SetToken
     */
    function currentSet()
        external
        view
        returns (address);

    /**
     * Returns the address of the next base SetToken with the post auction allocation
     *
     * @return  address    Address representing the base SetToken
     */
    function nextSet()
        external
        view
        returns (address);

    /*
     * Get the unit shares of the rebalancing Set
     *
     * @return  unitShares       Unit Shares of the base Set
     */
    function unitShares()
        external
        view
        returns (uint256);

    /*
     * Burn set token for given address.
     * Can only be called by authorized contracts.
     *
     * @param  _from        The address of the redeeming account
     * @param  _quantity    The number of sets to burn from redeemer
     */
    function burn(
        address _from,
        uint256 _quantity
    )
        external;

    /*
     * Place bid during rebalance auction. Can only be called by Core.
     *
     * @param _quantity                 The amount of currentSet to be rebalanced
     * @return combinedTokenArray       Array of token addresses invovled in rebalancing
     * @return inflowUnitArray          Array of amount of tokens inserted into system in bid
     * @return outflowUnitArray         Array of amount of tokens taken out of system in bid
     */
    function placeBid(
        uint256 _quantity
    )
        external
        returns (address[] memory, uint256[] memory, uint256[] memory);

    /*
     * Get combinedTokenArray of Rebalancing Set
     *
     * @return  combinedTokenArray
     */
    function getCombinedTokenArrayLength()
        external
        view
        returns (uint256);

    /*
     * Get combinedTokenArray of Rebalancing Set
     *
     * @return  combinedTokenArray
     */
    function getCombinedTokenArray()
        external
        view
        returns (address[] memory);

    /*
     * Get failedAuctionWithdrawComponents of Rebalancing Set
     *
     * @return  failedAuctionWithdrawComponents
     */
    function getFailedAuctionWithdrawComponents()
        external
        view
        returns (address[] memory);

    /*
     * Get auctionPriceParameters for current auction
     *
     * @return uint256[4]    AuctionPriceParameters for current rebalance auction
     */
    function getAuctionPriceParameters()
        external
        view
        returns (uint256[] memory);

    /*
     * Get biddingParameters for current auction
     *
     * @return uint256[2]    BiddingParameters for current rebalance auction
     */
    function getBiddingParameters()
        external
        view
        returns (uint256[] memory);

    /*
     * Get token inflows and outflows required for bid. Also the amount of Rebalancing
     * Sets that would be generated.
     *
     * @param _quantity               The amount of currentSet to be rebalanced
     * @return inflowUnitArray        Array of amount of tokens inserted into system in bid
     * @return outflowUnitArray       Array of amount of tokens taken out of system in bid
     */
    function getBidPrice(
        uint256 _quantity
    )
        external
        view
        returns (uint256[] memory, uint256[] memory);

}

// File: contracts/core/lib/Rebalance.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;



/**
 * @title Rebalance
 * @author Set Protocol
 *
 * Types and functions for Rebalance-related data.
 */
library Rebalance {

    struct TokenFlow {
        address[] addresses;
        uint256[] inflow;
        uint256[] outflow;
    }

    function composeTokenFlow(
        address[] memory _addresses,
        uint256[] memory _inflow,
        uint256[] memory _outflow
    )
        internal
        pure
        returns(TokenFlow memory)
    {
        return TokenFlow({addresses: _addresses, inflow: _inflow, outflow: _outflow });
    }

    function decomposeTokenFlow(TokenFlow memory _tokenFlow)
        internal
        pure
        returns (address[] memory, uint256[] memory, uint256[] memory)
    {
        return (_tokenFlow.addresses, _tokenFlow.inflow, _tokenFlow.outflow);
    }

    function decomposeTokenFlowToBidPrice(TokenFlow memory _tokenFlow)
        internal
        pure
        returns (uint256[] memory, uint256[] memory)
    {
        return (_tokenFlow.inflow, _tokenFlow.outflow);
    }

    /**
     * Get token flows array of addresses, inflows and outflows
     *
     * @param    _rebalancingSetToken   The rebalancing Set Token instance
     * @param    _quantity              The amount of currentSet to be rebalanced
     * @return   combinedTokenArray     Array of token addresses
     * @return   inflowArray            Array of amount of tokens inserted into system in bid
     * @return   outflowArray           Array of amount of tokens returned from system in bid
     */
    function getTokenFlows(
        IRebalancingSetToken _rebalancingSetToken,
        uint256 _quantity
    )
        internal
        view
        returns (address[] memory, uint256[] memory, uint256[] memory)
    {
        // Get token addresses
        address[] memory combinedTokenArray = _rebalancingSetToken.getCombinedTokenArray();

        // Get inflow and outflow arrays for the given bid quantity
        (
            uint256[] memory inflowArray,
            uint256[] memory outflowArray
        ) = _rebalancingSetToken.getBidPrice(_quantity);

        return (combinedTokenArray, inflowArray, outflowArray);
    }
}

// File: contracts/core/interfaces/ILiquidator.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;




/**
 * @title ILiquidator
 * @author Set Protocol
 *
 */
interface ILiquidator {

    /* ============ External Functions ============ */

    function startRebalance(
        ISetToken _currentSet,
        ISetToken _nextSet,
        uint256 _startingCurrentSetQuantity,
        bytes calldata _liquidatorData
    )
        external;

    function getBidPrice(
        address _set,
        uint256 _quantity
    )
        external
        view
        returns (Rebalance.TokenFlow memory);

    function placeBid(
        uint256 _quantity
    )
        external
        returns (Rebalance.TokenFlow memory);


    function settleRebalance()
        external;

    function endFailedRebalance() external;

    // ----------------------------------------------------------------------
    // Auction Price
    // ----------------------------------------------------------------------

    function auctionPriceParameters(address _set)
        external
        view
        returns (RebalancingLibrary.AuctionPriceParameters memory);

    // ----------------------------------------------------------------------
    // Auction
    // ----------------------------------------------------------------------

    function hasRebalanceFailed(address _set) external view returns (bool);
    function minimumBid(address _set) external view returns (uint256);
    function startingCurrentSets(address _set) external view returns (uint256);
    function remainingCurrentSets(address _set) external view returns (uint256);
    function getCombinedCurrentSetUnits(address _set) external view returns (uint256[] memory);
    function getCombinedNextSetUnits(address _set) external view returns (uint256[] memory);
    function getCombinedTokenArray(address _set) external view returns (address[] memory);
}

// File: contracts/core/interfaces/ISetFactory.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;


/**
 * @title ISetFactory
 * @author Set Protocol
 *
 * The ISetFactory interface provides operability for authorized contracts
 * to interact with SetTokenFactory
 */
interface ISetFactory {

    /* ============ External Functions ============ */

    /**
     * Return core address
     *
     * @return address        core address
     */
    function core()
        external
        returns (address);

    /**
     * Deploys a new Set Token and adds it to the valid list of SetTokens
     *
     * @param  _components           The address of component tokens
     * @param  _units                The units of each component token
     * @param  _naturalUnit          The minimum unit to be issued or redeemed
     * @param  _name                 The bytes32 encoded name of the new Set
     * @param  _symbol               The bytes32 encoded symbol of the new Set
     * @param  _callData             Byte string containing additional call parameters
     * @return setTokenAddress       The address of the new Set
     */
    function createSet(
        address[] calldata _components,
        uint[] calldata _units,
        uint256 _naturalUnit,
        bytes32 _name,
        bytes32 _symbol,
        bytes calldata _callData
    )
        external
        returns (address);
}

// File: contracts/core/interfaces/IWhiteList.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;

/**
 * @title IWhiteList
 * @author Set Protocol
 *
 * The IWhiteList interface exposes the whitelist mapping to check components
 */
interface IWhiteList {

    /* ============ External Functions ============ */

    /**
     * Validates address against white list
     *
     * @param  _address       Address to check
     * @return bool           Whether passed in address is whitelisted
     */
    function whiteList(
        address _address
    )
        external
        view
        returns (bool);

    /**
     * Verifies an array of addresses against the whitelist
     *
     * @param  _addresses    Array of addresses to verify
     * @return bool          Whether all addresses in the list are whitelsited
     */
    function areValidAddresses(
        address[] calldata _addresses
    )
        external
        view
        returns (bool);
}

// File: contracts/core/interfaces/IRebalancingSetFactory.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;




/**
 * @title IRebalancingSetFactory
 * @author Set Protocol
 *
 * The IRebalancingSetFactory interface provides operability for authorized contracts
 * to interact with RebalancingSetTokenFactory
 */
contract IRebalancingSetFactory is
    ISetFactory
{
    /**
     * Getter for minimumRebalanceInterval of RebalancingSetTokenFactory, used
     * to enforce rebalanceInterval when creating a RebalancingSetToken
     *
     * @return uint256    Minimum amount of time between rebalances in seconds
     */
    function minimumRebalanceInterval()
        external
        returns (uint256);

    /**
     * Getter for minimumProposalPeriod of RebalancingSetTokenFactory, used
     * to enforce proposalPeriod when creating a RebalancingSetToken
     *
     * @return uint256    Minimum amount of time users can review proposals in seconds
     */
    function minimumProposalPeriod()
        external
        returns (uint256);

    /**
     * Getter for minimumTimeToPivot of RebalancingSetTokenFactory, used
     * to enforce auctionTimeToPivot when proposing a rebalance
     *
     * @return uint256    Minimum amount of time before auction pivot reached
     */
    function minimumTimeToPivot()
        external
        returns (uint256);

    /**
     * Getter for maximumTimeToPivot of RebalancingSetTokenFactory, used
     * to enforce auctionTimeToPivot when proposing a rebalance
     *
     * @return uint256    Maximum amount of time before auction pivot reached
     */
    function maximumTimeToPivot()
        external
        returns (uint256);

    /**
     * Getter for minimumNaturalUnit of RebalancingSetTokenFactory
     *
     * @return uint256    Minimum natural unit
     */
    function minimumNaturalUnit()
        external
        returns (uint256);

    /**
     * Getter for maximumNaturalUnit of RebalancingSetTokenFactory
     *
     * @return uint256    Maximum Minimum natural unit
     */
    function maximumNaturalUnit()
        external
        returns (uint256);

    /**
     * Getter for rebalanceAuctionModule address on RebalancingSetTokenFactory
     *
     * @return address      Address of rebalanceAuctionModule
     */
    function rebalanceAuctionModule()
        external
        returns (address);
}

// File: contracts/core/interfaces/IVault.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;

/**
 * @title IVault
 * @author Set Protocol
 *
 * The IVault interface provides a light-weight, structured way to interact with the Vault
 * contract from another contract.
 */
interface IVault {

    /*
     * Withdraws user's unassociated tokens to user account. Can only be
     * called by authorized core contracts.
     *
     * @param  _token          The address of the ERC20 token
     * @param  _to             The address to transfer token to
     * @param  _quantity       The number of tokens to transfer
     */
    function withdrawTo(
        address _token,
        address _to,
        uint256 _quantity
    )
        external;

    /*
     * Increment quantity owned of a token for a given address. Can
     * only be called by authorized core contracts.
     *
     * @param  _token           The address of the ERC20 token
     * @param  _owner           The address of the token owner
     * @param  _quantity        The number of tokens to attribute to owner
     */
    function incrementTokenOwner(
        address _token,
        address _owner,
        uint256 _quantity
    )
        external;

    /*
     * Decrement quantity owned of a token for a given address. Can only
     * be called by authorized core contracts.
     *
     * @param  _token           The address of the ERC20 token
     * @param  _owner           The address of the token owner
     * @param  _quantity        The number of tokens to deattribute to owner
     */
    function decrementTokenOwner(
        address _token,
        address _owner,
        uint256 _quantity
    )
        external;

    /**
     * Transfers tokens associated with one account to another account in the vault
     *
     * @param  _token          Address of token being transferred
     * @param  _from           Address token being transferred from
     * @param  _to             Address token being transferred to
     * @param  _quantity       Amount of tokens being transferred
     */

    function transferBalance(
        address _token,
        address _from,
        address _to,
        uint256 _quantity
    )
        external;


    /*
     * Withdraws user's unassociated tokens to user account. Can only be
     * called by authorized core contracts.
     *
     * @param  _tokens          The addresses of the ERC20 tokens
     * @param  _owner           The address of the token owner
     * @param  _quantities      The numbers of tokens to attribute to owner
     */
    function batchWithdrawTo(
        address[] calldata _tokens,
        address _to,
        uint256[] calldata _quantities
    )
        external;

    /*
     * Increment quantites owned of a collection of tokens for a given address. Can
     * only be called by authorized core contracts.
     *
     * @param  _tokens          The addresses of the ERC20 tokens
     * @param  _owner           The address of the token owner
     * @param  _quantities      The numbers of tokens to attribute to owner
     */
    function batchIncrementTokenOwner(
        address[] calldata _tokens,
        address _owner,
        uint256[] calldata _quantities
    )
        external;

    /*
     * Decrements quantites owned of a collection of tokens for a given address. Can
     * only be called by authorized core contracts.
     *
     * @param  _tokens          The addresses of the ERC20 tokens
     * @param  _owner           The address of the token owner
     * @param  _quantities      The numbers of tokens to attribute to owner
     */
    function batchDecrementTokenOwner(
        address[] calldata _tokens,
        address _owner,
        uint256[] calldata _quantities
    )
        external;

   /**
     * Transfers tokens associated with one account to another account in the vault
     *
     * @param  _tokens           Addresses of tokens being transferred
     * @param  _from             Address tokens being transferred from
     * @param  _to               Address tokens being transferred to
     * @param  _quantities       Amounts of tokens being transferred
     */
    function batchTransferBalance(
        address[] calldata _tokens,
        address _from,
        address _to,
        uint256[] calldata _quantities
    )
        external;

    /*
     * Get balance of particular contract for owner.
     *
     * @param  _token    The address of the ERC20 token
     * @param  _owner    The address of the token owner
     */
    function getOwnerBalance(
        address _token,
        address _owner
    )
        external
        view
        returns (uint256);
}

// File: contracts/lib/ScaleValidations.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;



library ScaleValidations {
    using SafeMath for uint256;

    uint256 private constant ONE_HUNDRED_PERCENT = 1e18;
    uint256 private constant ONE_BASIS_POINT = 1e14;

    function validateLessThanEqualOneHundredPercent(uint256 _value) internal view {
        require(_value <= ONE_HUNDRED_PERCENT, "Must be <= 100%");
    }

    function validateMultipleOfBasisPoint(uint256 _value) internal view {
        require(
            _value.mod(ONE_BASIS_POINT) == 0,
            "Must be multiple of 0.01%"
        );
    }
}

// File: contracts/core/tokens/rebalancing-v2/RebalancingSetState.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;











/**
 * @title RebalancingSetState
 * @author Set Protocol
 *
 */
contract RebalancingSetState {

    /* ============ State Variables ============ */

    // ----------------------------------------------------------------------
    // System Related
    // ----------------------------------------------------------------------

    // Set Protocol's Core Contract
    ICore public core;

    // The Factory that created this Set
    IRebalancingSetFactory public factory;

    // Set Protocol's Vault contract
    IVault public vault;

    // The token whitelist that components are checked against during proposals
    IWhiteList public componentWhiteList;

    // WhiteList of liquidator contracts
    IWhiteList public liquidatorWhiteList;

    // Contract holding the state and logic required for rebalance liquidation
    // The Liquidator interacts closely with the Set during rebalances.
    ILiquidator public liquidator;

    // Contract responsible for calculation of rebalance fees
    IFeeCalculator public rebalanceFeeCalculator;

    // The account that is allowed to make proposals
    address public manager;

    // The account that receives any fees
    address public feeRecipient;

    // ----------------------------------------------------------------------
    // Configuration
    // ----------------------------------------------------------------------

    // Time in seconds that must elapsed from last rebalance to propose
    uint256 public rebalanceInterval;

    // Time in seconds after rebalanceStartTime before the Set believes the auction has failed
    uint256 public rebalanceFailPeriod;

    // Fee levied to feeRecipient every mint operation, paid during minting
    // Represents a decimal value scaled by 1e18 (e.g. 100% = 1e18 and 1% = 1e16)
    uint256 public entryFee;

    // ----------------------------------------------------------------------
    // Current State
    // ----------------------------------------------------------------------

    // The Set currently collateralizing the Rebalancing Set
    ISetToken public currentSet;

    // The number of currentSet per naturalUnit of the Rebalancing Set
    uint256 public unitShares;

    // The minimum issuable value of a Set
    uint256 public naturalUnit;

    // The current state of the Set (e.g. Default, Proposal, Rebalance, Drawdown)
    // Proposal is unused
    RebalancingLibrary.State public rebalanceState;

    // The number of rebalances in the Set's history; starts at index 0
    uint256 public rebalanceIndex;

    // The timestamp of the last completed rebalance
    uint256 public lastRebalanceTimestamp;

    // ----------------------------------------------------------------------
    // Live Rebalance State
    // ----------------------------------------------------------------------

    // The proposal's SetToken to rebalance into
    ISetToken public nextSet;

    // The timestamp of the last rebalance was initiated at
    uint256 public rebalanceStartTime;

    // Whether a successful bid has been made during the rebalance.
    // In the case that the rebalance has failed, hasBidded is used
    // to determine whether the Set should be put into Drawdown or Default state.
    bool public hasBidded;

    // In the event a Set is put into the Drawdown state, these components
    // that can be withdrawn by users
    address[] internal failedRebalanceComponents;

    /* ============ Modifier ============ */

    modifier onlyManager() {
        validateManager();
        _;
    }

    /* ============ Events ============ */

    event NewManagerAdded(
        address newManager,
        address oldManager
    );

    event NewLiquidatorAdded(
        address newLiquidator,
        address oldLiquidator
    );

    event NewEntryFee(
        uint256 newEntryFee,
        uint256 oldEntryFee
    );

    event NewFeeRecipient(
        address newFeeRecipient,
        address oldFeeRecipient
    );

    event EntryFeePaid(
        address indexed feeRecipient,
        uint256 feeQuantity
    );

    event RebalanceStarted(
        address oldSet,
        address newSet,
        uint256 rebalanceIndex,
        uint256 currentSetQuantity
    );

    event RebalanceSettled(
        address indexed feeRecipient,
        uint256 feeQuantity,
        uint256 feePercentage,
        uint256 rebalanceIndex,
        uint256 issueQuantity,
        uint256 unitShares
    );

    /* ============ Setter Functions ============ */

    /*
     * Set new manager address.
     */
    function setManager(
        address _newManager
    )
        external
        onlyManager
    {
        emit NewManagerAdded(_newManager, manager);
        manager = _newManager;
    }

    function setEntryFee(
        uint256 _newEntryFee
    )
        external
        onlyManager
    {
        ScaleValidations.validateLessThanEqualOneHundredPercent(_newEntryFee);

        ScaleValidations.validateMultipleOfBasisPoint(_newEntryFee);

        emit NewEntryFee(_newEntryFee, entryFee);
        entryFee = _newEntryFee;
    }

    /*
     * Set new liquidator address. Only whitelisted addresses are valid.
     */
    function setLiquidator(
        ILiquidator _newLiquidator
    )
        external
        onlyManager
    {
        require(
            rebalanceState != RebalancingLibrary.State.Rebalance,
            "Invalid state"
        );

        require(
            liquidatorWhiteList.whiteList(address(_newLiquidator)),
            "Not whitelisted"
        );

        emit NewLiquidatorAdded(address(_newLiquidator), address(liquidator));
        liquidator = _newLiquidator;
    }

    function setFeeRecipient(
        address _newFeeRecipient
    )
        external
        onlyManager
    {
        emit NewFeeRecipient(_newFeeRecipient, feeRecipient);
        feeRecipient = _newFeeRecipient;
    }

    /* ============ Getter Functions ============ */

    /*
     * Retrieves the current expected fee from the fee calculator
     * Value is returned as a scale decimal figure.
     */
    function rebalanceFee()
        external
        view
        returns (uint256)
    {
        return rebalanceFeeCalculator.getFee();
    }

    /*
     * Function for compatability with ISetToken interface. Returns currentSet.
     */
    function getComponents()
        external
        view
        returns (address[] memory)
    {
        address[] memory components = new address[](1);
        components[0] = address(currentSet);
        return components;
    }

    /*
     * Function for compatability with ISetToken interface. Returns unitShares.
     */
    function getUnits()
        external
        view
        returns (uint256[] memory)
    {
        uint256[] memory units = new uint256[](1);
        units[0] = unitShares;
        return units;
    }

    /*
     * Returns whether the address is the current set of the RebalancingSetToken.
     * Conforms to the ISetToken Interface.
     */
    function tokenIsComponent(
        address _tokenAddress
    )
        external
        view
        returns (bool)
    {
        return _tokenAddress == address(currentSet);
    }

    /* ============ Validations ============ */
    function validateManager() internal view {
        require(
            msg.sender == manager,
            "Not manager"
        );
    }

    function validateCallerIsCore() internal view {
        require(
            msg.sender == address(core),
            "Not Core"
        );
    }

    function validateCallerIsModule() internal view {
        require(
            core.validModules(msg.sender),
            "Not approved module"
        );
    }

    function validateRebalanceStateIs(RebalancingLibrary.State _requiredState) internal view {
        require(
            rebalanceState == _requiredState,
            "Invalid state"
        );
    }

    function validateRebalanceStateIsNot(RebalancingLibrary.State _requiredState) internal view {
        require(
            rebalanceState != _requiredState,
            "Invalid state"
        );
    }
}

// File: contracts/core/tokens/rebalancing-v3/IncentiveFee.sol

/*
    Copyright 2020 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;







/**
 * @title IncentiveFee
 * @author Set Protocol
 */
contract IncentiveFee is
    ERC20,
    RebalancingSetState
{
    using SafeMath for uint256;
    using CommonMath for uint256;

    /* ============ Events ============ */

    event IncentiveFeePaid(
        address indexed feeRecipient,
        uint256 feeQuantity,
        uint256 feePercentage,
        uint256 newUnitShares
    );

    /* ============ Internal Functions ============ */

    /**
     * Calculates the fee and mints the rebalancing SetToken quantity to the recipient.
     * The minting is done without an increase to the total collateral controlled by the
     * rebalancing SetToken. In effect, the existing holders are paying the fee via inflation.
     *
     * @return feePercentage
     * @return feeQuantity
     */
    function handleFees()
        internal
        returns (uint256, uint256)
    {
        // Represents a decimal value scaled by 1e18 (e.g. 100% = 1e18 and 1% = 1e16)
        uint256 feePercent = rebalanceFeeCalculator.updateAndGetFee();
        uint256 feeQuantity = calculateIncentiveFeeInflation(feePercent);

        if (feeQuantity > 0) {
            ERC20._mint(feeRecipient, feeQuantity);
        }

        return (feePercent, feeQuantity);
    }

    /**
     * Returns the new incentive fee. The calculation for the fee involves implying
     * mint quantity so that the feeRecipient owns the fee percentage of the entire
     * supply of the Set.
     *
     * The formula to solve for fee is:
     * feeQuantity / feeQuantity + totalSupply = fee / scaleFactor
     *
     * The simplified formula utilized below is:
     * feeQuantity = fee * totalSupply / (scaleFactor - fee)
     *
     * @param   _feePercentage          Fee levied to feeRecipient
     * @return  uint256                 New RebalancingSet issue quantity
     */
    function calculateIncentiveFeeInflation(
        uint256 _feePercentage
    )
        internal
        view
        returns(uint256)
    {
        // fee * totalSupply
        uint256 a = _feePercentage.mul(totalSupply());

        // ScaleFactor (10e18) - fee
        uint256 b = CommonMath.scaleFactor().sub(_feePercentage);

        return a.div(b);
    }

    /*
     * The Rebalancing SetToken must be in Default state.
     */
    function validateFeeActualization() internal view {
        validateRebalanceStateIs(RebalancingLibrary.State.Default);
    }

    /*
     * After the minting of new inflation fees, the unit shares must be updated.
     * The formula is as follows:
     * newUnitShares = currentSetAmount * rebalanceSetNaturalUnit / rebalanceSetTotalSupply
     */
    function calculateNewUnitShares() internal view returns(uint256) {
        uint256 currentSetAmount = vault.getOwnerBalance(
            address(currentSet),
            address(this)
        );

        return currentSetAmount.mul(naturalUnit).divCeil(totalSupply());
    }
}

// File: openzeppelin-solidity/contracts/math/Math.sol

pragma solidity ^0.5.2;

/**
 * @title Math
 * @dev Assorted math operations
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Calculates the average of two numbers. Since these are integers,
     * averages of an even and odd number cannot be represented, and will be
     * rounded down.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// File: contracts/core/lib/SetTokenLibrary.sol

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;





library SetTokenLibrary {
    using SafeMath for uint256;

    struct SetDetails {
        uint256 naturalUnit;
        address[] components;
        uint256[] units;
    }

    /**
     * Validates that passed in tokens are all components of the Set
     *
     * @param _set                      Address of the Set
     * @param _tokens                   List of tokens to check
     */
    function validateTokensAreComponents(
        address _set,
        address[] calldata _tokens
    )
        external
        view
    {
        for (uint256 i = 0; i < _tokens.length; i++) {
            // Make sure all tokens are members of the Set
            require(
                ISetToken(_set).tokenIsComponent(_tokens[i]),
                "SetTokenLibrary.validateTokensAreComponents: Component must be a member of Set"
            );

        }
    }

    /**
     * Validates that passed in quantity is a multiple of the natural unit of the Set.
     *
     * @param _set                      Address of the Set
     * @param _quantity                 Quantity to validate
     */
    function isMultipleOfSetNaturalUnit(
        address _set,
        uint256 _quantity
    )
        external
        view
    {
        require(
            _quantity.mod(ISetToken(_set).naturalUnit()) == 0,
            "SetTokenLibrary.isMultipleOfSetNaturalUnit: Quantity is not a multiple of nat unit"
        );
    }

    /**
     * Validates that passed in quantity is a multiple of the natural unit of the Set.
     *
     * @param _core                     Address of Core
     * @param _set                      Address of the Set
     */
    function requireValidSet(
        ICore _core,
        address _set
    )
        internal
        view
    {
        require(
            _core.validSets(_set),
            "SetTokenLibrary: Must be an approved SetToken address"
        );
    }

    /**
     * Retrieves the Set's natural unit, components, and units.
     *
     * @param _set                      Address of the Set
     * @return SetDetails               Struct containing the natural unit, components, and units
     */
    function getSetDetails(
        address _set
    )
        internal
        view
        returns (SetDetails memory)
    {
        // Declare interface variables
        ISetToken setToken = ISetToken(_set);

        // Fetch set token properties
        uint256 naturalUnit = setToken.naturalUnit();
        address[] memory components = setToken.getComponents();
        uint256[] memory units = setToken.getUnits();

        return SetDetails({
            naturalUnit: naturalUnit,
            components: components,
            units: units
        });
    }
}

// File: contracts/core/tokens/rebalancing-v2/RebalancingSettlement.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;











/**
 * @title RebalancingSettlement
 * @author Set Protocol
 *
 */
contract RebalancingSettlement is
    ERC20,
    RebalancingSetState
{
    using SafeMath for uint256;

    uint256 public constant SCALE_FACTOR = 10 ** 18;

    /* ============ Internal Functions ============ */

    /*
     * Validates that the settle function can be called.
     */
    function validateRebalancingSettlement()
        internal
        view
    {
        validateRebalanceStateIs(RebalancingLibrary.State.Rebalance);
    }

    /*
     * Issue nextSet to RebalancingSetToken; The issued Set is held in the Vault
     *
     * @param  _issueQuantity   Quantity of next Set to issue
     */
    function issueNextSet(
        uint256 _issueQuantity
    )
        internal
    {
        core.issueInVault(
            address(nextSet),
            _issueQuantity
        );
    }

    /*
     * Updates state post-settlement.
     *
     * @param  _nextUnitShares   The new implied unit shares
     */
    function transitionToDefault(
        uint256 _newUnitShares
    )
        internal
    {
        rebalanceState = RebalancingLibrary.State.Default;
        lastRebalanceTimestamp = block.timestamp;
        currentSet = nextSet;
        unitShares = _newUnitShares;
        rebalanceIndex = rebalanceIndex.add(1);

        nextSet = ISetToken(address(0));
        hasBidded = false;
    }

    /**
     * Calculate the amount of Sets to issue by using the component amounts in the
     * vault.
     */
    function calculateSetIssueQuantity(
        ISetToken _setToken
    )
        internal
        view
        returns (uint256)
    {
        // Collect data necessary to compute issueAmounts
        SetTokenLibrary.SetDetails memory setToken = SetTokenLibrary.getSetDetails(address(_setToken));
        uint256 maxIssueAmount = calculateMaxIssueAmount(setToken);

        // Issue amount of Sets that is closest multiple of nextNaturalUnit to the maxIssueAmount
        uint256 issueAmount = maxIssueAmount.sub(maxIssueAmount.mod(setToken.naturalUnit));

        return issueAmount;
    }

    /**
     * Calculates the fee and mints the rebalancing SetToken quantity to the recipient.
     * The minting is done without an increase to the total collateral controlled by the
     * rebalancing SetToken. In effect, the existing holders are paying the fee via inflation.
     *
     * @return feePercentage
     * @return feeQuantity
     */
    function handleFees()
        internal
        returns (uint256, uint256)
    {
        // Represents a decimal value scaled by 1e18 (e.g. 100% = 1e18 and 1% = 1e16)
        uint256 feePercent = rebalanceFeeCalculator.getFee();
        uint256 feeQuantity = calculateRebalanceFeeInflation(feePercent);

        if (feeQuantity > 0) {
            ERC20._mint(feeRecipient, feeQuantity);
        }

        return (feePercent, feeQuantity);
    }

    /**
     * Returns the new rebalance fee. The calculation for the fee involves implying
     * mint quantity so that the feeRecipient owns the fee percentage of the entire
     * supply of the Set.
     *
     * The formula to solve for fee is:
     * feeQuantity / feeQuantity + totalSupply = fee / scaleFactor
     *
     * The simplified formula utilized below is:
     * feeQuantity = fee * totalSupply / (scaleFactor - fee)
     *
     * @param   _rebalanceFeePercent    Fee levied to feeRecipient every rebalance, paid during settlement
     * @return  uint256                 New RebalancingSet issue quantity
     */
    function calculateRebalanceFeeInflation(
        uint256 _rebalanceFeePercent
    )
        internal
        view
        returns(uint256)
    {
        // fee * totalSupply
        uint256 a = _rebalanceFeePercent.mul(totalSupply());

        // ScaleFactor (10e18) - fee
        uint256 b = SCALE_FACTOR.sub(_rebalanceFeePercent);

        return a.div(b);
    }

    /**
     * Calculates the new unitShares, defined as issueQuantity / naturalUnitsOutstanding
     *
     * @param  _issueQuantity   Amount of nextSets to issue
     *
     * @return  uint256             New unitShares for the rebalancingSetToken
     */
    function calculateNextSetNewUnitShares(
        uint256 _issueQuantity
    )
        internal
        view
        returns (uint256)
    {
        // Calculate the amount of naturalUnits worth of rebalancingSetToken outstanding.
        uint256 naturalUnitsOutstanding = totalSupply().div(naturalUnit);

        // Divide final issueAmount by naturalUnitsOutstanding to get newUnitShares
        return _issueQuantity.div(naturalUnitsOutstanding);
    }

    /* ============ Private Functions ============ */

    /**
     * Get the maximum possible issue amount of nextSet based on number of components owned by rebalancing
     * set token.
     *
     * @param  _setToken    Struct of Set Token details
     */
    function calculateMaxIssueAmount(
        SetTokenLibrary.SetDetails memory _setToken
    )
        private
        view
        returns (uint256)
    {
        uint256 maxIssueAmount = CommonMath.maxUInt256();

        for (uint256 i = 0; i < _setToken.components.length; i++) {
            // Get amount of components in vault owned by rebalancingSetToken
            uint256 componentAmount = vault.getOwnerBalance(
                _setToken.components[i],
                address(this)
            );

            // Calculate amount of Sets that can be issued from those components, if less than amount for other
            // components then set that as maxIssueAmount. We divide before multiplying so that we don't get
            // an amount that isn't a multiple of the naturalUnit
            uint256 componentIssueAmount = componentAmount.div(_setToken.units[i]).mul(_setToken.naturalUnit);
            if (componentIssueAmount < maxIssueAmount) {
                maxIssueAmount = componentIssueAmount;
            }
        }

        return maxIssueAmount;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.2;


/**
 * @title ERC20Detailed token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @return the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @return the symbol of the token.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @return the number of decimals of the token.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

// File: zos-lib/contracts/Initializable.sol

pragma solidity >=0.4.24 <0.6.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    uint256 cs;
    assembly { cs := extcodesize(address) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

// File: contracts/core/tokens/rebalancing-v2/BackwardCompatibility.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;




/**
 * @title BackwardCompatibility
 * @author Set Protocol
 *
 * This module allows full backwards compatability with RebalancingSetTokenV1. It implements
 * all the same getter functions to allow upstream applications to make minimized changes
 * to support the new version.
 *
 * The following interfaces are not included:
 * - propose(address, address, uint256, uint256, uint256): Implementation would have
 *.    been a revert.
 * - biddingParameters: RebalancingSetToken V1 biddingParameters reverts on call
 */
contract BackwardCompatibility is
    RebalancingSetState
{
    /* ============ Empty Variables ============ */

    // Deprecated auctionLibrary. Returns 0x00 to prevent reverts
    address public auctionLibrary;

    // Deprecated proposal period. Returns 0 to prevent reverts
    uint256 public proposalPeriod;

    // Deprecated proposal start time. Returns 0 to prevent reverts
    uint256 public proposalStartTime;

    /* ============ Getters ============ */

    function getAuctionPriceParameters() external view returns (uint256[] memory) {
        RebalancingLibrary.AuctionPriceParameters memory params = liquidator.auctionPriceParameters(
            address(this)
        );

        uint256[] memory auctionPriceParams = new uint256[](4);
        auctionPriceParams[0] = params.auctionStartTime;
        auctionPriceParams[1] = params.auctionTimeToPivot;
        auctionPriceParams[2] = params.auctionStartPrice;
        auctionPriceParams[3] = params.auctionPivotPrice;

        return auctionPriceParams;
    }

    function getCombinedCurrentUnits() external view returns (uint256[] memory) {
        return liquidator.getCombinedCurrentSetUnits(address(this));
    }

    function getCombinedNextSetUnits() external view returns (uint256[] memory) {
        return liquidator.getCombinedNextSetUnits(address(this));
    }

    function getCombinedTokenArray() external view returns (address[] memory) {
        return liquidator.getCombinedTokenArray(address(this));
    }

    function getCombinedTokenArrayLength() external view returns (uint256) {
        return liquidator.getCombinedTokenArray(address(this)).length;
    }

    function startingCurrentSetAmount() external view returns (uint256) {
        return liquidator.startingCurrentSets(address(this));
    }

    function auctionPriceParameters() external view
        returns (RebalancingLibrary.AuctionPriceParameters memory)
    {
        return liquidator.auctionPriceParameters(address(this));
    }

    /*
     * Since structs with arrays cannot be retrieved, we return
     * minimumBid and remainingCurrentSets separately.
     *
     * @return  biddingParams       Array with minimumBid and remainingCurrentSets
     */
    function getBiddingParameters() public view returns (uint256[] memory) {
        uint256[] memory biddingParams = new uint256[](2);
        biddingParams[0] = liquidator.minimumBid(address(this));
        biddingParams[1] = liquidator.remainingCurrentSets(address(this));
        return biddingParams;
    }

    function biddingParameters()
        external
        view
        returns (uint256, uint256)
    {
        uint256[] memory biddingParams = getBiddingParameters();
        return (biddingParams[0], biddingParams[1]);
    }

    function getFailedAuctionWithdrawComponents() external view returns (address[] memory) {
        return failedRebalanceComponents;
    }
}

// File: contracts/lib/AddressArrayUtils.sol

// Pulled in from Cryptofin Solidity package in order to control Solidity compiler version
// https://github.com/cryptofinlabs/cryptofin-solidity/blob/master/contracts/array-utils/AddressArrayUtils.sol

pragma solidity 0.5.7;


library AddressArrayUtils {

    /**
     * Finds the index of the first occurrence of the given element.
     * @param A The input array to search
     * @param a The value to find
     * @return Returns (index and isIn) for the first occurrence starting from index 0
     */
    function indexOf(address[] memory A, address a) internal pure returns (uint256, bool) {
        uint256 length = A.length;
        for (uint256 i = 0; i < length; i++) {
            if (A[i] == a) {
                return (i, true);
            }
        }
        return (0, false);
    }

    /**
    * Returns true if the value is present in the list. Uses indexOf internally.
    * @param A The input array to search
    * @param a The value to find
    * @return Returns isIn for the first occurrence starting from index 0
    */
    function contains(address[] memory A, address a) internal pure returns (bool) {
        bool isIn;
        (, isIn) = indexOf(A, a);
        return isIn;
    }

    /**
     * Returns the combination of the two arrays
     * @param A The first array
     * @param B The second array
     * @return Returns A extended by B
     */
    function extend(address[] memory A, address[] memory B) internal pure returns (address[] memory) {
        uint256 aLength = A.length;
        uint256 bLength = B.length;
        address[] memory newAddresses = new address[](aLength + bLength);
        for (uint256 i = 0; i < aLength; i++) {
            newAddresses[i] = A[i];
        }
        for (uint256 j = 0; j < bLength; j++) {
            newAddresses[aLength + j] = B[j];
        }
        return newAddresses;
    }

    /**
     * Returns the array with a appended to A.
     * @param A The first array
     * @param a The value to append
     * @return Returns A appended by a
     */
    function append(address[] memory A, address a) internal pure returns (address[] memory) {
        address[] memory newAddresses = new address[](A.length + 1);
        for (uint256 i = 0; i < A.length; i++) {
            newAddresses[i] = A[i];
        }
        newAddresses[A.length] = a;
        return newAddresses;
    }

    /**
     * Returns the intersection of two arrays. Arrays are treated as collections, so duplicates are kept.
     * @param A The first array
     * @param B The second array
     * @return The intersection of the two arrays
     */
    function intersect(address[] memory A, address[] memory B) internal pure returns (address[] memory) {
        uint256 length = A.length;
        bool[] memory includeMap = new bool[](length);
        uint256 newLength = 0;
        for (uint256 i = 0; i < length; i++) {
            if (contains(B, A[i])) {
                includeMap[i] = true;
                newLength++;
            }
        }
        address[] memory newAddresses = new address[](newLength);
        uint256 j = 0;
        for (uint256 k = 0; k < length; k++) {
            if (includeMap[k]) {
                newAddresses[j] = A[k];
                j++;
            }
        }
        return newAddresses;
    }

    /**
     * Returns the union of the two arrays. Order is not guaranteed.
     * @param A The first array
     * @param B The second array
     * @return The union of the two arrays
     */
    function union(address[] memory A, address[] memory B) internal pure returns (address[] memory) {
        address[] memory leftDifference = difference(A, B);
        address[] memory rightDifference = difference(B, A);
        address[] memory intersection = intersect(A, B);
        return extend(leftDifference, extend(intersection, rightDifference));
    }

    /**
     * Computes the difference of two arrays. Assumes there are no duplicates.
     * @param A The first array
     * @param B The second array
     * @return The difference of the two arrays
     */
    function difference(address[] memory A, address[] memory B) internal pure returns (address[] memory) {
        uint256 length = A.length;
        bool[] memory includeMap = new bool[](length);
        uint256 count = 0;
        // First count the new length because can't push for in-memory arrays
        for (uint256 i = 0; i < length; i++) {
            address e = A[i];
            if (!contains(B, e)) {
                includeMap[i] = true;
                count++;
            }
        }
        address[] memory newAddresses = new address[](count);
        uint256 j = 0;
        for (uint256 k = 0; k < length; k++) {
            if (includeMap[k]) {
                newAddresses[j] = A[k];
                j++;
            }
        }
        return newAddresses;
    }

    /**
    * Removes specified index from array
    * Resulting ordering is not guaranteed
    * @return Returns the new array and the removed entry
    */
    function pop(address[] memory A, uint256 index)
        internal
        pure
        returns (address[] memory, address)
    {
        uint256 length = A.length;
        address[] memory newAddresses = new address[](length - 1);
        for (uint256 i = 0; i < index; i++) {
            newAddresses[i] = A[i];
        }
        for (uint256 j = index + 1; j < length; j++) {
            newAddresses[j - 1] = A[j];
        }
        return (newAddresses, A[index]);
    }

    /**
     * @return Returns the new array
     */
    function remove(address[] memory A, address a)
        internal
        pure
        returns (address[] memory)
    {
        (uint256 index, bool isIn) = indexOf(A, a);
        if (!isIn) {
            revert();
        } else {
            (address[] memory _A,) = pop(A, index);
            return _A;
        }
    }

    /**
     * Returns whether or not there's a duplicate. Runs in O(n^2).
     * @param A Array to search
     * @return Returns true if duplicate, false otherwise
     */
    function hasDuplicate(address[] memory A) internal pure returns (bool) {
        if (A.length == 0) {
            return false;
        }
        for (uint256 i = 0; i < A.length - 1; i++) {
            for (uint256 j = i + 1; j < A.length; j++) {
                if (A[i] == A[j]) {
                    return true;
                }
            }
        }
        return false;
    }

    /**
     * Returns whether the two arrays are equal.
     * @param A The first array
     * @param B The second array
     * @return True is the arrays are equal, false if not.
     */
    function isEqual(address[] memory A, address[] memory B) internal pure returns (bool) {
        if (A.length != B.length) {
            return false;
        }
        for (uint256 i = 0; i < A.length; i++) {
            if (A[i] != B[i]) {
                return false;
            }
        }
        return true;
    }
}

// File: contracts/core/tokens/rebalancing-v2/RebalancingFailure.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;









/**
 * @title RebalancingFailure
 * @author Set Protocol
 *
 */
contract RebalancingFailure is
    RebalancingSetState,
    RebalancingSettlement
{
    using SafeMath for uint256;
    using AddressArrayUtils for address[];

    /* ============ Internal Functions ============ */

    /*
     * Validations for failRebalance:
     *  - State is Rebalance
     *  - Either liquidator recognizes failure OR fail period breached on RB Set
     *
     * @param _quantity                 The amount of currentSet to be rebalanced
     */
    function validateFailRebalance()
        internal
        view
    {
        // Token must be in Rebalance State
        validateRebalanceStateIs(RebalancingLibrary.State.Rebalance);

        // Failure triggers must be met
        require(
            liquidatorBreached() || failPeriodBreached(),
            "Triggers not breached"
        );
    }

    /*
     * Determine the new Rebalance State. If there has been a bid, then we put it to
     * Drawdown, where the Set is effectively killed. If no bids, we reissue the currentSet.
     */
    function getNewRebalanceState()
        internal
        view
        returns (RebalancingLibrary.State)
    {
        return hasBidded ? RebalancingLibrary.State.Drawdown : RebalancingLibrary.State.Default;
    }

    /*
     * Update state based on new Rebalance State.
     *
     * @param  _newRebalanceState      The new State to transition to
     */
    function transitionToNewState(
        RebalancingLibrary.State _newRebalanceState
    )
        internal
    {
        reissueSetIfRevertToDefault(_newRebalanceState);

        setWithdrawComponentsIfDrawdown(_newRebalanceState);

        rebalanceState = _newRebalanceState;
        rebalanceIndex = rebalanceIndex.add(1);
        lastRebalanceTimestamp = block.timestamp;

        nextSet = ISetToken(address(0));
        hasBidded = false;
    }

    /* ============ Private Functions ============ */

    /*
     * Returns whether the liquidator believes the rebalance has failed.
     *
     * @return        If liquidator thinks rebalance failed
     */
    function liquidatorBreached()
        private
        view
        returns (bool)
    {
        return liquidator.hasRebalanceFailed(address(this));
    }

    /*
     * Returns whether the the fail time has elapsed, which means that a period
     * of time where the auction should have succeeded has not.
     *
     * @return        If fail period has passed on Rebalancing Set Token
     */
    function failPeriodBreached()
        private
        view
        returns(bool)
    {
        uint256 rebalanceFailTime = rebalanceStartTime.add(rebalanceFailPeriod);

        return block.timestamp >= rebalanceFailTime;
    }

    /*
     * If the determination is Default State, reissue the Set.
     */
    function reissueSetIfRevertToDefault(
        RebalancingLibrary.State _newRebalanceState
    )
        private
    {
        if (_newRebalanceState ==  RebalancingLibrary.State.Default) {
            uint256 issueQuantity = calculateSetIssueQuantity(currentSet);

            // If bid not placed, reissue current Set
            core.issueInVault(
                address(currentSet),
                issueQuantity
            );
        }
    }

    /*
     * If the determination is Drawdown State, set the drawdown components which is the union of
     * the current and next Set components.
     */
    function setWithdrawComponentsIfDrawdown(
        RebalancingLibrary.State _newRebalanceState
    )
        private
    {
        if (_newRebalanceState ==  RebalancingLibrary.State.Drawdown) {
            address[] memory currentSetComponents = currentSet.getComponents();
            address[] memory nextSetComponents = nextSet.getComponents();

            failedRebalanceComponents = currentSetComponents.union(nextSetComponents);
        }
    }
}

// File: contracts/core/tokens/rebalancing-v2/Issuance.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;









/**
 * @title Issuance
 * @author Set Protocol
 *
 * Default implementation of Rebalancing Set Token propose function
 */
contract Issuance is
    ERC20,
    RebalancingSetState
{
    using SafeMath for uint256;
    using CommonMath for uint256;

    /* ============ Internal Functions ============ */

    /*
     * Validate call to mint new Rebalancing Set Token
     *
     *  - Make sure caller is Core
     *  - Make sure state is not Rebalance or Drawdown
     */
    function validateMint()
        internal
        view
    {
        validateCallerIsCore();

        validateRebalanceStateIs(RebalancingLibrary.State.Default);
    }

    /*
     * Validate call to burn Rebalancing Set Token
     *
     *  - Make sure state is not Rebalance or Drawdown
     *  - Make sure sender is module when in drawdown, core otherwise
     */
    function validateBurn()
        internal
        view
    {
        validateRebalanceStateIsNot(RebalancingLibrary.State.Rebalance);

        if (rebalanceState == RebalancingLibrary.State.Drawdown) {
            // In Drawdown Sets can only be burned as part of the withdrawal process
            validateCallerIsModule();
        } else {
            // When in non-Rebalance or Drawdown state, check that function caller is Core
            // so that Sets can be redeemed
            validateCallerIsCore();
        }
    }
    /*
     * Calculates entry fees and mints the feeRecipient a portion of the issue quantity.
     *
     * @param  _quantity              The number of rebalancing SetTokens the issuer mints
     * @return issueQuantityNetOfFees Quantity of rebalancing SetToken to mint issuer net of fees
     */
    function handleEntryFees(
        uint256 _quantity
    )
        internal
        returns(uint256)
    {
        // The entryFee is a scaled decimal figure by 10e18. We multiply the fee by the quantity
        // Then descale by 10e18
        uint256 fee = _quantity.mul(entryFee).deScale();

        if (fee > 0) {
            ERC20._mint(feeRecipient, fee);

            emit EntryFeePaid(feeRecipient, fee);
        }

        // Return the issue quantity less fees
        return _quantity.sub(fee);
    }
}

// File: contracts/core/tokens/rebalancing-v2/RebalancingBid.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;







/**
 * @title RebalancingBid
 * @author Set Protocol
 *
 * Implementation of Rebalancing Set Token V2 bidding-related functionality.
 */
contract RebalancingBid is
    RebalancingSetState
{
    using SafeMath for uint256;

    /* ============ Internal Functions ============ */

    /*
     * Validates conditions to retrieve a Bid Price:
     *  - State is Rebalance
     *  - Quanity is greater than zero
     *
     * @param _quantity                 The amount of currentSet to be rebalanced
     */
    function validateGetBidPrice(
        uint256 _quantity
    )
        internal
        view
    {
        validateRebalanceStateIs(RebalancingLibrary.State.Rebalance);

        require(
            _quantity > 0,
            "Bid not > 0"
        );
    }

    /*
     * Validations for placeBid:
     *  - Module is sender
     *  - getBidPrice validations
     *
     * @param _quantity                 The amount of currentSet to be rebalanced
     */
    function validatePlaceBid(
        uint256 _quantity
    )
        internal
        view
    {
        validateCallerIsModule();

        validateGetBidPrice(_quantity);
    }

    /*
     * If a successful bid has been made, flip the hasBidded boolean.
     */
    function updateHasBiddedIfNecessary()
        internal
    {
        if (!hasBidded) {
            hasBidded = true;
        }
    }

}

// File: contracts/core/tokens/rebalancing-v2/RebalancingStart.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;








/**
 * @title RebalancingStart
 * @author Set Protocol
 *
 * Implementation of Rebalancing Set Token V2 start rebalance functionality
 */
contract RebalancingStart is
    ERC20,
    RebalancingSetState
{
    using SafeMath for uint256;

    /* ============ Internal Functions ============ */

    /**
     * Validate that start rebalance can be called:
     *  - Current state is Default
     *  - rebalanceInterval has elapsed
     *  - Proposed set is valid in Core
     *  - Components in set are all valid
     *  - NaturalUnits are multiples of each other
     *
     * @param _nextSet                    The Set to rebalance into
     */
    function validateStartRebalance(
        ISetToken _nextSet
    )
        internal
        view
    {
        validateRebalanceStateIs(RebalancingLibrary.State.Default);

        // Enough time must have passed from last rebalance to start a new proposal
        require(
            block.timestamp >= lastRebalanceTimestamp.add(rebalanceInterval),
            "Interval not elapsed"
        );

        // Must be a positive supply of the Set
        require(
            totalSupply() > 0,
            "Invalid supply"
        );

        // New proposed Set must be a valid Set created by Core
        require(
            core.validSets(address(_nextSet)),
            "Invalid Set"
        );

        // Check proposed components on whitelist. This is to ensure managers are unable to add contract addresses
        // to a propose that prohibit the set from carrying out an auction i.e. a token that only the manager possesses
        require(
            componentWhiteList.areValidAddresses(_nextSet.getComponents()),
            "Invalid component"
        );

        // Check that the proposed set natural unit is a multiple of current set natural unit, or vice versa.
        // Done to make sure that when calculating token units there will are be rounding errors.
        require(
            naturalUnitsAreValid(currentSet, _nextSet),
            "Invalid natural unit"
        );
    }

    /**
     * Calculates the maximum quantity of the currentSet that can be redeemed. This is defined
     * by how many naturalUnits worth of the Set there are.
     *
     * @return   Maximum quantity of the current Set that can be redeemed
     */
    function calculateStartingSetQuantity()
        internal
        view
        returns (uint256)
    {
        uint256 currentSetBalance = vault.getOwnerBalance(address(currentSet), address(this));
        uint256 currentSetNaturalUnit = currentSet.naturalUnit();

        // Rounds the redemption quantity to a multiple of the current Set natural unit
        return currentSetBalance.sub(currentSetBalance.mod(currentSetNaturalUnit));
    }

    /**
     * Signals to the Liquidator to initiate the rebalance.
     *
     * @param _nextSet                         Next set instance
     * @param _startingCurrentSetQuantity      Amount of currentSets the rebalance is initiated with
     * @param _liquidatorData                  Bytecode formatted data with liquidator-specific arguments
     */
    function liquidatorRebalancingStart(
        ISetToken _nextSet,
        uint256 _startingCurrentSetQuantity,
        bytes memory _liquidatorData
    )
        internal
    {
        liquidator.startRebalance(
            currentSet,
            _nextSet,
            _startingCurrentSetQuantity,
            _liquidatorData
        );
    }

    /**
     * Updates rebalance-related state parameters.
     *
     * @param _nextSet                    The Set to rebalance into
     */
    function transitionToRebalance(ISetToken _nextSet) internal {
        nextSet = _nextSet;
        rebalanceState = RebalancingLibrary.State.Rebalance;
        rebalanceStartTime = block.timestamp;
    }

    /* ============ Private Functions ============ */

    /**
     * Check that the proposed set natural unit is a multiple of current set natural unit, or vice versa.
     * Done to make sure that when calculating token units there will be no rounding errors.
     *
     * @param _currentSet                 The current base SetToken
     * @param _nextSet                    The proposed SetToken
     */
    function naturalUnitsAreValid(
        ISetToken _currentSet,
        ISetToken _nextSet
    )
        private
        view
        returns (bool)
    {
        uint256 currentNaturalUnit = _currentSet.naturalUnit();
        uint256 nextSetNaturalUnit = _nextSet.naturalUnit();

        return Math.max(currentNaturalUnit, nextSetNaturalUnit).mod(
            Math.min(currentNaturalUnit, nextSetNaturalUnit)
        ) == 0;
    }
}

// File: contracts/core/tokens/RebalancingSetTokenV2.sol

/*
    Copyright 2019 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;





















/**
 * @title RebalancingSetTokenV2
 * @author Set Protocol
 *
 * Implementation of Rebalancing Set token V2. Major improvements vs. V1 include:
 * - Decouple the Rebalancing Set state and rebalance state from the rebalance execution (e.g. auction)
 *   This allows us to rapidly iterate and build new liquidation mechanisms for rebalances.
 * - Proposals are removed in favor of starting an auction directly.
 * - The Set retains ability to fail an auction if the minimum fail time has elapsed.
 * - RebalanceAuctionModule execution should be backwards compatible with V1.
 * - Bidding and auction parameters state no longer live on this contract. They live on the liquidator
 *   BackwardsComptability is used to allow retrieving of previous supported states.
 * - Introduces entry and rebalance fees, where rebalance fees are configurable based on an external
 *   fee calculator contract
 */
contract RebalancingSetTokenV2 is
    ERC20,
    ERC20Detailed,
    Initializable,
    RebalancingSetState,
    BackwardCompatibility,
    Issuance,
    RebalancingStart,
    RebalancingBid,
    RebalancingSettlement,
    RebalancingFailure
{

    /* ============ Constructor ============ */

    /**
     * Constructor function for Rebalancing Set Token
     *
     * addressConfig [factory, manager, liquidator, initialSet, componentWhiteList,
     *                liquidatorWhiteList, feeRecipient, rebalanceFeeCalculator]
     * [0]factory                   Factory used to create the Rebalancing Set
     * [1]manager                   Address that is able to propose the next Set
     * [2]liquidator                Address of the liquidator contract
     * [3]initialSet                Initial set that collateralizes the Rebalancing set
     * [4]componentWhiteList        Whitelist that nextSet components are checked against during propose
     * [5]liquidatorWhiteList       Whitelist of valid liquidators
     * [6]feeRecipient              Address that receives any incentive fees
     * [7]rebalanceFeeCalculator    Address to retrieve rebalance fee during settlement
     *
     * uintConfig [initialUnitShares, naturalUnit, rebalanceInterval, rebalanceFailPeriod,
     *             lastRebalanceTimestamp, entryFee]
     * [0]initialUnitShares         Units of currentSet that equals one share
     * [1]naturalUnit               The minimum multiple of Sets that can be issued or redeemed
     * [2]rebalanceInterval:        Minimum amount of time between rebalances
     * [3]rebalanceFailPeriod:      Time after auctionStart where something in the rebalance has gone wrong
     * [4]lastRebalanceTimestamp:   Time of the last rebalance; Allows customized deployments
     * [5]entryFee:                 Mint fee represented in a scaled decimal value (e.g. 100% = 1e18, 1% = 1e16)
     *
     * @param _addressConfig             List of configuration addresses
     * @param _uintConfig                List of uint addresses
     * @param _name                      The name of the new RebalancingSetTokenV2
     * @param _symbol                    The symbol of the new RebalancingSetTokenV2
     */
    constructor(
        address[8] memory _addressConfig,
        uint256[6] memory _uintConfig,
        string memory _name,
        string memory _symbol
    )
        public
        ERC20Detailed(
            _name,
            _symbol,
            18
        )
    {
        factory = IRebalancingSetFactory(_addressConfig[0]);
        manager = _addressConfig[1];
        liquidator = ILiquidator(_addressConfig[2]);
        currentSet = ISetToken(_addressConfig[3]);
        componentWhiteList = IWhiteList(_addressConfig[4]);
        liquidatorWhiteList = IWhiteList(_addressConfig[5]);
        feeRecipient = _addressConfig[6];
        rebalanceFeeCalculator = IFeeCalculator(_addressConfig[7]);

        unitShares = _uintConfig[0];
        naturalUnit = _uintConfig[1];
        rebalanceInterval = _uintConfig[2];
        rebalanceFailPeriod = _uintConfig[3];
        lastRebalanceTimestamp = _uintConfig[4];
        entryFee = _uintConfig[5];

        core = ICore(factory.core());
        vault = IVault(core.vault());
        rebalanceState = RebalancingLibrary.State.Default;
    }

    /*
     * Intended to be called during creation by the RebalancingSetTokenFactory. Can only be initialized
     * once. This implementation initializes the rebalance fee.
     *
     *
     * @param _rebalanceFeeCalldata       Bytes encoded rebalance fee represented as a scaled percentage value
     */
    function initialize(
        bytes calldata _rebalanceFeeCalldata
    )
        external
        initializer
    {
        rebalanceFeeCalculator.initialize(_rebalanceFeeCalldata);
    }

   /* ============ External Functions ============ */

    /*
     * Initiates the rebalance in coordination with the Liquidator contract.
     * In this step, we redeem the currentSet and pass relevant information
     * to the liquidator.
     *
     * @param _nextSet                      The Set to rebalance into
     * @param _liquidatorData               Bytecode formatted data with liquidator-specific arguments
     *
     * Can only be called if the rebalance interval has elapsed.
     * Can only be called by manager.
     */
    function startRebalance(
        ISetToken _nextSet,
        bytes calldata _liquidatorData
    )
        external
        onlyManager
    {
        RebalancingStart.validateStartRebalance(_nextSet);

        uint256 startingCurrentSetQuantity = RebalancingStart.calculateStartingSetQuantity();

        core.redeemInVault(address(currentSet), startingCurrentSetQuantity);

        RebalancingStart.liquidatorRebalancingStart(_nextSet, startingCurrentSetQuantity, _liquidatorData);

        RebalancingStart.transitionToRebalance(_nextSet);

        emit RebalanceStarted(
            address(currentSet),
            address(nextSet),
            rebalanceIndex,
            startingCurrentSetQuantity
        );
    }

    /*
     * Get token inflows and outflows required for bid from the Liquidator.
     *
     * @param _quantity               The amount of currentSet to be rebalanced
     * @return inflowUnitArray          Array of amount of tokens inserted into system in bid
     * @return outflowUnitArray         Array of amount of tokens taken out of system in bid
     */
    function getBidPrice(
        uint256 _quantity
    )
        public
        view
        returns (uint256[] memory, uint256[] memory)
    {
        RebalancingBid.validateGetBidPrice(_quantity);

        return Rebalance.decomposeTokenFlowToBidPrice(
            liquidator.getBidPrice(address(this), _quantity)
        );
    }

    /*
     * Place bid during rebalance auction.
     *
     * The intended caller is the RebalanceAuctionModule, which must be approved by Core.
     * Call Flow:
     * RebalanceAuctionModule -> RebalancingSetTokenV2 -> Liquidator
     *
     * @param _quantity                 The amount of currentSet to be rebalanced
     * @return combinedTokenArray       Array of token addresses invovled in rebalancing
     * @return inflowUnitArray          Array of amount of tokens inserted into system in bid
     * @return outflowUnitArray         Array of amount of tokens taken out of system in bid
     */
    function placeBid(
        uint256 _quantity
    )
        external
        returns (address[] memory, uint256[] memory, uint256[] memory)
    {
        RebalancingBid.validatePlaceBid(_quantity);

        // Place bid and get back inflow and outflow arrays
        Rebalance.TokenFlow memory tokenFlow = liquidator.placeBid(_quantity);

        RebalancingBid.updateHasBiddedIfNecessary();

        return Rebalance.decomposeTokenFlow(tokenFlow);
    }

    /*
     * After a successful rebalance, the new Set is issued. If there is a rebalance fee,
     * the fee is paid via inflation of the Rebalancing Set to the feeRecipient.
     * Full issuance functionality is now returned to set owners.
     *
     * Anyone can call this function.
     */
    function settleRebalance()
        external
    {
        RebalancingSettlement.validateRebalancingSettlement();

        uint256 issueQuantity = RebalancingSettlement.calculateSetIssueQuantity(nextSet);

        // Calculates fees and mints Rebalancing Set to the feeRecipient, increasing supply
        (uint256 feePercent, uint256 feeQuantity) = RebalancingSettlement.handleFees();

        uint256 newUnitShares = RebalancingSettlement.calculateNextSetNewUnitShares(issueQuantity);

        // The unit shares must result in a quantity greater than the number of natural units outstanding
        require(
            newUnitShares > 0,
            "Failed: unitshares is 0."
        );

        RebalancingSettlement.issueNextSet(issueQuantity);

        liquidator.settleRebalance();

        // Rebalance index is the current vs next rebalance
        emit RebalanceSettled(
            feeRecipient,
            feeQuantity,
            feePercent,
            rebalanceIndex,
            issueQuantity,
            newUnitShares
        );

        RebalancingSettlement.transitionToDefault(newUnitShares);

    }

    /*
     * Ends a rebalance if there are any signs that there is a failure.
     * Possible failure reasons:
     * 1. The rebalance has elapsed the failRebalancePeriod
     * 2. The liquidator responds that the rebalance has failed
     *
     * Move to Drawdown state if bids have been placed. Reset to Default state if no bids placed.
     */
    function endFailedRebalance()
        public
    {
        RebalancingFailure.validateFailRebalance();

        RebalancingLibrary.State newRebalanceState = RebalancingFailure.getNewRebalanceState();

        liquidator.endFailedRebalance();

        RebalancingFailure.transitionToNewState(newRebalanceState);
    }

    /*
     * Mint set token for given address. If there if is an entryFee, calculates the fee and mints
     * the rebalancing SetToken to the feeRecipient.
     *
     * Can only be called by Core contract.
     *
     * @param  _issuer      The address of the issuing account
     * @param  _quantity    The number of sets to attribute to issuer
     */
    function mint(
        address _issuer,
        uint256 _quantity
    )
        external
    {
        Issuance.validateMint();

        uint256 issueQuantityNetOfFees = Issuance.handleEntryFees(_quantity);

        ERC20._mint(_issuer, issueQuantityNetOfFees);
    }

    /*
     * Burn set token for given address. Can only be called by authorized contracts.
     *
     * @param  _from        The address of the redeeming account
     * @param  _quantity    The number of sets to burn from redeemer
     */
    function burn(
        address _from,
        uint256 _quantity
    )
        external
    {
        Issuance.validateBurn();

        ERC20._burn(_from, _quantity);
    }

    /* ============ Backwards Compatability ============ */

    /*
     * Alias for endFailedRebalance
     */
    function endFailedAuction() external {
        endFailedRebalance();
    }
}

// File: contracts/core/tokens/RebalancingSetTokenV3.sol

/*
    Copyright 2020 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;





/**
 * @title RebalancingSetTokenV3
 * @author Set Protocol
 *
 * Implementation of Rebalancing Set token V2. Major improvements vs. V2 include:
 * - Separating incentive fees from the settlement process.
 */
contract RebalancingSetTokenV3 is
    IncentiveFee,
    RebalancingSetTokenV2
{
    /* ============ Constructor ============ */

    /**
     * Constructor function for Rebalancing Set Token
     *
     * addressConfig [factory, manager, liquidator, initialSet, componentWhiteList,
     *                liquidatorWhiteList, feeRecipient, rebalanceFeeCalculator]
     * [0]factory                   Factory used to create the Rebalancing Set
     * [1]manager                   Address that is able to propose the next Set
     * [2]liquidator                Address of the liquidator contract
     * [3]initialSet                Initial set that collateralizes the Rebalancing set
     * [4]componentWhiteList        Whitelist that nextSet components are checked against during propose
     * [5]liquidatorWhiteList       Whitelist of valid liquidators
     * [6]feeRecipient              Address that receives any incentive fees
     * [7]rebalanceFeeCalculator    Address to retrieve rebalance fee during settlement
     *
     * uintConfig [initialUnitShares, naturalUnit, rebalanceInterval, rebalanceFailPeriod,
     *             lastRebalanceTimestamp, entryFee]
     * [0]initialUnitShares         Units of currentSet that equals one share
     * [1]naturalUnit               The minimum multiple of Sets that can be issued or redeemed
     * [2]rebalanceInterval:        Minimum amount of time between rebalances
     * [3]rebalanceFailPeriod:      Time after auctionStart where something in the rebalance has gone wrong
     * [4]lastRebalanceTimestamp:   Time of the last rebalance; Allows customized deployments
     * [5]entryFee:                 Mint fee represented in a scaled decimal value (e.g. 100% = 1e18, 1% = 1e16)
     *
     * @param _addressConfig             List of configuration addresses
     * @param _uintConfig                List of uint addresses
     * @param _name                      The name of the new RebalancingSetTokenV2
     * @param _symbol                    The symbol of the new RebalancingSetTokenV2
     */
    constructor(
        address[8] memory _addressConfig,
        uint256[6] memory _uintConfig,
        string memory _name,
        string memory _symbol
    )
        public
        RebalancingSetTokenV2(
            _addressConfig,
            _uintConfig,
            _name,
            _symbol
        )
    {}

    /*
     * Overrides the RebalancingSetTokenV2 settleRebalance function.
     *
     * After a successful rebalance, the new Set is issued.
     * Full issuance functionality is now returned to set owners. No fees are captured.
     *
     * Anyone can call this function.
     */
    function settleRebalance()
        external
    {
        // It can only be callable in the Default state
        RebalancingSettlement.validateRebalancingSettlement();

        uint256 issueQuantity = RebalancingSettlement.calculateSetIssueQuantity(nextSet);
        uint256 newUnitShares = RebalancingSettlement.calculateNextSetNewUnitShares(issueQuantity);

        validateUnitShares(newUnitShares);

        RebalancingSettlement.issueNextSet(issueQuantity);

        liquidator.settleRebalance();

        emit RebalanceSettled(
            address(0),      // No longer used
            0,               // No longer used
            0,               // No longer used
            rebalanceIndex,  // Current Rebalance index
            issueQuantity,
            newUnitShares
        );

        RebalancingSettlement.transitionToDefault(newUnitShares);
    }

    /*
     * During the Default stage, the incentive / rebalance Fee can be triggered. This will
     * retrieve the current inflation fee from the fee calulator and mint the according
     * inflation to the feeRecipient. The unit shares is then adjusted based on the new
     * supply.
     *
     * Anyone can call this function.
     */
    function actualizeFee()
        public
    {
        IncentiveFee.validateFeeActualization();

        // Calculates fees and mints Rebalancing Set to the feeRecipient, increasing supply
        (uint256 feePercent, uint256 feeQuantity) = IncentiveFee.handleFees();

        // The minting of new supply changes the unit Shares
        uint256 newUnitShares = IncentiveFee.calculateNewUnitShares();

        validateUnitShares(newUnitShares);

        // Set the new unit shares
        unitShares = newUnitShares;

        // Emit IncentiveFeePaid event
        emit IncentiveFeePaid(
            feeRecipient,
            feeQuantity,
            feePercent,
            newUnitShares
        );
    }

    /*
     * Accrue any fees then adjust fee parameters on feeCalculator. Only callable by manager.
     *
     * @param  _newFeeData       Fee type and new streaming fee encoded in bytes
     */
    function adjustFee(
        bytes calldata _newFeeData
    )
        external
        onlyManager
    {
        actualizeFee();

        rebalanceFeeCalculator.adjustFee(_newFeeData);
    }

    /* ============ V3 Internal Functions ============ */

    /*
     * The unit shares must result in a quantity greater than the number of natural units outstanding.
     * In other words, it must be greater than 0
     */
    function validateUnitShares(uint256 _newUnitShares) internal view {
        require(
            _newUnitShares > 0,
            "Unitshares is 0"
        );
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"unitShares","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newLiquidator","type":"address"}],"name":"setLiquidator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getUnits","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"entryFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"liquidatorWhiteList","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceInterval","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceFailPeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenAddress","type":"address"}],"name":"tokenIsComponent","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"actualizeFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"proposalPeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentSet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"liquidator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_issuer","type":"address"},{"name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"naturalUnit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startingCurrentSetAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_rebalanceFeeCalldata","type":"bytes"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceFeeCalculator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeRecipient","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"manager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"componentWhiteList","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCombinedTokenArrayLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"biddingParameters","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"endFailedAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_nextSet","type":"address"},{"name":"_liquidatorData","type":"bytes"}],"name":"startRebalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCombinedTokenArray","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"endFailedRebalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"auctionLibrary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_quantity","type":"uint256"}],"name":"placeBid","outputs":[{"name":"","type":"address[]"},{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getComponents","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_quantity","type":"uint256"}],"name":"getBidPrice","outputs":[{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_quantity","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getAuctionPriceParameters","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getBiddingParameters","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"proposalStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastRebalanceTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nextSet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newFeeData","type":"bytes"}],"name":"adjustFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCombinedNextSetUnits","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"SCALE_FACTOR","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newManager","type":"address"}],"name":"setManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"auctionPriceParameters","outputs":[{"components":[{"name":"auctionStartTime","type":"uint256"},{"name":"auctionTimeToPivot","type":"uint256"},{"name":"auctionStartPrice","type":"uint256"},{"name":"auctionPivotPrice","type":"uint256"}],"name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newFeeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newEntryFee","type":"uint256"}],"name":"setEntryFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getFailedAuctionWithdrawComponents","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCombinedCurrentUnits","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hasBidded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"core","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebalanceState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"settleRebalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_addressConfig","type":"address[8]"},{"name":"_uintConfig","type":"uint256[6]"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"feeRecipient","type":"address"},{"indexed":false,"name":"feeQuantity","type":"uint256"},{"indexed":false,"name":"feePercentage","type":"uint256"},{"indexed":false,"name":"newUnitShares","type":"uint256"}],"name":"IncentiveFeePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newManager","type":"address"},{"indexed":false,"name":"oldManager","type":"address"}],"name":"NewManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newLiquidator","type":"address"},{"indexed":false,"name":"oldLiquidator","type":"address"}],"name":"NewLiquidatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newEntryFee","type":"uint256"},{"indexed":false,"name":"oldEntryFee","type":"uint256"}],"name":"NewEntryFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newFeeRecipient","type":"address"},{"indexed":false,"name":"oldFeeRecipient","type":"address"}],"name":"NewFeeRecipient","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"feeRecipient","type":"address"},{"indexed":false,"name":"feeQuantity","type":"uint256"}],"name":"EntryFeePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldSet","type":"address"},{"indexed":false,"name":"newSet","type":"address"},{"indexed":false,"name":"rebalanceIndex","type":"uint256"},{"indexed":false,"name":"currentSetQuantity","type":"uint256"}],"name":"RebalanceStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"feeRecipient","type":"address"},{"indexed":false,"name":"feeQuantity","type":"uint256"},{"indexed":false,"name":"feePercentage","type":"uint256"},{"indexed":false,"name":"rebalanceIndex","type":"uint256"},{"indexed":false,"name":"issueQuantity","type":"uint256"},{"indexed":false,"name":"unitShares","type":"uint256"}],"name":"RebalanceSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

60806040523480156200001157600080fd5b5060405162004d9038038062004d908339810180604052620000379190810190620004f3565b8383838381816012826003908051906020019062000057929190620002c8565b5081516200006d906004906020850190620002c8565b506005805460ff191660ff929092169190911790555050835160398054600160a060020a0319908116600160a060020a039384161791829055602080880151603f80548416918616919091179055604080890151603d805485169187169190911790556060808a01516044805486169188169190911790556080808b0151603b8054871691891691909117905560a0808c0151603c80548816918a1691909117905560c08c01518454871690891617845560e08c0151603e80549097169089161790955589516045558984015160465589830151604155908901516042558801516049559187015160435581517ff2f4eb260000000000000000000000000000000000000000000000000000000081529151929093169263f2f4eb26926004838101938290030181600087803b158015620001a757600080fd5b505af1158015620001bc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620001e29190810190620004ca565b60388054600160a060020a031916600160a060020a039283161790819055604080517ffbfa77cf0000000000000000000000000000000000000000000000000000000081529051919092169163fbfa77cf916004808301926020929190829003018186803b1580156200025457600080fd5b505afa15801562000269573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506200028f9190810190620004ca565b603a8054600160a060020a031916600160a060020a039290921691909117905550506047805460ff191690555062000650945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200030b57805160ff19168380011785556200033b565b828001600101855582156200033b579182015b828111156200033b5782518255916020019190600101906200031e565b50620003499291506200034d565b5090565b6200036a91905b8082111562000349576000815560010162000354565b90565b60006200037b8251620005fe565b9392505050565b600082601f8301126200039457600080fd5b6008620003ab620003a582620005b8565b62000591565b91508183856020840282011115620003c257600080fd5b60005b83811015620003f25781620003db88826200036d565b8452506020928301929190910190600101620003c5565b5050505092915050565b600082601f8301126200040e57600080fd5b60066200041f620003a582620005b8565b915081838560208402820111156200043657600080fd5b60005b83811015620003f257816200044f8882620004bc565b845250602092830192919091019060010162000439565b600082601f8301126200047857600080fd5b815162000489620003a582620005d6565b91508082526020830160208301858383011115620004a657600080fd5b620004b38382846200061d565b50505092915050565b60006200037b82516200036a565b600060208284031215620004dd57600080fd5b6000620004eb84846200036d565b949350505050565b60008060008061020085870312156200050b57600080fd5b600062000519878762000382565b9450506101006200052d87828801620003fc565b9350506101c08501516001604060020a038111156200054b57600080fd5b620005598782880162000466565b9250506101e08501516001604060020a038111156200057757600080fd5b620005858782880162000466565b91505092959194509250565b6040518181016001604060020a0381118282101715620005b057600080fd5b604052919050565b60006001604060020a03821115620005cf57600080fd5b5060200290565b60006001604060020a03821115620005ed57600080fd5b506020601f91909101601f19160190565b60006200060b8262000611565b92915050565b600160a060020a031690565b60005b838110156200063a57818101518382015260200162000620565b838111156200064a576000848401525b50505050565b61473080620006606000396000f3fe608060405234801561001057600080fd5b50600436106103df5760003560e060020a900480638618711c1161020e578063c45a015511610129578063e74b981b116100bc578063f1560b3f1161008b578063f1560b3f14610740578063f2f4eb2614610748578063f75af97f14610750578063fa2d8c9014610765578063fbfa77cf1461076d576103df565b8063e74b981b1461070a578063eb770d0c1461071d578063f0284b1c14610730578063f056a9ae14610738576103df565b8063ce4b5bbe116100f8578063ce4b5bbe146106c7578063d0ebdbe7146106cf578063d600ae48146106e2578063dd62ed3e146106f7576103df565b8063c45a01551461069c578063cb631699146106a4578063cbf1c354146106ac578063cdb026a1146106bf576103df565b80639b013aee116101a1578063a457c2d711610170578063a457c2d714610666578063a9059cbb14610679578063a9faafd91461068c578063b83d815714610694576103df565b80639b013aee146106225780639dc29fac14610643578063a065172b14610656578063a2e59c911461065e576103df565b806396213fc7116101dd57806396213fc7146105e85780639979ef45146105f057806399d50d5d146106125780639ae1f4a91461061a576103df565b80638618711c146105bb57806388bd49a1146105d05780638a411b76146105d857806395d89b41146105e0576103df565b8063313ce567116102fe578063469048401161029157806357d3810e1161026057806357d3810e1461057757806370a082311461058d57806375aff3c1146105a0578063770d0c5d146105a8576103df565b8063469048401461054a578063481c6a751461055f578063506ab57a14610567578063570f31671461056f576103df565b806342a7cfd5116102cd57806342a7cfd51461051f5780634394380b14610527578063439fab911461052f5780634655309714610542576103df565b8063313ce567146104dc57806339509351146104f15780634046ebae1461050457806340c10f191461050c576103df565b806318160ddd1161037657806323b872dd1161034557806323b872dd146104b15780632c103c79146104c45780632e35bcca146104cc57806330b86627146104d4576103df565b806318160ddd14610486578063188b36c51461048e57806318c53aca14610496578063231e004e146104a9576103df565b8063072ea61c116103b2578063072ea61c14610441578063095ea7b3146104495780631698c5841461046957806316d1d9161461047e576103df565b80630193aea2146103e457806301c76f8114610402578063027aa9f51461041757806306fdde031461042c575b600080fd5b6103ec610775565b6040516103f991906145ad565b60405180910390f35b610415610410366004613c68565b61077b565b005b61041f6108df565b6040516103f991906143a0565b610434610925565b6040516103f9919061448e565b6103ec6109bb565b61045c610457366004613b6e565b6109c1565b6040516103f991906143d6565b6104716109d8565b6040516103f991906143f6565b6103ec6109e7565b6103ec6109ed565b6103ec6109f3565b61045c6104a4366004613ac9565b6109f9565b610415610a0d565b61045c6104bf366004613b21565b610a8e565b6103ec610ae6565b6103ec610aec565b610471610b87565b6104e4610b96565b6040516103f991906145f1565b61045c6104ff366004613b6e565b610b9f565b610471610bdb565b61041561051a366004613b6e565b610bea565b6103ec610c0e565b6103ec610c14565b61041561053d366004613c26565b610c76565b610471610d86565b610552610d95565b6040516103f991906142cf565b610552610da4565b610471610db3565b6103ec610dc2565b61057f610e66565b6040516103f99291906145bb565b6103ec61059b366004613ac9565b610ea8565b610415610ec3565b6104156105b6366004613c86565b610ecd565b6105c361100b565b6040516103f99190614356565b6103ec6110a9565b6104156110af565b61043461113a565b61055261119b565b6106036105fe366004613d2f565b6111aa565b6040516103f993929190614367565b6105c3611280565b6103ec6112dc565b610635610630366004613d2f565b6112e2565b6040516103f99291906143b1565b610415610651366004613b6e565b61139d565b61041f6113b3565b61041f6114fa565b61045c610674366004613b6e565b611673565b61045c610687366004613b6e565b6116af565b6103ec6116bc565b6103ec6116c2565b6104716116c8565b6104716116d7565b6104156106ba366004613c26565b6116e6565b61041f611777565b6103ec611815565b6104156106dd366004613ac9565b611821565b6106ea611890565b6040516103f9919061459f565b6103ec610705366004613ae7565b611931565b610415610718366004613ac9565b61195c565b61041561072b366004613d2f565b6119cb565b6105c3611a25565b61041f611a86565b61045c611ad0565b610471611ad9565b610758611ae8565b6040516103f9919061443e565b610415611af1565b610471611bf3565b60455481565b610783611c02565b600260475460ff16600381111561079657fe5b14156107c05760405160e560020a62461bcd0281526004016107b79061450f565b60405180910390fd5b603c546040517f372c12b1000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063372c12b1906108099084906004016142cf565b60206040518083038186803b15801561082157600080fd5b505afa158015610835573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506108599190810190613c08565b6108785760405160e560020a62461bcd0281526004016107b7906144ff565b603d546040517fe26fceb0d040e26e9c96b5be39f9a7b88bc48ce7a787f1e3cfd08e7f97626de6916108b5918491600160a060020a0316906142eb565b60405180910390a1603d8054600160a060020a031916600160a060020a0392909216919091179055565b604080516001808252818301909252606091829190602080830190803883390190505090506045548160008151811061091457fe5b602090810291909101015290505b90565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109b15780601f10610986576101008083540402835291602001916109b1565b820191906000526020600020905b81548152906001019060200180831161099457829003601f168201915b5050505050905090565b60435481565b60006109ce338484611c2f565b5060015b92915050565b603c54600160a060020a031681565b60415481565b60025490565b60425481565b604454600160a060020a0390811691161490565b610a15611cbd565b600080610a20611cc7565b915091506000610a2e611d8b565b9050610a3981611e61565b6045819055604080549051600160a060020a03909116907f819f13b7ecdde26dc2f4f306d33b2d6e5b32f631d969f8c98a806896a06a576090610a81908590879086906145c9565b60405180910390a2505050565b6000610a9b848484611e84565b600160a060020a038416600090815260016020908152604080832033808552925290912054610adb918691610ad6908663ffffffff611f4716565b611c2f565b5060015b9392505050565b604f5481565b603e54604080517fced72f870000000000000000000000000000000000000000000000000000000081529051600092600160a060020a03169163ced72f87916004808301926020929190829003018186803b158015610b4a57600080fd5b505afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b829190810190613d4d565b905090565b604454600160a060020a031681565b60055460ff1690565b336000818152600160209081526040808320600160a060020a038716845290915281205490916109ce918590610ad6908663ffffffff611f5c16565b603d54600160a060020a031681565b610bf2611f6e565b6000610bfd82611f76565b9050610c09838261200c565b505050565b60465481565b603d546040517f57dc13ec000000000000000000000000000000000000000000000000000000008152600091600160a060020a0316906357dc13ec90610c5e9030906004016142cf565b60206040518083038186803b158015610b4a57600080fd5b60055462010000900460ff1680610c905750610c906120b9565b80610ca35750600554610100900460ff16155b610cc25760405160e560020a62461bcd0281526004016107b79061452f565b60055462010000900460ff16158015610cf2576005805461ff001962ff0000199091166201000017166101001790555b603e546040517f439fab91000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063439fab9190610d3d90869086906004016143e4565b600060405180830381600087803b158015610d5757600080fd5b505af1158015610d6b573d6000803e3d6000fd5b505050508015610c09576005805462ff000019169055505050565b603e54600160a060020a031681565b604054600160a060020a031681565b603f54600160a060020a031681565b603b54600160a060020a031681565b603d546040517f77b7a8d8000000000000000000000000000000000000000000000000000000008152600091600160a060020a0316906377b7a8d890610e0c9030906004016142cf565b60006040518083038186803b158015610e2457600080fd5b505afa158015610e38573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e609190810190613b9e565b51905090565b6000806060610e736114fa565b905080600081518110610e8257fe5b602002602001015181600181518110610e9757fe5b602002602001015192509250509091565b600160a060020a031660009081526020819052604090205490565b610ecb6110af565b565b610ed5611c02565b610ede836120bf565b6000610ee8612341565b6038546044546040517fa782132c000000000000000000000000000000000000000000000000000000008152929350600160a060020a039182169263a782132c92610f39921690859060040161433b565b600060405180830381600087803b158015610f5357600080fd5b505af1158015610f67573d6000803e3d6000fd5b50505050610fac848285858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061249a92505050565b610fb584612524565b604454604a546048546040517f9c6ae00de948f7b7024af2cf50454197682e662953f3c8b35e74ce63ec5fcd8f93610ffd93600160a060020a03918216939116918690614306565b60405180910390a150505050565b603d546040517f77b7a8d8000000000000000000000000000000000000000000000000000000008152606091600160a060020a0316906377b7a8d8906110559030906004016142cf565b60006040518083038186803b15801561106d57600080fd5b505afa158015611081573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b829190810190613b9e565b60485481565b6110b761255a565b60006110c1612599565b9050603d60009054906101000a9004600160a060020a0316600160a060020a0316638a411b766040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561111657600080fd5b505af115801561112a573d6000803e3d6000fd5b50505050611137816125b3565b50565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109b15780601f10610986576101008083540402835291602001916109b1565b604e54600160a060020a031681565b60608060606111b88461261b565b6111c061366b565b603d546040517f9979ef45000000000000000000000000000000000000000000000000000000008152600160a060020a0390911690639979ef45906112099088906004016145ad565b600060405180830381600087803b15801561122357600080fd5b505af1158015611237573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125f9190810190613cfa565b905061126961262c565b61127281612645565b935093509350509193909250565b6040805160018082528183019092526060918291906020808301908038833950506044548251929350600160a060020a0316918391506000906112bf57fe5b600160a060020a0390921660209283029190910190910152905090565b604b5481565b6060806112ee83612656565b603d546040517f102d32c000000000000000000000000000000000000000000000000000000000815261139491600160a060020a03169063102d32c09061133b903090889060040161433b565b60006040518083038186803b15801561135357600080fd5b505afa158015611367573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261138f9190810190613cfa565b612683565b91509150915091565b6113a5612692565b6113af82826126ca565b5050565b60606113bd61368c565b603d546040517f558a7c06000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063558a7c06906114069030906004016142cf565b60806040518083038186803b15801561141e57600080fd5b505afa158015611432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506114569190810190613cdc565b60408051600480825260a08201909252919250606091906020820160808038833901905050905081600001518160008151811061148f57fe5b6020026020010181815250508160200151816001815181106114ad57fe5b6020026020010181815250508160400151816002815181106114cb57fe5b6020026020010181815250508160600151816003815181106114e957fe5b602090810291909101015291505090565b6040805160028082526060808301845292839291906020830190803883395050603d546040517f060f0203000000000000000000000000000000000000000000000000000000008152929350600160a060020a03169163060f020391506115659030906004016142cf565b60206040518083038186803b15801561157d57600080fd5b505afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506115b59190810190613d4d565b816000815181106115c257fe5b6020908102919091010152603d546040517f48454433000000000000000000000000000000000000000000000000000000008152600160a060020a03909116906348454433906116169030906004016142cf565b60206040518083038186803b15801561162e57600080fd5b505afa158015611642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116669190810190613d4d565b8160018151811061091457fe5b336000818152600160209081526040808320600160a060020a038716845290915281205490916109ce918590610ad6908663ffffffff611f4716565b60006109ce338484611e84565b60505481565b60495481565b603954600160a060020a031681565b604a54600160a060020a031681565b6116ee611c02565b6116f6610a0d565b603e546040517fcbf1c354000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063cbf1c3549061174190859085906004016143e4565b600060405180830381600087803b15801561175b57600080fd5b505af115801561176f573d6000803e3d6000fd5b505050505050565b603d546040517f22c1107a000000000000000000000000000000000000000000000000000000008152606091600160a060020a0316906322c1107a906117c19030906004016142cf565b60006040518083038186803b1580156117d957600080fd5b505afa1580156117ed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b829190810190613bd3565b670de0b6b3a764000081565b611829611c02565b603f546040517ff9c15f5b74b4e002e8881b2d9810116b1d4d45461e6dd7ac8111381b592e2c6591611866918491600160a060020a0316906142eb565b60405180910390a1603f8054600160a060020a031916600160a060020a0392909216919091179055565b61189861368c565b603d546040517f558a7c06000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063558a7c06906118e19030906004016142cf565b60806040518083038186803b1580156118f957600080fd5b505afa15801561190d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b829190810190613cdc565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b611964611c02565b6040805490517f2d63d620fb255d563fc112849cc79d42a367a3c51694709297b3ef80b28a8929916119a1918491600160a060020a0316906142eb565b60405180910390a160408054600160a060020a031916600160a060020a0392909216919091179055565b6119d3611c02565b6119dc81612768565b6119e581612793565b7fbf7417a972a6451dbb2afbe07f2846cb433f2c3ab380fecbf70e38684eda554a81604354604051611a189291906145bb565b60405180910390a1604355565b6060604d8054806020026020016040519081016040528092919081815260200182805480156109b157602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611a5f575050505050905090565b603d546040517f1273a666000000000000000000000000000000000000000000000000000000008152606091600160a060020a031690631273a666906117c19030906004016142cf565b604c5460ff1681565b603854600160a060020a031681565b60475460ff1681565b611af96127c9565b604a54600090611b1190600160a060020a03166127d3565b90506000611b1e8261281a565b9050611b2981611e61565b611b3282612849565b603d60009054906101000a9004600160a060020a0316600160a060020a031663fa2d8c906040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611b8557600080fd5b505af1158015611b99573d6000803e3d6000fd5b505050506000600160a060020a03167f973319ae5c915d7b31c697261193cb1acf72a6b9286dc987e24cbe0d2e784b5c6000806048548686604051611be295949392919061444c565b60405180910390a26113af816128cd565b603a54600160a060020a031681565b603f54600160a060020a03163314610ecb5760405160e560020a62461bcd0281526004016107b79061449f565b600160a060020a038216611c4257600080fd5b600160a060020a038316611c5557600080fd5b600160a060020a0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611cb09085906145ad565b60405180910390a3505050565b610ecb6000612930565b6000806000603e60009054906101000a9004600160a060020a0316600160a060020a03166320f554046040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015611d1f57600080fd5b505af1158015611d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611d579190810190613d4d565b90506000611d648261296d565b90508015611d8257604054611d8290600160a060020a03168261200c565b90925090509091565b603a546044546040517f1f98ade30000000000000000000000000000000000000000000000000000000081526000928392600160a060020a0391821692631f98ade392611dde92169030906004016142eb565b60206040518083038186803b158015611df657600080fd5b505afa158015611e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611e2e9190810190613d4d565b9050611e5b611e3b6109ed565b604654611e4f90849063ffffffff6129be16565b9063ffffffff6129e516565b91505090565b600081116111375760405160e560020a62461bcd0281526004016107b79061451f565b600160a060020a038216611e9757600080fd5b600160a060020a038316600090815260208190526040902054611ec0908263ffffffff611f4716565b600160a060020a038085166000908152602081905260408082209390935590841681522054611ef5908263ffffffff611f5c16565b600160a060020a0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611cb09085906145ad565b600082821115611f5657600080fd5b50900390565b600082820183811015610adf57600080fd5b611cbd612a33565b600080611f96611f91604354856129be90919063ffffffff16565b612a60565b90508015611ffc57604054611fb490600160a060020a03168261200c565b604080549051600160a060020a03909116907f4f97c4974c69e34351de4be43b70406a96a48f940ec7d8853b4be6e7e6d98c7b90611ff39084906145ad565b60405180910390a25b610adf838263ffffffff611f4716565b600160a060020a03821661201f57600080fd5b600254612032908263ffffffff611f5c16565b600255600160a060020a03821660009081526020819052604090205461205e908263ffffffff611f5c16565b600160a060020a0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906120ad9085906145ad565b60405180910390a35050565b303b1590565b6120c96000612930565b6041546049546120de9163ffffffff611f5c16565b4210156121005760405160e560020a62461bcd0281526004016107b7906144df565b600061210a6109ed565b1161212a5760405160e560020a62461bcd0281526004016107b79061458f565b6038546040517ffef3ee73000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063fef3ee73906121739084906004016142cf565b60206040518083038186803b15801561218b57600080fd5b505afa15801561219f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506121c39190810190613c08565b6121e25760405160e560020a62461bcd0281526004016107b79061455f565b603b60009054906101000a9004600160a060020a0316600160a060020a03166332ed010e82600160a060020a03166399d50d5d6040518163ffffffff1660e060020a02815260040160006040518083038186803b15801561224257600080fd5b505afa158015612256573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261227e9190810190613b9e565b6040518263ffffffff1660e060020a02815260040161229d9190614356565b60206040518083038186803b1580156122b557600080fd5b505afa1580156122c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506122ed9190810190613c08565b61230c5760405160e560020a62461bcd0281526004016107b7906144af565b60445461232290600160a060020a031682612a7a565b6111375760405160e560020a62461bcd0281526004016107b79061456f565b603a546044546040517f1f98ade30000000000000000000000000000000000000000000000000000000081526000928392600160a060020a0391821692631f98ade39261239492169030906004016142eb565b60206040518083038186803b1580156123ac57600080fd5b505afa1580156123c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506123e49190810190613d4d565b90506000604460009054906101000a9004600160a060020a0316600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b15801561243957600080fd5b505afa15801561244d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506124719190810190613d4d565b9050612493612486838363ffffffff612b9816565b839063ffffffff611f4716565b9250505090565b603d546044546040517fffd9cc35000000000000000000000000000000000000000000000000000000008152600160a060020a039283169263ffd9cc35926124ed92911690879087908790600401614404565b600060405180830381600087803b15801561250757600080fd5b505af115801561251b573d6000803e3d6000fd5b50505050505050565b604a8054600160a060020a031916600160a060020a038316179055604780546002919060ff191660018302179055505042604b55565b6125646002612930565b61256c612bb5565b8061257a575061257a612c4f565b610ecb5760405160e560020a62461bcd0281526004016107b7906144ef565b604c5460009060ff166125ad576000610b82565b50600390565b6125bc81612c72565b6125c581612cef565b6047805482919060ff191660018360038111156125de57fe5b02179055506048546125f790600163ffffffff611f5c16565b6048555042604955604a8054600160a060020a0319169055604c805460ff19169055565b612623612e5a565b61113781612656565b604c5460ff16610ecb57604c805460ff19166001179055565b805160208201516040909201519092565b6126606002612930565b600081116111375760405160e560020a62461bcd0281526004016107b7906144cf565b60208101516040820151915091565b61269c6002612f12565b600360475460ff1660038111156126af57fe5b14156126c2576126bd612e5a565b610ecb565b610ecb612a33565b600160a060020a0382166126dd57600080fd5b6002546126f0908263ffffffff611f4716565b600255600160a060020a03821660009081526020819052604090205461271c908263ffffffff611f4716565b600160a060020a0383166000818152602081905260408082209390935591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906120ad9085906145ad565b670de0b6b3a76400008111156111375760405160e560020a62461bcd0281526004016107b79061457f565b6127a981655af3107a400063ffffffff612b9816565b156111375760405160e560020a62461bcd0281526004016107b7906144bf565b610ecb6002612930565b60006127dd6136b4565b6127e683612f50565b905060006127f3826130ef565b90506000612811612486846000015184612b9890919063ffffffff16565b95945050505050565b60008061283760465461282b6109ed565b9063ffffffff61320d16565b9050610adf838263ffffffff61320d16565b603854604a546040517fa57de4cf000000000000000000000000000000000000000000000000000000008152600160a060020a039283169263a57de4cf9261289892911690859060040161433b565b600060405180830381600087803b1580156128b257600080fd5b505af11580156128c6573d6000803e3d6000fd5b5050505050565b6047805460ff1916905542604955604a5460448054600160a060020a031916600160a060020a039092169190911790556045819055604854612910906001611f5c565b60485550604a8054600160a060020a0319169055604c805460ff19169055565b80600381111561293c57fe5b60475460ff16600381111561294d57fe5b146111375760405160e560020a62461bcd0281526004016107b79061450f565b60008061298861297b6109ed565b849063ffffffff6129be16565b905060006129a48461299861322f565b9063ffffffff611f4716565b90506129b6828263ffffffff61320d16565b949350505050565b6000826129cd575060006109d2565b828202828482816129da57fe5b0414610adf57600080fd5b6000806129f8848463ffffffff612b9816565b11612a1257612a0d838363ffffffff61320d16565b610adf565b610adf6001612a27858563ffffffff61320d16565b9063ffffffff611f5c16565b603854600160a060020a03163314610ecb5760405160e560020a62461bcd0281526004016107b79061454f565b60006109d282670de0b6b3a764000063ffffffff61320d16565b60008083600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b158015612ab957600080fd5b505afa158015612acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612af19190810190613d4d565b9050600083600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b158015612b3157600080fd5b505afa158015612b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b699190810190613d4d565b9050612b8e612b78838361323b565b612b828484613251565b9063ffffffff612b9816565b1595945050505050565b600081612ba457600080fd5b818381612bad57fe5b069392505050565b603d546040517f3b52de3b000000000000000000000000000000000000000000000000000000008152600091600160a060020a031690633b52de3b90612bff9030906004016142cf565b60206040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b829190810190613c08565b600080612c69604254604b54611f5c90919063ffffffff16565b42101591505090565b6000816003811115612c8057fe5b141561113757604454600090612c9e90600160a060020a03166127d3565b6038546044546040517fa57de4cf000000000000000000000000000000000000000000000000000000008152929350600160a060020a039182169263a57de4cf92611741921690859060040161433b565b6003816003811115612cfd57fe5b141561113757604454604080517f99d50d5d0000000000000000000000000000000000000000000000000000000081529051606092600160a060020a0316916399d50d5d916004808301926000929190829003018186803b158015612d6157600080fd5b505afa158015612d75573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d9d9190810190613b9e565b90506060604a60009054906101000a9004600160a060020a0316600160a060020a03166399d50d5d6040518163ffffffff1660e060020a02815260040160006040518083038186803b158015612df257600080fd5b505afa158015612e06573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612e2e9190810190613b9e565b9050612e40828263ffffffff61326116565b8051612e5491604d916020909101906136d5565b50505050565b6038546040517f5e633498000000000000000000000000000000000000000000000000000000008152600160a060020a0390911690635e63349890612ea39033906004016142dd565b60206040518083038186803b158015612ebb57600080fd5b505afa158015612ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612ef39190810190613c08565b610ecb5760405160e560020a62461bcd0281526004016107b79061453f565b806003811115612f1e57fe5b60475460ff166003811115612f2f57fe5b14156111375760405160e560020a62461bcd0281526004016107b79061450f565b612f586136b4565b6000829050600081600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b158015612f9b57600080fd5b505afa158015612faf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612fd39190810190613d4d565b9050606082600160a060020a03166399d50d5d6040518163ffffffff1660e060020a02815260040160006040518083038186803b15801561301357600080fd5b505afa158015613027573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261304f9190810190613b9e565b9050606083600160a060020a031663027aa9f56040518163ffffffff1660e060020a02815260040160006040518083038186803b15801561308f57600080fd5b505afa1580156130a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130cb9190810190613bd3565b60408051606081018252948552602085019390935291830191909152509392505050565b6000806130fa6132a9565b905060005b83602001515181101561320657603a5460208501518051600092600160a060020a031691631f98ade3918590811061313357fe5b6020026020010151306040518363ffffffff1660e060020a02815260040161315c9291906142eb565b60206040518083038186803b15801561317457600080fd5b505afa158015613188573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131ac9190810190613d4d565b905060006131ee86600001516131e2886040015186815181106131cb57fe5b60200260200101518561320d90919063ffffffff16565b9063ffffffff6129be16565b9050838110156131fc578093505b50506001016130ff565b5092915050565b600080821161321b57600080fd5b600082848161322657fe5b04949350505050565b670de0b6b3a764000090565b600081831061324a5781610adf565b5090919050565b60008183101561324a5781610adf565b60608061326e84846132af565b9050606061327c84866132af565b9050606061328a86866133ef565b905061329f8361329a838561351d565b61351d565b9695505050505050565b60001990565b60606000835190506060816040519080825280602002602001820160405280156132e3578160200160208202803883390190505b5090506000805b8381101561334657600087828151811061330057fe5b6020026020010151905061331487826135ff565b61333d57600184838151811061332657fe5b911515602092830291909101909101526001909201915b506001016132ea565b50606081604051908082528060200260200182016040528015613373578160200160208202803883390190505b5090506000805b858110156133e25784818151811061338e57fe5b6020026020010151156133da578881815181106133a757fe5b60200260200101518383815181106133bb57fe5b600160a060020a03909216602092830291909101909101526001909101905b60010161337a565b5090979650505050505050565b6060600083519050606081604051908082528060200260200182016040528015613423578160200160208202803883390190505b5090506000805b838110156134815761344f8688838151811061344257fe5b60200260200101516135ff565b1561347957600183828151811061346257fe5b911515602092830291909101909101526001909101905b60010161342a565b506060816040519080825280602002602001820160405280156134ae578160200160208202803883390190505b5090506000805b858110156133e2578481815181106134c957fe5b602002602001015115613515578881815181106134e257fe5b60200260200101518383815181106134f657fe5b600160a060020a03909216602092830291909101909101526001909101905b6001016134b5565b60606000835190506000835190506060818301604051908082528060200260200182016040528015613559578160200160208202803883390190505b50905060005b838110156135a75786818151811061357357fe5b602002602001015182828151811061358757fe5b600160a060020a039092166020928302919091019091015260010161355f565b5060005b828110156135f5578581815181106135bf57fe5b602002602001015182828601815181106135d557fe5b600160a060020a03909216602092830291909101909101526001016135ab565b5095945050505050565b600080612811848481516000908190815b8181101561365a5784600160a060020a031686828151811061362e57fe5b6020026020010151600160a060020a03161415613652579250600191506136649050565b600101613610565b5060009250829150505b9250929050565b60405180606001604052806060815260200160608152602001606081525090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160608152602001606081525090565b82805482825590600052602060002090810192821561372a579160200282015b8281111561372a5782518254600160a060020a031916600160a060020a039091161782556020909201916001909101906136f5565b5061373692915061373a565b5090565b61092291905b80821115613736578054600160a060020a0319168155600101613740565b6000610adf823561465a565b6000610adf825161465a565b600082601f83011261378757600080fd5b815161379a61379582614626565b6145ff565b915081818352602084019350602081019050838560208402820111156137bf57600080fd5b60005b838110156137eb57816137d5888261376a565b84525060209283019291909101906001016137c2565b5050505092915050565b600082601f83011261380657600080fd5b815161381461379582614626565b9150818183526020840193506020810190508385602084028201111561383957600080fd5b60005b838110156137eb578161384f888261376a565b845250602092830192919091019060010161383c565b600082601f83011261387657600080fd5b815161388461379582614626565b915081818352602084019350602081019050838560208402820111156138a957600080fd5b60005b838110156137eb57816138bf8882613abd565b84525060209283019291909101906001016138ac565b600082601f8301126138e657600080fd5b81516138f461379582614626565b9150818183526020840193506020810190508385602084028201111561391957600080fd5b60005b838110156137eb578161392f8882613abd565b845250602092830192919091019060010161391c565b6000610adf8251614665565b60008083601f84011261396357600080fd5b50813567ffffffffffffffff81111561397b57600080fd5b60208301915083600182028301111561366457600080fd5b6000610adf8235614688565b6000608082840312156139b157600080fd5b6139bb60806145ff565b905060006139c98484613abd565b82525060206139da84848301613abd565b60208301525060406139ee84828501613abd565b6040830152506060613a0284828501613abd565b60608301525092915050565b600060608284031215613a2057600080fd5b613a2a60606145ff565b825190915067ffffffffffffffff811115613a4457600080fd5b613a5084828501613776565b825250602082015167ffffffffffffffff811115613a6d57600080fd5b613a7984828501613865565b602083015250604082015167ffffffffffffffff811115613a9957600080fd5b613aa584828501613865565b60408301525092915050565b6000610adf8235610922565b6000610adf8251610922565b600060208284031215613adb57600080fd5b60006129b6848461375e565b60008060408385031215613afa57600080fd5b6000613b06858561375e565b9250506020613b178582860161375e565b9150509250929050565b600080600060608486031215613b3657600080fd5b6000613b42868661375e565b9350506020613b538682870161375e565b9250506040613b6486828701613ab1565b9150509250925092565b60008060408385031215613b8157600080fd5b6000613b8d858561375e565b9250506020613b1785828601613ab1565b600060208284031215613bb057600080fd5b815167ffffffffffffffff811115613bc757600080fd5b6129b6848285016137f5565b600060208284031215613be557600080fd5b815167ffffffffffffffff811115613bfc57600080fd5b6129b6848285016138d5565b600060208284031215613c1a57600080fd5b60006129b68484613945565b60008060208385031215613c3957600080fd5b823567ffffffffffffffff811115613c5057600080fd5b613c5c85828601613951565b92509250509250929050565b600060208284031215613c7a57600080fd5b60006129b68484613993565b600080600060408486031215613c9b57600080fd5b6000613ca78686613993565b935050602084013567ffffffffffffffff811115613cc457600080fd5b613cd086828701613951565b92509250509250925092565b600060808284031215613cee57600080fd5b60006129b6848461399f565b600060208284031215613d0c57600080fd5b815167ffffffffffffffff811115613d2357600080fd5b6129b684828501613a0e565b600060208284031215613d4157600080fd5b60006129b68484613ab1565b600060208284031215613d5f57600080fd5b60006129b68484613abd565b6000613d778383613d9a565b505060200190565b6000613d7783836142bd565b613d9481614693565b82525050565b613d948161465a565b6000613dae8261464d565b613db88185614651565b9350613dc383614647565b60005b82811015613dee57613dd9868351613d6b565b9550613de482614647565b9150600101613dc6565b5093949350505050565b6000613e038261464d565b613e0d8185614651565b9350613e1883614647565b60005b82811015613dee57613e2e868351613d7f565b9550613e3982614647565b9150600101613e1b565b613d9481614665565b6000613e588385614651565b9350613e658385846146b4565b613e6e836146ec565b9093019392505050565b6000613e838261464d565b613e8d8185614651565b9350613e9d8185602086016146c0565b613e6e816146ec565b613d9481614688565b613d948161469e565b613d94816146a9565b6000613ece600b83614651565b7f4e6f74206d616e61676572000000000000000000000000000000000000000000815260200192915050565b6000613f07601183614651565b7f496e76616c696420636f6d706f6e656e74000000000000000000000000000000815260200192915050565b6000613f40601983614651565b7f4d757374206265206d756c7469706c65206f6620302e30312500000000000000815260200192915050565b6000613f79600b83614651565b7f426964206e6f74203e2030000000000000000000000000000000000000000000815260200192915050565b6000613fb2601483614651565b7f496e74657276616c206e6f7420656c6170736564000000000000000000000000815260200192915050565b6000613feb601583614651565b7f5472696767657273206e6f742062726561636865640000000000000000000000815260200192915050565b6000614024600f83614651565b7f4e6f742077686974656c69737465640000000000000000000000000000000000815260200192915050565b600061405d600d83614651565b7f496e76616c696420737461746500000000000000000000000000000000000000815260200192915050565b6000614096600f83614651565b7f556e697473686172657320697320300000000000000000000000000000000000815260200192915050565b60006140cf602e83614651565b7f436f6e747261637420696e7374616e63652068617320616c726561647920626581527f656e20696e697469616c697a6564000000000000000000000000000000000000602082015260400192915050565b600061412e601383614651565b7f4e6f7420617070726f766564206d6f64756c6500000000000000000000000000815260200192915050565b6000614167600883614651565b7f4e6f7420436f7265000000000000000000000000000000000000000000000000815260200192915050565b60006141a0600b83614651565b7f496e76616c696420536574000000000000000000000000000000000000000000815260200192915050565b60006141d9601483614651565b7f496e76616c6964206e61747572616c20756e6974000000000000000000000000815260200192915050565b6000614212600f83614651565b7f4d757374206265203c3d20313030250000000000000000000000000000000000815260200192915050565b600061424b600e83614651565b7f496e76616c696420737570706c79000000000000000000000000000000000000815260200192915050565b8051608083019061428884826142bd565b50602082015161429b60208501826142bd565b5060408201516142ae60408501826142bd565b506060820151612e5460608501825b613d9481610922565b613d9481614682565b602081016109d28284613d9a565b602081016109d28284613d8b565b604081016142f98285613d9a565b610adf6020830184613d9a565b608081016143148287613d9a565b6143216020830186613d9a565b61432e60408301856142bd565b61281160608301846142bd565b604081016143498285613d9a565b610adf60208301846142bd565b60208082528101610adf8184613da3565b606080825281016143788186613da3565b9050818103602083015261438c8185613df8565b905081810360408301526128118184613df8565b60208082528101610adf8184613df8565b604080825281016143c28185613df8565b905081810360208301526129b68184613df8565b602081016109d28284613e43565b602080825281016129b6818486613e4c565b602081016109d28284613ea6565b608081016144128287613ea6565b61441f6020830186613ea6565b61442c60408301856142bd565b818103606083015261329f8184613e78565b602081016109d28284613eaf565b60a0810161445a8288613eb8565b6144676020830187613eb8565b61447460408301866142bd565b61448160608301856142bd565b61329f60808301846142bd565b60208082528101610adf8184613e78565b602080825281016109d281613ec1565b602080825281016109d281613efa565b602080825281016109d281613f33565b602080825281016109d281613f6c565b602080825281016109d281613fa5565b602080825281016109d281613fde565b602080825281016109d281614017565b602080825281016109d281614050565b602080825281016109d281614089565b602080825281016109d2816140c2565b602080825281016109d281614121565b602080825281016109d28161415a565b602080825281016109d281614193565b602080825281016109d2816141cc565b602080825281016109d281614205565b602080825281016109d28161423e565b608081016109d28284614277565b602081016109d282846142bd565b6040810161434982856142bd565b606081016145d782866142bd565b6145e460208301856142bd565b6129b660408301846142bd565b602081016109d282846142c6565b60405181810167ffffffffffffffff8111828210171561461e57600080fd5b604052919050565b600067ffffffffffffffff82111561463d57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b60006109d282614676565b151590565b60006004821061373657fe5b600160a060020a031690565b60ff1690565b60006109d28261465a565b60006109d282614688565b60006109d28261466a565b60006109d282610922565b82818337506000910152565b60005b838110156146db5781810151838201526020016146c3565b83811115612e545750506000910152565b601f01601f19169056fea265627a7a72305820de3f31886eebe2f05c665ed2ad0cc22c745db71acc6aa6e9f90504f59f37a55e6c6578706572696d656e74616cf500370000000000000000000000002058a1d2e94d93b3777a3b28dd746373241493cd000000000000000000000000bfe8dd8b37e59e4848e32c9cf3ff1594d607fa4700000000000000000000000011551fb1d6028259b2a13fc96efa8e926c3b03780000000000000000000000008de549a5a91b2362056ace64e2acbb381e03cda70000000000000000000000006a2d7d65d1e92c3ea4fbc2d6d1383ca77978c3d30000000000000000000000002d979d78f5493b7917a3b67772465a36e98b261a0000000000000000000000006c4b7a83d2a301f7dd3563812a15f31a1e973b4c000000000000000000000000b1e63739900c28c88bbcfaff909e8dd036f7c09500000000000000000000000000000000000000000000000000000000000b76a70000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000114554482f42544320526174696f2053657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034542520000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103df5760003560e060020a900480638618711c1161020e578063c45a015511610129578063e74b981b116100bc578063f1560b3f1161008b578063f1560b3f14610740578063f2f4eb2614610748578063f75af97f14610750578063fa2d8c9014610765578063fbfa77cf1461076d576103df565b8063e74b981b1461070a578063eb770d0c1461071d578063f0284b1c14610730578063f056a9ae14610738576103df565b8063ce4b5bbe116100f8578063ce4b5bbe146106c7578063d0ebdbe7146106cf578063d600ae48146106e2578063dd62ed3e146106f7576103df565b8063c45a01551461069c578063cb631699146106a4578063cbf1c354146106ac578063cdb026a1146106bf576103df565b80639b013aee116101a1578063a457c2d711610170578063a457c2d714610666578063a9059cbb14610679578063a9faafd91461068c578063b83d815714610694576103df565b80639b013aee146106225780639dc29fac14610643578063a065172b14610656578063a2e59c911461065e576103df565b806396213fc7116101dd57806396213fc7146105e85780639979ef45146105f057806399d50d5d146106125780639ae1f4a91461061a576103df565b80638618711c146105bb57806388bd49a1146105d05780638a411b76146105d857806395d89b41146105e0576103df565b8063313ce567116102fe578063469048401161029157806357d3810e1161026057806357d3810e1461057757806370a082311461058d57806375aff3c1146105a0578063770d0c5d146105a8576103df565b8063469048401461054a578063481c6a751461055f578063506ab57a14610567578063570f31671461056f576103df565b806342a7cfd5116102cd57806342a7cfd51461051f5780634394380b14610527578063439fab911461052f5780634655309714610542576103df565b8063313ce567146104dc57806339509351146104f15780634046ebae1461050457806340c10f191461050c576103df565b806318160ddd1161037657806323b872dd1161034557806323b872dd146104b15780632c103c79146104c45780632e35bcca146104cc57806330b86627146104d4576103df565b806318160ddd14610486578063188b36c51461048e57806318c53aca14610496578063231e004e146104a9576103df565b8063072ea61c116103b2578063072ea61c14610441578063095ea7b3146104495780631698c5841461046957806316d1d9161461047e576103df565b80630193aea2146103e457806301c76f8114610402578063027aa9f51461041757806306fdde031461042c575b600080fd5b6103ec610775565b6040516103f991906145ad565b60405180910390f35b610415610410366004613c68565b61077b565b005b61041f6108df565b6040516103f991906143a0565b610434610925565b6040516103f9919061448e565b6103ec6109bb565b61045c610457366004613b6e565b6109c1565b6040516103f991906143d6565b6104716109d8565b6040516103f991906143f6565b6103ec6109e7565b6103ec6109ed565b6103ec6109f3565b61045c6104a4366004613ac9565b6109f9565b610415610a0d565b61045c6104bf366004613b21565b610a8e565b6103ec610ae6565b6103ec610aec565b610471610b87565b6104e4610b96565b6040516103f991906145f1565b61045c6104ff366004613b6e565b610b9f565b610471610bdb565b61041561051a366004613b6e565b610bea565b6103ec610c0e565b6103ec610c14565b61041561053d366004613c26565b610c76565b610471610d86565b610552610d95565b6040516103f991906142cf565b610552610da4565b610471610db3565b6103ec610dc2565b61057f610e66565b6040516103f99291906145bb565b6103ec61059b366004613ac9565b610ea8565b610415610ec3565b6104156105b6366004613c86565b610ecd565b6105c361100b565b6040516103f99190614356565b6103ec6110a9565b6104156110af565b61043461113a565b61055261119b565b6106036105fe366004613d2f565b6111aa565b6040516103f993929190614367565b6105c3611280565b6103ec6112dc565b610635610630366004613d2f565b6112e2565b6040516103f99291906143b1565b610415610651366004613b6e565b61139d565b61041f6113b3565b61041f6114fa565b61045c610674366004613b6e565b611673565b61045c610687366004613b6e565b6116af565b6103ec6116bc565b6103ec6116c2565b6104716116c8565b6104716116d7565b6104156106ba366004613c26565b6116e6565b61041f611777565b6103ec611815565b6104156106dd366004613ac9565b611821565b6106ea611890565b6040516103f9919061459f565b6103ec610705366004613ae7565b611931565b610415610718366004613ac9565b61195c565b61041561072b366004613d2f565b6119cb565b6105c3611a25565b61041f611a86565b61045c611ad0565b610471611ad9565b610758611ae8565b6040516103f9919061443e565b610415611af1565b610471611bf3565b60455481565b610783611c02565b600260475460ff16600381111561079657fe5b14156107c05760405160e560020a62461bcd0281526004016107b79061450f565b60405180910390fd5b603c546040517f372c12b1000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063372c12b1906108099084906004016142cf565b60206040518083038186803b15801561082157600080fd5b505afa158015610835573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506108599190810190613c08565b6108785760405160e560020a62461bcd0281526004016107b7906144ff565b603d546040517fe26fceb0d040e26e9c96b5be39f9a7b88bc48ce7a787f1e3cfd08e7f97626de6916108b5918491600160a060020a0316906142eb565b60405180910390a1603d8054600160a060020a031916600160a060020a0392909216919091179055565b604080516001808252818301909252606091829190602080830190803883390190505090506045548160008151811061091457fe5b602090810291909101015290505b90565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109b15780601f10610986576101008083540402835291602001916109b1565b820191906000526020600020905b81548152906001019060200180831161099457829003601f168201915b5050505050905090565b60435481565b60006109ce338484611c2f565b5060015b92915050565b603c54600160a060020a031681565b60415481565b60025490565b60425481565b604454600160a060020a0390811691161490565b610a15611cbd565b600080610a20611cc7565b915091506000610a2e611d8b565b9050610a3981611e61565b6045819055604080549051600160a060020a03909116907f819f13b7ecdde26dc2f4f306d33b2d6e5b32f631d969f8c98a806896a06a576090610a81908590879086906145c9565b60405180910390a2505050565b6000610a9b848484611e84565b600160a060020a038416600090815260016020908152604080832033808552925290912054610adb918691610ad6908663ffffffff611f4716565b611c2f565b5060015b9392505050565b604f5481565b603e54604080517fced72f870000000000000000000000000000000000000000000000000000000081529051600092600160a060020a03169163ced72f87916004808301926020929190829003018186803b158015610b4a57600080fd5b505afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b829190810190613d4d565b905090565b604454600160a060020a031681565b60055460ff1690565b336000818152600160209081526040808320600160a060020a038716845290915281205490916109ce918590610ad6908663ffffffff611f5c16565b603d54600160a060020a031681565b610bf2611f6e565b6000610bfd82611f76565b9050610c09838261200c565b505050565b60465481565b603d546040517f57dc13ec000000000000000000000000000000000000000000000000000000008152600091600160a060020a0316906357dc13ec90610c5e9030906004016142cf565b60206040518083038186803b158015610b4a57600080fd5b60055462010000900460ff1680610c905750610c906120b9565b80610ca35750600554610100900460ff16155b610cc25760405160e560020a62461bcd0281526004016107b79061452f565b60055462010000900460ff16158015610cf2576005805461ff001962ff0000199091166201000017166101001790555b603e546040517f439fab91000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063439fab9190610d3d90869086906004016143e4565b600060405180830381600087803b158015610d5757600080fd5b505af1158015610d6b573d6000803e3d6000fd5b505050508015610c09576005805462ff000019169055505050565b603e54600160a060020a031681565b604054600160a060020a031681565b603f54600160a060020a031681565b603b54600160a060020a031681565b603d546040517f77b7a8d8000000000000000000000000000000000000000000000000000000008152600091600160a060020a0316906377b7a8d890610e0c9030906004016142cf565b60006040518083038186803b158015610e2457600080fd5b505afa158015610e38573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e609190810190613b9e565b51905090565b6000806060610e736114fa565b905080600081518110610e8257fe5b602002602001015181600181518110610e9757fe5b602002602001015192509250509091565b600160a060020a031660009081526020819052604090205490565b610ecb6110af565b565b610ed5611c02565b610ede836120bf565b6000610ee8612341565b6038546044546040517fa782132c000000000000000000000000000000000000000000000000000000008152929350600160a060020a039182169263a782132c92610f39921690859060040161433b565b600060405180830381600087803b158015610f5357600080fd5b505af1158015610f67573d6000803e3d6000fd5b50505050610fac848285858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061249a92505050565b610fb584612524565b604454604a546048546040517f9c6ae00de948f7b7024af2cf50454197682e662953f3c8b35e74ce63ec5fcd8f93610ffd93600160a060020a03918216939116918690614306565b60405180910390a150505050565b603d546040517f77b7a8d8000000000000000000000000000000000000000000000000000000008152606091600160a060020a0316906377b7a8d8906110559030906004016142cf565b60006040518083038186803b15801561106d57600080fd5b505afa158015611081573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b829190810190613b9e565b60485481565b6110b761255a565b60006110c1612599565b9050603d60009054906101000a9004600160a060020a0316600160a060020a0316638a411b766040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561111657600080fd5b505af115801561112a573d6000803e3d6000fd5b50505050611137816125b3565b50565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109b15780601f10610986576101008083540402835291602001916109b1565b604e54600160a060020a031681565b60608060606111b88461261b565b6111c061366b565b603d546040517f9979ef45000000000000000000000000000000000000000000000000000000008152600160a060020a0390911690639979ef45906112099088906004016145ad565b600060405180830381600087803b15801561122357600080fd5b505af1158015611237573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125f9190810190613cfa565b905061126961262c565b61127281612645565b935093509350509193909250565b6040805160018082528183019092526060918291906020808301908038833950506044548251929350600160a060020a0316918391506000906112bf57fe5b600160a060020a0390921660209283029190910190910152905090565b604b5481565b6060806112ee83612656565b603d546040517f102d32c000000000000000000000000000000000000000000000000000000000815261139491600160a060020a03169063102d32c09061133b903090889060040161433b565b60006040518083038186803b15801561135357600080fd5b505afa158015611367573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261138f9190810190613cfa565b612683565b91509150915091565b6113a5612692565b6113af82826126ca565b5050565b60606113bd61368c565b603d546040517f558a7c06000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063558a7c06906114069030906004016142cf565b60806040518083038186803b15801561141e57600080fd5b505afa158015611432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506114569190810190613cdc565b60408051600480825260a08201909252919250606091906020820160808038833901905050905081600001518160008151811061148f57fe5b6020026020010181815250508160200151816001815181106114ad57fe5b6020026020010181815250508160400151816002815181106114cb57fe5b6020026020010181815250508160600151816003815181106114e957fe5b602090810291909101015291505090565b6040805160028082526060808301845292839291906020830190803883395050603d546040517f060f0203000000000000000000000000000000000000000000000000000000008152929350600160a060020a03169163060f020391506115659030906004016142cf565b60206040518083038186803b15801561157d57600080fd5b505afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506115b59190810190613d4d565b816000815181106115c257fe5b6020908102919091010152603d546040517f48454433000000000000000000000000000000000000000000000000000000008152600160a060020a03909116906348454433906116169030906004016142cf565b60206040518083038186803b15801561162e57600080fd5b505afa158015611642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116669190810190613d4d565b8160018151811061091457fe5b336000818152600160209081526040808320600160a060020a038716845290915281205490916109ce918590610ad6908663ffffffff611f4716565b60006109ce338484611e84565b60505481565b60495481565b603954600160a060020a031681565b604a54600160a060020a031681565b6116ee611c02565b6116f6610a0d565b603e546040517fcbf1c354000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063cbf1c3549061174190859085906004016143e4565b600060405180830381600087803b15801561175b57600080fd5b505af115801561176f573d6000803e3d6000fd5b505050505050565b603d546040517f22c1107a000000000000000000000000000000000000000000000000000000008152606091600160a060020a0316906322c1107a906117c19030906004016142cf565b60006040518083038186803b1580156117d957600080fd5b505afa1580156117ed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b829190810190613bd3565b670de0b6b3a764000081565b611829611c02565b603f546040517ff9c15f5b74b4e002e8881b2d9810116b1d4d45461e6dd7ac8111381b592e2c6591611866918491600160a060020a0316906142eb565b60405180910390a1603f8054600160a060020a031916600160a060020a0392909216919091179055565b61189861368c565b603d546040517f558a7c06000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063558a7c06906118e19030906004016142cf565b60806040518083038186803b1580156118f957600080fd5b505afa15801561190d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b829190810190613cdc565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b611964611c02565b6040805490517f2d63d620fb255d563fc112849cc79d42a367a3c51694709297b3ef80b28a8929916119a1918491600160a060020a0316906142eb565b60405180910390a160408054600160a060020a031916600160a060020a0392909216919091179055565b6119d3611c02565b6119dc81612768565b6119e581612793565b7fbf7417a972a6451dbb2afbe07f2846cb433f2c3ab380fecbf70e38684eda554a81604354604051611a189291906145bb565b60405180910390a1604355565b6060604d8054806020026020016040519081016040528092919081815260200182805480156109b157602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611a5f575050505050905090565b603d546040517f1273a666000000000000000000000000000000000000000000000000000000008152606091600160a060020a031690631273a666906117c19030906004016142cf565b604c5460ff1681565b603854600160a060020a031681565b60475460ff1681565b611af96127c9565b604a54600090611b1190600160a060020a03166127d3565b90506000611b1e8261281a565b9050611b2981611e61565b611b3282612849565b603d60009054906101000a9004600160a060020a0316600160a060020a031663fa2d8c906040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611b8557600080fd5b505af1158015611b99573d6000803e3d6000fd5b505050506000600160a060020a03167f973319ae5c915d7b31c697261193cb1acf72a6b9286dc987e24cbe0d2e784b5c6000806048548686604051611be295949392919061444c565b60405180910390a26113af816128cd565b603a54600160a060020a031681565b603f54600160a060020a03163314610ecb5760405160e560020a62461bcd0281526004016107b79061449f565b600160a060020a038216611c4257600080fd5b600160a060020a038316611c5557600080fd5b600160a060020a0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611cb09085906145ad565b60405180910390a3505050565b610ecb6000612930565b6000806000603e60009054906101000a9004600160a060020a0316600160a060020a03166320f554046040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015611d1f57600080fd5b505af1158015611d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611d579190810190613d4d565b90506000611d648261296d565b90508015611d8257604054611d8290600160a060020a03168261200c565b90925090509091565b603a546044546040517f1f98ade30000000000000000000000000000000000000000000000000000000081526000928392600160a060020a0391821692631f98ade392611dde92169030906004016142eb565b60206040518083038186803b158015611df657600080fd5b505afa158015611e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611e2e9190810190613d4d565b9050611e5b611e3b6109ed565b604654611e4f90849063ffffffff6129be16565b9063ffffffff6129e516565b91505090565b600081116111375760405160e560020a62461bcd0281526004016107b79061451f565b600160a060020a038216611e9757600080fd5b600160a060020a038316600090815260208190526040902054611ec0908263ffffffff611f4716565b600160a060020a038085166000908152602081905260408082209390935590841681522054611ef5908263ffffffff611f5c16565b600160a060020a0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611cb09085906145ad565b600082821115611f5657600080fd5b50900390565b600082820183811015610adf57600080fd5b611cbd612a33565b600080611f96611f91604354856129be90919063ffffffff16565b612a60565b90508015611ffc57604054611fb490600160a060020a03168261200c565b604080549051600160a060020a03909116907f4f97c4974c69e34351de4be43b70406a96a48f940ec7d8853b4be6e7e6d98c7b90611ff39084906145ad565b60405180910390a25b610adf838263ffffffff611f4716565b600160a060020a03821661201f57600080fd5b600254612032908263ffffffff611f5c16565b600255600160a060020a03821660009081526020819052604090205461205e908263ffffffff611f5c16565b600160a060020a0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906120ad9085906145ad565b60405180910390a35050565b303b1590565b6120c96000612930565b6041546049546120de9163ffffffff611f5c16565b4210156121005760405160e560020a62461bcd0281526004016107b7906144df565b600061210a6109ed565b1161212a5760405160e560020a62461bcd0281526004016107b79061458f565b6038546040517ffef3ee73000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063fef3ee73906121739084906004016142cf565b60206040518083038186803b15801561218b57600080fd5b505afa15801561219f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506121c39190810190613c08565b6121e25760405160e560020a62461bcd0281526004016107b79061455f565b603b60009054906101000a9004600160a060020a0316600160a060020a03166332ed010e82600160a060020a03166399d50d5d6040518163ffffffff1660e060020a02815260040160006040518083038186803b15801561224257600080fd5b505afa158015612256573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261227e9190810190613b9e565b6040518263ffffffff1660e060020a02815260040161229d9190614356565b60206040518083038186803b1580156122b557600080fd5b505afa1580156122c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506122ed9190810190613c08565b61230c5760405160e560020a62461bcd0281526004016107b7906144af565b60445461232290600160a060020a031682612a7a565b6111375760405160e560020a62461bcd0281526004016107b79061456f565b603a546044546040517f1f98ade30000000000000000000000000000000000000000000000000000000081526000928392600160a060020a0391821692631f98ade39261239492169030906004016142eb565b60206040518083038186803b1580156123ac57600080fd5b505afa1580156123c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506123e49190810190613d4d565b90506000604460009054906101000a9004600160a060020a0316600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b15801561243957600080fd5b505afa15801561244d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506124719190810190613d4d565b9050612493612486838363ffffffff612b9816565b839063ffffffff611f4716565b9250505090565b603d546044546040517fffd9cc35000000000000000000000000000000000000000000000000000000008152600160a060020a039283169263ffd9cc35926124ed92911690879087908790600401614404565b600060405180830381600087803b15801561250757600080fd5b505af115801561251b573d6000803e3d6000fd5b50505050505050565b604a8054600160a060020a031916600160a060020a038316179055604780546002919060ff191660018302179055505042604b55565b6125646002612930565b61256c612bb5565b8061257a575061257a612c4f565b610ecb5760405160e560020a62461bcd0281526004016107b7906144ef565b604c5460009060ff166125ad576000610b82565b50600390565b6125bc81612c72565b6125c581612cef565b6047805482919060ff191660018360038111156125de57fe5b02179055506048546125f790600163ffffffff611f5c16565b6048555042604955604a8054600160a060020a0319169055604c805460ff19169055565b612623612e5a565b61113781612656565b604c5460ff16610ecb57604c805460ff19166001179055565b805160208201516040909201519092565b6126606002612930565b600081116111375760405160e560020a62461bcd0281526004016107b7906144cf565b60208101516040820151915091565b61269c6002612f12565b600360475460ff1660038111156126af57fe5b14156126c2576126bd612e5a565b610ecb565b610ecb612a33565b600160a060020a0382166126dd57600080fd5b6002546126f0908263ffffffff611f4716565b600255600160a060020a03821660009081526020819052604090205461271c908263ffffffff611f4716565b600160a060020a0383166000818152602081905260408082209390935591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906120ad9085906145ad565b670de0b6b3a76400008111156111375760405160e560020a62461bcd0281526004016107b79061457f565b6127a981655af3107a400063ffffffff612b9816565b156111375760405160e560020a62461bcd0281526004016107b7906144bf565b610ecb6002612930565b60006127dd6136b4565b6127e683612f50565b905060006127f3826130ef565b90506000612811612486846000015184612b9890919063ffffffff16565b95945050505050565b60008061283760465461282b6109ed565b9063ffffffff61320d16565b9050610adf838263ffffffff61320d16565b603854604a546040517fa57de4cf000000000000000000000000000000000000000000000000000000008152600160a060020a039283169263a57de4cf9261289892911690859060040161433b565b600060405180830381600087803b1580156128b257600080fd5b505af11580156128c6573d6000803e3d6000fd5b5050505050565b6047805460ff1916905542604955604a5460448054600160a060020a031916600160a060020a039092169190911790556045819055604854612910906001611f5c565b60485550604a8054600160a060020a0319169055604c805460ff19169055565b80600381111561293c57fe5b60475460ff16600381111561294d57fe5b146111375760405160e560020a62461bcd0281526004016107b79061450f565b60008061298861297b6109ed565b849063ffffffff6129be16565b905060006129a48461299861322f565b9063ffffffff611f4716565b90506129b6828263ffffffff61320d16565b949350505050565b6000826129cd575060006109d2565b828202828482816129da57fe5b0414610adf57600080fd5b6000806129f8848463ffffffff612b9816565b11612a1257612a0d838363ffffffff61320d16565b610adf565b610adf6001612a27858563ffffffff61320d16565b9063ffffffff611f5c16565b603854600160a060020a03163314610ecb5760405160e560020a62461bcd0281526004016107b79061454f565b60006109d282670de0b6b3a764000063ffffffff61320d16565b60008083600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b158015612ab957600080fd5b505afa158015612acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612af19190810190613d4d565b9050600083600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b158015612b3157600080fd5b505afa158015612b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b699190810190613d4d565b9050612b8e612b78838361323b565b612b828484613251565b9063ffffffff612b9816565b1595945050505050565b600081612ba457600080fd5b818381612bad57fe5b069392505050565b603d546040517f3b52de3b000000000000000000000000000000000000000000000000000000008152600091600160a060020a031690633b52de3b90612bff9030906004016142cf565b60206040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b829190810190613c08565b600080612c69604254604b54611f5c90919063ffffffff16565b42101591505090565b6000816003811115612c8057fe5b141561113757604454600090612c9e90600160a060020a03166127d3565b6038546044546040517fa57de4cf000000000000000000000000000000000000000000000000000000008152929350600160a060020a039182169263a57de4cf92611741921690859060040161433b565b6003816003811115612cfd57fe5b141561113757604454604080517f99d50d5d0000000000000000000000000000000000000000000000000000000081529051606092600160a060020a0316916399d50d5d916004808301926000929190829003018186803b158015612d6157600080fd5b505afa158015612d75573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d9d9190810190613b9e565b90506060604a60009054906101000a9004600160a060020a0316600160a060020a03166399d50d5d6040518163ffffffff1660e060020a02815260040160006040518083038186803b158015612df257600080fd5b505afa158015612e06573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612e2e9190810190613b9e565b9050612e40828263ffffffff61326116565b8051612e5491604d916020909101906136d5565b50505050565b6038546040517f5e633498000000000000000000000000000000000000000000000000000000008152600160a060020a0390911690635e63349890612ea39033906004016142dd565b60206040518083038186803b158015612ebb57600080fd5b505afa158015612ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612ef39190810190613c08565b610ecb5760405160e560020a62461bcd0281526004016107b79061453f565b806003811115612f1e57fe5b60475460ff166003811115612f2f57fe5b14156111375760405160e560020a62461bcd0281526004016107b79061450f565b612f586136b4565b6000829050600081600160a060020a03166342a7cfd56040518163ffffffff1660e060020a02815260040160206040518083038186803b158015612f9b57600080fd5b505afa158015612faf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612fd39190810190613d4d565b9050606082600160a060020a03166399d50d5d6040518163ffffffff1660e060020a02815260040160006040518083038186803b15801561301357600080fd5b505afa158015613027573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261304f9190810190613b9e565b9050606083600160a060020a031663027aa9f56040518163ffffffff1660e060020a02815260040160006040518083038186803b15801561308f57600080fd5b505afa1580156130a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130cb9190810190613bd3565b60408051606081018252948552602085019390935291830191909152509392505050565b6000806130fa6132a9565b905060005b83602001515181101561320657603a5460208501518051600092600160a060020a031691631f98ade3918590811061313357fe5b6020026020010151306040518363ffffffff1660e060020a02815260040161315c9291906142eb565b60206040518083038186803b15801561317457600080fd5b505afa158015613188573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131ac9190810190613d4d565b905060006131ee86600001516131e2886040015186815181106131cb57fe5b60200260200101518561320d90919063ffffffff16565b9063ffffffff6129be16565b9050838110156131fc578093505b50506001016130ff565b5092915050565b600080821161321b57600080fd5b600082848161322657fe5b04949350505050565b670de0b6b3a764000090565b600081831061324a5781610adf565b5090919050565b60008183101561324a5781610adf565b60608061326e84846132af565b9050606061327c84866132af565b9050606061328a86866133ef565b905061329f8361329a838561351d565b61351d565b9695505050505050565b60001990565b60606000835190506060816040519080825280602002602001820160405280156132e3578160200160208202803883390190505b5090506000805b8381101561334657600087828151811061330057fe5b6020026020010151905061331487826135ff565b61333d57600184838151811061332657fe5b911515602092830291909101909101526001909201915b506001016132ea565b50606081604051908082528060200260200182016040528015613373578160200160208202803883390190505b5090506000805b858110156133e25784818151811061338e57fe5b6020026020010151156133da578881815181106133a757fe5b60200260200101518383815181106133bb57fe5b600160a060020a03909216602092830291909101909101526001909101905b60010161337a565b5090979650505050505050565b6060600083519050606081604051908082528060200260200182016040528015613423578160200160208202803883390190505b5090506000805b838110156134815761344f8688838151811061344257fe5b60200260200101516135ff565b1561347957600183828151811061346257fe5b911515602092830291909101909101526001909101905b60010161342a565b506060816040519080825280602002602001820160405280156134ae578160200160208202803883390190505b5090506000805b858110156133e2578481815181106134c957fe5b602002602001015115613515578881815181106134e257fe5b60200260200101518383815181106134f657fe5b600160a060020a03909216602092830291909101909101526001909101905b6001016134b5565b60606000835190506000835190506060818301604051908082528060200260200182016040528015613559578160200160208202803883390190505b50905060005b838110156135a75786818151811061357357fe5b602002602001015182828151811061358757fe5b600160a060020a039092166020928302919091019091015260010161355f565b5060005b828110156135f5578581815181106135bf57fe5b602002602001015182828601815181106135d557fe5b600160a060020a03909216602092830291909101909101526001016135ab565b5095945050505050565b600080612811848481516000908190815b8181101561365a5784600160a060020a031686828151811061362e57fe5b6020026020010151600160a060020a03161415613652579250600191506136649050565b600101613610565b5060009250829150505b9250929050565b60405180606001604052806060815260200160608152602001606081525090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160608152602001606081525090565b82805482825590600052602060002090810192821561372a579160200282015b8281111561372a5782518254600160a060020a031916600160a060020a039091161782556020909201916001909101906136f5565b5061373692915061373a565b5090565b61092291905b80821115613736578054600160a060020a0319168155600101613740565b6000610adf823561465a565b6000610adf825161465a565b600082601f83011261378757600080fd5b815161379a61379582614626565b6145ff565b915081818352602084019350602081019050838560208402820111156137bf57600080fd5b60005b838110156137eb57816137d5888261376a565b84525060209283019291909101906001016137c2565b5050505092915050565b600082601f83011261380657600080fd5b815161381461379582614626565b9150818183526020840193506020810190508385602084028201111561383957600080fd5b60005b838110156137eb578161384f888261376a565b845250602092830192919091019060010161383c565b600082601f83011261387657600080fd5b815161388461379582614626565b915081818352602084019350602081019050838560208402820111156138a957600080fd5b60005b838110156137eb57816138bf8882613abd565b84525060209283019291909101906001016138ac565b600082601f8301126138e657600080fd5b81516138f461379582614626565b9150818183526020840193506020810190508385602084028201111561391957600080fd5b60005b838110156137eb578161392f8882613abd565b845250602092830192919091019060010161391c565b6000610adf8251614665565b60008083601f84011261396357600080fd5b50813567ffffffffffffffff81111561397b57600080fd5b60208301915083600182028301111561366457600080fd5b6000610adf8235614688565b6000608082840312156139b157600080fd5b6139bb60806145ff565b905060006139c98484613abd565b82525060206139da84848301613abd565b60208301525060406139ee84828501613abd565b6040830152506060613a0284828501613abd565b60608301525092915050565b600060608284031215613a2057600080fd5b613a2a60606145ff565b825190915067ffffffffffffffff811115613a4457600080fd5b613a5084828501613776565b825250602082015167ffffffffffffffff811115613a6d57600080fd5b613a7984828501613865565b602083015250604082015167ffffffffffffffff811115613a9957600080fd5b613aa584828501613865565b60408301525092915050565b6000610adf8235610922565b6000610adf8251610922565b600060208284031215613adb57600080fd5b60006129b6848461375e565b60008060408385031215613afa57600080fd5b6000613b06858561375e565b9250506020613b178582860161375e565b9150509250929050565b600080600060608486031215613b3657600080fd5b6000613b42868661375e565b9350506020613b538682870161375e565b9250506040613b6486828701613ab1565b9150509250925092565b60008060408385031215613b8157600080fd5b6000613b8d858561375e565b9250506020613b1785828601613ab1565b600060208284031215613bb057600080fd5b815167ffffffffffffffff811115613bc757600080fd5b6129b6848285016137f5565b600060208284031215613be557600080fd5b815167ffffffffffffffff811115613bfc57600080fd5b6129b6848285016138d5565b600060208284031215613c1a57600080fd5b60006129b68484613945565b60008060208385031215613c3957600080fd5b823567ffffffffffffffff811115613c5057600080fd5b613c5c85828601613951565b92509250509250929050565b600060208284031215613c7a57600080fd5b60006129b68484613993565b600080600060408486031215613c9b57600080fd5b6000613ca78686613993565b935050602084013567ffffffffffffffff811115613cc457600080fd5b613cd086828701613951565b92509250509250925092565b600060808284031215613cee57600080fd5b60006129b6848461399f565b600060208284031215613d0c57600080fd5b815167ffffffffffffffff811115613d2357600080fd5b6129b684828501613a0e565b600060208284031215613d4157600080fd5b60006129b68484613ab1565b600060208284031215613d5f57600080fd5b60006129b68484613abd565b6000613d778383613d9a565b505060200190565b6000613d7783836142bd565b613d9481614693565b82525050565b613d948161465a565b6000613dae8261464d565b613db88185614651565b9350613dc383614647565b60005b82811015613dee57613dd9868351613d6b565b9550613de482614647565b9150600101613dc6565b5093949350505050565b6000613e038261464d565b613e0d8185614651565b9350613e1883614647565b60005b82811015613dee57613e2e868351613d7f565b9550613e3982614647565b9150600101613e1b565b613d9481614665565b6000613e588385614651565b9350613e658385846146b4565b613e6e836146ec565b9093019392505050565b6000613e838261464d565b613e8d8185614651565b9350613e9d8185602086016146c0565b613e6e816146ec565b613d9481614688565b613d948161469e565b613d94816146a9565b6000613ece600b83614651565b7f4e6f74206d616e61676572000000000000000000000000000000000000000000815260200192915050565b6000613f07601183614651565b7f496e76616c696420636f6d706f6e656e74000000000000000000000000000000815260200192915050565b6000613f40601983614651565b7f4d757374206265206d756c7469706c65206f6620302e30312500000000000000815260200192915050565b6000613f79600b83614651565b7f426964206e6f74203e2030000000000000000000000000000000000000000000815260200192915050565b6000613fb2601483614651565b7f496e74657276616c206e6f7420656c6170736564000000000000000000000000815260200192915050565b6000613feb601583614651565b7f5472696767657273206e6f742062726561636865640000000000000000000000815260200192915050565b6000614024600f83614651565b7f4e6f742077686974656c69737465640000000000000000000000000000000000815260200192915050565b600061405d600d83614651565b7f496e76616c696420737461746500000000000000000000000000000000000000815260200192915050565b6000614096600f83614651565b7f556e697473686172657320697320300000000000000000000000000000000000815260200192915050565b60006140cf602e83614651565b7f436f6e747261637420696e7374616e63652068617320616c726561647920626581527f656e20696e697469616c697a6564000000000000000000000000000000000000602082015260400192915050565b600061412e601383614651565b7f4e6f7420617070726f766564206d6f64756c6500000000000000000000000000815260200192915050565b6000614167600883614651565b7f4e6f7420436f7265000000000000000000000000000000000000000000000000815260200192915050565b60006141a0600b83614651565b7f496e76616c696420536574000000000000000000000000000000000000000000815260200192915050565b60006141d9601483614651565b7f496e76616c6964206e61747572616c20756e6974000000000000000000000000815260200192915050565b6000614212600f83614651565b7f4d757374206265203c3d20313030250000000000000000000000000000000000815260200192915050565b600061424b600e83614651565b7f496e76616c696420737570706c79000000000000000000000000000000000000815260200192915050565b8051608083019061428884826142bd565b50602082015161429b60208501826142bd565b5060408201516142ae60408501826142bd565b506060820151612e5460608501825b613d9481610922565b613d9481614682565b602081016109d28284613d9a565b602081016109d28284613d8b565b604081016142f98285613d9a565b610adf6020830184613d9a565b608081016143148287613d9a565b6143216020830186613d9a565b61432e60408301856142bd565b61281160608301846142bd565b604081016143498285613d9a565b610adf60208301846142bd565b60208082528101610adf8184613da3565b606080825281016143788186613da3565b9050818103602083015261438c8185613df8565b905081810360408301526128118184613df8565b60208082528101610adf8184613df8565b604080825281016143c28185613df8565b905081810360208301526129b68184613df8565b602081016109d28284613e43565b602080825281016129b6818486613e4c565b602081016109d28284613ea6565b608081016144128287613ea6565b61441f6020830186613ea6565b61442c60408301856142bd565b818103606083015261329f8184613e78565b602081016109d28284613eaf565b60a0810161445a8288613eb8565b6144676020830187613eb8565b61447460408301866142bd565b61448160608301856142bd565b61329f60808301846142bd565b60208082528101610adf8184613e78565b602080825281016109d281613ec1565b602080825281016109d281613efa565b602080825281016109d281613f33565b602080825281016109d281613f6c565b602080825281016109d281613fa5565b602080825281016109d281613fde565b602080825281016109d281614017565b602080825281016109d281614050565b602080825281016109d281614089565b602080825281016109d2816140c2565b602080825281016109d281614121565b602080825281016109d28161415a565b602080825281016109d281614193565b602080825281016109d2816141cc565b602080825281016109d281614205565b602080825281016109d28161423e565b608081016109d28284614277565b602081016109d282846142bd565b6040810161434982856142bd565b606081016145d782866142bd565b6145e460208301856142bd565b6129b660408301846142bd565b602081016109d282846142c6565b60405181810167ffffffffffffffff8111828210171561461e57600080fd5b604052919050565b600067ffffffffffffffff82111561463d57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b60006109d282614676565b151590565b60006004821061373657fe5b600160a060020a031690565b60ff1690565b60006109d28261465a565b60006109d282614688565b60006109d28261466a565b60006109d282610922565b82818337506000910152565b60005b838110156146db5781810151838201526020016146c3565b83811115612e545750506000910152565b601f01601f19169056fea265627a7a72305820de3f31886eebe2f05c665ed2ad0cc22c745db71acc6aa6e9f90504f59f37a55e6c6578706572696d656e74616cf50037

Deployed Bytecode Sourcemap

130268:5517:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;130268:5517:0;;;;;;;;-1:-1:-1;;;130268:5517:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65997:25;;;:::i;:::-;;;;;;;;;;;;;;;;69101:497;;;;;;;;;:::i;:::-;;70625:208;;;:::i;:::-;;;;;;;;87873:83;;;:::i;:::-;;;;;;;;65613:23;;;:::i;5581:148::-;;;;;;;;;:::i;:::-;;;;;;;;64501:37;;;:::i;:::-;;;;;;;;65273:32;;;:::i;3734:91::-;;;:::i;65410:34::-;;;:::i;70986:188::-;;;;;;;;;:::i;134240:726::-;;;:::i;6202:228::-;;;;;;;;;:::i;91917:29::-;;;:::i;70031:145::-;;;:::i;65889:27::-;;;:::i;88189:83::-;;;:::i;:::-;;;;;;;;6956:203;;;;;;;;;:::i;64700:29::-;;;:::i;128424:278::-;;;;;;;;;:::i;66075:26::-;;;:::i;93323:139::-;;;:::i;122582:193::-;;;;;;;;;:::i;64801:44::-;;;:::i;64982:27::-;;;:::i;:::-;;;;;;;;64908:22;;;:::i;64414:36::-;;;:::i;93164:151::-;;;:::i;94223:230::-;;;:::i;:::-;;;;;;;;;4044:106;;;;;;;;;:::i;129262:76::-;;;:::i;123335:742::-;;;;;;;;;:::i;93009:147::-;;;:::i;:::-;;;;;;;;66348:29;;;:::i;127724:326::-;;;:::i;88023:87::-;;;:::i;91814:29::-;;;:::i;125425:467::-;;;;;;;;;:::i;:::-;;;;;;;;;;70282:237;;;:::i;66819:33::-;;;:::i;124457:341::-;;;;;;;;;:::i;:::-;;;;;;;;;128957:180;;;;;;;;;:::i;92112:568::-;;;:::i;93903:312::-;;;:::i;7690:213::-;;;;;;;;;:::i;4794:140::-;;;;;;;;;:::i;92024:32::-;;;:::i;66440:37::-;;;:::i;64221:::-;;;:::i;66725:24::-;;;:::i;135176:198::-;;;;;;;;;:::i;92850:151::-;;;:::i;81217:47::-;;;:::i;68450:194::-;;;;;;;;;:::i;93470:195::-;;;:::i;:::-;;;;;;;;4489:131;;;;;;;;;:::i;69606:224::-;;;;;;;;;:::i;68652:350::-;;;;;;;;;:::i;94461:138::-;;;:::i;92688:154::-;;;:::i;67082:21::-;;;:::i;64153:17::-;;;:::i;66220:46::-;;;:::i;:::-;;;;;;;;132989:893;;;:::i;64305:19::-;;;:::i;65997:25::-;;;;:::o;69101:497::-;67362:17;:15;:17::i;:::-;69263:34;69245:14;;;;:52;;;;;;;;;;69223:115;;;;-1:-1:-1;;;;;69223:115:0;;;;;;;;;;;;;;;;;69373:19;;:54;;;;;-1:-1:-1;;;;;69373:19:0;;;;:29;;:54;;69411:14;;69373:54;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69373:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69373:54:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;69373:54:0;;;;;;;;;69351:119;;;;-1:-1:-1;;;;;69351:119:0;;;;;;;;;69540:10;;69488:64;;;;;;69515:14;;-1:-1:-1;;;;;69540:10:0;;69488:64;;;;;;;;;;69563:10;:27;;-1:-1:-1;;;;;;69563:27:0;-1:-1:-1;;;;;69563:27:0;;;;;;;;;;69101:497::o;70625:208::-;70754:16;;;70768:1;70754:16;;;;;;;;;70695;;;;70754;;;;;;;105:10:-1;70754:16:0;88:34:-1;136:17;;-1:-1;70754:16:0;70729:41;;70792:10;;70781:5;70787:1;70781:8;;;;;;;;;;;;;;;;;:21;70820:5;-1:-1:-1;70625:208:0;;:::o;87873:83::-;87943:5;87936:12;;;;;;;;-1:-1:-1;;87936:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87910:13;;87936:12;;87943:5;;87936:12;;87943:5;87936:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87873:83;:::o;65613:23::-;;;;:::o;5581:148::-;5646:4;5663:36;5672:10;5684:7;5693:5;5663:8;:36::i;:::-;-1:-1:-1;5717:4:0;5581:148;;;;;:::o;64501:37::-;;;-1:-1:-1;;;;;64501:37:0;;:::o;65273:32::-;;;;:::o;3734:91::-;3805:12;;3734:91;:::o;65410:34::-;;;;:::o;70986:188::-;71155:10;;-1:-1:-1;;;;;71155:10:0;;;71130:36;;;;70986:188::o;134240:726::-;134296:39;:37;:39::i;:::-;134442:18;134462:19;134485:25;:23;:25::i;:::-;134441:69;;;;134585:21;134609:37;:35;:37::i;:::-;134585:61;;134659:33;134678:13;134659:18;:33::i;:::-;134741:10;:26;;;134856:12;;;134825:133;;-1:-1:-1;;;;;134856:12:0;;;;134825:133;;;;134883:11;;134909:10;;134754:13;;134825:133;;;;;;;;;;134240:726;;;:::o;6202:228::-;6281:4;6298:26;6308:4;6314:2;6318:5;6298:9;:26::i;:::-;-1:-1:-1;;;;;6362:14:0;;;;;;:8;:14;;;;;;;;6350:10;6362:26;;;;;;;;;6335:65;;6344:4;;6362:37;;6393:5;6362:37;:30;:37;:::i;:::-;6335:8;:65::i;:::-;-1:-1:-1;6418:4:0;6202:228;;;;;;:::o;91917:29::-;;;;:::o;70031:145::-;70137:22;;:31;;;;;;;;70105:7;;-1:-1:-1;;;;;70137:22:0;;:29;;:31;;;;;;;;;;;;;;:22;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;70137:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70137:31:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;70137:31:0;;;;;;;;;70130:38;;70031:145;:::o;65889:27::-;;;-1:-1:-1;;;;;65889:27:0;;:::o;88189:83::-;88255:9;;;;88189:83;:::o;6956:203::-;7062:10;7036:4;7083:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;7083:29:0;;;;;;;;;;7036:4;;7053:76;;7074:7;;7083:45;;7117:10;7083:45;:33;:45;:::i;64700:29::-;;;-1:-1:-1;;;;;64700:29:0;;:::o;128424:278::-;128533:23;:21;:23::i;:::-;128569:30;128602:35;128627:9;128602:24;:35::i;:::-;128569:68;;128650:44;128662:7;128671:22;128650:11;:44::i;:::-;128424:278;;;:::o;66075:26::-;;;;:::o;93323:139::-;93409:10;;:45;;;;;93382:7;;-1:-1:-1;;;;;93409:10:0;;:30;;:45;;93448:4;;93409:45;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;122582:193:0;89382:12;;;;;;;;:31;;;89398:15;:13;:15::i;:::-;89382:47;;;-1:-1:-1;89418:11:0;;;;;;;89417:12;89382:47;89374:106;;;;-1:-1:-1;;;;;89374:106:0;;;;;;;;;89512:12;;;;;;;89511:13;89531:83;;;;89560:12;:19;;-1:-1:-1;;;;89560:19:0;;;;;89588:18;89560:19;89588:18;;;89531:83;122711:22;;:56;;;;;-1:-1:-1;;;;;122711:22:0;;;;:33;;:56;;122745:21;;;;122711:56;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;122711:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122711:56:0;;;;89636:14;89632:57;;;89661:12;:20;;-1:-1:-1;;89661:20:0;;;122582:193;;;:::o;64801:44::-;;;-1:-1:-1;;;;;64801:44:0;;:::o;64982:27::-;;;-1:-1:-1;;;;;64982:27:0;;:::o;64908:22::-;;;-1:-1:-1;;;;;64908:22:0;;:::o;64414:36::-;;;-1:-1:-1;;;;;64414:36:0;;:::o;93164:151::-;93253:10;;:47;;;;;93226:7;;-1:-1:-1;;;;;93253:10:0;;:32;;:47;;93294:4;;93253:47;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93253:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;93253:47:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;93253:47:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;93253:47:0;;;;;;;;;:54;93246:61;;93164:151;:::o;94223:230::-;94302:7;94311;94336:30;94369:22;:20;:22::i;:::-;94336:55;;94410:13;94424:1;94410:16;;;;;;;;;;;;;;94428:13;94442:1;94428:16;;;;;;;;;;;;;;94402:43;;;;;94223:230;;:::o;4044:106::-;-1:-1:-1;;;;;4126:16:0;4099:7;4126:16;;;;;;;;;;;;4044:106::o;129262:76::-;129310:20;:18;:20::i;:::-;129262:76::o;123335:742::-;67362:17;:15;:17::i;:::-;123491:49;123531:8;123491:39;:49::i;:::-;123553:34;123590:47;:45;:47::i;:::-;123650:4;;123677:10;;123650:67;;;;;123553:84;;-1:-1:-1;;;;;;123650:4:0;;;;:18;;:67;;123677:10;;123553:84;;123650:67;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;123650:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;123650:67:0;;;;123730:98;123774:8;123784:26;123812:15;;123730:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;123730:43:0;;-1:-1:-1;;;123730:98:0:i;:::-;123841:48;123880:8;123841:38;:48::i;:::-;123946:10;;123980:7;;124003:14;;123907:162;;;;;;-1:-1:-1;;;;;123946:10:0;;;;123980:7;;;124032:26;;123907:162;;;;;;;;;;67390:1;123335:742;;;:::o;93009:147::-;93101:10;;:47;;;;;93065:16;;-1:-1:-1;;;;;93101:10:0;;:32;;:47;;93142:4;;93101:47;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93101:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;93101:47:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;93101:47:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;93101:47:0;;;;;;;;66348:29;;;;:::o;127724:326::-;127786:42;:40;:42::i;:::-;127841;127886:41;:39;:41::i;:::-;127841:86;;127940:10;;;;;;;;;-1:-1:-1;;;;;127940:10:0;-1:-1:-1;;;;;127940:29:0;;:31;;;;;-1:-1:-1;;;127940:31:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;127940:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;127940:31:0;;;;127984:58;128024:17;127984:39;:58::i;:::-;127724:326;:::o;88023:87::-;88095:7;88088:14;;;;;;;;-1:-1:-1;;88088:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88062:13;;88088:14;;88095:7;;88088:14;;88095:7;88088:14;;;;;;;;;;;;;;;;;;;;;;;;91814:29;;;-1:-1:-1;;;;;91814:29:0;;:::o;125425:467::-;125514:16;125532;125550;125584:42;125616:9;125584:31;:42::i;:::-;125700:36;;:::i;:::-;125739:10;;:30;;;;;-1:-1:-1;;;;;125739:10:0;;;;:19;;:30;;125759:9;;125739:30;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;125739:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;125739:30:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;125739:30:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;125739:30:0;;;;;;;;;125700:69;;125782:43;:41;:43::i;:::-;125845:39;125874:9;125845:28;:39::i;:::-;125838:46;;;;;;;125425:467;;;;;:::o;70282:237::-;70421:16;;;70435:1;70421:16;;;;;;;;;70357;;;;70421;;;;;;;105:10:-1;70421:16:0;88:34:-1;-1:-1;;70472:10:0;;70448:13;;;;-1:-1:-1;;;;;;70472:10:0;;70448:13;;-1:-1:-1;70472:10:0;;70448:13;;;;-1:-1:-1;;;;;70448:35:0;;;:13;;;;;;;;;;;:35;70501:10;-1:-1:-1;70282:237:0;:::o;66819:33::-;;;;:::o;124457:341::-;124561:16;124579;124613:45;124648:9;124613:34;:45::i;:::-;124731:10;;:48;;;;;124678:112;;-1:-1:-1;;;;;124731:10:0;;:22;;:48;;124762:4;;124769:9;;124731:48;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;124731:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;124731:48:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;124731:48:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;124731:48:0;;;;;;;;;124678:38;:112::i;:::-;124671:119;;;;124457:341;;;:::o;128957:180::-;129064:23;:21;:23::i;:::-;129100:29;129112:5;129119:9;129100:11;:29::i;:::-;128957:180;;:::o;92112:568::-;92172:16;92201:55;;:::i;:::-;92259:10;;:72;;;;;-1:-1:-1;;;;;92259:10:0;;;;:33;;:72;;92315:4;;92259:72;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92259:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;92259:72:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;92259:72:0;;;;;;;;;92382:16;;;92396:1;92382:16;;;;;;;;;92201:130;;-1:-1:-1;92344:35:0;;92382:16;;;;17:15:-1;;105:10;92382:16:0;88:34:-1;136:17;;-1:-1;92382:16:0;92344:54;;92433:6;:23;;;92409:18;92428:1;92409:21;;;;;;;;;;;;;:47;;;;;92491:6;:25;;;92467:18;92486:1;92467:21;;;;;;;;;;;;;:49;;;;;92551:6;:24;;;92527:18;92546:1;92527:21;;;;;;;;;;;;;:48;;;;;92610:6;:24;;;92586:18;92605:1;92586:21;;;;;;;;;;;;;;;;;:48;92654:18;-1:-1:-1;;92112:568:0;:::o;93903:312::-;94018:16;;;94032:1;94018:16;;;93956;94018;;;;;93956;;;94018;94032:1;94018:16;;;;;105:10:-1;94018:16:0;88:34:-1;-1:-1;;94064:10:0;;:36;;;;;93985:49;;-1:-1:-1;;;;;;94064:10:0;;:21;;-1:-1:-1;94064:36:0;;94094:4;;94064:36;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94064:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94064:36:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;94064:36:0;;;;;;;;;94045:13;94059:1;94045:16;;;;;;;;;;;;;;;;;:55;94130:10;;:46;;;;;-1:-1:-1;;;;;94130:10:0;;;;:31;;:46;;94170:4;;94130:46;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94130:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94130:46:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;94130:46:0;;;;;;;;;94111:13;94125:1;94111:16;;;;;;;7690:213;7801:10;7775:4;7822:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;7822:29:0;;;;;;;;;;7775:4;;7792:81;;7813:7;;7822:50;;7856:15;7822:50;:33;:50;:::i;4794:140::-;4855:4;4872:32;4882:10;4894:2;4898:5;4872:9;:32::i;92024:::-;;;;:::o;66440:37::-;;;;:::o;64221:::-;;;-1:-1:-1;;;;;64221:37:0;;:::o;66725:24::-;;;-1:-1:-1;;;;;66725:24:0;;:::o;135176:198::-;67362:17;:15;:17::i;:::-;135294:14;:12;:14::i;:::-;135321:22;;:45;;;;;-1:-1:-1;;;;;135321:22:0;;;;:32;;:45;;135354:11;;;;135321:45;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;135321:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;135321:45:0;;;;135176:198;;:::o;92850:151::-;92944:10;;:49;;;;;92908:16;;-1:-1:-1;;;;;92944:10:0;;:34;;:49;;92987:4;;92944:49;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92944:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;92944:49:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;92944:49:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;92944:49:0;;;;;;;;81217:47;81256:8;81217:47;:::o;68450:194::-;67362:17;:15;:17::i;:::-;68596:7;;68567:37;;;;;;68583:11;;-1:-1:-1;;;;;68596:7:0;;68567:37;;;;;;;;;;68615:7;:21;;-1:-1:-1;;;;;;68615:21:0;-1:-1:-1;;;;;68615:21:0;;;;;;;;;;68450:194::o;93470:195::-;93536:48;;:::i;:::-;93609:10;;:48;;;;;-1:-1:-1;;;;;93609:10:0;;;;:33;;:48;;93651:4;;93609:48;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93609:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;93609:48:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;93609:48:0;;;;;;;;4489:131;-1:-1:-1;;;;;4588:15:0;;;4561:7;4588:15;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;4489:131::o;69606:224::-;67362:17;:15;:17::i;:::-;69767:12;;;69733:47;;;;;;69749:16;;-1:-1:-1;;;;;69767:12:0;;69733:47;;;;;;;;;;69791:12;:31;;-1:-1:-1;;;;;;69791:31:0;-1:-1:-1;;;;;69791:31:0;;;;;;;;;;69606:224::o;68652:350::-;67362:17;:15;:17::i;:::-;68766:69;68822:12;68766:55;:69::i;:::-;68848:59;68894:12;68848:45;:59::i;:::-;68925:35;68937:12;68951:8;;68925:35;;;;;;;;;;;;;;;;68971:8;:23;68652:350::o;94461:138::-;94530:16;94566:25;94559:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;94559:32:0;;;;;;;;;;;;;;;;;;;;;;94461:138;:::o;92688:154::-;92782:10;;:52;;;;;92746:16;;-1:-1:-1;;;;;92782:10:0;;:37;;:52;;92828:4;;92782:52;;;;67082:21;;;;;;:::o;64153:17::-;;;-1:-1:-1;;;;;64153:17:0;;:::o;66220:46::-;;;;;;:::o;132989:893::-;133107:53;:51;:53::i;:::-;133245:7;;133173:21;;133197:56;;-1:-1:-1;;;;;133245:7:0;133197:47;:56::i;:::-;133173:80;;133264:21;133288:66;133340:13;133288:51;:66::i;:::-;133264:90;;133367:33;133386:13;133367:18;:33::i;:::-;133413:49;133448:13;133413:34;:49::i;:::-;133475:10;;;;;;;;;-1:-1:-1;;;;;133475:10:0;-1:-1:-1;;;;;133475:26:0;;:28;;;;;-1:-1:-1;;;133475:28:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;133475:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133475:28:0;;;;133560:1;-1:-1:-1;;;;;133521:284:0;;133600:1;133648;133696:14;;133753:13;133781;133521:284;;;;;;;;;;;;;;;;;;;133818:56;133860:13;133818:41;:56::i;64305:19::-;;;-1:-1:-1;;;;;64305:19:0;;:::o;71231:142::-;71319:7;;-1:-1:-1;;;;;71319:7:0;71305:10;:21;71283:82;;;;-1:-1:-1;;;;;71283:82:0;;;;;;;;9789:254;-1:-1:-1;;;;;9882:21:0;;9874:30;;;;;;-1:-1:-1;;;;;9923:19:0;;9915:28;;;;;;-1:-1:-1;;;;;9956:15:0;;;;;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;;:32;;;10004:31;;;;;9983:5;;10004:31;;;;;;;;;;9789:254;;;:::o;75219:127::-;75280:58;75305:32;75280:24;:58::i;73686:466::-;73744:7;73753;73865:18;73886:22;;;;;;;;;-1:-1:-1;;;;;73886:22:0;-1:-1:-1;;;;;73886:38:0;;:40;;;;;-1:-1:-1;;;73886:40:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73886:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73886:40:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;73886:40:0;;;;;;;;;73865:61;;73937:19;73959:42;73990:10;73959:30;:42::i;:::-;73937:64;-1:-1:-1;74018:15:0;;74014:86;;74062:12;;74050:38;;-1:-1:-1;;;;;74062:12:0;74076:11;74050;:38::i;:::-;74120:10;;-1:-1:-1;74132:11:0;-1:-1:-1;73686:466:0;;:::o;75581:281::-;75684:5;;75728:10;;75684:94;;;;;75637:7;;;;-1:-1:-1;;;;;75684:5:0;;;;:21;;:94;;75728:10;;75762:4;;75684:94;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75684:94:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75684:94:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;75684:94:0;;;;;;;;;75657:121;;75798:56;75840:13;:11;:13::i;:::-;75819:11;;75798:33;;:16;;:33;:20;:33;:::i;:::-;:41;:56;:41;:56;:::i;:::-;75791:63;;;75581:281;:::o;135614:168::-;135730:1;135713:14;:18;135691:83;;;;-1:-1:-1;;;;;135691:83:0;;;;;;;;8130:262;-1:-1:-1;;;;;8218:16:0;;8210:25;;;;;;-1:-1:-1;;;;;8266:15:0;;:9;:15;;;;;;;;;;;:26;;8286:5;8266:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;8248:15:0;;;:9;:15;;;;;;;;;;;:44;;;;8319:13;;;;;;;:24;;8337:5;8319:24;:17;:24;:::i;:::-;-1:-1:-1;;;;;8303:13:0;;;:9;:13;;;;;;;;;;;;:40;;;;8359:25;;;;;;;;;;8378:5;;8359:25;;1250:150;1308:7;1341:1;1336;:6;;1328:15;;;;;;-1:-1:-1;1366:5:0;;;1250:150::o;1488:::-;1546:7;1578:5;;;1602:6;;;;1594:15;;;;;107772:173;107844:22;:20;:22::i;109010:528::-;109105:7;109262:11;109276:33;:23;109290:8;;109276:9;:13;;:23;;;;:::i;:::-;:31;:33::i;:::-;109262:47;-1:-1:-1;109326:7:0;;109322:123;;109362:12;;109350:30;;-1:-1:-1;;;;;109362:12:0;109376:3;109350:11;:30::i;:::-;109415:12;;;109402:31;;-1:-1:-1;;;;;109415:12:0;;;;109402:31;;;;109429:3;;109402:31;;;;;;;;;;109322:123;109512:18;:9;109526:3;109512:18;:13;:18;:::i;8744:269::-;-1:-1:-1;;;;;8819:21:0;;8811:30;;;;;;8869:12;;:23;;8886:5;8869:23;:16;:23;:::i;:::-;8854:12;:38;-1:-1:-1;;;;;8924:18:0;;:9;:18;;;;;;;;;;;:29;;8947:5;8924:29;:22;:29;:::i;:::-;-1:-1:-1;;;;;8903:18:0;;:9;:18;;;;;;;;;;;:50;;;;8969:36;;8903:18;;:9;8969:36;;;;8999:5;;8969:36;;;;;;;;;;8744:269;;:::o;89783:476::-;90223:7;90211:20;90246:7;89783:476;:::o;113094:1443::-;113210:58;113235:32;113210:24;:58::i;:::-;113434:17;;113407:22;;:45;;;:26;:45;:::i;:::-;113388:15;:64;;113366:134;;;;-1:-1:-1;;;;;113366:134:0;;;;;;;;;113600:1;113584:13;:11;:13::i;:::-;:17;113562:81;;;;-1:-1:-1;;;;;113562:81:0;;;;;;;;;113743:4;;:33;;;;;-1:-1:-1;;;;;113743:4:0;;;;:14;;:33;;113766:8;;113743:33;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;113743:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;113743:33:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;113743:33:0;;;;;;;;;113721:94;;;;-1:-1:-1;;;;;113721:94:0;;;;;;;;;114087:18;;;;;;;;;-1:-1:-1;;;;;114087:18:0;-1:-1:-1;;;;;114087:36:0;;114124:8;-1:-1:-1;;;;;114124:22:0;;:24;;;;;-1:-1:-1;;;114124:24:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;114124:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;114124:24:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;114124:24:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;114124:24:0;;;;;;;;;114087:62;;;;;-1:-1:-1;;;114087:62:0;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;114087:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;114087:62:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;114087:62:0;;;;;;;;;114065:129;;;;-1:-1:-1;;;;;114065:129:0;;;;;;;;;114460:10;;114439:42;;-1:-1:-1;;;;;114460:10:0;114472:8;114439:20;:42::i;:::-;114417:112;;;;-1:-1:-1;;;;;114417:112:0;;;;;;;;114803:451;114946:5;;114976:10;;114946:57;;;;;114893:7;;;;-1:-1:-1;;;;;114946:5:0;;;;:21;;:57;;114976:10;;114997:4;;114946:57;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;114946:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;114946:57:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;114946:57:0;;;;;;;;;114918:85;;115014:29;115046:10;;;;;;;;;-1:-1:-1;;;;;115046:10:0;-1:-1:-1;;;;;115046:22:0;;:24;;;;;-1:-1:-1;;;115046:24:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115046:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;115046:24:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;115046:24:0;;;;;;;;;115014:56;-1:-1:-1;115179:67:0;115201:44;:17;115014:56;115201:44;:21;:44;:::i;:::-;115179:17;;:67;:21;:67;:::i;:::-;115172:74;;;;114803:451;:::o;115624:355::-;115815:10;;115855;;115815:156;;;;;-1:-1:-1;;;;;115815:10:0;;;;:25;;:156;;115855:10;;;115880:8;;115903:27;;115945:15;;115815:156;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115815:156:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;115815:156:0;;;;115624:355;;;:::o;116134:206::-;116205:7;:18;;-1:-1:-1;;;;;;116205:18:0;-1:-1:-1;;;;;116205:18:0;;;;;116234:14;:51;;116251:34;;116234:14;-1:-1:-1;;116234:51:0;-1:-1:-1;116251:34:0;116234:51;;;;-1:-1:-1;;116317:15:0;116296:18;:36;116134:206::o;103094:363::-;103220:60;103245:34;103220:24;:60::i;:::-;103356:20;:18;:20::i;:::-;:44;;;;103380:20;:18;:20::i;:::-;103334:115;;;;-1:-1:-1;;;;;103334:115:0;;;;;;;;103662:219;103793:9;;103744:24;;103793:9;;:80;;103841:32;103793:80;;;-1:-1:-1;103805:33:0;;103662:219::o;104036:464::-;104161:47;104189:18;104161:27;:47::i;:::-;104221:51;104253:18;104221:31;:51::i;:::-;104285:14;:35;;104302:18;;104285:14;-1:-1:-1;;104285:35:0;;104302:18;104285:35;;;;;;;;;;;;-1:-1:-1;104348:14:0;;:21;;104367:1;104348:21;:18;:21;:::i;:::-;104331:14;:38;-1:-1:-1;104405:15:0;104380:22;:40;104433:7;:31;;-1:-1:-1;;;;;;104433:31:0;;;104475:9;:17;;-1:-1:-1;;104475:17:0;;;104036:464::o;111272:184::-;111381:24;:22;:24::i;:::-;111418:30;111438:9;111418:19;:30::i;111552:138::-;111629:9;;;;111624:59;;111655:9;:16;;-1:-1:-1;;111655:16:0;111667:4;111655:16;;;111552:138::o;45535:253::-;45720:20;;45742:17;;;;45761:18;;;;;45720:20;;45535:253::o;110792:267::-;110904:60;110929:34;110904:24;:60::i;:::-;111011:1;110999:9;:13;110977:74;;;;-1:-1:-1;;;;;110977:74:0;;;;;;;;45796:223;45973:17;;;;45992:18;;;;45796:223;;;:::o;108157:541::-;108229:63;108257:34;108229:27;:63::i;:::-;108327:33;108309:14;;;;:51;;;;;;;;;108305:386;;;108463:24;:22;:24::i;:::-;108305:386;;;108657:22;:20;:22::i;9247:269::-;-1:-1:-1;;;;;9322:21:0;;9314:30;;;;;;9372:12;;:23;;9389:5;9372:23;:16;:23;:::i;:::-;9357:12;:38;-1:-1:-1;;;;;9427:18:0;;:9;:18;;;;;;;;;;;:29;;9450:5;9427:29;:22;:29;:::i;:::-;-1:-1:-1;;;;;9406:18:0;;:9;:18;;;;;;;;;;;:50;;;;9472:36;;;;;;9502:5;;9472:36;;62675:154;62608:4;62772:6;:29;;62764:57;;;;-1:-1:-1;;;;;62764:57:0;;;;;;;;62837:194;62938:27;:6;62662:4;62938:27;:10;:27;:::i;:::-;:32;62916:107;;;;-1:-1:-1;;;;;62916:107:0;;;;;;;;81406:157;81495:60;81520:34;81495:24;:60::i;82593:602::-;82715:7;82799:42;;:::i;:::-;82844:49;82882:9;82844:29;:49::i;:::-;82799:94;;82904:22;82929:33;82953:8;82929:23;:33::i;:::-;82904:58;;83074:19;83096:60;83115:40;83134:8;:20;;;83115:14;:18;;:40;;;;:::i;83096:60::-;83074:82;82593:602;-1:-1:-1;;;;;82593:602:0:o;85321:465::-;85450:7;85566:31;85600:30;85618:11;;85600:13;:11;:13::i;:::-;:17;:30;:17;:30;:::i;:::-;85566:64;-1:-1:-1;85735:43:0;:14;85566:64;85735:43;:18;:43;:::i;81741:192::-;81837:4;;81877:7;;81837:88;;;;;-1:-1:-1;;;;;81837:4:0;;;;:17;;:88;;81877:7;;;81900:14;;81837:88;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81837:88:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81837:88:0;;;;81741:192;:::o;82067:401::-;82170:14;:49;;-1:-1:-1;;82170:49:0;;;82255:15;82230:22;:40;82294:7;;82281:10;:20;;-1:-1:-1;;;;;;82281:20:0;-1:-1:-1;;;;;82294:7:0;;;82281:20;;;;;;82312:10;:27;;;82367:14;;:21;;-1:-1:-1;82367:18:0;:21::i;:::-;82350:14;:38;-1:-1:-1;82401:7:0;:31;;-1:-1:-1;;;;;;82401:31:0;;;82443:9;:17;;-1:-1:-1;;82443:17:0;;;82067:401::o;71712:203::-;71852:14;71834:32;;;;;;;;:14;;;;:32;;;;;;;;;71812:95;;;;-1:-1:-1;;;;;71812:95:0;;;;;;;;74763:372;74892:7;74947:9;74959:33;74978:13;:11;:13::i;:::-;74959:14;;:33;:18;:33;:::i;:::-;74947:45;;75043:9;75055:44;75084:14;75055:24;:22;:24::i;:::-;:28;:44;:28;:44;:::i;:::-;75043:56;-1:-1:-1;75119:8:0;:1;75043:56;75119:8;:5;:8;:::i;:::-;75112:15;74763:372;-1:-1:-1;;;;74763:372:0:o;241:433::-;299:7;543:6;539:47;;-1:-1:-1;573:1:0;566:8;;539:47;610:5;;;614:1;610;:5;:1;634:5;;;;;:10;626:19;;;;;13214:169;13302:7;;13334:8;:1;13340;13334:8;:5;:8;:::i;:::-;:12;:41;;13367:8;:1;13373;13367:8;:5;:8;:::i;:::-;13334:41;;;13349:15;13362:1;13349:8;:1;13355;13349:8;:5;:8;:::i;:::-;:12;:15;:12;:15;:::i;71381:150::-;71482:4;;-1:-1:-1;;;;;71482:4:0;71460:10;:27;71438:85;;;;-1:-1:-1;;;;;71438:85:0;;;;;;;;12420:153;12514:7;12546:19;:1;11415:8;12546:19;:5;:19;:::i;116766:444::-;116913:4;116935:26;116964:11;-1:-1:-1;;;;;116964:23:0;;:25;;;;;-1:-1:-1;;;116964:25:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116964:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;116964:25:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;116964:25:0;;;;;;;;;116935:54;;117000:26;117029:8;-1:-1:-1;;;;;117029:20:0;;:22;;;;;-1:-1:-1;;;117029:22:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;117029:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;117029:22:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;117029:22:0;;;;;;;;;117000:51;;117071:126;117138:48;117147:18;117167;117138:8;:48::i;:::-;117071;117080:18;117100;117071:8;:48::i;:::-;:52;:126;:52;:126;:::i;:::-;:131;;116766:444;-1:-1:-1;;;;;116766:444:0:o;1799:124::-;1857:7;1885:6;1877:15;;;;;;1914:1;1910;:5;;;;;;;1799:124;-1:-1:-1;;;1799:124:0:o;104725:160::-;104833:10;;:44;;;;;104804:4;;-1:-1:-1;;;;;104833:10:0;;:29;;:44;;104871:4;;104833:44;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104833:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;104833:44:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;104833:44:0;;;;;;;;105138:235;105216:4;105238:25;105266:43;105289:19;;105266:18;;:22;;:43;;;;:::i;:::-;105329:15;:36;;;-1:-1:-1;;105138:235:0;:::o;105462:461::-;105620:32;105597:18;:55;;;;;;;;;105593:323;;;105719:10;;105669:21;;105693:37;;-1:-1:-1;;;;;105719:10:0;105693:25;:37::i;:::-;105802:4;;105846:10;;105802:102;;;;;105669:61;;-1:-1:-1;;;;;;105802:4:0;;;;:17;;:102;;105846:10;;105669:61;;105802:102;;;;106091:462;106253:33;106230:18;:56;;;;;;;;;106226:320;;;106343:10;;:26;;;;;;;;106303:37;;-1:-1:-1;;;;;106343:10:0;;:24;;:26;;;;;:10;;:26;;;;;;;:10;:26;;;5:2:-1;;;;30:1;27;20:12;5:2;106343:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;106343:26:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;106343:26:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;106343:26:0;;;;;;;;;106303:66;;106384:34;106421:7;;;;;;;;;-1:-1:-1;;;;;106421:7:0;-1:-1:-1;;;;;106421:21:0;;:23;;;;;-1:-1:-1;;;106421:23:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106421:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;106421:23:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;106421:23:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;106421:23:0;;;;;;;;;106384:60;-1:-1:-1;106489:45:0;:20;106384:60;106489:45;:26;:45;:::i;:::-;106461:73;;;;:25;;:73;;;;;;:::i;:::-;;106226:320;;106091:462;:::o;71539:165::-;71620:4;;:29;;;;;-1:-1:-1;;;;;71620:4:0;;;;:17;;:29;;71638:10;;71620:29;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71620:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71620:29:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;71620:29:0;;;;;;;;;71598:98;;;;-1:-1:-1;;;;;71598:98:0;;;;;;;;71923:206;72066:14;72048:32;;;;;;;;:14;;;;:32;;;;;;;;;;72026:95;;;;-1:-1:-1;;;;;72026:95:0;;;;;;;;79706:584;79809:17;;:::i;:::-;79884:18;79915:4;79884:36;;79972:19;79994:8;-1:-1:-1;;;;;79994:20:0;;:22;;;;;-1:-1:-1;;;79994:22:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79994:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79994:22:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;79994:22:0;;;;;;;;;79972:44;;80027:27;80057:8;-1:-1:-1;;;;;80057:22:0;;:24;;;;;-1:-1:-1;;;80057:24:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80057:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80057:24:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;80057:24:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;80057:24:0;;;;;;;;;80027:54;;80092:22;80117:8;-1:-1:-1;;;;;80117:17:0;;:19;;;;;-1:-1:-1;;;80117:19:0;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80117:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80117:19:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;80117:19:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;80117:19:0;;;;;;;;;80156:126;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80156:126:0;79706:584;-1:-1:-1;;;79706:584:0:o;86061:1103::-;86204:7;86229:22;86254:23;:21;:23::i;:::-;86229:48;-1:-1:-1;86295:9:0;86290:833;86314:9;:20;;;:27;86310:1;:31;86290:833;;;86468:5;;86508:20;;;;:23;;86442;;-1:-1:-1;;;;;86468:5:0;;:21;;86529:1;;86508:23;;;;;;;;;;;;86558:4;86468:110;;;;;-1:-1:-1;;;86468:110:0;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86468:110:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86468:110:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;86468:110:0;;;;;;;;;86442:136;;86885:28;86916:66;86960:9;:21;;;86916:39;86936:9;:15;;;86952:1;86936:18;;;;;;;;;;;;;;86916:15;:19;;:39;;;;:::i;:::-;:43;:66;:43;:66;:::i;:::-;86885:97;;87024:14;87001:20;:37;86997:115;;;87076:20;87059:37;;86997:115;-1:-1:-1;;86343:3:0;;86290:833;;;-1:-1:-1;87142:14:0;86061:1103;-1:-1:-1;;86061:1103:0:o;809:303::-;867:7;966:1;962;:5;954:14;;;;;;979:9;995:1;991;:5;;;;;;;809:303;-1:-1:-1;;;;809:303:0:o;11589:125::-;11415:8;11589:125;:::o;76284:106::-;76342:7;76373:1;76369;:5;:13;;76381:1;76369:13;;;-1:-1:-1;76377:1:0;;76284:106;-1:-1:-1;76284:106:0:o;76101:107::-;76159:7;76191:1;76186;:6;;:14;;76199:1;76186:14;;98244:364;98322:16;98351:31;98385:16;98396:1;98399;98385:10;:16::i;:::-;98351:50;;98412:32;98447:16;98458:1;98461;98447:10;:16::i;:::-;98412:51;;98474:29;98506:15;98516:1;98519;98506:9;:15::i;:::-;98474:47;;98539:61;98546:14;98562:37;98569:12;98583:15;98562:6;:37::i;:::-;98539:6;:61::i;:::-;98532:68;98244:364;-1:-1:-1;;;;;;98244:364:0:o;11858:124::-;-1:-1:-1;;11858:124:0;:::o;98830:802::-;98913:16;98942:14;98959:1;:8;98942:25;;98978:24;99016:6;99005:18;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;99005:18:0;-1:-1:-1;98978:45:0;-1:-1:-1;99034:13:0;;99141:196;99165:6;99161:1;:10;99141:196;;;99193:9;99205:1;99207;99205:4;;;;;;;;;;;;;;99193:16;;99229:14;99238:1;99241;99229:8;:14::i;:::-;99224:102;;99280:4;99264:10;99275:1;99264:13;;;;;;;;:20;;;:13;;;;;;;;;;;:20;99303:7;;;;;99224:102;-1:-1:-1;99173:3:0;;99141:196;;;;99347:29;99393:5;99379:20;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;99379:20:0;-1:-1:-1;99347:52:0;-1:-1:-1;99410:9:0;;99434:161;99458:6;99454:1;:10;99434:161;;;99490:10;99501:1;99490:13;;;;;;;;;;;;;;99486:98;;;99542:1;99544;99542:4;;;;;;;;;;;;;;99524:12;99537:1;99524:15;;;;;;;;-1:-1:-1;;;;;99524:22:0;;;:15;;;;;;;;;;;:22;99565:3;;;;;99486:98;99466:3;;99434:161;;;-1:-1:-1;99612:12:0;;98830:802;-1:-1:-1;;;;;;;98830:802:0:o;97332:705::-;97414:16;97443:14;97460:1;:8;97443:25;;97479:24;97517:6;97506:18;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;97506:18:0;-1:-1:-1;97479:45:0;-1:-1:-1;97535:17:0;;97567:171;97591:6;97587:1;:10;97567:171;;;97623:17;97632:1;97635;97637;97635:4;;;;;;;;;;;;;;97623:8;:17::i;:::-;97619:108;;;97677:4;97661:10;97672:1;97661:13;;;;;;;;:20;;;:13;;;;;;;;;;;:20;97700:11;;;;;97619:108;97599:3;;97567:171;;;;97748:29;97794:9;97780:24;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;97780:24:0;-1:-1:-1;97748:56:0;-1:-1:-1;97815:9:0;;97839:161;97863:6;97859:1;:10;97839:161;;;97895:10;97906:1;97895:13;;;;;;;;;;;;;;97891:98;;;97947:1;97949;97947:4;;;;;;;;;;;;;;97929:12;97942:1;97929:15;;;;;;;;-1:-1:-1;;;;;97929:22:0;;;:15;;;;;;;;;;;:22;97970:3;;;;;97891:98;97871:3;;97839:161;;96078:488;96157:16;96186:15;96204:1;:8;96186:26;;96223:15;96241:1;:8;96223:26;;96260:29;96316:7;96306;:17;96292:32;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;96292:32:0;-1:-1:-1;96260:64:0;-1:-1:-1;96340:9:0;96335:87;96359:7;96355:1;:11;96335:87;;;96406:1;96408;96406:4;;;;;;;;;;;;;;96388:12;96401:1;96388:15;;;;;;;;-1:-1:-1;;;;;96388:22:0;;;:15;;;;;;;;;;;:22;96368:3;;96335:87;;;-1:-1:-1;96437:9:0;96432:97;96456:7;96452:1;:11;96432:97;;;96513:1;96515;96513:4;;;;;;;;;;;;;;96485:12;96508:1;96498:7;:11;96485:25;;;;;;;;-1:-1:-1;;;;;96485:32:0;;;:25;;;;;;;;;;;:32;96465:3;;96432:97;;;-1:-1:-1;96546:12:0;96078:488;-1:-1:-1;;;;;96078:488:0:o;95732:163::-;95804:4;95821:9;95852:13;95860:1;95863;95291:8;;95248:7;;;;;95310:129;95334:6;95330:1;:10;95310:129;;;95374:1;-1:-1:-1;;;;;95366:9:0;:1;95368;95366:4;;;;;;;;;;;;;;-1:-1:-1;;;;;95366:9:0;;95362:66;;;95404:1;-1:-1:-1;95407:4:0;;-1:-1:-1;95396:16:0;;-1:-1:-1;95396:16:0;95362:66;95342:3;;95310:129;;;-1:-1:-1;95457:1:0;;-1:-1:-1;95457:1:0;;-1:-1:-1;;95177:297:0;;;;;;:::o;130268:5517::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;130268:5517:0;-1:-1:-1;;;;;130268:5517:0;;;;;;;;;;;-1:-1:-1;130268:5517:0;;;;;;;-1:-1:-1;130268:5517:0;;;-1:-1:-1;130268:5517:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;;130268:5517:0;;;;;;;5:118:-1;;72:46;110:6;97:20;72:46;;130:122;;208:39;239:6;233:13;208:39;;277:714;;401:3;394:4;386:6;382:17;378:27;368:2;;419:1;416;409:12;368:2;449:6;443:13;471:76;486:60;539:6;486:60;;;471:76;;;462:85;;564:5;589:6;582:5;575:21;619:4;611:6;607:17;597:27;;641:4;636:3;632:14;625:21;;694:6;741:3;733:4;725:6;721:17;716:3;712:27;709:36;706:2;;;758:1;755;748:12;706:2;783:1;768:217;793:6;790:1;787:13;768:217;;;851:3;873:48;917:3;905:10;873:48;;;861:61;;-1:-1;945:4;936:14;;;;964;;;;;815:1;808:9;768:217;;;772:14;361:630;;;;;;;;1017:722;;1145:3;1138:4;1130:6;1126:17;1122:27;1112:2;;1163:1;1160;1153:12;1112:2;1193:6;1187:13;1215:80;1230:64;1287:6;1230:64;;1215:80;1206:89;;1312:5;1337:6;1330:5;1323:21;1367:4;1359:6;1355:17;1345:27;;1389:4;1384:3;1380:14;1373:21;;1442:6;1489:3;1481:4;1473:6;1469:17;1464:3;1460:27;1457:36;1454:2;;;1506:1;1503;1496:12;1454:2;1531:1;1516:217;1541:6;1538:1;1535:13;1516:217;;;1599:3;1621:48;1665:3;1653:10;1621:48;;;1609:61;;-1:-1;1693:4;1684:14;;;;1712;;;;;1563:1;1556:9;1516:217;;1765:714;;1889:3;1882:4;1874:6;1870:17;1866:27;1856:2;;1907:1;1904;1897:12;1856:2;1937:6;1931:13;1959:76;1974:60;2027:6;1974:60;;1959:76;1950:85;;2052:5;2077:6;2070:5;2063:21;2107:4;2099:6;2095:17;2085:27;;2129:4;2124:3;2120:14;2113:21;;2182:6;2229:3;2221:4;2213:6;2209:17;2204:3;2200:27;2197:36;2194:2;;;2246:1;2243;2236:12;2194:2;2271:1;2256:217;2281:6;2278:1;2275:13;2256:217;;;2339:3;2361:48;2405:3;2393:10;2361:48;;;2349:61;;-1:-1;2433:4;2424:14;;;;2452;;;;;2303:1;2296:9;2256:217;;2505:722;;2633:3;2626:4;2618:6;2614:17;2610:27;2600:2;;2651:1;2648;2641:12;2600:2;2681:6;2675:13;2703:80;2718:64;2775:6;2718:64;;2703:80;2694:89;;2800:5;2825:6;2818:5;2811:21;2855:4;2847:6;2843:17;2833:27;;2877:4;2872:3;2868:14;2861:21;;2930:6;2977:3;2969:4;2961:6;2957:17;2952:3;2948:27;2945:36;2942:2;;;2994:1;2991;2984:12;2942:2;3019:1;3004:217;3029:6;3026:1;3023:13;3004:217;;;3087:3;3109:48;3153:3;3141:10;3109:48;;;3097:61;;-1:-1;3181:4;3172:14;;;;3200;;;;;3051:1;3044:9;3004:217;;3235:116;;3310:36;3338:6;3332:13;3310:36;;3372:335;;;3486:3;3479:4;3471:6;3467:17;3463:27;3453:2;;3504:1;3501;3494:12;3453:2;-1:-1;3524:20;;3564:18;3553:30;;3550:2;;;3596:1;3593;3586:12;3550:2;3630:4;3622:6;3618:17;3606:29;;3680:3;3673;3665:6;3661:16;3651:8;3647:31;3644:40;3641:2;;;3697:1;3694;3687:12;3715:158;;3802:66;3860:6;3847:20;3802:66;;4096:875;;4235:4;4223:9;4218:3;4214:19;4210:30;4207:2;;;4253:1;4250;4243:12;4207:2;4271:20;4286:4;4271:20;;;4262:29;-1:-1;4353:1;4384:60;4440:3;4420:9;4384:60;;;4360:85;;-1:-1;4520:2;4553:60;4609:3;4585:22;;;4553:60;;;4546:4;4539:5;4535:16;4528:86;4466:159;4688:2;4721:60;4777:3;4768:6;4757:9;4753:22;4721:60;;;4714:4;4707:5;4703:16;4696:86;4635:158;4856:2;4889:60;4945:3;4936:6;4925:9;4921:22;4889:60;;;4882:4;4875:5;4871:16;4864:86;4803:158;4201:770;;;;;5011:966;;5138:4;5126:9;5121:3;5117:19;5113:30;5110:2;;;5156:1;5153;5146:12;5110:2;5174:20;5189:4;5174:20;;;5249:24;;5165:29;;-1:-1;5293:18;5282:30;;5279:2;;;5325:1;5322;5315:12;5279:2;5359:81;5436:3;5427:6;5416:9;5412:22;5359:81;;;5335:106;;-1:-1;5525:2;5510:18;;5504:25;5549:18;5538:30;;5535:2;;;5581:1;5578;5571:12;5535:2;5616:81;5693:3;5684:6;5673:9;5669:22;5616:81;;;5609:4;5602:5;5598:16;5591:107;5462:247;5783:2;5772:9;5768:18;5762:25;5807:18;5799:6;5796:30;5793:2;;;5839:1;5836;5829:12;5793:2;5874:81;5951:3;5942:6;5931:9;5927:22;5874:81;;;5867:4;5860:5;5856:16;5849:107;5719:248;5104:873;;;;;5984:118;;6051:46;6089:6;6076:20;6051:46;;6109:122;;6187:39;6218:6;6212:13;6187:39;;6238:241;;6342:2;6330:9;6321:7;6317:23;6313:32;6310:2;;;6358:1;6355;6348:12;6310:2;6393:1;6410:53;6455:7;6435:9;6410:53;;6486:366;;;6607:2;6595:9;6586:7;6582:23;6578:32;6575:2;;;6623:1;6620;6613:12;6575:2;6658:1;6675:53;6720:7;6700:9;6675:53;;;6665:63;;6637:97;6765:2;6783:53;6828:7;6819:6;6808:9;6804:22;6783:53;;;6773:63;;6744:98;6569:283;;;;;;6859:491;;;;6997:2;6985:9;6976:7;6972:23;6968:32;6965:2;;;7013:1;7010;7003:12;6965:2;7048:1;7065:53;7110:7;7090:9;7065:53;;;7055:63;;7027:97;7155:2;7173:53;7218:7;7209:6;7198:9;7194:22;7173:53;;;7163:63;;7134:98;7263:2;7281:53;7326:7;7317:6;7306:9;7302:22;7281:53;;;7271:63;;7242:98;6959:391;;;;;;7357:366;;;7478:2;7466:9;7457:7;7453:23;7449:32;7446:2;;;7494:1;7491;7484:12;7446:2;7529:1;7546:53;7591:7;7571:9;7546:53;;;7536:63;;7508:97;7636:2;7654:53;7699:7;7690:6;7679:9;7675:22;7654:53;;7730:392;;7870:2;7858:9;7849:7;7845:23;7841:32;7838:2;;;7886:1;7883;7876:12;7838:2;7921:24;;7965:18;7954:30;;7951:2;;;7997:1;7994;7987:12;7951:2;8017:89;8098:7;8089:6;8078:9;8074:22;8017:89;;8129:392;;8269:2;8257:9;8248:7;8244:23;8240:32;8237:2;;;8285:1;8282;8275:12;8237:2;8320:24;;8364:18;8353:30;;8350:2;;;8396:1;8393;8386:12;8350:2;8416:89;8497:7;8488:6;8477:9;8473:22;8416:89;;8528:257;;8640:2;8628:9;8619:7;8615:23;8611:32;8608:2;;;8656:1;8653;8646:12;8608:2;8691:1;8708:61;8761:7;8741:9;8708:61;;8792:365;;;8915:2;8903:9;8894:7;8890:23;8886:32;8883:2;;;8931:1;8928;8921:12;8883:2;8966:31;;9017:18;9006:30;;9003:2;;;9049:1;9046;9039:12;9003:2;9077:64;9133:7;9124:6;9113:9;9109:22;9077:64;;;9067:74;;;;8945:202;8877:280;;;;;;9164:281;;9288:2;9276:9;9267:7;9263:23;9259:32;9256:2;;;9304:1;9301;9294:12;9256:2;9339:1;9356:73;9421:7;9401:9;9356:73;;9452:526;;;;9610:2;9598:9;9589:7;9585:23;9581:32;9578:2;;;9626:1;9623;9616:12;9578:2;9661:1;9678:71;9741:7;9721:9;9678:71;;;9668:81;;9640:115;9814:2;9803:9;9799:18;9786:32;9838:18;9830:6;9827:30;9824:2;;;9870:1;9867;9860:12;9824:2;9898:64;9954:7;9945:6;9934:9;9930:22;9898:64;;;9888:74;;;;9765:203;9572:406;;;;;;9985:342;;10139:3;10127:9;10118:7;10114:23;10110:33;10107:2;;;10156:1;10153;10146:12;10107:2;10191:1;10208:103;10303:7;10283:9;10208:103;;10334:396;;10476:2;10464:9;10455:7;10451:23;10447:32;10444:2;;;10492:1;10489;10482:12;10444:2;10527:24;;10571:18;10560:30;;10557:2;;;10603:1;10600;10593:12;10557:2;10623:91;10706:7;10697:6;10686:9;10682:22;10623:91;;10737:241;;10841:2;10829:9;10820:7;10816:23;10812:32;10809:2;;;10857:1;10854;10847:12;10809:2;10892:1;10909:53;10954:7;10934:9;10909:53;;10985:263;;11100:2;11088:9;11079:7;11075:23;11071:32;11068:2;;;11116:1;11113;11106:12;11068:2;11151:1;11168:64;11224:7;11204:9;11168:64;;11256:173;;11343:46;11385:3;11377:6;11343:46;;;-1:-1;;11418:4;11409:14;;11336:93;11438:173;;11525:46;11567:3;11559:6;11525:46;;11619:142;11710:45;11749:5;11710:45;;;11705:3;11698:58;11692:69;;;11768:110;11841:31;11866:5;11841:31;;12043:621;;12188:54;12236:5;12188:54;;;12255:86;12334:6;12329:3;12255:86;;;12248:93;;12361:56;12411:5;12361:56;;;12438:1;12423:219;12448:6;12445:1;12442:13;12423:219;;;12495:63;12554:3;12545:6;12539:13;12495:63;;;12488:70;;12575:60;12628:6;12575:60;;;12565:70;-1:-1;12470:1;12463:9;12423:219;;;-1:-1;12655:3;;12167:497;-1:-1;;;;12167:497;12703:621;;12848:54;12896:5;12848:54;;;12915:86;12994:6;12989:3;12915:86;;;12908:93;;13021:56;13071:5;13021:56;;;13098:1;13083:219;13108:6;13105:1;13102:13;13083:219;;;13155:63;13214:3;13205:6;13199:13;13155:63;;;13148:70;;13235:60;13288:6;13235:60;;;13225:70;-1:-1;13130:1;13123:9;13083:219;;13332:111;13409:28;13431:5;13409:28;;13471:287;;13584:70;13647:6;13642:3;13584:70;;;13577:77;;13659:43;13695:6;13690:3;13683:5;13659:43;;;13723:29;13745:6;13723:29;;;13714:39;;;;13571:187;-1:-1;;;13571:187;13765:343;;13875:38;13907:5;13875:38;;;13925:70;13988:6;13983:3;13925:70;;;13918:77;;14000:52;14045:6;14040:3;14033:4;14026:5;14022:16;14000:52;;;14073:29;14095:6;14073:29;;14115:154;14212:51;14257:5;14212:51;;15326:140;15416:44;15454:5;15416:44;;15473:142;15564:45;15603:5;15564:45;;15977:364;;16137:67;16201:2;16196:3;16137:67;;;16237:66;16217:87;;16332:2;16323:12;;16123:218;-1:-1;;16123:218;16350:364;;16510:67;16574:2;16569:3;16510:67;;;16610:66;16590:87;;16705:2;16696:12;;16496:218;-1:-1;;16496:218;16723:364;;16883:67;16947:2;16942:3;16883:67;;;16983:66;16963:87;;17078:2;17069:12;;16869:218;-1:-1;;16869:218;17096:364;;17256:67;17320:2;17315:3;17256:67;;;17356:66;17336:87;;17451:2;17442:12;;17242:218;-1:-1;;17242:218;17469:364;;17629:67;17693:2;17688:3;17629:67;;;17729:66;17709:87;;17824:2;17815:12;;17615:218;-1:-1;;17615:218;17842:364;;18002:67;18066:2;18061:3;18002:67;;;18102:66;18082:87;;18197:2;18188:12;;17988:218;-1:-1;;17988:218;18215:364;;18375:67;18439:2;18434:3;18375:67;;;18475:66;18455:87;;18570:2;18561:12;;18361:218;-1:-1;;18361:218;18588:364;;18748:67;18812:2;18807:3;18748:67;;;18848:66;18828:87;;18943:2;18934:12;;18734:218;-1:-1;;18734:218;18961:364;;19121:67;19185:2;19180:3;19121:67;;;19221:66;19201:87;;19316:2;19307:12;;19107:218;-1:-1;;19107:218;19334:465;;19494:67;19558:2;19553:3;19494:67;;;19594:66;19574:87;;19695:66;19690:2;19681:12;;19674:88;19790:2;19781:12;;19480:319;-1:-1;;19480:319;19808:364;;19968:67;20032:2;20027:3;19968:67;;;20068:66;20048:87;;20163:2;20154:12;;19954:218;-1:-1;;19954:218;20181:363;;20341:66;20405:1;20400:3;20341:66;;;20440;20420:87;;20535:2;20526:12;;20327:217;-1:-1;;20327:217;20553:364;;20713:67;20777:2;20772:3;20713:67;;;20813:66;20793:87;;20908:2;20899:12;;20699:218;-1:-1;;20699:218;20926:364;;21086:67;21150:2;21145:3;21086:67;;;21186:66;21166:87;;21281:2;21272:12;;21072:218;-1:-1;;21072:218;21299:364;;21459:67;21523:2;21518:3;21459:67;;;21559:66;21539:87;;21654:2;21645:12;;21445:218;-1:-1;;21445:218;21672:364;;21832:67;21896:2;21891:3;21832:67;;;21932:66;21912:87;;22027:2;22018:12;;21818:218;-1:-1;;21818:218;22151:854;22399:22;;22322:4;22313:14;;;22427:61;22317:3;22399:22;22427:61;;;22342:152;22580:4;22573:5;22569:16;22563:23;22592:62;22648:4;22643:3;22639:14;22626:11;22592:62;;;22504:156;22745:4;22738:5;22734:16;22728:23;22757:62;22813:4;22808:3;22804:14;22791:11;22757:62;;;22670:155;22910:4;22903:5;22899:16;22893:23;22922:62;22978:4;22973:3;22969:14;22956:11;23012:110;23085:31;23110:5;23085:31;;23256:114;23335:29;23358:5;23335:29;;23377:213;23495:2;23480:18;;23509:71;23484:9;23553:6;23509:71;;23597:229;23723:2;23708:18;;23737:79;23712:9;23789:6;23737:79;;23833:324;23979:2;23964:18;;23993:71;23968:9;24037:6;23993:71;;;24075:72;24143:2;24132:9;24128:18;24119:6;24075:72;;24164:547;24366:3;24351:19;;24381:71;24355:9;24425:6;24381:71;;;24463:72;24531:2;24520:9;24516:18;24507:6;24463:72;;;24546;24614:2;24603:9;24599:18;24590:6;24546:72;;;24629;24697:2;24686:9;24682:18;24673:6;24629:72;;24718:324;24864:2;24849:18;;24878:71;24853:9;24922:6;24878:71;;;24960:72;25028:2;25017:9;25013:18;25004:6;24960:72;;25049:361;25217:2;25231:47;;;25202:18;;25292:108;25202:18;25386:6;25292:108;;25417:879;25741:2;25755:47;;;25726:18;;25816:108;25726:18;25910:6;25816:108;;;25808:116;;25972:9;25966:4;25962:20;25957:2;25946:9;25942:18;25935:48;25997:108;26100:4;26091:6;25997:108;;;25989:116;;26153:9;26147:4;26143:20;26138:2;26127:9;26123:18;26116:48;26178:108;26281:4;26272:6;26178:108;;26303:361;26471:2;26485:47;;;26456:18;;26546:108;26456:18;26640:6;26546:108;;26671:620;26917:2;26931:47;;;26902:18;;26992:108;26902:18;27086:6;26992:108;;;26984:116;;27148:9;27142:4;27138:20;27133:2;27122:9;27118:18;27111:48;27173:108;27276:4;27267:6;27173:108;;27298:201;27410:2;27395:18;;27424:65;27399:9;27462:6;27424:65;;27506:317;27652:2;27666:47;;;27637:18;;27727:86;27637:18;27799:6;27791;27727:86;;27830:241;27962:2;27947:18;;27976:85;27951:9;28034:6;27976:85;;29142:703;29398:3;29383:19;;29413:89;29387:9;29475:6;29413:89;;;29513:90;29599:2;29588:9;29584:18;29575:6;29513:90;;;29614:72;29682:2;29671:9;29667:18;29658:6;29614:72;;;29734:9;29728:4;29724:20;29719:2;29708:9;29704:18;29697:48;29759:76;29830:4;29821:6;29759:76;;30360:227;30485:2;30470:18;;30499:78;30474:9;30550:6;30499:78;;30594:691;30840:3;30825:19;;30855:79;30829:9;30907:6;30855:79;;;30945:80;31021:2;31010:9;31006:18;30997:6;30945:80;;;31036:72;31104:2;31093:9;31089:18;31080:6;31036:72;;;31119;31187:2;31176:9;31172:18;31163:6;31119:72;;;31202:73;31270:3;31259:9;31255:19;31246:6;31202:73;;31292:301;31430:2;31444:47;;;31415:18;;31505:78;31415:18;31569:6;31505:78;;31600:407;31791:2;31805:47;;;31776:18;;31866:131;31776:18;31866:131;;32014:407;32205:2;32219:47;;;32190:18;;32280:131;32190:18;32280:131;;32428:407;32619:2;32633:47;;;32604:18;;32694:131;32604:18;32694:131;;32842:407;33033:2;33047:47;;;33018:18;;33108:131;33018:18;33108:131;;33256:407;33447:2;33461:47;;;33432:18;;33522:131;33432:18;33522:131;;33670:407;33861:2;33875:47;;;33846:18;;33936:131;33846:18;33936:131;;34084:407;34275:2;34289:47;;;34260:18;;34350:131;34260:18;34350:131;;34498:407;34689:2;34703:47;;;34674:18;;34764:131;34674:18;34764:131;;34912:407;35103:2;35117:47;;;35088:18;;35178:131;35088:18;35178:131;;35326:407;35517:2;35531:47;;;35502:18;;35592:131;35502:18;35592:131;;35740:407;35931:2;35945:47;;;35916:18;;36006:131;35916:18;36006:131;;36154:407;36345:2;36359:47;;;36330:18;;36420:131;36330:18;36420:131;;36568:407;36759:2;36773:47;;;36744:18;;36834:131;36744:18;36834:131;;36982:407;37173:2;37187:47;;;37158:18;;37248:131;37158:18;37248:131;;37396:407;37587:2;37601:47;;;37572:18;;37662:131;37572:18;37662:131;;37810:407;38001:2;38015:47;;;37986:18;;38076:131;37986:18;38076:131;;38224:370;38420:3;38405:19;;38435:149;38409:9;38557:6;38435:149;;38601:213;38719:2;38704:18;;38733:71;38708:9;38777:6;38733:71;;38821:324;38967:2;38952:18;;38981:71;38956:9;39025:6;38981:71;;39152:435;39326:2;39311:18;;39340:71;39315:9;39384:6;39340:71;;;39422:72;39490:2;39479:9;39475:18;39466:6;39422:72;;;39505;39573:2;39562:9;39558:18;39549:6;39505:72;;39594:205;39708:2;39693:18;;39722:67;39697:9;39762:6;39722:67;;39806:256;39868:2;39862:9;39894:17;;;39969:18;39954:34;;39990:22;;;39951:62;39948:2;;;40026:1;40023;40016:12;39948:2;40042;40035:22;39846:216;;-1:-1;39846:216;40069:254;;40224:18;40216:6;40213:30;40210:2;;;40256:1;40253;40246:12;40210:2;-1:-1;40285:4;40273:17;;;40303:15;;40147:176;41123:121;41232:4;41220:17;;41201:43;41385:107;41475:12;;41459:33;42073:178;42191:19;;;42240:4;42231:14;;42184:67;42789:105;;42858:31;42883:5;42858:31;;42901:92;42974:13;42967:21;;42950:43;43000:126;;43087:1;43080:5;43077:12;43067:2;;43093:9;43133:128;-1:-1;;;;;43202:54;;43185:76;43354:88;43432:4;43421:16;;43404:38;43660:125;;43749:31;43774:5;43749:31;;44143:129;;44230:37;44261:5;44230:37;;46449:131;;46535:40;46569:5;46535:40;;46587:123;;46674:31;46699:5;46674:31;;46968:145;47049:6;47044:3;47039;47026:30;-1:-1;47105:1;47087:16;;47080:27;47019:94;47122:268;47187:1;47194:101;47208:6;47205:1;47202:13;47194:101;;;47275:11;;;47269:18;47256:11;;;47249:39;47230:2;47223:10;47194:101;;;47310:6;47307:1;47304:13;47301:2;;;-1:-1;;47375:1;47357:16;;47350:27;47171:219;47398:97;47486:2;47466:14;-1:-1;;47462:28;;47446:49

Swarm Source

bzzr://de3f31886eebe2f05c665ed2ad0cc22c745db71acc6aa6e9f90504f59f37a55e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.