Contract 0x676C7B527c706801e64AD2108aA1F0Ddc83807D0

Contract Overview

Balance:
0 Ether
Txn Hash Method
Block
From
To
Value
0xcab98d59eab9d7a6e6aa4012daf41fcac95aef7eb30f5d394825935cadf873e4Initialize245087662021-04-27 21:49:0020 days 22 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  0x676c7b527c706801e64ad2108aa1f0ddc83807d00 Ether0.0005350151
0x862a5af38ba68d0db494aacddb3c8c2df00027c2f47e4d385a434203c8be8fa9Add Compound Mar...245087512021-04-27 21:48:0020 days 22 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  0x676c7b527c706801e64ad2108aa1f0ddc83807d00 Ether0.0000449751
0x9d5b646bb9b34e1670b548c1d7ba3594836d13ddee6a988c71b7e1ea4beae275Update Allowed S...245087242021-04-27 21:46:1220 days 22 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  0x676c7b527c706801e64ad2108aa1f0ddc83807d00 Ether0.0000454011
0xf7c7e0d6b88a5528f9395b92acc07d0d3997e1fd41e021b6ebe64523d64aa522Initialize237813362021-03-06 3:55:0873 days 16 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  0x676c7b527c706801e64ad2108aa1f0ddc83807d00 Ether0.0385297272
0xb435701ae8b4a1efaa3481b044afc9693ae67f5c6818f6a89f30edb553be25efUpdate Allowed S...237813342021-03-06 3:54:5673 days 16 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  0x676c7b527c706801e64ad2108aa1f0ddc83807d00 Ether0.00326800872
0x425d950f395117b64a65332e1431ea29c74cd389a6094b704ef4c3327e455af80x60806040237813122021-03-06 3:53:0073 days 16 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  Contract Creation0 Ether0.3932560872
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x48f4944f65c1d67009b6d5c9f70bd79c2f41ead80 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0xefa3e50f493d39a1b53698c549ad35fbf4b1053c0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x9048278ca7e874f9338e4898c436ab07aa4547010 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0xd0a1e359811322d97991e03f863a0c30c2cf029c0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x26e2c37970f95c6a4b299fe5b0ae5b3d3f56a2350 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x26e2c37970f95c6a4b299fe5b0ae5b3d3f56a2350 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0xd0a1e359811322d97991e03f863a0c30c2cf029c0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x28a87dcca3322f90b3a4ce80cee499869efdbf110 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x9048278ca7e874f9338e4898c436ab07aa4547010 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 1 hr ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x0437c39a59c42e367c00bc3c95999feb799bce1a0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CompoundLeverageModule

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-07
*/

// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol



// pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * // importANT: 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
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// Dependency file: @openzeppelin/contracts/GSN/Context.sol


// pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// Dependency file: @openzeppelin/contracts/access/Ownable.sol


// pragma solidity >=0.6.0 <0.8.0;

// import "@openzeppelin/contracts/GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// Dependency file: @openzeppelin/contracts/utils/ReentrancyGuard.sol


// pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// Dependency file: contracts/interfaces/ISetToken.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.6.10;


// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @title ISetToken
 * @author Set Protocol
 *
 * Interface for operating with SetTokens.
 */
interface ISetToken is IERC20 {

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

    enum ModuleState {
        NONE,
        PENDING,
        INITIALIZED
    }

    /* ============ Structs ============ */
    /**
     * The base definition of a SetToken Position
     *
     * @param component           Address of token in the Position
     * @param module              If not in default state, the address of associated module
     * @param unit                Each unit is the # of components per 10^18 of a SetToken
     * @param positionState       Position ENUM. Default is 0; External is 1
     * @param data                Arbitrary data
     */
    struct Position {
        address component;
        address module;
        int256 unit;
        uint8 positionState;
        bytes data;
    }

    /**
     * A struct that stores a component's cash position details and external positions
     * This data structure allows O(1) access to a component's cash position units and 
     * virtual units.
     *
     * @param virtualUnit               Virtual value of a component's DEFAULT position. Stored as virtual for efficiency
     *                                  updating all units at once via the position multiplier. Virtual units are achieved
     *                                  by dividing a "real" value by the "positionMultiplier"
     * @param componentIndex            
     * @param externalPositionModules   List of external modules attached to each external position. Each module
     *                                  maps to an external position
     * @param externalPositions         Mapping of module => ExternalPosition struct for a given component
     */
    struct ComponentPosition {
      int256 virtualUnit;
      address[] externalPositionModules;
      mapping(address => ExternalPosition) externalPositions;
    }

    /**
     * A struct that stores a component's external position details including virtual unit and any
     * auxiliary data.
     *
     * @param virtualUnit       Virtual value of a component's EXTERNAL position.
     * @param data              Arbitrary data
     */
    struct ExternalPosition {
      int256 virtualUnit;
      bytes data;
    }


    /* ============ Functions ============ */
    
    function addComponent(address _component) external;
    function removeComponent(address _component) external;
    function editDefaultPositionUnit(address _component, int256 _realUnit) external;
    function addExternalPositionModule(address _component, address _positionModule) external;
    function removeExternalPositionModule(address _component, address _positionModule) external;
    function editExternalPositionUnit(address _component, address _positionModule, int256 _realUnit) external;
    function editExternalPositionData(address _component, address _positionModule, bytes calldata _data) external;

    function invoke(address _target, uint256 _value, bytes calldata _data) external returns(bytes memory);

    function editPositionMultiplier(int256 _newMultiplier) external;

    function mint(address _account, uint256 _quantity) external;
    function burn(address _account, uint256 _quantity) external;

    function lock() external;
    function unlock() external;

    function addModule(address _module) external;
    function removeModule(address _module) external;
    function initializeModule() external;

    function setManager(address _manager) external;

    function manager() external view returns (address);
    function moduleStates(address _module) external view returns (ModuleState);
    function getModules() external view returns (address[] memory);
    
    function getDefaultPositionRealUnit(address _component) external view returns(int256);
    function getExternalPositionRealUnit(address _component, address _positionModule) external view returns(int256);
    function getComponents() external view returns(address[] memory);
    function getExternalPositionModules(address _component) external view returns(address[] memory);
    function getExternalPositionData(address _component, address _positionModule) external view returns(bytes memory);
    function isExternalPositionModule(address _component, address _module) external view returns(bool);
    function isComponent(address _component) external view returns(bool);
    
    function positionMultiplier() external view returns (int256);
    function getPositions() external view returns (Position[] memory);
    function getTotalComponentRealUnits(address _component) external view returns(int256);

    function isInitializedModule(address _module) external view returns(bool);
    function isPendingModule(address _module) external view returns(bool);
    function isLocked() external view returns (bool);
}

// Dependency file: contracts/interfaces/external/ICErc20.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.6.10;

// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";


/**
 * @title ICErc20
 * @author Set Protocol
 *
 * Interface for interacting with Compound cErc20 tokens (e.g. Dai, USDC)
 */
interface ICErc20 is IERC20 {

    function borrowBalanceCurrent(address _account) external returns (uint256);

    function borrowBalanceStored(address _account) external view returns (uint256);

    /**
     * Calculates the exchange rate from the underlying to the CToken
     *
     * @notice Accrue interest then return the up-to-date exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateCurrent() external returns (uint256);

    function exchangeRateStored() external view returns (uint256);

    function underlying() external returns (address);

    /**
     * Sender supplies assets into the market and receives cTokens in exchange
     *
     * @notice Accrues interest whether or not the operation succeeds, unless reverted
     * @param _mintAmount The amount of the underlying asset to supply
     * @return uint256 0=success, otherwise a failure
     */
    function mint(uint256 _mintAmount) external returns (uint256);

    /**
     * @notice Sender redeems cTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param _redeemTokens The number of cTokens to redeem into underlying
     * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeem(uint256 _redeemTokens) external returns (uint256);

    /**
     * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param _redeemAmount The amount of underlying to redeem
     * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemUnderlying(uint256 _redeemAmount) external returns (uint256);

    /**
      * @notice Sender borrows assets from the protocol to their own address
      * @param _borrowAmount The amount of the underlying asset to borrow
      * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrow(uint256 _borrowAmount) external returns (uint256);

    /**
     * @notice Sender repays their own borrow
     * @param _repayAmount The amount to repay
     * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrow(uint256 _repayAmount) external returns (uint256);
}

// Dependency file: contracts/interfaces/external/IComptroller.sol

/*
    Copyright 2021 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.6.10;

// import { ICErc20 } from "contracts/interfaces/external/ICErc20.sol";


/**
 * @title IComptroller
 * @author Set Protocol
 *
 * Interface for interacting with Compound Comptroller
 */
interface IComptroller {

    /**
     * @notice Add assets to be included in account liquidity calculation
     * @param cTokens The list of addresses of the cToken markets to be enabled
     * @return Success indicator for whether each corresponding market was entered
     */
    function enterMarkets(address[] memory cTokens) external returns (uint[] memory);

    /**
     * @notice Removes asset from sender's account liquidity calculation
     * @dev Sender must not have an outstanding borrow balance in the asset,
     *  or be providing neccessary collateral for an outstanding borrow.
     * @param cTokenAddress The address of the asset to be removed
     * @return Whether or not the account successfully exited the market
     */
    function exitMarket(address cTokenAddress) external returns (uint);

    function getAllMarkets() external view returns (ICErc20[] memory);

    function claimComp(address holder) external;
}

// Dependency file: contracts/protocol/integration/lib/Compound.sol

/*
    Copyright 2021 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.6.10;

// import { ISetToken } from "contracts/interfaces/ISetToken.sol";
// import { ICErc20 } from "contracts/interfaces/external/ICErc20.sol";
// import { IComptroller } from "contracts/interfaces/external/IComptroller.sol";

/**
 * @title Compound
 * @author Set Protocol
 *
 * Collection of helper functions for interacting with Compound integrations
 */
library Compound {
    /* ============ External ============ */

    /**
     * Get enter markets calldata from SetToken
     */
    function getEnterMarketsCalldata(
        ICErc20 _cToken,
        IComptroller _comptroller
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        address[] memory marketsToEnter = new address[](1);
        marketsToEnter[0] = address(_cToken);

        // Compound's enter market function signature is: enterMarkets(address[] _cTokens)
        bytes memory callData = abi.encodeWithSignature("enterMarkets(address[])", marketsToEnter);

        return (address(_comptroller), 0, callData);
    }

    /**
     * Invoke enter markets from SetToken
     */
    function invokeEnterMarkets(ISetToken _setToken, ICErc20 _cToken, IComptroller _comptroller) external {
        ( , , bytes memory enterMarketsCalldata) = getEnterMarketsCalldata(_cToken, _comptroller);

        uint256[] memory returnValues = abi.decode(_setToken.invoke(address(_comptroller), 0, enterMarketsCalldata), (uint256[]));
        require(returnValues[0] == 0, "Entering failed");
    }

    /**
     * Get exit market calldata from SetToken
     */
    function getExitMarketCalldata(
        ICErc20 _cToken,
        IComptroller _comptroller
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's exit market function signature is: exitMarket(address _cToken)
        bytes memory callData = abi.encodeWithSignature("exitMarket(address)", address(_cToken));

        return (address(_comptroller), 0, callData);
    }

    /**
     * Invoke exit market from SetToken
     */
    function invokeExitMarket(ISetToken _setToken, ICErc20 _cToken, IComptroller _comptroller) external {
        ( , , bytes memory exitMarketCalldata) = getExitMarketCalldata(_cToken, _comptroller);
        require(
            abi.decode(_setToken.invoke(address(_comptroller), 0, exitMarketCalldata), (uint256)) == 0,
            "Exiting failed"
        );
    }

    /**
     * Get mint cEther calldata from SetToken
     */
    function getMintCEtherCalldata(
       ICErc20 _cEther,
       uint256 _mintNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's mint cEther function signature is: mint(). No return, reverts on error.
        bytes memory callData = abi.encodeWithSignature("mint()");

        return (address(_cEther), _mintNotional, callData);
    }

    /**
     * Invoke mint cEther from the SetToken
     */
    function invokeMintCEther(ISetToken _setToken, ICErc20 _cEther, uint256 _mintNotional) external {
        ( , , bytes memory mintCEtherCalldata) = getMintCEtherCalldata(_cEther, _mintNotional);

        _setToken.invoke(address(_cEther), _mintNotional, mintCEtherCalldata);
    }

    /**
     * Get mint cToken calldata from SetToken
     */
    function getMintCTokenCalldata(
       ICErc20 _cToken,
       uint256 _mintNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's mint cToken function signature is: mint(uint256 _mintAmount). Returns 0 if success
        bytes memory callData = abi.encodeWithSignature("mint(uint256)", _mintNotional);

        return (address(_cToken), _mintNotional, callData);
    }

    /**
     * Invoke mint from the SetToken. Mints the specified cToken from the underlying of the specified notional quantity
     */
    function invokeMintCToken(ISetToken _setToken, ICErc20 _cToken, uint256 _mintNotional) external {
        ( , , bytes memory mintCTokenCalldata) = getMintCTokenCalldata(_cToken, _mintNotional);

        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, mintCTokenCalldata), (uint256)) == 0,
            "Mint failed"
        );
    }

    /**
     * Get redeem calldata
     */
    function getRedeemUnderlyingCalldata(
       ICErc20 _cToken,
       uint256 _redeemNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's redeem function signature is: redeemUnderlying(uint256 _underlyingAmount)
        bytes memory callData = abi.encodeWithSignature("redeemUnderlying(uint256)", _redeemNotional);

        return (address(_cToken), _redeemNotional, callData);
    }

    /**
     * Invoke redeem underlying from the SetToken
     */
    function invokeRedeemUnderlying(ISetToken _setToken, ICErc20 _cToken, uint256 _redeemNotional) external {
        ( , , bytes memory redeemUnderlyingCalldata) = getRedeemUnderlyingCalldata(_cToken, _redeemNotional);
        
        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, redeemUnderlyingCalldata), (uint256)) == 0,
            "Redeem failed"
        );
    }

    /**
     * Get repay borrow calldata
     */
    function getRepayBorrowCEtherCalldata(
       ICErc20 _cToken,
       uint256 _repayNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's repay ETH function signature is: repayBorrow(). No return, revert on fail
        bytes memory callData = abi.encodeWithSignature("repayBorrow()");

        return (address(_cToken), _repayNotional, callData);
    }

    /**
     * Invoke repay cEther from the SetToken
     */
    function invokeRepayBorrowCEther(ISetToken _setToken, ICErc20 _cEther, uint256 _repayNotional) external {
        ( , , bytes memory repayBorrowCalldata) = getRepayBorrowCEtherCalldata(_cEther, _repayNotional);
        _setToken.invoke(address(_cEther), _repayNotional, repayBorrowCalldata);
    }

    /**
     * Get repay borrow calldata
     */
    function getRepayBorrowCTokenCalldata(
       ICErc20 _cToken,
       uint256 _repayNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's repay asset function signature is: repayBorrow(uint256 _repayAmount)
        bytes memory callData = abi.encodeWithSignature("repayBorrow(uint256)", _repayNotional);

        return (address(_cToken), _repayNotional, callData);
    }

    /**
     * Invoke repay cToken from the SetToken
     */
    function invokeRepayBorrowCToken(ISetToken _setToken, ICErc20 _cToken, uint256 _repayNotional) external {
        ( , , bytes memory repayBorrowCalldata) = getRepayBorrowCTokenCalldata(_cToken, _repayNotional);
        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, repayBorrowCalldata), (uint256)) == 0,
            "Repay failed"
        );
    }

    /**
     * Get borrow calldata
     */
    function getBorrowCalldata(
       ICErc20 _cToken,
       uint256 _notionalBorrowQuantity
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's borrow function signature is: borrow(uint256 _borrowAmount). Note: Notional borrow quantity is in units of underlying asset
        bytes memory callData = abi.encodeWithSignature("borrow(uint256)", _notionalBorrowQuantity);

        return (address(_cToken), 0, callData);
    }

    /**
     * Invoke the SetToken to interact with the specified cToken to borrow the cToken's underlying of the specified borrowQuantity.
     */
    function invokeBorrow(ISetToken _setToken, ICErc20 _cToken, uint256 _notionalBorrowQuantity) external {
        ( , , bytes memory borrowCalldata) = getBorrowCalldata(_cToken, _notionalBorrowQuantity);
        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, borrowCalldata), (uint256)) == 0,
            "Borrow failed"
        );
    }
}

// Dependency file: contracts/interfaces/IController.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.6.10;

interface IController {
    function addSet(address _setToken) external;
    function feeRecipient() external view returns(address);
    function getModuleFee(address _module, uint256 _feeType) external view returns(uint256);
    function isModule(address _module) external view returns(bool);
    function isSet(address _setToken) external view returns(bool);
    function isSystemContract(address _contractAddress) external view returns (bool);
    function resourceId(uint256 _id) external view returns(address);
}

// Dependency file: contracts/interfaces/IDebtIssuanceModule.sol

/*
    Copyright 2021 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.6.10;

// import { ISetToken } from "contracts/interfaces/ISetToken.sol";

/**
 * @title IDebtIssuanceModule
 * @author Set Protocol
 *
 * Interface for interacting with Debt Issuance module interface.
 */
interface IDebtIssuanceModule {

    /**
     * Called by another module to register itself on debt issuance module. Any logic can be included
     * in case checks need to be made or state needs to be updated.
     */
    function registerToIssuanceModule(ISetToken _setToken) external;

    /**
     * Called by another module to unregister itself on debt issuance module. Any logic can be included
     * in case checks need to be made or state needs to be cleared.
     */
    function unregisterFromIssuanceModule(ISetToken _setToken) external;
}

// Dependency file: contracts/interfaces/IExchangeAdapter.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.6.10;

interface IExchangeAdapter {
    function getSpender() external view returns(address);
    function getTradeCalldata(
        address _fromToken,
        address _toToken,
        address _toAddress,
        uint256 _fromQuantity,
        uint256 _minToQuantity,
        bytes memory _data
    )
        external
        view
        returns (address, uint256, bytes memory);
}

// Dependency file: contracts/lib/AddressArrayUtils.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.6.10;

/**
 * @title AddressArrayUtils
 * @author Set Protocol
 *
 * Utility functions to handle Address Arrays
 */
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 (uint256(-1), 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) = indexOf(A, a);
        return isIn;
    }

    /**
    * Returns true if there are 2 elements that are the same in an array
    * @param A The input array to search
    * @return Returns boolean for the first occurrence of a duplicate
    */
    function hasDuplicate(address[] memory A) internal pure returns(bool) {
        require(A.length > 0, "A is empty");

        for (uint256 i = 0; i < A.length - 1; i++) {
            address current = A[i];
            for (uint256 j = i + 1; j < A.length; j++) {
                if (current == A[j]) {
                    return true;
                }
            }
        }
        return false;
    }

    /**
     * @param A The input array to search
     * @param a The address to remove     
     * @return Returns the array with the object removed.
     */
    function remove(address[] memory A, address a)
        internal
        pure
        returns (address[] memory)
    {
        (uint256 index, bool isIn) = indexOf(A, a);
        if (!isIn) {
            revert("Address not in array.");
        } else {
            (address[] memory _A,) = pop(A, index);
            return _A;
        }
    }

    /**
     * @param A The input array to search
     * @param a The address to remove
     */
    function removeStorage(address[] storage A, address a)
        internal
    {
        (uint256 index, bool isIn) = indexOf(A, a);
        if (!isIn) {
            revert("Address not in array.");
        } else {
            uint256 lastIndex = A.length - 1; // If the array would be empty, the previous line would throw, so no underflow here
            if (index != lastIndex) { A[index] = A[lastIndex]; }
            A.pop();
        }
    }

    /**
    * Removes specified index from array
    * @param A The input array to search
    * @param index The index to remove
    * @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;
        require(index < A.length, "Index must be < 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]);
    }

    /**
     * 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;
    }
}

// Dependency file: @openzeppelin/contracts/math/SafeMath.sol


// pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot 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-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// Dependency file: @openzeppelin/contracts/utils/Address.sol


// pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [// importANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * // importANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol


// pragma solidity >=0.6.0 <0.8.0;

// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts/utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// Dependency file: contracts/lib/ExplicitERC20.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.6.10;

// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";

/**
 * @title ExplicitERC20
 * @author Set Protocol
 *
 * Utility functions for ERC20 transfers that require the explicit amount to be transferred.
 */
library ExplicitERC20 {
    using SafeMath for uint256;

    /**
     * When given allowance, transfers a token from the "_from" to the "_to" of quantity "_quantity".
     * Ensures that the recipient has received the correct quantity (ie no fees taken on transfer)
     *
     * @param _token           ERC20 token to approve
     * @param _from            The account to transfer tokens from
     * @param _to              The account to transfer tokens to
     * @param _quantity        The quantity to transfer
     */
    function transferFrom(
        IERC20 _token,
        address _from,
        address _to,
        uint256 _quantity
    )
        internal
    {
        // Call specified ERC20 contract to transfer tokens (via proxy).
        if (_quantity > 0) {
            uint256 existingBalance = _token.balanceOf(_to);

            SafeERC20.safeTransferFrom(
                _token,
                _from,
                _to,
                _quantity
            );

            uint256 newBalance = _token.balanceOf(_to);

            // Verify transfer quantity is reflected in balance
            require(
                newBalance == existingBalance.add(_quantity),
                "Invalid post transfer balance"
            );
        }
    }
}


// Dependency file: contracts/interfaces/IModule.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.6.10;


/**
 * @title IModule
 * @author Set Protocol
 *
 * Interface for interacting with Modules.
 */
interface IModule {
    /**
     * Called by a SetToken to notify that this module was removed from the Set token. Any logic can be included
     * in case checks need to be made or state needs to be cleared.
     */
    function removeModule() external;
}

// Dependency file: contracts/protocol/lib/Invoke.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.6.10;

// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";

// import { ISetToken } from "contracts/interfaces/ISetToken.sol";


/**
 * @title Invoke
 * @author Set Protocol
 *
 * A collection of common utility functions for interacting with the SetToken's invoke function
 */
library Invoke {
    using SafeMath for uint256;

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

    /**
     * Instructs the SetToken to set approvals of the ERC20 token to a spender.
     *
     * @param _setToken        SetToken instance to invoke
     * @param _token           ERC20 token to approve
     * @param _spender         The account allowed to spend the SetToken's balance
     * @param _quantity        The quantity of allowance to allow
     */
    function invokeApprove(
        ISetToken _setToken,
        address _token,
        address _spender,
        uint256 _quantity
    )
        internal
    {
        bytes memory callData = abi.encodeWithSignature("approve(address,uint256)", _spender, _quantity);
        _setToken.invoke(_token, 0, callData);
    }

    /**
     * Instructs the SetToken to transfer the ERC20 token to a recipient.
     *
     * @param _setToken        SetToken instance to invoke
     * @param _token           ERC20 token to transfer
     * @param _to              The recipient account
     * @param _quantity        The quantity to transfer
     */
    function invokeTransfer(
        ISetToken _setToken,
        address _token,
        address _to,
        uint256 _quantity
    )
        internal
    {
        if (_quantity > 0) {
            bytes memory callData = abi.encodeWithSignature("transfer(address,uint256)", _to, _quantity);
            _setToken.invoke(_token, 0, callData);
        }
    }

    /**
     * Instructs the SetToken to transfer the ERC20 token to a recipient.
     * The new SetToken balance must equal the existing balance less the quantity transferred
     *
     * @param _setToken        SetToken instance to invoke
     * @param _token           ERC20 token to transfer
     * @param _to              The recipient account
     * @param _quantity        The quantity to transfer
     */
    function strictInvokeTransfer(
        ISetToken _setToken,
        address _token,
        address _to,
        uint256 _quantity
    )
        internal
    {
        if (_quantity > 0) {
            // Retrieve current balance of token for the SetToken
            uint256 existingBalance = IERC20(_token).balanceOf(address(_setToken));

            Invoke.invokeTransfer(_setToken, _token, _to, _quantity);

            // Get new balance of transferred token for SetToken
            uint256 newBalance = IERC20(_token).balanceOf(address(_setToken));

            // Verify only the transfer quantity is subtracted
            require(
                newBalance == existingBalance.sub(_quantity),
                "Invalid post transfer balance"
            );
        }
    }

    /**
     * Instructs the SetToken to unwrap the passed quantity of WETH
     *
     * @param _setToken        SetToken instance to invoke
     * @param _weth            WETH address
     * @param _quantity        The quantity to unwrap
     */
    function invokeUnwrapWETH(ISetToken _setToken, address _weth, uint256 _quantity) internal {
        bytes memory callData = abi.encodeWithSignature("withdraw(uint256)", _quantity);
        _setToken.invoke(_weth, 0, callData);
    }

    /**
     * Instructs the SetToken to wrap the passed quantity of ETH
     *
     * @param _setToken        SetToken instance to invoke
     * @param _weth            WETH address
     * @param _quantity        The quantity to unwrap
     */
    function invokeWrapWETH(ISetToken _setToken, address _weth, uint256 _quantity) internal {
        bytes memory callData = abi.encodeWithSignature("deposit()");
        _setToken.invoke(_weth, _quantity, callData);
    }
}

// Dependency file: @openzeppelin/contracts/utils/SafeCast.sol


// pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < 2**255, "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}


// Dependency file: @openzeppelin/contracts/math/SignedSafeMath.sol


// pragma solidity >=0.6.0 <0.8.0;

/**
 * @title SignedSafeMath
 * @dev Signed math operations with safety checks that revert on error.
 */
library SignedSafeMath {
    int256 constant private _INT256_MIN = -2**255;

    /**
     * @dev Returns the multiplication of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        // 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-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        require(!(a == -1 && b == _INT256_MIN), "SignedSafeMath: multiplication overflow");

        int256 c = a * b;
        require(c / a == b, "SignedSafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two signed integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        require(b != 0, "SignedSafeMath: division by zero");
        require(!(b == -1 && a == _INT256_MIN), "SignedSafeMath: division overflow");

        int256 c = a / b;

        return c;
    }

    /**
     * @dev Returns the subtraction of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a), "SignedSafeMath: subtraction overflow");

        return c;
    }

    /**
     * @dev Returns the addition of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow");

        return c;
    }
}


// Dependency file: contracts/lib/PreciseUnitMath.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.6.10;
pragma experimental ABIEncoderV2;

// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
// import { SignedSafeMath } from "@openzeppelin/contracts/math/SignedSafeMath.sol";


/**
 * @title PreciseUnitMath
 * @author Set Protocol
 *
 * Arithmetic for fixed-point numbers with 18 decimals of precision. Some functions taken from
 * dYdX's BaseMath library.
 *
 * CHANGELOG:
 * - 9/21/20: Added safePower function
 */
library PreciseUnitMath {
    using SafeMath for uint256;
    using SignedSafeMath for int256;

    // The number One in precise units.
    uint256 constant internal PRECISE_UNIT = 10 ** 18;
    int256 constant internal PRECISE_UNIT_INT = 10 ** 18;

    // Max unsigned integer value
    uint256 constant internal MAX_UINT_256 = type(uint256).max;
    // Max and min signed integer value
    int256 constant internal MAX_INT_256 = type(int256).max;
    int256 constant internal MIN_INT_256 = type(int256).min;

    /**
     * @dev Getter function since constants can't be read directly from libraries.
     */
    function preciseUnit() internal pure returns (uint256) {
        return PRECISE_UNIT;
    }

    /**
     * @dev Getter function since constants can't be read directly from libraries.
     */
    function preciseUnitInt() internal pure returns (int256) {
        return PRECISE_UNIT_INT;
    }

    /**
     * @dev Getter function since constants can't be read directly from libraries.
     */
    function maxUint256() internal pure returns (uint256) {
        return MAX_UINT_256;
    }

    /**
     * @dev Getter function since constants can't be read directly from libraries.
     */
    function maxInt256() internal pure returns (int256) {
        return MAX_INT_256;
    }

    /**
     * @dev Getter function since constants can't be read directly from libraries.
     */
    function minInt256() internal pure returns (int256) {
        return MIN_INT_256;
    }

    /**
     * @dev Multiplies value a by value b (result is rounded down). It's assumed that the value b is the significand
     * of a number with 18 decimals precision.
     */
    function preciseMul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a.mul(b).div(PRECISE_UNIT);
    }

    /**
     * @dev Multiplies value a by value b (result is rounded towards zero). It's assumed that the value b is the
     * significand of a number with 18 decimals precision.
     */
    function preciseMul(int256 a, int256 b) internal pure returns (int256) {
        return a.mul(b).div(PRECISE_UNIT_INT);
    }

    /**
     * @dev Multiplies value a by value b (result is rounded up). It's assumed that the value b is the significand
     * of a number with 18 decimals precision.
     */
    function preciseMulCeil(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0 || b == 0) {
            return 0;
        }
        return a.mul(b).sub(1).div(PRECISE_UNIT).add(1);
    }

    /**
     * @dev Divides value a by value b (result is rounded down).
     */
    function preciseDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        return a.mul(PRECISE_UNIT).div(b);
    }


    /**
     * @dev Divides value a by value b (result is rounded towards 0).
     */
    function preciseDiv(int256 a, int256 b) internal pure returns (int256) {
        return a.mul(PRECISE_UNIT_INT).div(b);
    }

    /**
     * @dev Divides value a by value b (result is rounded up or away from 0).
     */
    function preciseDivCeil(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0, "Cant divide by 0");

        return a > 0 ? a.mul(PRECISE_UNIT).sub(1).div(b).add(1) : 0;
    }

    /**
     * @dev Divides value a by value b (result is rounded down - positive numbers toward 0 and negative away from 0).
     */
    function divDown(int256 a, int256 b) internal pure returns (int256) {
        require(b != 0, "Cant divide by 0");
        require(a != MIN_INT_256 || b != -1, "Invalid input");

        int256 result = a.div(b);
        if (a ^ b < 0 && a % b != 0) {
            result -= 1;
        }

        return result;
    }

    /**
     * @dev Multiplies value a by value b where rounding is towards the lesser number. 
     * (positive values are rounded towards zero and negative values are rounded away from 0). 
     */
    function conservativePreciseMul(int256 a, int256 b) internal pure returns (int256) {
        return divDown(a.mul(b), PRECISE_UNIT_INT);
    }

    /**
     * @dev Divides value a by value b where rounding is towards the lesser number. 
     * (positive values are rounded towards zero and negative values are rounded away from 0). 
     */
    function conservativePreciseDiv(int256 a, int256 b) internal pure returns (int256) {
        return divDown(a.mul(PRECISE_UNIT_INT), b);
    }

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

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

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

        return result;
    }
}

// Dependency file: contracts/protocol/lib/Position.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.6.10;


// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import { SafeCast } from "@openzeppelin/contracts/utils/SafeCast.sol";
// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
// import { SignedSafeMath } from "@openzeppelin/contracts/math/SignedSafeMath.sol";

// import { ISetToken } from "contracts/interfaces/ISetToken.sol";
// import { PreciseUnitMath } from "contracts/lib/PreciseUnitMath.sol";


/**
 * @title Position
 * @author Set Protocol
 *
 * Collection of helper functions for handling and updating SetToken Positions
 *
 * CHANGELOG:
 *  - Updated editExternalPosition to work when no external position is associated with module
 */
library Position {
    using SafeCast for uint256;
    using SafeMath for uint256;
    using SafeCast for int256;
    using SignedSafeMath for int256;
    using PreciseUnitMath for uint256;

    /* ============ Helper ============ */

    /**
     * Returns whether the SetToken has a default position for a given component (if the real unit is > 0)
     */
    function hasDefaultPosition(ISetToken _setToken, address _component) internal view returns(bool) {
        return _setToken.getDefaultPositionRealUnit(_component) > 0;
    }

    /**
     * Returns whether the SetToken has an external position for a given component (if # of position modules is > 0)
     */
    function hasExternalPosition(ISetToken _setToken, address _component) internal view returns(bool) {
        return _setToken.getExternalPositionModules(_component).length > 0;
    }
    
    /**
     * Returns whether the SetToken component default position real unit is greater than or equal to units passed in.
     */
    function hasSufficientDefaultUnits(ISetToken _setToken, address _component, uint256 _unit) internal view returns(bool) {
        return _setToken.getDefaultPositionRealUnit(_component) >= _unit.toInt256();
    }

    /**
     * Returns whether the SetToken component external position is greater than or equal to the real units passed in.
     */
    function hasSufficientExternalUnits(
        ISetToken _setToken,
        address _component,
        address _positionModule,
        uint256 _unit
    )
        internal
        view
        returns(bool)
    {
       return _setToken.getExternalPositionRealUnit(_component, _positionModule) >= _unit.toInt256();    
    }

    /**
     * If the position does not exist, create a new Position and add to the SetToken. If it already exists,
     * then set the position units. If the new units is 0, remove the position. Handles adding/removing of 
     * components where needed (in light of potential external positions).
     *
     * @param _setToken           Address of SetToken being modified
     * @param _component          Address of the component
     * @param _newUnit            Quantity of Position units - must be >= 0
     */
    function editDefaultPosition(ISetToken _setToken, address _component, uint256 _newUnit) internal {
        bool isPositionFound = hasDefaultPosition(_setToken, _component);
        if (!isPositionFound && _newUnit > 0) {
            // If there is no Default Position and no External Modules, then component does not exist
            if (!hasExternalPosition(_setToken, _component)) {
                _setToken.addComponent(_component);
            }
        } else if (isPositionFound && _newUnit == 0) {
            // If there is a Default Position and no external positions, remove the component
            if (!hasExternalPosition(_setToken, _component)) {
                _setToken.removeComponent(_component);
            }
        }

        _setToken.editDefaultPositionUnit(_component, _newUnit.toInt256());
    }

    /**
     * Update an external position and remove and external positions or components if necessary. The logic flows as follows:
     * 1) If component is not already added then add component and external position. 
     * 2) If component is added but no existing external position using the passed module exists then add the external position.
     * 3) If the existing position is being added to then just update the unit and data
     * 4) If the position is being closed and no other external positions or default positions are associated with the component
     *    then untrack the component and remove external position.
     * 5) If the position is being closed and other existing positions still exist for the component then just remove the
     *    external position.
     *
     * @param _setToken         SetToken being updated
     * @param _component        Component position being updated
     * @param _module           Module external position is associated with
     * @param _newUnit          Position units of new external position
     * @param _data             Arbitrary data associated with the position
     */
    function editExternalPosition(
        ISetToken _setToken,
        address _component,
        address _module,
        int256 _newUnit,
        bytes memory _data
    )
        internal
    {
        if (_newUnit != 0) {
            if (!_setToken.isComponent(_component)) {
                _setToken.addComponent(_component);
                _setToken.addExternalPositionModule(_component, _module);
            } else if (!_setToken.isExternalPositionModule(_component, _module)) {
                _setToken.addExternalPositionModule(_component, _module);
            }
            _setToken.editExternalPositionUnit(_component, _module, _newUnit);
            _setToken.editExternalPositionData(_component, _module, _data);
        } else {
            require(_data.length == 0, "Passed data must be null");
            // If no default or external position remaining then remove component from components array
            if (_setToken.getExternalPositionRealUnit(_component, _module) != 0) {
                address[] memory positionModules = _setToken.getExternalPositionModules(_component);
                if (_setToken.getDefaultPositionRealUnit(_component) == 0 && positionModules.length == 1) {
                    require(positionModules[0] == _module, "External positions must be 0 to remove component");
                    _setToken.removeComponent(_component);
                }
                _setToken.removeExternalPositionModule(_component, _module);
            }
        }
    }

    /**
     * Get total notional amount of Default position
     *
     * @param _setTokenSupply     Supply of SetToken in precise units (10^18)
     * @param _positionUnit       Quantity of Position units
     *
     * @return                    Total notional amount of units
     */
    function getDefaultTotalNotional(uint256 _setTokenSupply, uint256 _positionUnit) internal pure returns (uint256) {
        return _setTokenSupply.preciseMul(_positionUnit);
    }

    /**
     * Get position unit from total notional amount
     *
     * @param _setTokenSupply     Supply of SetToken in precise units (10^18)
     * @param _totalNotional      Total notional amount of component prior to
     * @return                    Default position unit
     */
    function getDefaultPositionUnit(uint256 _setTokenSupply, uint256 _totalNotional) internal pure returns (uint256) {
        return _totalNotional.preciseDiv(_setTokenSupply);
    }

    /**
     * Get the total tracked balance - total supply * position unit
     *
     * @param _setToken           Address of the SetToken
     * @param _component          Address of the component
     * @return                    Notional tracked balance
     */
    function getDefaultTrackedBalance(ISetToken _setToken, address _component) internal view returns(uint256) {
        int256 positionUnit = _setToken.getDefaultPositionRealUnit(_component); 
        return _setToken.totalSupply().preciseMul(positionUnit.toUint256());
    }

    /**
     * Calculates the new default position unit and performs the edit with the new unit
     *
     * @param _setToken                 Address of the SetToken
     * @param _component                Address of the component
     * @param _setTotalSupply           Current SetToken supply
     * @param _componentPreviousBalance Pre-action component balance
     * @return                          Current component balance
     * @return                          Previous position unit
     * @return                          New position unit
     */
    function calculateAndEditDefaultPosition(
        ISetToken _setToken,
        address _component,
        uint256 _setTotalSupply,
        uint256 _componentPreviousBalance
    )
        internal
        returns(uint256, uint256, uint256)
    {
        uint256 currentBalance = IERC20(_component).balanceOf(address(_setToken));
        uint256 positionUnit = _setToken.getDefaultPositionRealUnit(_component).toUint256();

        uint256 newTokenUnit;
        if (currentBalance > 0) {
            newTokenUnit = calculateDefaultEditPositionUnit(
                _setTotalSupply,
                _componentPreviousBalance,
                currentBalance,
                positionUnit
            );
        } else {
            newTokenUnit = 0;
        }

        editDefaultPosition(_setToken, _component, newTokenUnit);

        return (currentBalance, positionUnit, newTokenUnit);
    }

    /**
     * Calculate the new position unit given total notional values pre and post executing an action that changes SetToken state
     * The intention is to make updates to the units without accidentally picking up airdropped assets as well.
     *
     * @param _setTokenSupply     Supply of SetToken in precise units (10^18)
     * @param _preTotalNotional   Total notional amount of component prior to executing action
     * @param _postTotalNotional  Total notional amount of component after the executing action
     * @param _prePositionUnit    Position unit of SetToken prior to executing action
     * @return                    New position unit
     */
    function calculateDefaultEditPositionUnit(
        uint256 _setTokenSupply,
        uint256 _preTotalNotional,
        uint256 _postTotalNotional,
        uint256 _prePositionUnit
    )
        internal
        pure
        returns (uint256)
    {
        // If pre action total notional amount is greater then subtract post action total notional and calculate new position units
        uint256 airdroppedAmount = _preTotalNotional.sub(_prePositionUnit.preciseMul(_setTokenSupply));
        return _postTotalNotional.sub(airdroppedAmount).preciseDiv(_setTokenSupply);
    }
}


// Dependency file: contracts/interfaces/IIntegrationRegistry.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.6.10;

interface IIntegrationRegistry {
    function addIntegration(address _module, string memory _id, address _wrapper) external;
    function getIntegrationAdapter(address _module, string memory _id) external view returns(address);
    function getIntegrationAdapterWithHash(address _module, bytes32 _id) external view returns(address);
    function isValidIntegration(address _module, string memory _id) external view returns(bool);
}

// Dependency file: contracts/interfaces/IPriceOracle.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.6.10;

/**
 * @title IPriceOracle
 * @author Set Protocol
 *
 * Interface for interacting with PriceOracle
 */
interface IPriceOracle {

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

    function getPrice(address _assetOne, address _assetTwo) external view returns (uint256);
    function masterQuoteAsset() external view returns (address);
}

// Dependency file: contracts/interfaces/ISetValuer.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.6.10;

// import { ISetToken } from "contracts/interfaces/ISetToken.sol";

interface ISetValuer {
    function calculateSetTokenValuation(ISetToken _setToken, address _quoteAsset) external view returns (uint256);
}

// Dependency file: contracts/protocol/lib/ResourceIdentifier.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.6.10;

// import { IController } from "contracts/interfaces/IController.sol";
// import { IIntegrationRegistry } from "contracts/interfaces/IIntegrationRegistry.sol";
// import { IPriceOracle } from "contracts/interfaces/IPriceOracle.sol";
// import { ISetValuer } from "contracts/interfaces/ISetValuer.sol";

/**
 * @title ResourceIdentifier
 * @author Set Protocol
 *
 * A collection of utility functions to fetch information related to Resource contracts in the system
 */
library ResourceIdentifier {

    // IntegrationRegistry will always be resource ID 0 in the system
    uint256 constant internal INTEGRATION_REGISTRY_RESOURCE_ID = 0;
    // PriceOracle will always be resource ID 1 in the system
    uint256 constant internal PRICE_ORACLE_RESOURCE_ID = 1;
    // SetValuer resource will always be resource ID 2 in the system
    uint256 constant internal SET_VALUER_RESOURCE_ID = 2;

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

    /**
     * Gets the instance of integration registry stored on Controller. Note: IntegrationRegistry is stored as index 0 on
     * the Controller
     */
    function getIntegrationRegistry(IController _controller) internal view returns (IIntegrationRegistry) {
        return IIntegrationRegistry(_controller.resourceId(INTEGRATION_REGISTRY_RESOURCE_ID));
    }

    /**
     * Gets instance of price oracle on Controller. Note: PriceOracle is stored as index 1 on the Controller
     */
    function getPriceOracle(IController _controller) internal view returns (IPriceOracle) {
        return IPriceOracle(_controller.resourceId(PRICE_ORACLE_RESOURCE_ID));
    }

    /**
     * Gets the instance of Set valuer on Controller. Note: SetValuer is stored as index 2 on the Controller
     */
    function getSetValuer(IController _controller) internal view returns (ISetValuer) {
        return ISetValuer(_controller.resourceId(SET_VALUER_RESOURCE_ID));
    }
}

// Dependency file: contracts/protocol/lib/ModuleBase.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.6.10;

// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

// import { AddressArrayUtils } from "contracts/lib/AddressArrayUtils.sol";
// import { ExplicitERC20 } from "contracts/lib/ExplicitERC20.sol";
// import { IController } from "contracts/interfaces/IController.sol";
// import { IModule } from "contracts/interfaces/IModule.sol";
// import { ISetToken } from "contracts/interfaces/ISetToken.sol";
// import { Invoke } from "contracts/protocol/lib/Invoke.sol";
// import { Position } from "contracts/protocol/lib/Position.sol";
// import { PreciseUnitMath } from "contracts/lib/PreciseUnitMath.sol";
// import { ResourceIdentifier } from "contracts/protocol/lib/ResourceIdentifier.sol";
// import { SafeCast } from "@openzeppelin/contracts/utils/SafeCast.sol";
// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
// import { SignedSafeMath } from "@openzeppelin/contracts/math/SignedSafeMath.sol";

/**
 * @title ModuleBase
 * @author Set Protocol
 *
 * Abstract class that houses common Module-related state and functions.
 */
abstract contract ModuleBase is IModule {
    using AddressArrayUtils for address[];
    using Invoke for ISetToken;
    using Position for ISetToken;
    using PreciseUnitMath for uint256;
    using ResourceIdentifier for IController;
    using SafeCast for int256;
    using SafeCast for uint256;
    using SafeMath for uint256;
    using SignedSafeMath for int256;

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

    // Address of the controller
    IController public controller;

    /* ============ Modifiers ============ */

    modifier onlyManagerAndValidSet(ISetToken _setToken) { 
        require(isSetManager(_setToken, msg.sender), "Must be the SetToken manager");
        require(isSetValidAndInitialized(_setToken), "Must be a valid and initialized SetToken");
        _;
    }

    modifier onlySetManager(ISetToken _setToken, address _caller) {
        require(isSetManager(_setToken, _caller), "Must be the SetToken manager");
        _;
    }

    modifier onlyValidAndInitializedSet(ISetToken _setToken) {
        require(isSetValidAndInitialized(_setToken), "Must be a valid and initialized SetToken");
        _;
    }

    /**
     * Throws if the sender is not a SetToken's module or module not enabled
     */
    modifier onlyModule(ISetToken _setToken) {
        require(
            _setToken.moduleStates(msg.sender) == ISetToken.ModuleState.INITIALIZED,
            "Only the module can call"
        );

        require(
            controller.isModule(msg.sender),
            "Module must be enabled on controller"
        );
        _;
    }

    /**
     * Utilized during module initializations to check that the module is in pending state
     * and that the SetToken is valid
     */
    modifier onlyValidAndPendingSet(ISetToken _setToken) {
        require(controller.isSet(address(_setToken)), "Must be controller-enabled SetToken");
        require(isSetPendingInitialization(_setToken), "Must be pending initialization");        
        _;
    }

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

    /**
     * Set state variables and map asset pairs to their oracles
     *
     * @param _controller             Address of controller contract
     */
    constructor(IController _controller) public {
        controller = _controller;
    }

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

    /**
     * Transfers tokens from an address (that has set allowance on the module).
     *
     * @param  _token          The address of the ERC20 token
     * @param  _from           The address to transfer from
     * @param  _to             The address to transfer to
     * @param  _quantity       The number of tokens to transfer
     */
    function transferFrom(IERC20 _token, address _from, address _to, uint256 _quantity) internal {
        ExplicitERC20.transferFrom(_token, _from, _to, _quantity);
    }

    /**
     * Gets the integration for the module with the passed in name. Validates that the address is not empty
     */
    function getAndValidateAdapter(string memory _integrationName) internal view returns(address) { 
        bytes32 integrationHash = getNameHash(_integrationName);
        return getAndValidateAdapterWithHash(integrationHash);
    }

    /**
     * Gets the integration for the module with the passed in hash. Validates that the address is not empty
     */
    function getAndValidateAdapterWithHash(bytes32 _integrationHash) internal view returns(address) { 
        address adapter = controller.getIntegrationRegistry().getIntegrationAdapterWithHash(
            address(this),
            _integrationHash
        );

        require(adapter != address(0), "Must be valid adapter"); 
        return adapter;
    }

    /**
     * Gets the total fee for this module of the passed in index (fee % * quantity)
     */
    function getModuleFee(uint256 _feeIndex, uint256 _quantity) internal view returns(uint256) {
        uint256 feePercentage = controller.getModuleFee(address(this), _feeIndex);
        return _quantity.preciseMul(feePercentage);
    }

    /**
     * Pays the _feeQuantity from the _setToken denominated in _token to the protocol fee recipient
     */
    function payProtocolFeeFromSetToken(ISetToken _setToken, address _token, uint256 _feeQuantity) internal {
        if (_feeQuantity > 0) {
            _setToken.strictInvokeTransfer(_token, controller.feeRecipient(), _feeQuantity); 
        }
    }

    /**
     * Returns true if the module is in process of initialization on the SetToken
     */
    function isSetPendingInitialization(ISetToken _setToken) internal view returns(bool) {
        return _setToken.isPendingModule(address(this));
    }

    /**
     * Returns true if the address is the SetToken's manager
     */
    function isSetManager(ISetToken _setToken, address _toCheck) internal view returns(bool) {
        return _setToken.manager() == _toCheck;
    }

    /**
     * Returns true if SetToken must be enabled on the controller 
     * and module is registered on the SetToken
     */
    function isSetValidAndInitialized(ISetToken _setToken) internal view returns(bool) {
        return controller.isSet(address(_setToken)) &&
            _setToken.isInitializedModule(address(this));
    }

    /**
     * Hashes the string and returns a bytes32 value
     */
    function getNameHash(string memory _name) internal pure returns(bytes32) {
        return keccak256(bytes(_name));
    }
}

// Root file: contracts/protocol/modules/CompoundLeverageModule.sol

/*
    Copyright 2021 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.6.10;


// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
// import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

// import { Compound } from "contracts/protocol/integration/lib/Compound.sol";
// import { ICErc20 } from "contracts/interfaces/external/ICErc20.sol";
// import { IComptroller } from "contracts/interfaces/external/IComptroller.sol";
// import { IController } from "contracts/interfaces/IController.sol";
// import { IDebtIssuanceModule } from "contracts/interfaces/IDebtIssuanceModule.sol";
// import { IExchangeAdapter } from "contracts/interfaces/IExchangeAdapter.sol";
// import { ISetToken } from "contracts/interfaces/ISetToken.sol";
// import { ModuleBase } from "contracts/protocol/lib/ModuleBase.sol";

/**
 * @title CompoundLeverageModule
 * @author Set Protocol
 *
 * Smart contract that enables leverage trading using Compound as the lending protocol. This module is paired with a debt issuance module that will call
 * functions on this module to keep interest accrual and liquidation state updated. This does not allow borrowing of assets from Compound alone. Each 
 * asset is leveraged when using this module.
 *
 * Note: Do not use this module in conjunction with other debt modules that allow Compound debt positions as it could lead to double counting of
 * debt when borrowed assets are the same.
 *
 */
contract CompoundLeverageModule is ModuleBase, ReentrancyGuard, Ownable {
    using Compound for ISetToken;

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

    struct EnabledAssets {
        address[] collateralCTokens;             // Array of enabled cToken collateral assets for a SetToken
        address[] borrowCTokens;                 // Array of enabled cToken borrow assets for a SetToken
        address[] borrowAssets;                  // Array of underlying borrow assets that map to the array of enabled cToken borrow assets
    }

    struct ActionInfo {
        ISetToken setToken;                      // SetToken instance
        IExchangeAdapter exchangeAdapter;        // Exchange adapter instance
        uint256 setTotalSupply;                  // Total supply of SetToken
        uint256 notionalSendQuantity;            // Total notional quantity sent to exchange
        uint256 minNotionalReceiveQuantity;      // Min total notional received from exchange
        ICErc20 collateralCTokenAsset;           // Address of cToken collateral asset
        ICErc20 borrowCTokenAsset;               // Address of cToken borrow asset
        uint256 preTradeReceiveTokenBalance;     // Balance of pre-trade receive token balance
    }

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

    event LeverageIncreased(
        ISetToken indexed _setToken,
        IERC20 indexed _borrowAsset,
        IERC20 indexed _collateralAsset,
        IExchangeAdapter _exchangeAdapter,
        uint256 _totalBorrowAmount,
        uint256 _totalReceiveAmount,
        uint256 _protocolFee
    );

    event LeverageDecreased(
        ISetToken indexed _setToken,
        IERC20 indexed _collateralAsset,
        IERC20 indexed _repayAsset,
        IExchangeAdapter _exchangeAdapter,
        uint256 _totalRedeemAmount,
        uint256 _totalRepayAmount,
        uint256 _protocolFee
    );

    event CollateralAssetsUpdated(
        ISetToken indexed _setToken,
        bool indexed _added,
        IERC20[] _assets
    );

    event BorrowAssetsUpdated(
        ISetToken indexed _setToken,
        bool indexed _added,
        IERC20[] _assets
    );

    event SetTokenStatusUpdated(
        ISetToken indexed _setToken,
        bool indexed _added
    );

    event AnySetAllowedUpdated(
        bool indexed _anySetAllowed    
    );

    /* ============ Constants ============ */

    // String identifying the DebtIssuanceModule in the IntegrationRegistry. Note: Governance must add DefaultIssuanceModule as
    // the string as the integration name
    string constant internal DEFAULT_ISSUANCE_MODULE_NAME = "DefaultIssuanceModule";

    // 0 index stores protocol fee % on the controller, charged in the trade function
    uint256 constant internal PROTOCOL_TRADE_FEE_INDEX = 0;

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

    // Mapping of underlying to CToken. If ETH, then map WETH to cETH
    mapping(IERC20 => ICErc20) public underlyingToCToken;

    // Wrapped Ether address
    IERC20 internal weth;

    // Compound cEther address
    ICErc20 internal cEther;

    // Compound Comptroller contract
    IComptroller internal comptroller;

    // COMP token address
    IERC20 internal compToken;

    // Mapping to efficiently check if cToken market for collateral asset is valid in SetToken
    mapping(ISetToken => mapping(ICErc20 => bool)) public collateralCTokenEnabled;

    // Mapping to efficiently check if cToken market for borrow asset is valid in SetToken
    mapping(ISetToken => mapping(ICErc20 => bool)) public borrowCTokenEnabled;

    // Mapping of enabled collateral and borrow cTokens for syncing positions
    mapping(ISetToken => EnabledAssets) internal enabledAssets;

    // Mapping of SetToken to boolean indicating if SetToken is on allow list. Updateable by governance
    mapping(ISetToken => bool) public allowedSetTokens;

    // Boolean that returns if any SetToken can initialize this module. If false, then subject to allow list
    bool public anySetAllowed;


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

    /**
     * Instantiate addresses. Underlying to cToken mapping is created.
     * 
     * @param _controller               Address of controller contract
     * @param _compToken                Address of COMP token
     * @param _comptroller              Address of Compound Comptroller
     * @param _cEther                   Address of cEther contract
     * @param _weth                     Address of WETH contract
     */
    constructor(
        IController _controller,
        IERC20 _compToken,
        IComptroller _comptroller,
        ICErc20 _cEther,
        IERC20 _weth
    )
        public
        ModuleBase(_controller)
    {
        compToken = _compToken;
        comptroller = _comptroller;
        cEther = _cEther;
        weth = _weth;

        ICErc20[] memory cTokens = comptroller.getAllMarkets();

        for(uint256 i = 0; i < cTokens.length; i++) {
            ICErc20 cToken = cTokens[i];
            underlyingToCToken[
                cToken == _cEther ? _weth : IERC20(cTokens[i].underlying())
            ] = cToken;
        }
    }

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

    /**
     * MANAGER ONLY: Increases leverage for a given collateral position using an enabled borrow asset that is enabled.
     * Performs a DEX trade, exchanging the borrow asset for collateral asset.
     *
     * @param _setToken             Instance of the SetToken
     * @param _borrowAsset          Address of asset being borrowed for leverage
     * @param _collateralAsset      Address of collateral asset (underlying of cToken)
     * @param _borrowQuantity       Borrow quantity of asset in position units
     * @param _minReceiveQuantity   Min receive quantity of collateral asset to receive post-trade in position units
     * @param _tradeAdapterName     Name of trade adapter
     * @param _tradeData            Arbitrary data for trade
     */
    function lever(
        ISetToken _setToken,
        IERC20 _borrowAsset,
        IERC20 _collateralAsset,
        uint256 _borrowQuantity,
        uint256 _minReceiveQuantity,
        string memory _tradeAdapterName,
        bytes memory _tradeData
    )
        external
        nonReentrant
        onlyManagerAndValidSet(_setToken)
    {
        // For levering up, send quantity is derived from borrow asset and receive quantity is derived from 
        // collateral asset
        ActionInfo memory leverInfo = _createAndValidateActionInfo(
            _setToken,
            _borrowAsset,
            _collateralAsset,
            _borrowQuantity,
            _minReceiveQuantity,
            _tradeAdapterName,
            true
        );

        _borrow(leverInfo.setToken, leverInfo.borrowCTokenAsset, leverInfo.notionalSendQuantity);

        uint256 postTradeReceiveQuantity = _executeTrade(leverInfo, _borrowAsset, _collateralAsset, _tradeData);

        uint256 protocolFee = _accrueProtocolFee(_setToken, _collateralAsset, postTradeReceiveQuantity);

        uint256 postTradeCollateralQuantity = postTradeReceiveQuantity.sub(protocolFee);

        _mintCToken(leverInfo.setToken, leverInfo.collateralCTokenAsset, _collateralAsset, postTradeCollateralQuantity);

        _updateLeverPositions(leverInfo, _borrowAsset);

        emit LeverageIncreased(
            _setToken,
            _borrowAsset,
            _collateralAsset,
            leverInfo.exchangeAdapter,
            leverInfo.notionalSendQuantity,
            postTradeCollateralQuantity,
            protocolFee
        );
    }

    /**
     * MANAGER ONLY: Decrease leverage for a given collateral position using an enabled borrow asset that is enabled
     *
     * @param _setToken             Instance of the SetToken
     * @param _collateralAsset      Address of collateral asset (underlying of cToken)
     * @param _repayAsset           Address of asset being repaid
     * @param _redeemQuantity       Quantity of collateral asset to delever
     * @param _minRepayQuantity     Minimum amount of repay asset to receive post trade
     * @param _tradeAdapterName     Name of trade adapter
     * @param _tradeData            Arbitrary data for trade
     */
    function delever(
        ISetToken _setToken,
        IERC20 _collateralAsset,
        IERC20 _repayAsset,
        uint256 _redeemQuantity,
        uint256 _minRepayQuantity,
        string memory _tradeAdapterName,
        bytes memory _tradeData
    )
        external
        nonReentrant
        onlyManagerAndValidSet(_setToken)
    {
        // Note: for delevering, send quantity is derived from collateral asset and receive quantity is derived from 
        // repay asset
        ActionInfo memory deleverInfo = _createAndValidateActionInfo(
            _setToken,
            _collateralAsset,
            _repayAsset,
            _redeemQuantity,
            _minRepayQuantity,
            _tradeAdapterName,
            false
        );

        _redeemUnderlying(deleverInfo.setToken, deleverInfo.collateralCTokenAsset, deleverInfo.notionalSendQuantity);

        uint256 postTradeReceiveQuantity = _executeTrade(deleverInfo, _collateralAsset, _repayAsset, _tradeData);

        uint256 protocolFee = _accrueProtocolFee(_setToken, _repayAsset, postTradeReceiveQuantity);

        uint256 repayQuantity = postTradeReceiveQuantity.sub(protocolFee);

        _repayBorrow(deleverInfo.setToken, deleverInfo.borrowCTokenAsset, _repayAsset, repayQuantity);

        _updateLeverPositions(deleverInfo, _repayAsset);

        emit LeverageDecreased(
            _setToken,
            _collateralAsset,
            _repayAsset,
            deleverInfo.exchangeAdapter,
            deleverInfo.notionalSendQuantity,
            repayQuantity,
            protocolFee
        );
    }

    /**
     * MANAGER ONLY: Pays down the borrow asset to 0 selling off a given collateral asset. Any extra received
     * borrow asset is updated as equity. No protocol fee is charged.
     *
     * @param _setToken             Instance of the SetToken
     * @param _collateralAsset      Address of collateral asset (underlying of cToken)
     * @param _repayAsset           Address of asset being repaid (underlying asset e.g. DAI)
     * @param _redeemQuantity       Quantity of collateral asset to delever
     * @param _tradeAdapterName     Name of trade adapter
     * @param _tradeData            Arbitrary data for trade
     */
    function deleverToZeroBorrowBalance(
        ISetToken _setToken,
        IERC20 _collateralAsset,
        IERC20 _repayAsset,
        uint256 _redeemQuantity,
        string memory _tradeAdapterName,
        bytes memory _tradeData
    )
        external
        nonReentrant
        onlyManagerAndValidSet(_setToken)
    {
        uint256 notionalRedeemQuantity = _redeemQuantity.preciseMul(_setToken.totalSupply());
        
        require(borrowCTokenEnabled[_setToken][underlyingToCToken[_repayAsset]], "Borrow not enabled");
        uint256 notionalRepayQuantity = underlyingToCToken[_repayAsset].borrowBalanceCurrent(address(_setToken));

        ActionInfo memory deleverInfo = _createAndValidateActionInfoNotional(
            _setToken,
            _collateralAsset,
            _repayAsset,
            notionalRedeemQuantity,
            notionalRepayQuantity,
            _tradeAdapterName,
            false
        );

        _redeemUnderlying(deleverInfo.setToken, deleverInfo.collateralCTokenAsset, deleverInfo.notionalSendQuantity);

        uint256 postTradeReceiveQuantity = _executeTrade(deleverInfo, _collateralAsset, _repayAsset, _tradeData);

        // We use notionalRepayQuantity vs. Compound's max value uint256(-1) to handle WETH properly
        _repayBorrow(deleverInfo.setToken, deleverInfo.borrowCTokenAsset, _repayAsset, notionalRepayQuantity);

        // Update default position first to save gas on editing borrow position
        _setToken.calculateAndEditDefaultPosition(
            address(_repayAsset),
            deleverInfo.setTotalSupply,
            deleverInfo.preTradeReceiveTokenBalance
        );

        _updateLeverPositions(deleverInfo, _repayAsset);

        emit LeverageDecreased(
            _setToken,
            _collateralAsset,
            _repayAsset,
            deleverInfo.exchangeAdapter,
            deleverInfo.notionalSendQuantity,
            notionalRepayQuantity,
            0 // No protocol fee
        );
    }

    /**
     * CALLABLE BY ANYBODY: Sync Set positions with enabled Compound collateral and borrow positions. For collateral 
     * assets, update cToken default position. For borrow assets, update external borrow position.
     * - Collateral assets may come out of sync when a position is liquidated
     * - Borrow assets may come out of sync when interest is accrued or position is liquidated and borrow is repaid
     *
     * @param _setToken               Instance of the SetToken
     * @param _shouldAccrueInterest   Boolean indicating whether use current block interest rate value or stored value
     */
    function sync(ISetToken _setToken, bool _shouldAccrueInterest) public nonReentrant onlyValidAndInitializedSet(_setToken) {
        uint256 setTotalSupply = _setToken.totalSupply();

        // Only sync positions when Set supply is not 0. This preserves debt and collateral positions on issuance / redemption
        if (setTotalSupply > 0) {
            // Loop through collateral assets
            address[] memory collateralCTokens = enabledAssets[_setToken].collateralCTokens;
            for(uint256 i = 0; i < collateralCTokens.length; i++) {
                ICErc20 collateralCToken = ICErc20(collateralCTokens[i]);
                uint256 previousPositionUnit = _setToken.getDefaultPositionRealUnit(address(collateralCToken)).toUint256();
                uint256 newPositionUnit = _getCollateralPosition(_setToken, collateralCToken, setTotalSupply);

                // Note: Accounts for if position does not exist on SetToken but is tracked in enabledAssets
                if (previousPositionUnit != newPositionUnit) {
                  _updateCollateralPosition(_setToken, collateralCToken, newPositionUnit);
                }
            }

            // Loop through borrow assets
            address[] memory borrowCTokens = enabledAssets[_setToken].borrowCTokens;
            address[] memory borrowAssets = enabledAssets[_setToken].borrowAssets;
            for(uint256 i = 0; i < borrowCTokens.length; i++) {
                ICErc20 borrowCToken = ICErc20(borrowCTokens[i]);
                IERC20 borrowAsset = IERC20(borrowAssets[i]);

                int256 previousPositionUnit = _setToken.getExternalPositionRealUnit(address(borrowAsset), address(this));

                int256 newPositionUnit = _getBorrowPosition(
                    _setToken,
                    borrowCToken,
                    setTotalSupply,
                    _shouldAccrueInterest
                );

                // Note: Accounts for if position does not exist on SetToken but is tracked in enabledAssets
                if (newPositionUnit != previousPositionUnit) {
                    _updateBorrowPosition(_setToken, borrowAsset, newPositionUnit);
                }
            }
        }
    }


    /**
     * MANAGER ONLY: Initializes this module to the SetToken. Only callable by the SetToken's manager. Note: managers can enable
     * collateral and borrow assets that don't exist as positions on the SetToken
     *
     * @param _setToken             Instance of the SetToken to initialize
     * @param _collateralAssets     Underlying tokens to be enabled as collateral in the SetToken
     * @param _borrowAssets         Underlying tokens to be enabled as borrow in the SetToken
     */
    function initialize(
        ISetToken _setToken,
        IERC20[] memory _collateralAssets,
        IERC20[] memory _borrowAssets
    )
        external
        onlySetManager(_setToken, msg.sender)
        onlyValidAndPendingSet(_setToken)
    {
        if (!anySetAllowed) {
            require(allowedSetTokens[_setToken], "Not allowed SetToken");
        }

        // Initialize module before trying register
        _setToken.initializeModule();

        // Get debt issuance module registered to this module and require that it is initialized
        require(_setToken.isInitializedModule(getAndValidateAdapter(DEFAULT_ISSUANCE_MODULE_NAME)), "Issuance not initialized");

        // Try if register exists on any of the modules including the debt issuance module
        address[] memory modules = _setToken.getModules();
        for(uint256 i = 0; i < modules.length; i++) {
            try IDebtIssuanceModule(modules[i]).registerToIssuanceModule(_setToken) {} catch {}
        }
        
        // Enable collateral and borrow assets on Compound
        addCollateralAssets(_setToken, _collateralAssets);

        addBorrowAssets(_setToken, _borrowAssets);
    }

    /**
     * MANAGER ONLY: Removes this module from the SetToken, via call by the SetToken. Compound Settings and manager enabled
     * cTokens are deleted. Markets are exited on Comptroller (only valid if borrow balances are zero)
     */
    function removeModule() external override onlyValidAndInitializedSet(ISetToken(msg.sender)) {
        ISetToken setToken = ISetToken(msg.sender);

        // Sync Compound and SetToken positions prior to any removal action
        sync(setToken, true);

        address[] memory borrowCTokens = enabledAssets[setToken].borrowCTokens;
        for (uint256 i = 0; i < borrowCTokens.length; i++) {
            ICErc20 cToken = ICErc20(borrowCTokens[i]);

            // Will exit only if token isn't also being used as collateral
            if(!collateralCTokenEnabled[setToken][cToken]) {
                // Note: if there is an existing borrow balance, will revert and market cannot be exited on Compound
                setToken.invokeExitMarket(cToken, comptroller);
            }

            delete borrowCTokenEnabled[setToken][cToken];
        }

        address[] memory collateralCTokens = enabledAssets[setToken].collateralCTokens;
        for (uint256 i = 0; i < collateralCTokens.length; i++) {
            ICErc20 cToken = ICErc20(collateralCTokens[i]);

            setToken.invokeExitMarket(cToken, comptroller);

            delete collateralCTokenEnabled[setToken][cToken];
        }
        
        delete enabledAssets[setToken];

        // Try if unregister exists on any of the modules
        address[] memory modules = setToken.getModules();
        for(uint256 i = 0; i < modules.length; i++) {
            try IDebtIssuanceModule(modules[i]).unregisterFromIssuanceModule(setToken) {} catch {}
        }
    }

    /**
     * MANAGER ONLY: Add registration of this module on debt issuance module for the SetToken. Note: if the debt issuance module is not added to SetToken
     * before this module is initialized, then this function needs to be called if the debt issuance module is later added and initialized to prevent state
     * inconsistencies
     *
     * @param _setToken             Instance of the SetToken
     * @param _debtIssuanceModule   Debt issuance module address to register
     */
    function registerToModule(ISetToken _setToken, IDebtIssuanceModule _debtIssuanceModule) external onlyManagerAndValidSet(_setToken) {
        require(_setToken.isInitializedModule(address(_debtIssuanceModule)), "Issuance not initialized");

        _debtIssuanceModule.registerToIssuanceModule(_setToken);
    }

    /**
     * MANAGER ONLY: Add enabled collateral assets. Collateral assets are tracked for syncing positions and entered in Compound markets
     *
     * @param _setToken             Instance of the SetToken
     * @param _newCollateralAssets  Addresses of new collateral underlying assets
     */
    function addCollateralAssets(ISetToken _setToken, IERC20[] memory _newCollateralAssets) public onlyManagerAndValidSet(_setToken) {
        for(uint256 i = 0; i < _newCollateralAssets.length; i++) {
            ICErc20 cToken = underlyingToCToken[_newCollateralAssets[i]];
            require(address(cToken) != address(0), "cToken must exist");
            require(!collateralCTokenEnabled[_setToken][cToken], "Collateral enabled");

            // Note: Will only enter market if cToken is not enabled as a borrow asset as well
            if (!borrowCTokenEnabled[_setToken][cToken]) {
                _setToken.invokeEnterMarkets(cToken, comptroller);
            }

            collateralCTokenEnabled[_setToken][cToken] = true;
            enabledAssets[_setToken].collateralCTokens.push(address(cToken));
        }

        emit CollateralAssetsUpdated(_setToken, true, _newCollateralAssets);
    }

    /**
     * MANAGER ONLY: Remove collateral asset. Collateral asset exited in Compound markets
     * If there is a borrow balance, collateral asset cannot be removed
     *
     * @param _setToken             Instance of the SetToken
     * @param _collateralAssets     Addresses of collateral underlying assets to remove
     */
    function removeCollateralAssets(ISetToken _setToken, IERC20[] memory _collateralAssets) external onlyManagerAndValidSet(_setToken) {
        // Sync Compound and SetToken positions prior to any removal action
        sync(_setToken, true);

        for(uint256 i = 0; i < _collateralAssets.length; i++) {
            ICErc20 cToken = underlyingToCToken[_collateralAssets[i]];
            require(collateralCTokenEnabled[_setToken][cToken], "Collateral not enabled");
            
            // Note: Will only exit market if cToken is not enabled as a borrow asset as well
            // If there is an existing borrow balance, will revert and market cannot be exited on Compound
            if (!borrowCTokenEnabled[_setToken][cToken]) {
                _setToken.invokeExitMarket(cToken, comptroller);
            }

            delete collateralCTokenEnabled[_setToken][cToken];
            enabledAssets[_setToken].collateralCTokens.removeStorage(address(cToken));
        }

        emit CollateralAssetsUpdated(_setToken, false, _collateralAssets);
    }

    /**
     * MANAGER ONLY: Add borrow asset. Borrow asset is tracked for syncing positions and entered in Compound markets
     *
     * @param _setToken             Instance of the SetToken
     * @param _newBorrowAssets      Addresses of borrow underlying assets to add
     */
    function addBorrowAssets(ISetToken _setToken, IERC20[] memory _newBorrowAssets) public onlyManagerAndValidSet(_setToken) {
        for(uint256 i = 0; i < _newBorrowAssets.length; i++) {
            IERC20 newBorrowAsset = _newBorrowAssets[i];
            ICErc20 cToken = underlyingToCToken[newBorrowAsset];
            require(address(cToken) != address(0), "cToken must exist");
            require(!borrowCTokenEnabled[_setToken][cToken], "Borrow enabled");

            // Note: Will only enter market if cToken is not enabled as a borrow asset as well
            if (!collateralCTokenEnabled[_setToken][cToken]) {
                _setToken.invokeEnterMarkets(cToken, comptroller);
            }

            borrowCTokenEnabled[_setToken][cToken] = true;
            enabledAssets[_setToken].borrowCTokens.push(address(cToken));
            enabledAssets[_setToken].borrowAssets.push(address(newBorrowAsset));
        }

        emit BorrowAssetsUpdated(_setToken, true, _newBorrowAssets);
    }

    /**
     * MANAGER ONLY: Remove borrow asset. Borrow asset is exited in Compound markets
     * If there is a borrow balance, borrow asset cannot be removed
     *
     * @param _setToken             Instance of the SetToken
     * @param _borrowAssets         Addresses of borrow underlying assets to remove
     */
    function removeBorrowAssets(ISetToken _setToken, IERC20[] memory _borrowAssets) external onlyManagerAndValidSet(_setToken) {
        // Sync Compound and SetToken positions prior to any removal action
        sync(_setToken, true);

        for(uint256 i = 0; i < _borrowAssets.length; i++) {
            ICErc20 cToken = underlyingToCToken[_borrowAssets[i]];
            require(borrowCTokenEnabled[_setToken][cToken], "Borrow not enabled");
            
            // Note: Will only exit market if cToken is not enabled as a collateral asset as well
            // If there is an existing borrow balance, will revert and market cannot be exited on Compound
            if (!collateralCTokenEnabled[_setToken][cToken]) {
                _setToken.invokeExitMarket(cToken, comptroller);
            }

            delete borrowCTokenEnabled[_setToken][cToken];
            enabledAssets[_setToken].borrowCTokens.removeStorage(address(cToken));
            enabledAssets[_setToken].borrowAssets.removeStorage(address(_borrowAssets[i]));
        }

        emit BorrowAssetsUpdated(_setToken, false, _borrowAssets);
    }

    /**
     * GOVERNANCE ONLY: Add or remove allowed SetToken to initialize this module. Only callable by governance.
     *
     * @param _setToken             Instance of the SetToken
     */
    function updateAllowedSetToken(ISetToken _setToken, bool _status) external onlyOwner {
        allowedSetTokens[_setToken] = _status;
        emit SetTokenStatusUpdated(_setToken, _status);
    }

    /**
     * GOVERNANCE ONLY: Toggle whether any SetToken is allowed to initialize this module. Only callable by governance.
     *
     * @param _anySetAllowed             Bool indicating whether allowedSetTokens is enabled
     */
    function updateAnySetAllowed(bool _anySetAllowed) external onlyOwner {
        anySetAllowed = _anySetAllowed;
        emit AnySetAllowedUpdated(_anySetAllowed);
    }

    /**
     * GOVERNANCE ONLY: Add Compound market to module with stored underlying to cToken mapping in case of market additions to Compound.
     *
     * // importANT: Validations are skipped in order to get contract under bytecode limit 
     *
     * @param _cToken                   Address of cToken to add
     * @param _underlying               Address of underlying token that maps to cToken
     */
    function addCompoundMarket(ICErc20 _cToken, IERC20 _underlying) external onlyOwner {
        require(address(underlyingToCToken[_underlying]) == address(0), "Already added");
        underlyingToCToken[_underlying] = _cToken;
    }

    /**
     * GOVERNANCE ONLY: Remove Compound market on stored underlying to cToken mapping in case of market removals
     *
     * // importANT: Validations are skipped in order to get contract under bytecode limit 
     *
     * @param _underlying               Address of underlying token to remove
     */
    function removeCompoundMarket(IERC20 _underlying) external onlyOwner {
        require(address(underlyingToCToken[_underlying]) != address(0), "Not added");
        delete underlyingToCToken[_underlying];
    }

    /**
     * MODULE ONLY: Hook called prior to issuance to sync positions on SetToken. Only callable by valid module.
     *
     * @param _setToken             Instance of the SetToken
     */
    function moduleIssueHook(ISetToken _setToken, uint256 /* _setTokenQuantity */) external onlyModule(_setToken) {
        sync(_setToken, false);
    }

    /**
     * MODULE ONLY: Hook called prior to redemption to sync positions on SetToken. For redemption, always use current borrowed balance after interest accrual.
     * Only callable by valid module.
     *
     * @param _setToken             Instance of the SetToken
     */
    function moduleRedeemHook(ISetToken _setToken, uint256 /* _setTokenQuantity */) external onlyModule(_setToken) {
        sync(_setToken, true);
    }

    /**
     * MODULE ONLY: Hook called prior to looping through each component on issuance. Invokes borrow in order for module to return debt to issuer. Only callable by valid module.
     *
     * @param _setToken             Instance of the SetToken
     * @param _setTokenQuantity     Quantity of SetToken
     * @param _component            Address of component
     */
    function componentIssueHook(ISetToken _setToken, uint256 _setTokenQuantity, IERC20 _component, bool /* _isEquity */) external onlyModule(_setToken) {
        int256 componentDebt = _setToken.getExternalPositionRealUnit(address(_component), address(this));

        require(componentDebt < 0, "Component must be negative");

        uint256 notionalDebt = componentDebt.mul(-1).toUint256().preciseMul(_setTokenQuantity);

        _borrow(_setToken, underlyingToCToken[_component], notionalDebt);
    }

    /**
     * MODULE ONLY: Hook called prior to looping through each component on redemption. Invokes repay after issuance module transfers debt from issuer. Only callable by valid module.
     *
     * @param _setToken             Instance of the SetToken
     * @param _setTokenQuantity     Quantity of SetToken
     * @param _component            Address of component
     */
    function componentRedeemHook(ISetToken _setToken, uint256 _setTokenQuantity, IERC20 _component, bool /* _isEquity */) external onlyModule(_setToken) {
        int256 componentDebt = _setToken.getExternalPositionRealUnit(address(_component), address(this));

        require(componentDebt < 0, "Component must be negative");

        uint256 notionalDebt = componentDebt.mul(-1).toUint256().preciseMulCeil(_setTokenQuantity);

        _repayBorrow(_setToken, underlyingToCToken[_component], _component, notionalDebt);
    }


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

    /**
     * Get enabled assets for SetToken. Returns an array of enabled cTokens that are collateral assets and an
     * array of underlying that are borrow assets.
     *
     * @return                    Collateral cToken assets that are enabled
     * @return                    Underlying borrowed assets that are enabled.
     */
    function getEnabledAssets(ISetToken _setToken) external view returns(address[] memory, address[] memory) {
        return (
            enabledAssets[_setToken].collateralCTokens,
            enabledAssets[_setToken].borrowAssets
        );
    }

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

    /**
     * Mints the specified cToken from the underlying of the specified notional quantity. If cEther, the WETH must be 
     * unwrapped as it only accepts the underlying ETH.
     */
    function _mintCToken(ISetToken _setToken, ICErc20 _cToken, IERC20 _underlyingToken, uint256 _mintNotional) internal {
        if (_cToken == cEther) {
            _setToken.invokeUnwrapWETH(address(weth), _mintNotional);

            _setToken.invokeMintCEther(_cToken, _mintNotional);
        } else {
            _setToken.invokeApprove(address(_underlyingToken), address(_cToken), _mintNotional);

            _setToken.invokeMintCToken(_cToken, _mintNotional);
        }
    }

    /**
     * Invoke redeem from SetToken. If cEther, then also wrap ETH into WETH.
     */
    function _redeemUnderlying(ISetToken _setToken, ICErc20 _cToken, uint256 _redeemNotional) internal {
        _setToken.invokeRedeemUnderlying(_cToken, _redeemNotional);

        if (_cToken == cEther) {
            _setToken.invokeWrapWETH(address(weth), _redeemNotional);
        }
    }

    /**
     * Invoke repay from SetToken. If cEther then unwrap WETH into ETH.
     */
    function _repayBorrow(ISetToken _setToken, ICErc20 _cToken, IERC20 _underlyingToken, uint256 _repayNotional) internal {
        if (_cToken == cEther) {
            _setToken.invokeUnwrapWETH(address(weth), _repayNotional);

            _setToken.invokeRepayBorrowCEther(_cToken, _repayNotional);
        } else {
            // Approve to cToken
            _setToken.invokeApprove(address(_underlyingToken), address(_cToken), _repayNotional);
            _setToken.invokeRepayBorrowCToken(_cToken, _repayNotional);
        }
    }

    /**
     * Invoke the SetToken to interact with the specified cToken to borrow the cToken's underlying of the specified borrowQuantity.
     */
    function _borrow(ISetToken _setToken, ICErc20 _cToken, uint256 _notionalBorrowQuantity) internal {
        _setToken.invokeBorrow(_cToken, _notionalBorrowQuantity);
        if (_cToken == cEther) {
            _setToken.invokeWrapWETH(address(weth), _notionalBorrowQuantity);
        }
    }

    /**
     * Invokes approvals, gets trade call data from exchange adapter and invokes trade from SetToken
     */
    function _executeTrade(
        ActionInfo memory _actionInfo,
        IERC20 _sendToken,
        IERC20 _receiveToken,
        bytes memory _data
    )
        internal
        returns (uint256)
    {
         ISetToken setToken = _actionInfo.setToken;
         uint256 notionalSendQuantity = _actionInfo.notionalSendQuantity;

         setToken.invokeApprove(
            address(_sendToken),
            _actionInfo.exchangeAdapter.getSpender(),
            notionalSendQuantity
        );

        (
            address targetExchange,
            uint256 callValue,
            bytes memory methodData
        ) = _actionInfo.exchangeAdapter.getTradeCalldata(
            address(_sendToken),
            address(_receiveToken),
            address(setToken),
            notionalSendQuantity,
            _actionInfo.minNotionalReceiveQuantity,
            _data
        );

        setToken.invoke(targetExchange, callValue, methodData);

        uint256 receiveTokenQuantity = _receiveToken.balanceOf(address(setToken)).sub(_actionInfo.preTradeReceiveTokenBalance);
        require(
            receiveTokenQuantity >= _actionInfo.minNotionalReceiveQuantity,
            "Slippage too high"
        );

        return receiveTokenQuantity;
    }

    /**
     * Calculates protocol fee on module and pays protocol fee from SetToken
     */
    function _accrueProtocolFee(ISetToken _setToken, IERC20 _receiveToken, uint256 _exchangedQuantity) internal returns(uint256) {
        uint256 protocolFeeTotal = getModuleFee(PROTOCOL_TRADE_FEE_INDEX, _exchangedQuantity);
        
        payProtocolFeeFromSetToken(_setToken, address(_receiveToken), protocolFeeTotal);

        return protocolFeeTotal;
    }

    function _updateLeverPositions(ActionInfo memory actionInfo, IERC20 _borrowAsset) internal {
        _updateCollateralPosition(
            actionInfo.setToken,
            actionInfo.collateralCTokenAsset,
            _getCollateralPosition(
                actionInfo.setToken,
                actionInfo.collateralCTokenAsset,
                actionInfo.setTotalSupply
            )
        );

        _updateBorrowPosition(
            actionInfo.setToken,
            _borrowAsset,
            _getBorrowPosition(
                actionInfo.setToken,
                actionInfo.borrowCTokenAsset,
                actionInfo.setTotalSupply,
                false // Do not accrue interest
            )
        );
    }

    function _updateCollateralPosition(ISetToken _setToken, ICErc20 _cToken, uint256 _newPositionUnit) internal {
        _setToken.editDefaultPosition(address(_cToken), _newPositionUnit);
    }

    function _updateBorrowPosition(ISetToken _setToken, IERC20 _underlyingToken, int256 _newPositionUnit) internal {
        _setToken.editExternalPosition(address(_underlyingToken), address(this), _newPositionUnit, "");
    }

    /**
     * Construct the ActionInfo struct for lever and delever
     */
    function _createAndValidateActionInfo(
        ISetToken _setToken,
        IERC20 _sendToken,
        IERC20 _receiveToken,
        uint256 _sendQuantityUnits,
        uint256 _minReceiveQuantityUnits,
        string memory _tradeAdapterName,
        bool _isLever
    )
        internal
        view
        returns(ActionInfo memory)
    {
        uint256 totalSupply = _setToken.totalSupply();

        return _createAndValidateActionInfoNotional(
            _setToken,
            _sendToken,
            _receiveToken,
            _sendQuantityUnits.preciseMul(totalSupply),
            _minReceiveQuantityUnits.preciseMul(totalSupply),
            _tradeAdapterName,
            _isLever
        );
    }

    /**
     * Construct the ActionInfo struct for lever and delever accepting notional units
     */
    function _createAndValidateActionInfoNotional(
        ISetToken _setToken,
        IERC20 _sendToken,
        IERC20 _receiveToken,
        uint256 _notionalSendQuantity,
        uint256 _minNotionalReceiveQuantity,
        string memory _tradeAdapterName,
        bool _isLever
    )
        internal
        view
        returns(ActionInfo memory)
    {
        uint256 totalSupply = _setToken.totalSupply();
        ActionInfo memory actionInfo = ActionInfo ({
            exchangeAdapter: IExchangeAdapter(getAndValidateAdapter(_tradeAdapterName)),
            setToken: _setToken,
            collateralCTokenAsset: _isLever ? underlyingToCToken[_receiveToken] : underlyingToCToken[_sendToken],
            borrowCTokenAsset: _isLever ? underlyingToCToken[_sendToken] : underlyingToCToken[_receiveToken],
            setTotalSupply: totalSupply,
            notionalSendQuantity: _notionalSendQuantity,
            minNotionalReceiveQuantity: _minNotionalReceiveQuantity,
            preTradeReceiveTokenBalance: IERC20(_receiveToken).balanceOf(address(_setToken))
        });

        _validateCommon(actionInfo);

        return actionInfo;
    }



    function _validateCommon(ActionInfo memory _actionInfo) internal view {
        require(collateralCTokenEnabled[_actionInfo.setToken][_actionInfo.collateralCTokenAsset], "Collateral not enabled");
        require(borrowCTokenEnabled[_actionInfo.setToken][_actionInfo.borrowCTokenAsset], "Borrow not enabled");
        require(_actionInfo.collateralCTokenAsset != _actionInfo.borrowCTokenAsset, "Must be different");
        require(_actionInfo.notionalSendQuantity > 0, "Quantity is 0");
    }

    function _getCollateralPosition(ISetToken _setToken, ICErc20 _cToken, uint256 _setTotalSupply) internal view returns (uint256) {
        uint256 collateralNotionalBalance = _cToken.balanceOf(address(_setToken));
        return collateralNotionalBalance.preciseDiv(_setTotalSupply);
    }

    /**
     * Get borrow position. If should accrue interest is true, then accrue interest on Compound and use current borrow balance, else use the stored value to save gas.
     * Use the current value for debt redemption, when we need to calculate the exact units of debt that needs to be repaid.
     */
    function _getBorrowPosition(ISetToken _setToken, ICErc20 _cToken, uint256 _setTotalSupply, bool _shouldAccrueInterest) internal returns (int256) {
        uint256 borrowNotionalBalance = _shouldAccrueInterest ? _cToken.borrowBalanceCurrent(address(_setToken)) : _cToken.borrowBalanceStored(address(_setToken));
        // Round negative away from 0
        int256 borrowPositionUnit = borrowNotionalBalance.preciseDivCeil(_setTotalSupply).toInt256().mul(-1);

        return borrowPositionUnit;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IController","name":"_controller","type":"address"},{"internalType":"contract IERC20","name":"_compToken","type":"address"},{"internalType":"contract IComptroller","name":"_comptroller","type":"address"},{"internalType":"contract ICErc20","name":"_cEther","type":"address"},{"internalType":"contract IERC20","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_anySetAllowed","type":"bool"}],"name":"AnySetAllowedUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"bool","name":"_added","type":"bool"},{"indexed":false,"internalType":"contract IERC20[]","name":"_assets","type":"address[]"}],"name":"BorrowAssetsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"bool","name":"_added","type":"bool"},{"indexed":false,"internalType":"contract IERC20[]","name":"_assets","type":"address[]"}],"name":"CollateralAssetsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"_collateralAsset","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"_repayAsset","type":"address"},{"indexed":false,"internalType":"contract IExchangeAdapter","name":"_exchangeAdapter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_totalRedeemAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalRepayAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_protocolFee","type":"uint256"}],"name":"LeverageDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"_borrowAsset","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"_collateralAsset","type":"address"},{"indexed":false,"internalType":"contract IExchangeAdapter","name":"_exchangeAdapter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_totalBorrowAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalReceiveAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_protocolFee","type":"uint256"}],"name":"LeverageIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"bool","name":"_added","type":"bool"}],"name":"SetTokenStatusUpdated","type":"event"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20[]","name":"_newBorrowAssets","type":"address[]"}],"name":"addBorrowAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20[]","name":"_newCollateralAssets","type":"address[]"}],"name":"addCollateralAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"address"},{"internalType":"contract IERC20","name":"_underlying","type":"address"}],"name":"addCompoundMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"","type":"address"}],"name":"allowedSetTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"anySetAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"","type":"address"},{"internalType":"contract ICErc20","name":"","type":"address"}],"name":"borrowCTokenEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"","type":"address"},{"internalType":"contract ICErc20","name":"","type":"address"}],"name":"collateralCTokenEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"_setTokenQuantity","type":"uint256"},{"internalType":"contract IERC20","name":"_component","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"componentIssueHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"_setTokenQuantity","type":"uint256"},{"internalType":"contract IERC20","name":"_component","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"componentRedeemHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"contract IController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_collateralAsset","type":"address"},{"internalType":"contract IERC20","name":"_repayAsset","type":"address"},{"internalType":"uint256","name":"_redeemQuantity","type":"uint256"},{"internalType":"uint256","name":"_minRepayQuantity","type":"uint256"},{"internalType":"string","name":"_tradeAdapterName","type":"string"},{"internalType":"bytes","name":"_tradeData","type":"bytes"}],"name":"delever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_collateralAsset","type":"address"},{"internalType":"contract IERC20","name":"_repayAsset","type":"address"},{"internalType":"uint256","name":"_redeemQuantity","type":"uint256"},{"internalType":"string","name":"_tradeAdapterName","type":"string"},{"internalType":"bytes","name":"_tradeData","type":"bytes"}],"name":"deleverToZeroBorrowBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"}],"name":"getEnabledAssets","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20[]","name":"_collateralAssets","type":"address[]"},{"internalType":"contract IERC20[]","name":"_borrowAssets","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_borrowAsset","type":"address"},{"internalType":"contract IERC20","name":"_collateralAsset","type":"address"},{"internalType":"uint256","name":"_borrowQuantity","type":"uint256"},{"internalType":"uint256","name":"_minReceiveQuantity","type":"uint256"},{"internalType":"string","name":"_tradeAdapterName","type":"string"},{"internalType":"bytes","name":"_tradeData","type":"bytes"}],"name":"lever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"moduleIssueHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"moduleRedeemHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IDebtIssuanceModule","name":"_debtIssuanceModule","type":"address"}],"name":"registerToModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20[]","name":"_borrowAssets","type":"address[]"}],"name":"removeBorrowAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20[]","name":"_collateralAssets","type":"address[]"}],"name":"removeCollateralAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_underlying","type":"address"}],"name":"removeCompoundMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"bool","name":"_shouldAccrueInterest","type":"bool"}],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"underlyingToCToken","outputs":[{"internalType":"contract ICErc20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateAllowedSetToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_anySetAllowed","type":"bool"}],"name":"updateAnySetAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200623838038062006238833981016040819052620000349162000382565b600080546001600160a01b0319166001600160a01b038716178155600180556200005d62000290565b600280546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600780546001600160a01b03199081166001600160a01b03878116919091179092556006805482168684161790819055600580548316868516179055600480549092168484161782556040805163b0772d0b60e01b81529051606094929092169263b0772d0b928282019260009290829003018186803b1580156200012f57600080fd5b505afa15801562000144573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200016e9190810190620002cd565b905060005b8151811015620002835760008282815181106200018c57fe5b602002602001015190508060036000876001600160a01b0316846001600160a01b0316146200024657858581518110620001c257fe5b60200260200101516001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200020557600080fd5b505af11580156200021a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002409190620002a7565b62000248565b865b6001600160a01b039081168252602082019290925260400160002080546001600160a01b031916929091169190911790555060010162000173565b5050505050505062000441565b3390565b8051620002a18162000428565b92915050565b600060208284031215620002b9578081fd5b8151620002c68162000428565b9392505050565b60006020808385031215620002e0578182fd5b82516001600160401b0380821115620002f7578384fd5b81850186601f82011262000309578485fd5b80519250818311156200031a578485fd5b83830291506200032c84830162000401565b8381528481019082860184840187018a101562000347578788fd5b8794505b858510156200037557620003608a8262000294565b8352600194909401939186019186016200034b565b5098975050505050505050565b600080600080600060a086880312156200039a578081fd5b8551620003a78162000428565b6020870151909550620003ba8162000428565b6040870151909450620003cd8162000428565b6060870151909350620003e08162000428565b6080870151909250620003f38162000428565b809150509295509295909350565b6040518181016001600160401b03811182821017156200042057600080fd5b604052919050565b6001600160a01b03811681146200043e57600080fd5b50565b615de780620004516000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80638da5cb5b11610104578063cffe5e82116100a2578063f2fde38b11610071578063f2fde38b146103b6578063f452c760146103c9578063f77c4791146103dc578063ffbad25c146103e4576101cf565b8063cffe5e821461036a578063d473e09a1461037d578063d4fd27eb14610390578063ee78244f146103a3576101cf565b8063b1dd4d92116100de578063b1dd4d9214610329578063c137f4d714610331578063c153dd0714610344578063c690a74c14610357576101cf565b80638da5cb5b146102ca578063a6e937b1146102e8578063b1c0267814610308576101cf565b80635199e418116101715780635ce0cef61161014b5780635ce0cef614610294578063715018a6146102a7578063717ca2a5146102af578063847ef08d146102c2576101cf565b80635199e4181461025b5780635809ae271461026e5780635b13651214610281576101cf565b80633fe6106b116101ad5780633fe6106b1461020f5780634a200fa5146102225780634fdd283c14610235578063516595fc14610248576101cf565b8063013c03a1146101d45780630df96ef6146101e95780630fb96b21146101fc575b600080fd5b6101e76101e2366004614f00565b6103f7565b005b6101e76101f73660046150cf565b610493565b6101e761020a36600461532b565b6106ff565b6101e761021d366004615300565b610944565b6101e761023036600461511d565b610a97565b6101e7610243366004615254565b610def565b6101e76102563660046150cf565b610f5a565b6101e761026936600461502c565b6111bd565b6101e761027c3660046150cf565b61122f565b6101e761028f366004615097565b61143e565b6101e76102a2366004615097565b61157c565b6101e7611619565b6101e76102bd3660046150cf565b611698565b6101e76118de565b6102d2611d1c565b6040516102df9190615423565b60405180910390f35b6102fb6102f6366004615097565b611d2c565b6040516102df91906155a1565b61031b610316366004614f00565b611d4c565b6040516102df92919061552f565b6102fb611e2a565b6101e761033f36600461532b565b611e33565b6101e7610352366004615300565b61206b565b6101e7610365366004615186565b6121b9565b6101e7610378366004615186565b612242565b6102d261038b366004614f00565b61263e565b6101e761039e3660046151b3565b612659565b6102fb6103b1366004614f00565b612936565b6101e76103c4366004614f00565b61294b565b6102fb6103d7366004615097565b612a02565b6102d2612a22565b6101e76103f2366004615254565b612a31565b6103ff612b82565b6002546001600160a01b039081169116146104355760405162461bcd60e51b815260040161042c906159d1565b60405180910390fd5b6001600160a01b038181166000908152600360205260409020541661046c5760405162461bcd60e51b815260040161042c90615ca1565b6001600160a01b0316600090815260036020526040902080546001600160a01b0319169055565b8161049e8133612b86565b6104ba5760405162461bcd60e51b815260040161042c90615c07565b6104c381612c16565b6104df5760405162461bcd60e51b815260040161042c9061566e565b6104ea836001612242565b60005b82518110156106b45760006003600085848151811061050857fe5b6020908102919091018101516001600160a01b039081168352828201939093526040918201600090812054898516825260098352838220941680825293909152205490915060ff1661056c5760405162461bcd60e51b815260040161042c90615871565b6001600160a01b0380861660009081526008602090815260408083209385168352929052205460ff1661061357600654604051629c09c960e41b815273094dad10e112299a384bc9dc18465c8701b0ca9b916309c09c90916105e2916001600160a01b03808b16928792909116906004016155d2565b60006040518083038186803b1580156105fa57600080fd5b505af415801561060e573d6000803e3d6000fd5b505050505b6001600160a01b0380861660008181526009602090815260408083209486168352938152838220805460ff19169055918152600a9091522061065e906001018263ffffffff612d1a16565b6106ab84838151811061066d57fe5b6020026020010151600a6000886001600160a01b03166001600160a01b03168152602001908152602001600020600201612d1a90919063ffffffff16565b506001016104ed565b5060001515836001600160a01b03167f1c400b459725a0446742d6688375dffe941d5f9a65fe3900c93e07d9e772250b846040516106f29190615554565b60405180910390a3505050565b836002604051631ade272960e11b81526001600160a01b038316906335bc4e529061072e903390600401615423565b60206040518083038186803b15801561074657600080fd5b505afa15801561075a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077e919061537d565b600281111561078957fe5b146107a65760405162461bcd60e51b815260040161042c906158d2565b6000546040516342f6e38960e01b81526001600160a01b03909116906342f6e389906107d6903390600401615423565b60206040518083038186803b1580156107ee57600080fd5b505afa158015610802573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108269190615048565b6108425760405162461bcd60e51b815260040161042c90615b80565b6040516308bafae960e21b81526000906001600160a01b038716906322ebeba4906108739087903090600401615437565b60206040518083038186803b15801561088b57600080fd5b505afa15801561089f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c3919061539c565b9050600081126108e55760405162461bcd60e51b815260040161042c90615637565b6000610911866109056109008560001963ffffffff612e4716565b612eb9565b9063ffffffff612edf16565b6001600160a01b0380871660009081526003602052604090205491925061093b9189911683612f09565b50505050505050565b816002604051631ade272960e11b81526001600160a01b038316906335bc4e5290610973903390600401615423565b60206040518083038186803b15801561098b57600080fd5b505afa15801561099f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c3919061537d565b60028111156109ce57fe5b146109eb5760405162461bcd60e51b815260040161042c906158d2565b6000546040516342f6e38960e01b81526001600160a01b03909116906342f6e38990610a1b903390600401615423565b60206040518083038186803b158015610a3357600080fd5b505afa158015610a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6b9190615048565b610a875760405162461bcd60e51b815260040161042c90615b80565b610a92836001612242565b505050565b8233610aa38282612b86565b610abf5760405162461bcd60e51b815260040161042c90615c07565b600054604051631d3af8fb60e21b815286916001600160a01b0316906374ebe3ec90610aef908490600401615423565b60206040518083038186803b158015610b0757600080fd5b505afa158015610b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3f9190615048565b610b5b5760405162461bcd60e51b815260040161042c90615bc4565b610b6481612fb5565b610b805760405162461bcd60e51b815260040161042c9061575e565b600c5460ff16610bc2576001600160a01b0386166000908152600b602052604090205460ff16610bc25760405162461bcd60e51b815260040161042c90615a06565b856001600160a01b0316630ffe0f1e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610bfd57600080fd5b505af1158015610c11573d6000803e3d6000fd5b50505050856001600160a01b031663d7f1b27c610c5a6040518060400160405280601581526020017444656661756c7449737375616e63654d6f64756c6560581b815250612fe4565b6040518263ffffffff1660e01b8152600401610c769190615423565b60206040518083038186803b158015610c8e57600080fd5b505afa158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190615048565b610ce25760405162461bcd60e51b815260040161042c90615909565b6060866001600160a01b031663b2494df36040518163ffffffff1660e01b815260040160006040518083038186803b158015610d1d57600080fd5b505afa158015610d31573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d599190810190614f90565b905060005b8151811015610dda57818181518110610d7357fe5b60200260200101516001600160a01b031663d9b1b6e0896040518263ffffffff1660e01b8152600401610da69190615423565b600060405180830381600087803b158015610dc057600080fd5b505af1925050508015610dd1575060015b50600101610d5e565b50610de58787611698565b61093b8786610f5a565b60026001541415610e125760405162461bcd60e51b815260040161042c90615c6a565b600260015586610e228133612b86565b610e3e5760405162461bcd60e51b815260040161042c90615c07565b610e4781612c16565b610e635760405162461bcd60e51b815260040161042c9061566e565b610e6b614d52565b610e7b8989898989896000612ffb565b9050610e9481600001518260a0015183606001516130b2565b6000610ea2828a8a876130f6565b90506000610eb18b8a84613384565b90506000610ec5838363ffffffff6133a716565b9050610edb84600001518560c001518c846133e9565b610ee5848b61352d565b896001600160a01b03168b6001600160a01b03168d6001600160a01b03167f7cda30123ddfc96659344700585861a8670352b9cc86d1b1054d10083b1dcdd4876020015188606001518688604051610f4094939291906155ac565b60405180910390a450506001805550505050505050505050565b81610f658133612b86565b610f815760405162461bcd60e51b815260040161042c90615c07565b610f8a81612c16565b610fa65760405162461bcd60e51b815260040161042c9061566e565b60005b825181101561117f576000838281518110610fc057fe5b6020908102919091018101516001600160a01b038082166000908152600390935260409092205490925016806110085760405162461bcd60e51b815260040161042c906157bc565b6001600160a01b0380871660009081526009602090815260408083209385168352929052205460ff161561104e5760405162461bcd60e51b815260040161042c90615ad9565b6001600160a01b0380871660009081526008602090815260408083209385168352929052205460ff166110f657600654604051632c5febc760e21b815273094dad10e112299a384bc9dc18465c8701b0ca9b9163b17faf1c916110c5916001600160a01b03808c16928792909116906004016155d2565b60006040518083038186803b1580156110dd57600080fd5b505af41580156110f1573d6000803e3d6000fd5b505050505b6001600160a01b0386811660008181526009602090815260408083209585168084529582528083208054600160ff199091168117909155938352600a82528220808401805480860182559084528284200180546001600160a01b031990811690971790556002018054808501825590835291200180549093169390911692909217905501610fa9565b5060011515836001600160a01b03167f1c400b459725a0446742d6688375dffe941d5f9a65fe3900c93e07d9e772250b846040516106f29190615554565b6111c5612b82565b6002546001600160a01b039081169116146111f25760405162461bcd60e51b815260040161042c906159d1565b600c805460ff19168215159081179091556040517f563e1633136cdd43b8793897cb53ba2a9e31c18b3ae0b6827fbbb03b9902e6c690600090a250565b8161123a8133612b86565b6112565760405162461bcd60e51b815260040161042c90615c07565b61125f81612c16565b61127b5760405162461bcd60e51b815260040161042c9061566e565b611286836001612242565b60005b8251811015611400576000600360008584815181106112a457fe5b6020908102919091018101516001600160a01b039081168352828201939093526040918201600090812054898516825260088352838220941680825293909152205490915060ff166113085760405162461bcd60e51b815260040161042c90615841565b6001600160a01b0380861660009081526009602090815260408083209385168352929052205460ff166113af57600654604051629c09c960e41b815273094dad10e112299a384bc9dc18465c8701b0ca9b916309c09c909161137e916001600160a01b03808b16928792909116906004016155d2565b60006040518083038186803b15801561139657600080fd5b505af41580156113aa573d6000803e3d6000fd5b505050505b6001600160a01b0380861660008181526008602090815260408083209486168352938152838220805460ff19169055918152600a909152206113f7908263ffffffff612d1a16565b50600101611289565b5060001515836001600160a01b03167fdd2a86f23a66f86496c82312e991b49f87ad96c4f25094a43c49f7aca0ea3542846040516106f29190615554565b816114498133612b86565b6114655760405162461bcd60e51b815260040161042c90615c07565b61146e81612c16565b61148a5760405162461bcd60e51b815260040161042c9061566e565b6040516335fc6c9f60e21b81526001600160a01b0384169063d7f1b27c906114b6908590600401615423565b60206040518083038186803b1580156114ce57600080fd5b505afa1580156114e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115069190615048565b6115225760405162461bcd60e51b815260040161042c90615909565b6040516306cd8db760e51b81526001600160a01b0383169063d9b1b6e09061154e908690600401615423565b600060405180830381600087803b15801561156857600080fd5b505af115801561093b573d6000803e3d6000fd5b611584612b82565b6002546001600160a01b039081169116146115b15760405162461bcd60e51b815260040161042c906159d1565b6001600160a01b0381811660009081526003602052604090205416156115e95760405162461bcd60e51b815260040161042c90615ab2565b6001600160a01b0390811660009081526003602052604090208054919092166001600160a01b0319909116179055565b611621612b82565b6002546001600160a01b0390811691161461164e5760405162461bcd60e51b815260040161042c906159d1565b6002546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600280546001600160a01b0319169055565b816116a38133612b86565b6116bf5760405162461bcd60e51b815260040161042c90615c07565b6116c881612c16565b6116e45760405162461bcd60e51b815260040161042c9061566e565b60005b82518110156118a05760006003600085848151811061170257fe5b6020908102919091018101516001600160a01b0390811683529082019290925260400160002054169050806117495760405162461bcd60e51b815260040161042c906157bc565b6001600160a01b0380861660009081526008602090815260408083209385168352929052205460ff161561178f5760405162461bcd60e51b815260040161042c90615c3e565b6001600160a01b0380861660009081526009602090815260408083209385168352929052205460ff1661183757600654604051632c5febc760e21b815273094dad10e112299a384bc9dc18465c8701b0ca9b9163b17faf1c91611806916001600160a01b03808b16928792909116906004016155d2565b60006040518083038186803b15801561181e57600080fd5b505af4158015611832573d6000803e3d6000fd5b505050505b6001600160a01b03808616600081815260086020908152604080832095909416808352948152838220805460ff19166001908117909155928252600a81529281208054808401825590825292902090910180546001600160a01b031916909217909155016116e7565b5060011515836001600160a01b03167fdd2a86f23a66f86496c82312e991b49f87ad96c4f25094a43c49f7aca0ea3542846040516106f29190615554565b336118e881612c16565b6119045760405162461bcd60e51b815260040161042c9061566e565b33611910816001612242565b6001600160a01b0381166000908152600a602090815260409182902060010180548351818402810184019094528084526060939283018282801561197d57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161195f575b50939450600093505050505b8151811015611a8e5760008282815181106119a057fe5b6020908102919091018101516001600160a01b0380871660009081526008845260408082209284168252919093529091205490915060ff16611a5657600654604051629c09c960e41b815273094dad10e112299a384bc9dc18465c8701b0ca9b916309c09c9091611a25916001600160a01b03808a16928792909116906004016155d2565b60006040518083038186803b158015611a3d57600080fd5b505af4158015611a51573d6000803e3d6000fd5b505050505b6001600160a01b038085166000908152600960209081526040808320949093168252929092529020805460ff19169055600101611989565b506001600160a01b0382166000908152600a6020908152604091829020805483518184028101840190945280845260609392830182828015611af957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611adb575b50939450600093505050505b8151811015611bda576000828281518110611b1c57fe5b6020908102919091010151600654604051629c09c960e41b815291925073094dad10e112299a384bc9dc18465c8701b0ca9b916309c09c9091611b72916001600160a01b03808b169287929116906004016155d2565b60006040518083038186803b158015611b8a57600080fd5b505af4158015611b9e573d6000803e3d6000fd5b505050506001600160a01b038581166000908152600860209081526040808320949093168252929092529020805460ff19169055600101611b05565b506001600160a01b0383166000908152600a6020526040812090611bfe8282614dbb565b611c0c600183016000614dbb565b611c1a600283016000614dbb565b50506060836001600160a01b031663b2494df36040518163ffffffff1660e01b815260040160006040518083038186803b158015611c5757600080fd5b505afa158015611c6b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c939190810190614f90565b905060005b8151811015611d1457818181518110611cad57fe5b60200260200101516001600160a01b031663e0799620866040518263ffffffff1660e01b8152600401611ce09190615423565b600060405180830381600087803b158015611cfa57600080fd5b505af1925050508015611d0b575060015b50600101611c98565b505050505050565b6002546001600160a01b03165b90565b600860209081526000928352604080842090915290825290205460ff1681565b6001600160a01b0381166000908152600a60209081526040918290208054835181840281018401909452808452606093849360028401928491830182828015611dbe57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611da0575b5050505050915080805480602002602001604051908101604052809291908181526020018280548015611e1a57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611dfc575b5050505050905091509150915091565b600c5460ff1681565b836002604051631ade272960e11b81526001600160a01b038316906335bc4e5290611e62903390600401615423565b60206040518083038186803b158015611e7a57600080fd5b505afa158015611e8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb2919061537d565b6002811115611ebd57fe5b14611eda5760405162461bcd60e51b815260040161042c906158d2565b6000546040516342f6e38960e01b81526001600160a01b03909116906342f6e38990611f0a903390600401615423565b60206040518083038186803b158015611f2257600080fd5b505afa158015611f36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5a9190615048565b611f765760405162461bcd60e51b815260040161042c90615b80565b6040516308bafae960e21b81526000906001600160a01b038716906322ebeba490611fa79087903090600401615437565b60206040518083038186803b158015611fbf57600080fd5b505afa158015611fd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff7919061539c565b9050600081126120195760405162461bcd60e51b815260040161042c90615637565b6000612040866120346109008560001963ffffffff612e4716565b9063ffffffff61357c16565b6001600160a01b0380871660009081526003602052604090205491925061093b9189911687846133e9565b816002604051631ade272960e11b81526001600160a01b038316906335bc4e529061209a903390600401615423565b60206040518083038186803b1580156120b257600080fd5b505afa1580156120c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ea919061537d565b60028111156120f557fe5b146121125760405162461bcd60e51b815260040161042c906158d2565b6000546040516342f6e38960e01b81526001600160a01b03909116906342f6e38990612142903390600401615423565b60206040518083038186803b15801561215a57600080fd5b505afa15801561216e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121929190615048565b6121ae5760405162461bcd60e51b815260040161042c90615b80565b610a92836000612242565b6121c1612b82565b6002546001600160a01b039081169116146121ee5760405162461bcd60e51b815260040161042c906159d1565b6001600160a01b0382166000818152600b6020526040808220805460ff191685151590811790915590519092917f2035981b48691b10f6ac65174e570b4d0a8a889ae01bef3e5e7759ff9444f0c491a35050565b600260015414156122655760405162461bcd60e51b815260040161042c90615c6a565b60026001558161227481612c16565b6122905760405162461bcd60e51b815260040161042c9061566e565b6000836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156122cb57600080fd5b505afa1580156122df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612303919061539c565b90508015612634576001600160a01b0384166000908152600a602090815260409182902080548351818402810184019094528084526060939283018282801561237557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612357575b50939450600093505050505b815181101561245157600082828151811061239857fe5b602002602001015190506000612423886001600160a01b03166366cb8d2f846040518263ffffffff1660e01b81526004016123d39190615423565b60206040518083038186803b1580156123eb57600080fd5b505afa1580156123ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610900919061539c565b905060006124328984886135c7565b905080821461244657612446898483613661565b505050600101612381565b506001600160a01b0385166000908152600a60209081526040918290206001018054835181840281018401909452808452606093928301828280156124bf57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116124a1575b5050506001600160a01b0389166000908152600a60209081526040918290206002018054835181840281018401909452808452959650606095929450925083018282801561253657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612518575b50939450600093505050505b825181101561262f57600083828151811061255957fe5b60200260200101519050600083838151811061257157fe5b6020026020010151905060008a6001600160a01b03166322ebeba483306040518363ffffffff1660e01b81526004016125ab929190615437565b60206040518083038186803b1580156125c357600080fd5b505afa1580156125d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125fb919061539c565b9050600061260b8c858b8e61367b565b905081811461261f5761261f8c84836137bb565b5050600190920191506125429050565b505050505b5050600180555050565b6003602052600090815260409020546001600160a01b031681565b6002600154141561267c5760405162461bcd60e51b815260040161042c90615c6a565b60026001558561268c8133612b86565b6126a85760405162461bcd60e51b815260040161042c90615c07565b6126b181612c16565b6126cd5760405162461bcd60e51b815260040161042c9061566e565b6000612750886001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561270b57600080fd5b505afa15801561271f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612743919061539c565b869063ffffffff612edf16565b6001600160a01b03808a1660009081526009602090815260408083208b8516845260038352818420549094168352929052205490915060ff166127a55760405162461bcd60e51b815260040161042c90615871565b6001600160a01b038087166000908152600360205260408082205490516305eff7ef60e21b8152919216906317bfdfbc906127e4908c90600401615423565b602060405180830381600087803b1580156127fe57600080fd5b505af1158015612812573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612836919061539c565b9050612840614d52565b6128508a8a8a86868b60006137ea565b905061286981600001518260a0015183606001516130b2565b6000612877828b8b896130f6565b905061288d82600001518360c001518b866133e9565b604082015160e08301516128b4916001600160a01b038e16918c919063ffffffff6139da16565b5050506128c1828a61352d565b886001600160a01b03168a6001600160a01b03168c6001600160a01b03167f7cda30123ddfc96659344700585861a8670352b9cc86d1b1054d10083b1dcdd48560200151866060015188600060405161291d94939291906155ac565b60405180910390a4505060018055505050505050505050565b600b6020526000908152604090205460ff1681565b612953612b82565b6002546001600160a01b039081169116146129805760405162461bcd60e51b815260040161042c906159d1565b6001600160a01b0381166129a65760405162461bcd60e51b815260040161042c906156e1565b6002546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b600960209081526000928352604080842090915290825290205460ff1681565b6000546001600160a01b031681565b60026001541415612a545760405162461bcd60e51b815260040161042c90615c6a565b600260015586612a648133612b86565b612a805760405162461bcd60e51b815260040161042c90615c07565b612a8981612c16565b612aa55760405162461bcd60e51b815260040161042c9061566e565b612aad614d52565b612abd8989898989896001612ffb565b9050612ad681600001518260c001518360600151612f09565b6000612ae4828a8a876130f6565b90506000612af38b8a84613384565b90506000612b07838363ffffffff6133a716565b9050612b1d84600001518560a001518c84613acb565b612b27848c61352d565b896001600160a01b03168b6001600160a01b03168d6001600160a01b03167f359f8b62a966cfd521a3815681266407201b20a7c334925faa49e7d9d5dd57ab876020015188606001518688604051610f4094939291906155ac565b3390565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015612bcb57600080fd5b505afa158015612bdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c039190614f1c565b6001600160a01b03161490505b92915050565b60008054604051631d3af8fb60e21b81526001600160a01b03909116906374ebe3ec90612c47908590600401615423565b60206040518083038186803b158015612c5f57600080fd5b505afa158015612c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c979190615048565b8015612c1057506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90612cca903090600401615423565b60206040518083038186803b158015612ce257600080fd5b505afa158015612cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c109190615048565b600080612d8084805480602002602001604051908101604052809291908181526020018280548015612d7557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612d57575b505050505084613ba4565b9150915080612da15760405162461bcd60e51b815260040161042c90615608565b835460001901828114612e1357848181548110612dba57fe5b9060005260206000200160009054906101000a90046001600160a01b0316858481548110612de457fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b84805480612e1d57fe5b600082815260209020810160001990810180546001600160a01b0319169055019055505b50505050565b600082612e5657506000612c10565b82600019148015612e6a5750600160ff1b82145b15612e875760405162461bcd60e51b815260040161042c90615a34565b82820282848281612e9457fe5b0514612eb25760405162461bcd60e51b815260040161042c90615a34565b9392505050565b600080821215612edb5760405162461bcd60e51b815260040161042c9061589d565b5090565b6000612eb2670de0b6b3a7640000612efd858563ffffffff613c0a16565b9063ffffffff613c4416565b60405163beee4b4b60e01b815273094dad10e112299a384bc9dc18465c8701b0ca9b9063beee4b4b90612f4d906001600160a01b03871690869086906004016154cb565b60006040518083038186803b158015612f6557600080fd5b505af4158015612f79573d6000803e3d6000fd5b50506005546001600160a01b03858116911614159150610a92905057600454610a92906001600160a01b0385811691168363ffffffff613c8616565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790612cca903090600401615423565b600080612ff083613d3b565b9050612eb281613d46565b613003614d52565b6000886001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561303e57600080fd5b505afa158015613052573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613076919061539c565b90506130a589898961308e8a8663ffffffff612edf16565b61309e8a8763ffffffff612edf16565b89896137ea565b9998505050505050505050565b60405163aed2dfc960e01b815273094dad10e112299a384bc9dc18465c8701b0ca9b9063aed2dfc990612f4d906001600160a01b03871690869086906004016154cb565b6000808560000151905060008660600151905061319a8688602001516001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b15801561314a57600080fd5b505afa15801561315e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131829190614f1c565b6001600160a01b03851691908463ffffffff613e0316565b600080606089602001516001600160a01b031663e171fcab8a8a88888f608001518d6040518763ffffffff1660e01b81526004016131dd96959493929190615451565b60006040518083038186803b1580156131f557600080fd5b505afa158015613209573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526132319190810190614f38565b925092509250846001600160a01b0316638f6f03328484846040518463ffffffff1660e01b815260040161326793929190615508565b600060405180830381600087803b15801561328157600080fd5b505af1158015613295573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526132bd9190810190615064565b5060006133508b60e001518a6001600160a01b03166370a08231896040518263ffffffff1660e01b81526004016132f49190615423565b60206040518083038186803b15801561330c57600080fd5b505afa158015613320573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613344919061539c565b9063ffffffff6133a716565b90508a608001518110156133765760405162461bcd60e51b815260040161042c90615816565b9a9950505050505050505050565b600080613392600084613eca565b905061339f858583613f5f565b949350505050565b6000612eb283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614006565b6005546001600160a01b03848116911614156134985760045461341f906001600160a01b0386811691168363ffffffff61403216565b604051635d20259160e01b815273094dad10e112299a384bc9dc18465c8701b0ca9b90635d20259190613463906001600160a01b03881690879086906004016154cb565b60006040518083038186803b15801561347b57600080fd5b505af415801561348f573d6000803e3d6000fd5b50505050612e41565b6134b36001600160a01b03851683858463ffffffff613e0316565b604051637d43967d60e11b815273094dad10e112299a384bc9dc18465c8701b0ca9b9063fa872cfa906134f7906001600160a01b03881690879086906004016154cb565b60006040518083038186803b15801561350f57600080fd5b505af4158015613523573d6000803e3d6000fd5b5050505050505050565b815160a0830151604084015161355192919061354c90839083906135c7565b613661565b61357882600001518261357385600001518660c001518760400151600061367b565b6137bb565b5050565b6000821580613589575081155b1561359657506000612c10565b612eb260016135bb670de0b6b3a7640000612efd83613344898963ffffffff613c0a16565b9063ffffffff6140a116565b600080836001600160a01b03166370a08231866040518263ffffffff1660e01b81526004016135f69190615423565b60206040518083038186803b15801561360e57600080fd5b505afa158015613622573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613646919061539c565b9050613658818463ffffffff6140c616565b95945050505050565b610a926001600160a01b038416838363ffffffff6140e416565b60008082613704576040516395dd919360e01b81526001600160a01b038616906395dd9193906136af908990600401615423565b60206040518083038186803b1580156136c757600080fd5b505afa1580156136db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136ff919061539c565b613782565b6040516305eff7ef60e21b81526001600160a01b038616906317bfdfbc90613730908990600401615423565b602060405180830381600087803b15801561374a57600080fd5b505af115801561375e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613782919061539c565b905060006137b06000196137a461379f858963ffffffff61425816565b6142ab565b9063ffffffff612e4716565b979650505050505050565b604080516020810190915260008152610a92906001600160a01b0385169084903090859063ffffffff6142d016565b6137f2614d52565b6000886001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561382d57600080fd5b505afa158015613841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613865919061539c565b905061386f614d52565b6040518061010001604052808b6001600160a01b0316815260200161389387612fe4565b6001600160a01b03168152602001838152602001888152602001878152602001856138d8576001600160a01b03808c16600090815260036020526040902054166138f4565b6001600160a01b03808b16600090815260036020526040902054165b6001600160a01b0316815260200185613927576001600160a01b03808b1660009081526003602052604090205416613943565b6001600160a01b03808c16600090815260036020526040902054165b6001600160a01b03168152602001896001600160a01b03166370a082318d6040518263ffffffff1660e01b815260040161397d9190615423565b60206040518083038186803b15801561399557600080fd5b505afa1580156139a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139cd919061539c565b905290506130a581614888565b600080600080866001600160a01b03166370a08231896040518263ffffffff1660e01b8152600401613a0c9190615423565b60206040518083038186803b158015613a2457600080fd5b505afa158015613a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a5c919061539c565b90506000613a8f896001600160a01b03166366cb8d2f8a6040518263ffffffff1660e01b81526004016123d39190615423565b905060008215613aac57613aa588888585614981565b9050613ab0565b5060005b613abb8a8a836140e4565b9199909850909650945050505050565b6005546001600160a01b0384811691161415613b4557600454613b01906001600160a01b0386811691168363ffffffff61403216565b60405163690f656160e01b815273094dad10e112299a384bc9dc18465c8701b0ca9b9063690f656190613463906001600160a01b03881690879086906004016154cb565b613b606001600160a01b03851683858463ffffffff613e0316565b6040516309c8202b60e01b815273094dad10e112299a384bc9dc18465c8701b0ca9b906309c8202b906134f7906001600160a01b03881690879086906004016154cb565b81516000908190815b81811015613bf757846001600160a01b0316868281518110613bcb57fe5b60200260200101516001600160a01b03161415613bef57925060019150613c039050565b600101613bad565b50600019600092509250505b9250929050565b600082613c1957506000612c10565b82820282848281613c2657fe5b0414612eb25760405162461bcd60e51b815260040161042c90615990565b6000612eb283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506149d0565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f033291613cde9187918791879101615508565b600060405180830381600087803b158015613cf857600080fd5b505af1158015613d0c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613d349190810190615064565b5050505050565b805160209091012090565b600080548190613d5e906001600160a01b0316614a07565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401613d8b9291906154ef565b60206040518083038186803b158015613da357600080fd5b505afa158015613db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ddb9190614f1c565b90506001600160a01b038116612c105760405162461bcd60e51b815260040161042c906157e7565b60608282604051602401613e189291906154ef565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f033290613e749087906000908690600401615508565b600060405180830381600087803b158015613e8e57600080fd5b505af1158015613ea2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d149190810190615064565b6000805460405163792aa04f60e01b815282916001600160a01b03169063792aa04f90613efd90309088906004016154ef565b60206040518083038186803b158015613f1557600080fd5b505afa158015613f29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4d919061539c565b905061339f838263ffffffff612edf16565b8015610a9257610a92826000809054906101000a90046001600160a01b03166001600160a01b031663469048406040518163ffffffff1660e01b815260040160206040518083038186803b158015613fb657600080fd5b505afa158015613fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fee9190614f1c565b6001600160a01b03861691908463ffffffff614a8616565b6000818484111561402a5760405162461bcd60e51b815260040161042c91906155f5565b505050900390565b6060816040516024016140459190615cee565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f033290613cde9086906000908690600401615508565b600082820183811015612eb25760405162461bcd60e51b815260040161042c90615727565b6000612eb282612efd85670de0b6b3a764000063ffffffff613c0a16565b60006140f08484614bc8565b9050801580156141005750600082115b156141775761410f8484614c4f565b614172576040516304e3532760e41b81526001600160a01b03851690634e3532709061413f908690600401615423565b600060405180830381600087803b15801561415957600080fd5b505af115801561416d573d6000803e3d6000fd5b505050505b6141f4565b808015614182575081155b156141f4576141918484614c4f565b6141f457604051636f86c89760e01b81526001600160a01b03851690636f86c897906141c1908690600401615423565b600060405180830381600087803b1580156141db57600080fd5b505af11580156141ef573d6000803e3d6000fd5b505050505b836001600160a01b0316632ba57d178461420d856142ab565b6040518363ffffffff1660e01b815260040161422a9291906154ef565b600060405180830381600087803b15801561424457600080fd5b505af1158015613523573d6000803e3d6000fd5b6000816142775760405162461bcd60e51b815260040161042c90615cc4565b60008311614286576000612eb2565b612eb260016135bb84612efd8361334489670de0b6b3a764000063ffffffff613c0a16565b6000600160ff1b8210612edb5760405162461bcd60e51b815260040161042c90615b38565b81156145c55760405163df5e9b2960e01b81526001600160a01b0386169063df5e9b2990614302908790600401615423565b60206040518083038186803b15801561431a57600080fd5b505afa15801561432e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143529190615048565b614419576040516304e3532760e41b81526001600160a01b03861690634e35327090614382908790600401615423565b600060405180830381600087803b15801561439c57600080fd5b505af11580156143b0573d6000803e3d6000fd5b505060405163ea0ee55960e01b81526001600160a01b038816925063ea0ee55991506143e29087908790600401615437565b600060405180830381600087803b1580156143fc57600080fd5b505af1158015614410573d6000803e3d6000fd5b505050506144fc565b604051637d96659360e01b81526001600160a01b03861690637d966593906144479087908790600401615437565b60206040518083038186803b15801561445f57600080fd5b505afa158015614473573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144979190615048565b6144fc5760405163ea0ee55960e01b81526001600160a01b0386169063ea0ee559906144c99087908790600401615437565b600060405180830381600087803b1580156144e357600080fd5b505af11580156144f7573d6000803e3d6000fd5b505050505b6040516363a90fc160e01b81526001600160a01b038616906363a90fc19061452c908790879087906004016154cb565b600060405180830381600087803b15801561454657600080fd5b505af115801561455a573d6000803e3d6000fd5b50506040516326898fe160e01b81526001600160a01b03881692506326898fe1915061458e9087908790869060040161549f565b600060405180830381600087803b1580156145a857600080fd5b505af11580156145bc573d6000803e3d6000fd5b50505050613d34565b8051156145e45760405162461bcd60e51b815260040161042c90615b01565b6040516308bafae960e21b81526001600160a01b038616906322ebeba4906146129087908790600401615437565b60206040518083038186803b15801561462a57600080fd5b505afa15801561463e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614662919061539c565b15613d345760405163a7bdad0360e01b81526060906001600160a01b0387169063a7bdad0390614696908890600401615423565b60006040518083038186803b1580156146ae57600080fd5b505afa1580156146c2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526146ea9190810190614f90565b6040516366cb8d2f60e01b81529091506001600160a01b038716906366cb8d2f90614719908890600401615423565b60206040518083038186803b15801561473157600080fd5b505afa158015614745573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614769919061539c565b158015614777575080516001145b1561482057836001600160a01b03168160008151811061479357fe5b60200260200101516001600160a01b0316146147c15760405162461bcd60e51b815260040161042c90615940565b604051636f86c89760e01b81526001600160a01b03871690636f86c897906147ed908890600401615423565b600060405180830381600087803b15801561480757600080fd5b505af115801561481b573d6000803e3d6000fd5b505050505b60405163acf3f07760e01b81526001600160a01b0387169063acf3f0779061484e9088908890600401615437565b600060405180830381600087803b15801561486857600080fd5b505af115801561487c573d6000803e3d6000fd5b50505050505050505050565b80516001600160a01b03908116600090815260086020908152604080832060a08601519094168352929052205460ff166148d45760405162461bcd60e51b815260040161042c90615841565b80516001600160a01b03908116600090815260096020908152604080832060c08601519094168352929052205460ff166149205760405162461bcd60e51b815260040161042c90615871565b8060c001516001600160a01b03168160a001516001600160a01b0316141561495a5760405162461bcd60e51b815260040161042c906156b6565b600081606001511161497e5760405162461bcd60e51b815260040161042c90615795565b50565b6000806149a4614997848863ffffffff612edf16565b869063ffffffff6133a716565b90506149c6866149ba868463ffffffff6133a716565b9063ffffffff6140c616565b9695505050505050565b600081836149f15760405162461bcd60e51b815260040161042c91906155f5565b5060008385816149fd57fe5b0495945050505050565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced690614a36908490600401615cee565b60206040518083038186803b158015614a4e57600080fd5b505afa158015614a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c109190614f1c565b8015612e41576040516370a0823160e01b81526000906001600160a01b038516906370a0823190614abb908890600401615423565b60206040518083038186803b158015614ad357600080fd5b505afa158015614ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614b0b919061539c565b9050614b1985858585614cdb565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190614b48908990600401615423565b60206040518083038186803b158015614b6057600080fd5b505afa158015614b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614b98919061539c565b9050614baa828463ffffffff6133a716565b8114611d145760405162461bcd60e51b815260040161042c90615a7b565b600080836001600160a01b03166366cb8d2f846040518263ffffffff1660e01b8152600401614bf79190615423565b60206040518083038186803b158015614c0f57600080fd5b505afa158015614c23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614c47919061539c565b139392505050565b600080836001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401614c7e9190615423565b60006040518083038186803b158015614c9657600080fd5b505afa158015614caa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614cd29190810190614f90565b51119392505050565b8015612e415760608282604051602401614cf69291906154ef565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f033290613e749087906000908690600401615508565b60405180610100016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081525090565b508054600082559060005260206000209081019061497e9190611d2991905b80821115612edb5760008155600101614dda565b600082601f830112614dfe578081fd5b8135614e11614e0c82615d1e565b615cf7565b818152915060208083019084810181840286018201871015614e3257600080fd5b60005b84811015614e5a578135614e4881615d8e565b84529282019290820190600101614e35565b505050505092915050565b600082601f830112614e75578081fd5b8135614e83614e0c82615d3e565b9150808252836020828501011115614e9a57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614ec3578081fd5b8151614ed1614e0c82615d3e565b9150808252836020828501011115614ee857600080fd5b614ef9816020840160208601615d62565b5092915050565b600060208284031215614f11578081fd5b8135612eb281615d8e565b600060208284031215614f2d578081fd5b8151612eb281615d8e565b600080600060608486031215614f4c578182fd5b8351614f5781615d8e565b60208501516040860151919450925067ffffffffffffffff811115614f7a578182fd5b614f8686828701614eb3565b9150509250925092565b60006020808385031215614fa2578182fd5b825167ffffffffffffffff811115614fb8578283fd5b80840185601f820112614fc9578384fd5b80519150614fd9614e0c83615d1e565b8281528381019082850185850284018601891015614ff5578687fd5b8693505b8484101561502057805161500c81615d8e565b835260019390930192918501918501614ff9565b50979650505050505050565b60006020828403121561503d578081fd5b8135612eb281615da3565b600060208284031215615059578081fd5b8151612eb281615da3565b600060208284031215615075578081fd5b815167ffffffffffffffff81111561508b578182fd5b61339f84828501614eb3565b600080604083850312156150a9578182fd5b82356150b481615d8e565b915060208301356150c481615d8e565b809150509250929050565b600080604083850312156150e1578182fd5b82356150ec81615d8e565b9150602083013567ffffffffffffffff811115615107578182fd5b61511385828601614dee565b9150509250929050565b600080600060608486031215615131578081fd5b833561513c81615d8e565b9250602084013567ffffffffffffffff80821115615158578283fd5b61516487838801614dee565b93506040860135915080821115615179578283fd5b50614f8686828701614dee565b60008060408385031215615198578182fd5b82356151a381615d8e565b915060208301356150c481615da3565b60008060008060008060c087890312156151cb578384fd5b86356151d681615d8e565b955060208701356151e681615d8e565b945060408701356151f681615d8e565b935060608701359250608087013567ffffffffffffffff80821115615219578384fd5b6152258a838b01614e65565b935060a089013591508082111561523a578283fd5b5061524789828a01614e65565b9150509295509295509295565b600080600080600080600060e0888a03121561526e578485fd5b873561527981615d8e565b9650602088013561528981615d8e565b9550604088013561529981615d8e565b9450606088013593506080880135925060a088013567ffffffffffffffff808211156152c3578283fd5b6152cf8b838c01614e65565b935060c08a01359150808211156152e4578283fd5b506152f18a828b01614e65565b91505092959891949750929550565b60008060408385031215615312578182fd5b823561531d81615d8e565b946020939093013593505050565b60008060008060808587031215615340578182fd5b843561534b81615d8e565b935060208501359250604085013561536281615d8e565b9150606085013561537281615da3565b939692955090935050565b60006020828403121561538e578081fd5b815160038110612eb2578182fd5b6000602082840312156153ad578081fd5b5051919050565b6000815180845260208085019450808401835b838110156153ec5781516001600160a01b0316875295820195908201906001016153c7565b509495945050505050565b6000815180845261540f816020860160208601615d62565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a08201819052600090615493908301846153f7565b98975050505050505050565b6001600160a01b03848116825283166020820152606060408201819052600090613658908301846153f7565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b600060018060a01b03851682528360208301526060604083015261365860608301846153f7565b60006040825261554260408301856153b4565b828103602084015261365881856153b4565b6020808252825182820181905260009190848201906040850190845b818110156155955783516001600160a01b031683529284019291840191600101615570565b50909695505050505050565b901515815260200190565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b600060208252612eb260208301846153f7565b60208082526015908201527420b2323932b9b9903737ba1034b71030b93930bc9760591b604082015260600190565b6020808252601a908201527f436f6d706f6e656e74206d757374206265206e65676174697665000000000000604082015260600190565b60208082526028908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526729b2ba2a37b5b2b760c11b606082015260800190565b602080825260119082015270135d5cdd08189948191a5999995c995b9d607a1b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b6020808252600d908201526c05175616e74697479206973203609c1b604082015260600190565b60208082526011908201527018d51bdad95b881b5d5cdd08195e1a5cdd607a1b604082015260600190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601190820152700a6d8d2e0e0c2ceca40e8dede40d0d2ced607b1b604082015260600190565b60208082526016908201527510dbdb1b185d195c985b081b9bdd08195b98589b195960521b604082015260600190565b602080825260129082015271109bdc9c9bddc81b9bdd08195b98589b195960721b604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b60208082526018908201527f4f6e6c7920746865206d6f64756c652063616e2063616c6c0000000000000000604082015260600190565b60208082526018908201527f49737375616e6365206e6f7420696e697469616c697a65640000000000000000604082015260600190565b60208082526030908201527f45787465726e616c20706f736974696f6e73206d757374206265203020746f2060408201526f1c995b5bdd994818dbdb5c1bdb995b9d60821b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152732737ba1030b63637bbb2b21029b2ba2a37b5b2b760611b604082015260600190565b60208082526027908201527f5369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f604082015266766572666c6f7760c81b606082015260800190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252600d908201526c105b1c9958591e481859191959609a1b604082015260600190565b6020808252600e908201526d109bdc9c9bddc8195b98589b195960921b604082015260600190565b60208082526018908201527f5061737365642064617461206d757374206265206e756c6c0000000000000000604082015260600190565b60208082526028908201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604082015267371034b73a191a9b60c11b606082015260800190565b60208082526024908201527f4d6f64756c65206d75737420626520656e61626c6564206f6e20636f6e74726f604082015263363632b960e11b606082015260800190565b60208082526023908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420536574546f60408201526235b2b760e91b606082015260800190565b6020808252601c908201527f4d7573742062652074686520536574546f6b656e206d616e6167657200000000604082015260600190565b60208082526012908201527110dbdb1b185d195c985b08195b98589b195960721b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260099082015268139bdd08185919195960ba1b604082015260600190565b60208082526010908201526f043616e742064697669646520627920360841b604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715615d1657600080fd5b604052919050565b600067ffffffffffffffff821115615d34578081fd5b5060209081020190565b600067ffffffffffffffff821115615d54578081fd5b50601f01601f191660200190565b60005b83811015615d7d578181015183820152602001615d65565b83811115612e415750506000910152565b6001600160a01b038116811461497e57600080fd5b801515811461497e57600080fdfea2646970667358221220646d0fd97b148a1fff693c2e37262943d4fa88663a711f003492f4572e81ecdb64736f6c634300060a00330000000000000000000000009048278ca7e874f9338e4898c436ab07aa4547010000000000000000000000005e5b4f6f598d8fed3fd41ab915a446e80879c501000000000000000000000000047ba8fe92c01bffec22a93b3acdfc9a938887f9000000000000000000000000efa3e50f493d39a1b53698c549ad35fbf4b1053c000000000000000000000000d0a1e359811322d97991e03f863a0c30c2cf029c

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

0000000000000000000000009048278ca7e874f9338e4898c436ab07aa4547010000000000000000000000005e5b4f6f598d8fed3fd41ab915a446e80879c501000000000000000000000000047ba8fe92c01bffec22a93b3acdfc9a938887f9000000000000000000000000efa3e50f493d39a1b53698c549ad35fbf4b1053c000000000000000000000000d0a1e359811322d97991e03f863a0c30c2cf029c

-----Decoded View---------------
Arg [0] : _controller (address): 0x9048278ca7e874f9338e4898c436ab07aa454701
Arg [1] : _compToken (address): 0x5e5b4f6f598d8fed3fd41ab915a446e80879c501
Arg [2] : _comptroller (address): 0x047ba8fe92c01bffec22a93b3acdfc9a938887f9
Arg [3] : _cEther (address): 0xefa3e50f493d39a1b53698c549ad35fbf4b1053c
Arg [4] : _weth (address): 0xd0a1e359811322d97991e03f863a0c30c2cf029c

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000009048278ca7e874f9338e4898c436ab07aa454701
Arg [1] : 0000000000000000000000005e5b4f6f598d8fed3fd41ab915a446e80879c501
Arg [2] : 000000000000000000000000047ba8fe92c01bffec22a93b3acdfc9a938887f9
Arg [3] : 000000000000000000000000efa3e50f493d39a1b53698c549ad35fbf4b1053c
Arg [4] : 000000000000000000000000d0a1e359811322d97991e03f863a0c30c2cf029c


Deployed ByteCode Sourcemap

105156:39882:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132448:213;;;;;;;;;:::i;:::-;;129494:1141;;;;;;;;;:::i;133857:508::-;;;;;;;;;:::i;133316:151::-;;;;;;;;;:::i;121326:1204::-;;;;;;;;;:::i;113590:1634::-;;;;;;;;;:::i;128139:1019::-;;;;;;;;;:::i;131289:170::-;;;;;;;;;:::i;126763:1080::-;;;;;;;;;:::i;124864:314::-;;;;;;;;;:::i;131886:234::-;;;;;;;;;:::i;5651:148::-;;;:::i;125494:920::-;;;;;;;;;:::i;122785:1569::-;;;:::i;5009:79::-;;;:::i;:::-;;;;;;;;;;;;;;;;108566:77;;;;;;;;;:::i;:::-;;;;;;;;135711:251;;;;;;;;;:::i;:::-;;;;;;;;;109246:25;;;:::i;134760:530::-;;;;;;;;;:::i;132870:151::-;;;;;;;;;:::i;130843:198::-;;;;;;;;;:::i;118558:2249::-;;;;;;;;;:::i;108145:52::-;;;;;;;;;:::i;115883:2042::-;;;;;;;;;:::i;109077:50::-;;;;;;;;;:::i;5954:244::-;;;;;;;;;:::i;108744:73::-;;;;;;;;;:::i;97833:29::-;;;:::i;111277:1657::-;;;;;;;;;:::i;132448:213::-;5231:12;:10;:12::i;:::-;5221:6;;-1:-1:-1;;;;;5221:6:0;;;:22;;;5213:67;;;;-1:-1:-1;;;5213:67:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;132544:31:0;;::::1;132588:1;132544:31:::0;;;:18:::1;:31;::::0;;;;;::::1;132528:76;;;;-1:-1:-1::0;;;132528:76:0::1;;;;;;;;;-1:-1:-1::0;;;;;132622:31:0::1;;::::0;;;:18:::1;:31;::::0;;;;132615:38;;-1:-1:-1;;;;;;132615:38:0::1;::::0;;132448:213::o;129494:1141::-;129606:9;97993:35;98006:9;98017:10;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1;;;97985:76:0;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1;;;98072:88:0;;;;;;;;;129705:21:::1;129710:9;129721:4;129705;:21::i;:::-;129743:9;129739:819;129762:13;:20;129758:1;:24;129739:819;;;129804:14;129821:18;:36;129840:13;129854:1;129840:16;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;129821:36:0;;::::1;::::0;;;;::::1;::::0;;;;;;;;-1:-1:-1;129821:36:0;;;;129880:30;;::::1;::::0;;:19:::1;:30:::0;;;;;129821:36;::::1;129880:38:::0;;;;;;;;;129821:36;;-1:-1:-1;129880:38:0::1;;129872:69;;;;-1:-1:-1::0;;;129872:69:0::1;;;;;;;;;-1:-1:-1::0;;;;;130182:34:0;;::::1;;::::0;;;:23:::1;:34;::::0;;;;;;;:42;;::::1;::::0;;;;;;;::::1;;130177:131;;130280:11;::::0;130245:47:::1;::::0;-1:-1:-1;;;130245:47:0;;:26:::1;::::0;::::1;::::0;:47:::1;::::0;-1:-1:-1;;;;;130245:26:0;;::::1;::::0;130272:6;;130280:11;;::::1;::::0;130245:47:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;130177:131;-1:-1:-1::0;;;;;130331:30:0;;::::1;;::::0;;;:19:::1;:30;::::0;;;;;;;:38;;::::1;::::0;;;;;;;;130324:45;;-1:-1:-1;;130324:45:0::1;::::0;;130384:24;;;:13:::1;:24:::0;;;;:69:::1;::::0;130324:45;130384:38:::1;130362:6:::0;130384:69:::1;:52;:69;:::i;:::-;130468:78;130528:13;130542:1;130528:16;;;;;;;;;;;;;;130468:13;:24;130482:9;-1:-1:-1::0;;;;;130468:24:0::1;-1:-1:-1::0;;;;;130468:24:0::1;;;;;;;;;;;;:37;;:51;;:78;;;;:::i;:::-;-1:-1:-1::0;129784:3:0::1;;129739:819;;;;130606:5;130575:52;;130595:9;-1:-1:-1::0;;;;;130575:52:0::1;;130613:13;130575:52;;;;;;;;;;;;;;;129494:1141:::0;;;:::o;133857:508::-;133994:9;98754:33;98716:34;;-1:-1:-1;;;98716:34:0;;-1:-1:-1;;;;;98716:22:0;;;;;:34;;98739:10;;98716:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:71;;;;;;;;;98694:145;;;;-1:-1:-1;;;98694:145:0;;;;;;;;;98874:10;;:31;;-1:-1:-1;;;98874:31:0;;-1:-1:-1;;;;;98874:10:0;;;;:19;;:31;;98894:10;;98874:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98852:117;;;;-1:-1:-1;;;98852:117:0;;;;;;;;;134039:73:::1;::::0;-1:-1:-1;;;134039:73:0;;134016:20:::1;::::0;-1:-1:-1;;;;;134039:37:0;::::1;::::0;::::1;::::0;:73:::1;::::0;134085:10;;134106:4:::1;::::0;134039:73:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134016:96;;134149:1;134133:13;:17;134125:56;;;;-1:-1:-1::0;;;134125:56:0::1;;;;;;;;;134194:20;134217:63;134262:17:::0;134217:33:::1;:21;:13:::0;-1:-1:-1;;134217:21:0::1;:17;:21;:::i;:::-;:31;:33::i;:::-;:44:::0;:63:::1;:44;:63;:::i;:::-;-1:-1:-1::0;;;;;134312:30:0;;::::1;;::::0;;;:18:::1;:30;::::0;;;;;134194:86;;-1:-1:-1;134293:64:0::1;::::0;134301:9;;134312:30:::1;134194:86:::0;134293:7:::1;:64::i;:::-;98980:1;;133857:508:::0;;;;;:::o;133316:151::-;133416:9;98754:33;98716:34;;-1:-1:-1;;;98716:34:0;;-1:-1:-1;;;;;98716:22:0;;;;;:34;;98739:10;;98716:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:71;;;;;;;;;98694:145;;;;-1:-1:-1;;;98694:145:0;;;;;;;;;98874:10;;:31;;-1:-1:-1;;;98874:31:0;;-1:-1:-1;;;;;98874:10:0;;;;:19;;:31;;98894:10;;98874:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98852:117;;;;-1:-1:-1;;;98852:117:0;;;;;;;;;133438:21:::1;133443:9;133454:4;133438;:21::i;:::-;133316:151:::0;;;:::o;121326:1204::-;121509:9;121520:10;98269:32;98282:9;98293:7;98269:12;:32::i;:::-;98261:73;;;;-1:-1:-1;;;98261:73:0;;;;;;;;;99218:10:::1;::::0;:36:::1;::::0;-1:-1:-1;;;99218:36:0;;121564:9;;-1:-1:-1;;;;;99218:10:0::1;::::0;:16:::1;::::0;:36:::1;::::0;121564:9;;99218:36:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99210:84;;;;-1:-1:-1::0;;;99210:84:0::1;;;;;;;;;99313:37;99340:9;99313:26;:37::i;:::-;99305:80;;;;-1:-1:-1::0;;;99305:80:0::1;;;;;;;;;121596:13:::2;::::0;::::2;;121591:107;;-1:-1:-1::0;;;;;121634:27:0;::::2;;::::0;;;:16:::2;:27;::::0;;;;;::::2;;121626:60;;;;-1:-1:-1::0;;;121626:60:0::2;;;;;;;;;121763:9;-1:-1:-1::0;;;;;121763:26:0::2;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;121910:9;-1:-1:-1::0;;;;;121910:29:0::2;;121940:51;121962:28;;;;;;;;;;;;;-1:-1:-1::0;;;121962:28:0::2;;::::0;121940:21:::2;:51::i;:::-;121910:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121902:119;;;;-1:-1:-1::0;;;121902:119:0::2;;;;;;;;;122126:24;122153:9;-1:-1:-1::0;;;;;122153:20:0::2;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;::::0;;::::2;-1:-1:-1::0;;122153:22:0::2;::::0;::::2;;::::0;::::2;::::0;;;::::2;::::0;::::2;;;122126:49:::0;-1:-1:-1;122190:9:0::2;122186:153;122209:7;:14;122205:1;:18;122186:153;;;122269:7;122277:1;122269:10;;;;;;;;;;;;;;-1:-1:-1::0;;;;;122249:56:0::2;;122306:9;122249:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;122245:83:::0;122225:3:::2;;122186:153;;;;122419:49;122439:9;122450:17;122419:19;:49::i;:::-;122481:41;122497:9;122508:13;122481:15;:41::i;113590:1634::-:0;7971:1;8577:7;;:19;;8569:63;;;;-1:-1:-1;;;8569:63:0;;;;;;;;;7971:1;8710:7;:18;113925:9;97993:35:::1;113925:9:::0;98017:10:::1;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1::0;;;97985:76:0::1;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1::0;;;98072:88:0::1;;;;;;;;;114095:29:::2;;:::i;:::-;114127:234;114170:9;114194:16;114225:11;114251:15;114281:17;114313;114345:5;114127:28;:234::i;:::-;114095:266;;114374:108;114392:11;:20;;;114414:11;:33;;;114449:11;:32;;;114374:17;:108::i;:::-;114495:32;114530:69;114544:11;114557:16;114575:11;114588:10;114530:13;:69::i;:::-;114495:104;;114612:19;114634:68;114653:9;114664:11;114677:24;114634:18;:68::i;:::-;114612:90:::0;-1:-1:-1;114715:21:0::2;114739:41;:24:::0;114612:90;114739:41:::2;:28;:41;:::i;:::-;114715:65;;114793:93;114806:11;:20;;;114828:11;:29;;;114859:11;114872:13;114793:12;:93::i;:::-;114899:47;114921:11;114934;114899:21;:47::i;:::-;115051:11;-1:-1:-1::0;;;;;114964:252:0::2;115020:16;-1:-1:-1::0;;;;;114964:252:0::2;114996:9;-1:-1:-1::0;;;;;114964:252:0::2;;115077:11;:27;;;115119:11;:32;;;115166:13;115194:11;114964:252;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;7927:1:0;8889:22;;-1:-1:-1;;;;;;;;;;113590:1634:0:o;128139:1019::-;128249:9;97993:35;98006:9;98017:10;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1;;;97985:76:0;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1;;;98072:88:0;;;;;;;;;128275:9:::1;128271:808;128294:16;:23;128290:1;:27;128271:808;;;128339:21;128363:16;128380:1;128363:19;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;128414:34:0;;::::1;128397:14;128414:34:::0;;;:18:::1;:34:::0;;;;;;;;128363:19;;-1:-1:-1;128414:34:0::1;128471:29:::0;128463:59:::1;;;;-1:-1:-1::0;;;128463:59:0::1;;;;;;;;;-1:-1:-1::0;;;;;128546:30:0;;::::1;;::::0;;;:19:::1;:30;::::0;;;;;;;:38;;::::1;::::0;;;;;;;::::1;;128545:39;128537:66;;;;-1:-1:-1::0;;;128537:66:0::1;;;;;;;;;-1:-1:-1::0;;;;;128721:34:0;;::::1;;::::0;;;:23:::1;:34;::::0;;;;;;;:42;;::::1;::::0;;;;;;;::::1;;128716:133;;128821:11;::::0;128784:49:::1;::::0;-1:-1:-1;;;128784:49:0;;:28:::1;::::0;::::1;::::0;:49:::1;::::0;-1:-1:-1;;;;;128784:28:0;;::::1;::::0;128813:6;;128821:11;;::::1;::::0;128784:49:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;128716:133;-1:-1:-1::0;;;;;128865:30:0;;::::1;;::::0;;;:19:::1;:30;::::0;;;;;;;:38;;::::1;::::0;;;;;;;;;:45;;128906:4:::1;-1:-1:-1::0;;128865:45:0;;::::1;::::0;::::1;::::0;;;128925:24;;;:13:::1;:24:::0;;;;:38;;::::1;:60:::0;;;;::::1;::::0;;;;;;;;::::1;::::0;;-1:-1:-1;;;;;;128925:60:0;;::::1;::::0;;::::1;::::0;;129000:37:::1;;:67:::0;;;;::::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;128319:3:::1;128271:808;;;;129127:4;129096:54;;129116:9;-1:-1:-1::0;;;;;129096:54:0::1;;129133:16;129096:54;;;;;;;131289:170:::0;5231:12;:10;:12::i;:::-;5221:6;;-1:-1:-1;;;;;5221:6:0;;;:22;;;5213:67;;;;-1:-1:-1;;;5213:67:0;;;;;;;;;131369:13:::1;:30:::0;;-1:-1:-1;;131369:30:0::1;::::0;::::1;;::::0;;::::1;::::0;;;131415:36:::1;::::0;::::1;::::0;-1:-1:-1;;131415:36:0::1;131289:170:::0;:::o;126763:1080::-;126883:9;97993:35;98006:9;98017:10;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1;;;97985:76:0;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1;;;98072:88:0;;;;;;;;;126982:21:::1;126987:9;126998:4;126982;:21::i;:::-;127020:9;127016:742;127039:17;:24;127035:1;:28;127016:742;;;127085:14;127102:18;:40;127121:17;127139:1;127121:20;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;127102:40:0;;::::1;::::0;;;;::::1;::::0;;;;;;;;-1:-1:-1;127102:40:0;;;;127165:34;;::::1;::::0;;:23:::1;:34:::0;;;;;127102:40;::::1;127165:42:::0;;;;;;;;;127102:40;;-1:-1:-1;127165:42:0::1;;127157:77;;;;-1:-1:-1::0;;;127157:77:0::1;;;;;;;;;-1:-1:-1::0;;;;;127471:30:0;;::::1;;::::0;;;:19:::1;:30;::::0;;;;;;;:38;;::::1;::::0;;;;;;;::::1;;127466:127;;127565:11;::::0;127530:47:::1;::::0;-1:-1:-1;;;127530:47:0;;:26:::1;::::0;::::1;::::0;:47:::1;::::0;-1:-1:-1;;;;;127530:26:0;;::::1;::::0;127557:6;;127565:11;;::::1;::::0;127530:47:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;127466:127;-1:-1:-1::0;;;;;127616:34:0;;::::1;;::::0;;;:23:::1;:34;::::0;;;;;;;:42;;::::1;::::0;;;;;;;;127609:49;;-1:-1:-1;;127609:49:0::1;::::0;;127673:24;;;:13:::1;:24:::0;;;;:73:::1;::::0;127651:6;127673:73:::1;:56;:73;:::i;:::-;-1:-1:-1::0;127065:3:0::1;;127016:742;;;;127810:5;127775:60;;127799:9;-1:-1:-1::0;;;;;127775:60:0::1;;127817:17;127775:60;;;;;;;124864:314:::0;124984:9;97993:35;98006:9;98017:10;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1;;;97985:76:0;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1;;;98072:88:0;;;;;;;;;125014:59:::1;::::0;-1:-1:-1;;;125014:59:0;;-1:-1:-1;;;;;125014:29:0;::::1;::::0;::::1;::::0;:59:::1;::::0;125052:19;;125014:59:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125006:96;;;;-1:-1:-1::0;;;125006:96:0::1;;;;;;;;;125115:55;::::0;-1:-1:-1;;;125115:55:0;;-1:-1:-1;;;;;125115:44:0;::::1;::::0;::::1;::::0;:55:::1;::::0;125160:9;;125115:55:::1;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;131886:234:::0;5231:12;:10;:12::i;:::-;5221:6;;-1:-1:-1;;;;;5221:6:0;;;:22;;;5213:67;;;;-1:-1:-1;;;5213:67:0;;;;;;;;;-1:-1:-1;;;;;131996:31:0;;::::1;132040:1;131996:31:::0;;;:18:::1;:31;::::0;;;;;::::1;131988:54:::0;131980:80:::1;;;;-1:-1:-1::0;;;131980:80:0::1;;;;;;;;;-1:-1:-1::0;;;;;132071:31:0;;::::1;;::::0;;;:18:::1;:31;::::0;;;;:41;;;;;::::1;-1:-1:-1::0;;;;;;132071:41:0;;::::1;;::::0;;131886:234::o;5651:148::-;5231:12;:10;:12::i;:::-;5221:6;;-1:-1:-1;;;;;5221:6:0;;;:22;;;5213:67;;;;-1:-1:-1;;;5213:67:0;;;;;;;;;5742:6:::1;::::0;5721:40:::1;::::0;5758:1:::1;::::0;-1:-1:-1;;;;;5742:6:0::1;::::0;5721:40:::1;::::0;5758:1;;5721:40:::1;5772:6;:19:::0;;-1:-1:-1;;;;;;5772:19:0::1;::::0;;5651:148::o;125494:920::-;125612:9;97993:35;98006:9;98017:10;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1;;;97985:76:0;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1;;;98072:88:0;;;;;;;;;125638:9:::1;125634:693;125657:20;:27;125653:1;:31;125634:693;;;125706:14;125723:18;:43;125742:20;125763:1;125742:23;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;125723:43:0;;::::1;::::0;;;;::::1;::::0;;;;;;-1:-1:-1;125723:43:0;;::::1;::::0;-1:-1:-1;125789:29:0;125781:59:::1;;;;-1:-1:-1::0;;;125781:59:0::1;;;;;;;;;-1:-1:-1::0;;;;;125864:34:0;;::::1;;::::0;;;:23:::1;:34;::::0;;;;;;;:42;;::::1;::::0;;;;;;;::::1;;125863:43;125855:74;;;;-1:-1:-1::0;;;125855:74:0::1;;;;;;;;;-1:-1:-1::0;;;;;126047:30:0;;::::1;;::::0;;;:19:::1;:30;::::0;;;;;;;:38;;::::1;::::0;;;;;;;::::1;;126042:129;;126143:11;::::0;126106:49:::1;::::0;-1:-1:-1;;;126106:49:0;;:28:::1;::::0;::::1;::::0;:49:::1;::::0;-1:-1:-1;;;;;126106:28:0;;::::1;::::0;126135:6;;126143:11;;::::1;::::0;126106:49:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;126042:129;-1:-1:-1::0;;;;;126187:34:0;;::::1;;::::0;;;:23:::1;:34;::::0;;;;;;;:42;;;::::1;::::0;;;;;;;;;:49;;-1:-1:-1;;126187:49:0::1;126232:4;126187:49:::0;;::::1;::::0;;;126251:24;;;:13:::1;:24:::0;;;;;:64;;;;::::1;::::0;;;;;;;;;;::::1;::::0;;-1:-1:-1;;;;;;126251:64:0::1;::::0;;::::1;::::0;;;125686:3:::1;125634:693;;;;126379:4;126344:62;;126368:9;-1:-1:-1::0;;;;;126344:62:0::1;;126385:20;126344:62;;;;;;;122785:1569:::0;122864:10;98438:35;98463:9;98438:24;:35::i;:::-;98430:88;;;;-1:-1:-1;;;98430:88:0;;;;;;;;;122919:10:::1;123020:20;122919:10:::0;123035:4:::1;123020;:20::i;:::-;-1:-1:-1::0;;;;;123086:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;;;;:37:::1;;123053:70:::0;;;;;;::::1;::::0;;;;;;;;;;:30:::1;::::0;:70;;::::1;123086:37:::0;123053:70;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;123053:70:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;123053:70:0;;-1:-1:-1;123139:9:0::1;::::0;-1:-1:-1;;;;123134:519:0::1;123158:13;:20;123154:1;:24;123134:519;;;123200:14;123225:13;123239:1;123225:16;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;123339:33:0;;::::1;;::::0;;;:23:::1;:33:::0;;;;;;:41;;::::1;::::0;;;;;;;;;;123225:16;;-1:-1:-1;123339:41:0::1;;123335:246;;123553:11;::::0;123519:46:::1;::::0;-1:-1:-1;;;123519:46:0;;:25:::1;::::0;::::1;::::0;:46:::1;::::0;-1:-1:-1;;;;;123519:25:0;;::::1;::::0;123545:6;;123553:11;;::::1;::::0;123519:46:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;123335:246;-1:-1:-1::0;;;;;123604:29:0;;::::1;;::::0;;;:19:::1;:29;::::0;;;;;;;:37;;;::::1;::::0;;;;;;;;123597:44;;-1:-1:-1;;123597:44:0::1;::::0;;;123180:3:::1;123134:519;;;-1:-1:-1::0;;;;;;123702:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;;;;123665:78;;;;;;::::1;::::0;;;;;;;;;;:34:::1;::::0;:78;;::::1;123702:23:::0;123665:78;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;123665:78:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;123665:78:0;;-1:-1:-1;123759:9:0::1;::::0;-1:-1:-1;;;;123754:256:0::1;123778:17;:24;123774:1;:28;123754:256;;;123824:14;123849:17;123867:1;123849:20;;;;;;;;;::::0;;::::1;::::0;;;;;;123921:11:::1;::::0;123887:46:::1;::::0;-1:-1:-1;;;123887:46:0;;123849:20;;-1:-1:-1;123887:25:0::1;::::0;::::1;::::0;:46:::1;::::0;-1:-1:-1;;;;;123887:25:0;;::::1;::::0;123849:20;;123921:11;::::1;::::0;123887:46:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;;;;;;123957:33:0;;::::1;;::::0;;;:23:::1;:33;::::0;;;;;;;:41;;;::::1;::::0;;;;;;;;123950:48;;-1:-1:-1;;123950:48:0::1;::::0;;-1:-1:-1;123804:3:0::1;123754:256;;;-1:-1:-1::0;;;;;;124037:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;124030:30:::1;124037:23:::0;;124030:30:::1;:::i;:::-;;;::::0;::::1;;;:::i;:::-;;;::::0;::::1;;;:::i;:::-;;;124132:24;124159:8;-1:-1:-1::0;;;;;124159:19:0::1;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;124159:21:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;;;124132:48:::0;-1:-1:-1;124195:9:0::1;124191:156;124214:7;:14;124210:1;:18;124191:156;;;124274:7;124282:1;124274:10;;;;;;;;;;;;;;-1:-1:-1::0;;;;;124254:60:0::1;;124315:8;124254:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;124250:86:::0;124230:3:::1;;124191:156;;;;98529:1;;;;122785:1569:::0;:::o;5009:79::-;5074:6;;-1:-1:-1;;;;;5074:6:0;5009:79;;:::o;108566:77::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;135711:251::-;-1:-1:-1;;;;;135849:24:0;;;;;;:13;:24;;;;;;;;;135827:127;;;;;;;;;;;;;;;;;135780:16;;;;135906:37;;;;135849:24;;135827:127;;135849:24;135827:127;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;135827:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;135827:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;135711:251;;;:::o;109246:25::-;;;;;;:::o;134760:530::-;134898:9;98754:33;98716:34;;-1:-1:-1;;;98716:34:0;;-1:-1:-1;;;;;98716:22:0;;;;;:34;;98739:10;;98716:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:71;;;;;;;;;98694:145;;;;-1:-1:-1;;;98694:145:0;;;;;;;;;98874:10;;:31;;-1:-1:-1;;;98874:31:0;;-1:-1:-1;;;;;98874:10:0;;;;:19;;:31;;98894:10;;98874:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98852:117;;;;-1:-1:-1;;;98852:117:0;;;;;;;;;134943:73:::1;::::0;-1:-1:-1;;;134943:73:0;;134920:20:::1;::::0;-1:-1:-1;;;;;134943:37:0;::::1;::::0;::::1;::::0;:73:::1;::::0;134989:10;;135010:4:::1;::::0;134943:73:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134920:96;;135053:1;135037:13;:17;135029:56;;;;-1:-1:-1::0;;;135029:56:0::1;;;;;;;;;135098:20;135121:67;135170:17:::0;135121:33:::1;:21;:13:::0;-1:-1:-1;;135121:21:0::1;:17;:21;:::i;:33::-;:48:::0;:67:::1;:48;:67;:::i;:::-;-1:-1:-1::0;;;;;135225:30:0;;::::1;;::::0;;;:18:::1;:30;::::0;;;;;135098:90;;-1:-1:-1;135201:81:0::1;::::0;135214:9;;135225:30:::1;135244:10:::0;135098:90;135201:12:::1;:81::i;132870:151::-:0;132969:9;98754:33;98716:34;;-1:-1:-1;;;98716:34:0;;-1:-1:-1;;;;;98716:22:0;;;;;:34;;98739:10;;98716:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:71;;;;;;;;;98694:145;;;;-1:-1:-1;;;98694:145:0;;;;;;;;;98874:10;;:31;;-1:-1:-1;;;98874:31:0;;-1:-1:-1;;;;;98874:10:0;;;;:19;;:31;;98894:10;;98874:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98852:117;;;;-1:-1:-1;;;98852:117:0;;;;;;;;;132991:22:::1;132996:9;133007:5;132991:4;:22::i;130843:198::-:0;5231:12;:10;:12::i;:::-;5221:6;;-1:-1:-1;;;;;5221:6:0;;;:22;;;5213:67;;;;-1:-1:-1;;;5213:67:0;;;;;;;;;-1:-1:-1;;;;;130939:27:0;::::1;;::::0;;;:16:::1;:27;::::0;;;;;:37;;-1:-1:-1;;130939:37:0::1;::::0;::::1;;::::0;;::::1;::::0;;;130992:41;;130939:37;;:27;130992:41:::1;::::0;::::1;130843:198:::0;;:::o;118558:2249::-;7971:1;8577:7;;:19;;8569:63;;;;-1:-1:-1;;;8569:63:0;;;;;;;;;7971:1;8710:7;:18;118668:9;98438:35:::1;118668:9:::0;98438:24:::1;:35::i;:::-;98430:88;;;;-1:-1:-1::0;;;98430:88:0::1;;;;;;;;;118690:22:::2;118715:9;-1:-1:-1::0;;;;;118715:21:0::2;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118690:48:::0;-1:-1:-1;118883:18:0;;118879:1921:::2;;-1:-1:-1::0;;;;;119002:24:0;::::2;;::::0;;;:13:::2;:24;::::0;;;;;;;;118965:79;;;;;;::::2;::::0;;;;;;;;;;:34:::2;::::0;:79;;::::2;119002:24:::0;118965:79;;::::2;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;118965:79:0::2;::::0;;;;;::::2;::::0;::::2;;::::0;;::::2;;;;-1:-1:-1::0;118965:79:0;;-1:-1:-1;119063:9:0::2;::::0;-1:-1:-1;;;;119059:669:0::2;119082:17;:24;119078:1;:28;119059:669;;;119132:24;119167:17;119185:1;119167:20;;;;;;;;;;;;;;119132:56;;119207:28;119238:75;:9;-1:-1:-1::0;;;;;119238:36:0::2;;119283:16;119238:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:75;119207:106;;119332:23;119358:67;119381:9;119392:16;119410:14;119358:22;:67::i;:::-;119332:93;;119584:15;119560:20;:39;119556:157;;119622:71;119648:9;119659:16;119677:15;119622:25;:71::i;:::-;-1:-1:-1::0;;;119108:3:0::2;;119059:669;;;-1:-1:-1::0;;;;;;119820:24:0;::::2;;::::0;;;:13:::2;:24;::::0;;;;;;;;:38:::2;;119787:71:::0;;;;;;::::2;::::0;;;;;;;;;;:30:::2;::::0;:71;;::::2;119820:38:::0;119787:71;;::::2;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;119787:71:0::2;::::0;;;;;::::2;::::0;::::2;;::::0;;::::2;;;;-1:-1:-1::0;;;;;;;;119905:24:0;::::2;;::::0;;;:13:::2;:24;::::0;;;;;;;;:37:::2;;119873:69:::0;;;;;;::::2;::::0;;;;;;;;;;119787:71;;-1:-1:-1;119873:29:0::2;::::0;:69;;-1:-1:-1;119905:37:0;-1:-1:-1;119873:69:0;::::2;119905:37:::0;119873:69;;::::2;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;119873:69:0::2;::::0;;;;;::::2;::::0;::::2;;::::0;;::::2;;;;-1:-1:-1::0;119873:69:0;;-1:-1:-1;119961:9:0::2;::::0;-1:-1:-1;;;;119957:832:0::2;119980:13;:20;119976:1;:24;119957:832;;;120026:20;120057:13;120071:1;120057:16;;;;;;;;;;;;;;120026:48;;120093:18;120121:12;120134:1;120121:15;;;;;;;;;;;;;;120093:44;;120158:27;120188:9;-1:-1:-1::0;;;;;120188:37:0::2;;120234:11;120256:4;120188:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;120158:104;;120283:22;120308:185;120349:9;120381:12;120416:14;120453:21;120308:18;:185::i;:::-;120283:210;;120647:20;120628:15;:39;120624:150;;120692:62;120714:9;120725:11;120738:15;120692:21;:62::i;:::-;-1:-1:-1::0;;120002:3:0::2;::::0;;::::2;::::0;-1:-1:-1;119957:832:0::2;::::0;-1:-1:-1;119957:832:0::2;;;118879:1921;;;;-1:-1:-1::0;;7927:1:0;8889:22;;-1:-1:-1;;118558:2249:0:o;108145:52::-;;;;;;;;;;;;-1:-1:-1;;;;;108145:52:0;;:::o;115883:2042::-;7971:1;8577:7;;:19;;8569:63;;;;-1:-1:-1;;;8569:63:0;;;;;;;;;7971:1;8710:7;:18;116201:9;97993:35:::1;116201:9:::0;98017:10:::1;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1::0;;;97985:76:0::1;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1::0;;;98072:88:0::1;;;;;;;;;116228:30:::2;116261:51;116288:9;-1:-1:-1::0;;;;;116288:21:0::2;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116261:15:::0;;:51:::2;:26;:51;:::i;:::-;-1:-1:-1::0;;;;;116341:30:0;;::::2;;::::0;;;:19:::2;:30;::::0;;;;;;;116372:31;;::::2;::::0;;:18:::2;:31:::0;;;;;;;;::::2;116341:63:::0;;;;;;;116228:84;;-1:-1:-1;116341:63:0::2;;116333:94;;;;-1:-1:-1::0;;;116333:94:0::2;;;;;;;;;-1:-1:-1::0;;;;;116470:31:0;;::::2;116438:29;116470:31:::0;;;:18:::2;:31;::::0;;;;;;:72;;-1:-1:-1;;;116470:72:0;;116438:29;;116470:31:::2;::::0;:52:::2;::::0;:72:::2;::::0;116531:9;;116470:72:::2;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116438:104;;116555:29;;:::i;:::-;116587:253;116638:9;116662:16;116693:11;116719:22;116756:21;116792:17;116824:5;116587:36;:253::i;:::-;116555:285;;116853:108;116871:11;:20;;;116893:11;:33;;;116928:11;:32;;;116853:17;:108::i;:::-;116974:32;117009:69;117023:11;117036:16;117054:11;117067:10;117009:13;:69::i;:::-;116974:104;;117193:101;117206:11;:20;;;117228:11;:29;;;117259:11;117272:21;117193:12;:101::i;:::-;117479:26;::::0;::::2;::::0;117520:39:::2;::::0;::::2;::::0;117388:182:::2;::::0;-1:-1:-1;;;;;117388:41:0;::::2;::::0;117452:11;;117479:26;117388:182:::2;:41;:182;:::i;:::-;;;;117583:47;117605:11;117618;117583:21;:47::i;:::-;117735:11;-1:-1:-1::0;;;;;117648:269:0::2;117704:16;-1:-1:-1::0;;;;;117648:269:0::2;117680:9;-1:-1:-1::0;;;;;117648:269:0::2;;117761:11;:27;;;117803:11;:32;;;117850:21;117886:1;117648:269;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;7927:1:0;8889:22;;-1:-1:-1;;;;;;;;;115883:2042:0:o;109077:50::-;;;;;;;;;;;;;;;:::o;5954:244::-;5231:12;:10;:12::i;:::-;5221:6;;-1:-1:-1;;;;;5221:6:0;;;:22;;;5213:67;;;;-1:-1:-1;;;5213:67:0;;;;;;;;;-1:-1:-1;;;;;6043:22:0;::::1;6035:73;;;;-1:-1:-1::0;;;6035:73:0::1;;;;;;;;;6145:6;::::0;6124:38:::1;::::0;-1:-1:-1;;;;;6124:38:0;;::::1;::::0;6145:6:::1;::::0;6124:38:::1;::::0;6145:6:::1;::::0;6124:38:::1;6173:6;:17:::0;;-1:-1:-1;;;;;;6173:17:0::1;-1:-1:-1::0;;;;;6173:17:0;;;::::1;::::0;;;::::1;::::0;;5954:244::o;108744:73::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;97833:29::-;;;-1:-1:-1;;;;;97833:29:0;;:::o;111277:1657::-;7971:1;8577:7;;:19;;8569:63;;;;-1:-1:-1;;;8569:63:0;;;;;;;;;7971:1;8710:7;:18;111613:9;97993:35:::1;111613:9:::0;98017:10:::1;97993:12;:35::i;:::-;97985:76;;;;-1:-1:-1::0;;;97985:76:0::1;;;;;;;;;98080:35;98105:9;98080:24;:35::i;:::-;98072:88;;;;-1:-1:-1::0;;;98072:88:0::1;;;;;;;;;111779:27:::2;;:::i;:::-;111809:236;111852:9;111876:12;111903:16;111934:15;111964:19;111998:17;112030:4;111809:28;:236::i;:::-;111779:266;;112058:88;112066:9;:18;;;112086:9;:27;;;112115:9;:30;;;112058:7;:88::i;:::-;112159:32;112194:68;112208:9;112219:12;112233:16;112251:10;112194:13;:68::i;:::-;112159:103;;112275:19;112297:73;112316:9;112327:16;112345:24;112297:18;:73::i;:::-;112275:95:::0;-1:-1:-1;112383:35:0::2;112421:41;:24:::0;112275:95;112421:41:::2;:28;:41;:::i;:::-;112383:79;;112475:111;112487:9;:18;;;112507:9;:31;;;112540:16;112558:27;112475:11;:111::i;:::-;112599:46;112621:9;112632:12;112599:21;:46::i;:::-;112746:16;-1:-1:-1::0;;;;;112663:263:0::2;112719:12;-1:-1:-1::0;;;;;112663:263:0::2;112695:9;-1:-1:-1::0;;;;;112663:263:0::2;;112777:9;:25;;;112817:9;:30;;;112862:27;112904:11;112663:263;;;;;;;;;;3476:106:::0;3564:10;3476:106;:::o;102249:146::-;102332:4;102379:8;-1:-1:-1;;;;;102356:31:0;:9;-1:-1:-1;;;;;102356:17:0;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;102356:31:0;;102349:38;;102249:146;;;;;:::o;102538:206::-;102615:4;102639:10;;:36;;-1:-1:-1;;;102639:36:0;;-1:-1:-1;;;;;102639:10:0;;;;:16;;:36;;102664:9;;102639:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:97;;;;-1:-1:-1;102692:44:0;;-1:-1:-1;;;102692:44:0;;-1:-1:-1;;;;;102692:29:0;;;;;:44;;102730:4;;102692:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35851:455;35941:13;35956:9;35969:13;35977:1;35969:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35969:13:0;;;;;;;;;;;;;;;;;;;;;35980:1;35969:7;:13::i;:::-;35940:42;;;;35998:4;35993:306;;36019:31;;-1:-1:-1;;;36019:31:0;;;;;;;;35993:306;36103:8;;-1:-1:-1;;36103:12:0;36218:18;;;36214:52;;36251:1;36253:9;36251:12;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36251:12:0;36240:1;36242:5;36240:8;;;;;;;;;;;;;;;;:23;;;;;-1:-1:-1;;;;;36240:23:0;;;;;-1:-1:-1;;;;;36240:23:0;;;;;;36214:52;36280:1;:7;;;;;;;;;;;;;;;;-1:-1:-1;;36280:7:0;;;;;-1:-1:-1;;;;;;36280:7:0;;;;;;-1:-1:-1;35993:306:0;35851:455;;;;:::o;69762:568::-;69818:6;70062;70058:47;;-1:-1:-1;70092:1:0;70085:8;;70058:47;70127:1;-1:-1:-1;;70127:7:0;:27;;;;;-1:-1:-1;;;70138:1:0;:16;70127:27;70125:30;70117:82;;;;-1:-1:-1;;;70117:82:0;;;;;;;;;70223:5;;;70227:1;70223;:5;:1;70247:5;;;;;:10;70239:62;;;;-1:-1:-1;;;70239:62:0;;;;;;;;;70321:1;69762:568;-1:-1:-1;;;69762:568:0:o;65837:171::-;65893:7;65930:1;65921:5;:10;;65913:55;;;;-1:-1:-1;;;65913:55:0;;;;;;;;;-1:-1:-1;65994:5:0;65837:171::o;74891:126::-;74956:7;74983:26;73352:8;74983;:1;74989;74983:8;:5;:8;:::i;:::-;:12;:26;:12;:26;:::i;137911:296::-;138019:56;;-1:-1:-1;;;138019:56:0;;:22;;;;:56;;-1:-1:-1;;;;;138019:22:0;;;138042:7;;138051:23;;138019:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;138101:6:0;;-1:-1:-1;;;;;138090:17:0;;;138101:6;;138090:17;138086:114;;-1:-1:-1;138086:114:0;;-1:-1:-1;138086:114:0;138157:4;;138124:64;;-1:-1:-1;;;;;138124:24:0;;;;138157:4;138164:23;138124:64;:24;:64;:::i;102010:151::-;102113:40;;-1:-1:-1;;;102113:40:0;;102089:4;;-1:-1:-1;;;;;102113:25:0;;;;;:40;;102147:4;;102113:40;;;;100445:233;100530:7;100551:23;100577:29;100589:16;100577:11;:29::i;:::-;100551:55;;100624:46;100654:15;100624:29;:46::i;141370:736::-;141699:17;;:::i;:::-;141734:19;141756:9;-1:-1:-1;;;;;141756:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141734:45;-1:-1:-1;141799:299:0;141850:9;141874:10;141899:13;141927:42;:18;141734:45;141927:42;:29;:42;:::i;:::-;141984:48;:24;142020:11;141984:48;:35;:48;:::i;:::-;142047:17;142079:8;141799:36;:299::i;:::-;141792:306;141370:736;-1:-1:-1;;;;;;;;;141370:736:0:o;136817:294::-;136927:58;;-1:-1:-1;;;136927:58:0;;:32;;;;:58;;-1:-1:-1;;;;;136927:32:0;;;136960:7;;136969:15;;136927:58;;;;138335:1293;138529:7;138555:18;138576:11;:20;;;138555:41;;138608:28;138639:11;:32;;;138608:63;;138685:157;138730:10;138756:11;:27;;;-1:-1:-1;;;;;138756:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;138685:22:0;;;:157;138811:20;138685:157;:22;:157;:::i;:::-;138870:22;138907:17;138939:23;138976:11;:27;;;-1:-1:-1;;;;;138976:44:0;;139043:10;139077:13;139114:8;139138:20;139173:11;:38;;;139226:5;138976:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;138976:266:0;;;;;;;;;;;;;;138855:387;;;;;;139255:8;-1:-1:-1;;;;;139255:15:0;;139271:14;139287:9;139298:10;139255:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;139255:54:0;;;;;;;;;;;;;;;139322:28;139353:87;139400:11;:39;;;139353:13;-1:-1:-1;;;;;139353:23:0;;139385:8;139353:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:46;:87;:46;:87;:::i;:::-;139322:118;;139497:11;:38;;;139473:20;:62;;139451:129;;;;-1:-1:-1;;;139451:129:0;;;;;;;;;139600:20;138335:1293;-1:-1:-1;;;;;;;;;;138335:1293:0:o;139732:365::-;139848:7;139868:24;139895:58;108009:1;139934:18;139895:12;:58::i;:::-;139868:85;;139974:79;140001:9;140020:13;140036:16;139974:26;:79::i;:::-;140073:16;139732:365;-1:-1:-1;;;;139732:365:0:o;39152:136::-;39210:7;39237:43;39241:1;39244;39237:43;;;;;;;;;;;;;;;;;:3;:43::i;137210:542::-;137354:6;;-1:-1:-1;;;;;137343:17:0;;;137354:6;;137343:17;137339:406;;;137412:4;;137377:57;;-1:-1:-1;;;;;137377:26:0;;;;137412:4;137419:14;137377:57;:26;:57;:::i;:::-;137451:58;;-1:-1:-1;;;137451:58:0;;:33;;;;:58;;-1:-1:-1;;;;;137451:33:0;;;137485:7;;137494:14;;137451:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137339:406;;;137576:84;-1:-1:-1;;;;;137576:23:0;;137608:16;137635:7;137645:14;137576:84;:23;:84;:::i;:::-;137675:58;;-1:-1:-1;;;137675:58:0;;:33;;;;:58;;-1:-1:-1;;;;;137675:33:0;;;137709:7;;137718:14;;137675:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137210:542;;;;:::o;140105:745::-;140247:19;;140281:32;;;;140458:25;;;;140207:302;;140247:19;140281:32;140328:170;;140247:19;;140281:32;;140328:22;:170::i;:::-;140207:25;:302::i;:::-;140522:320;140558:10;:19;;;140592:12;140619:212;140656:10;:19;;;140694:10;:28;;;140741:10;:25;;;140785:5;140619:18;:212::i;:::-;140522:21;:320::i;:::-;140105:745;;:::o;75534:211::-;75603:7;75627:6;;;:16;;-1:-1:-1;75637:6:0;;75627:16;75623:57;;;-1:-1:-1;75667:1:0;75660:8;;75623:57;75697:40;75735:1;75697:33;73352:8;75697:15;75735:1;75697:8;:1;75703;75697:8;:5;:8;:::i;:33::-;:37;:40;:37;:40;:::i;143919:290::-;144037:7;144057:33;144093:7;-1:-1:-1;;;;;144093:17:0;;144119:9;144093:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144057:73;-1:-1:-1;144148:53:0;144057:73;144185:15;144148:53;:36;:53;:::i;:::-;144141:60;143919:290;-1:-1:-1;;;;;143919:290:0:o;140858:192::-;140977:65;-1:-1:-1;;;;;140977:29:0;;141015:7;141025:16;140977:65;:29;:65;:::i;144529:506::-;144666:6;144685:29;144717:21;:122;;144792:47;;-1:-1:-1;;;144792:47:0;;-1:-1:-1;;;;;144792:27:0;;;;;:47;;144828:9;;144792:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144717:122;;;144741:48;;-1:-1:-1;;;144741:48:0;;-1:-1:-1;;;;;144741:28:0;;;;;:48;;144778:9;;144741:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144685:154;-1:-1:-1;144889:25:0;144917:72;-1:-1:-1;;144917:64:0;:53;144685:154;144954:15;144917:53;:36;:53;:::i;:::-;:62;:64::i;:::-;:68;:72;:68;:72;:::i;:::-;144889:100;144529:506;-1:-1:-1;;;;;;;144529:506:0:o;141058:224::-;141180:94;;;;;;;;;-1:-1:-1;141180:94:0;;;;-1:-1:-1;;;;;141180:30:0;;;141219:16;;141246:4;;141253:16;;141180:94;:30;:94;:::i;142219:1182::-;142562:17;;:::i;:::-;142597:19;142619:9;-1:-1:-1;;;;;142619:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142597:45;;142653:28;;:::i;:::-;142684:639;;;;;;;;142811:9;-1:-1:-1;;;;;142684:639:0;;;;;142745:40;142767:17;142745:21;:40::i;:::-;-1:-1:-1;;;;;142684:639:0;;;;;143077:11;142684:639;;;;143125:21;142684:639;;;;143189:27;142684:639;;;;142858:8;:77;;-1:-1:-1;;;;;142905:30:0;;;;;;;:18;:30;;;;;;;142858:77;;;-1:-1:-1;;;;;142869:33:0;;;;;;;:18;:33;;;;;;;142858:77;-1:-1:-1;;;;;142684:639:0;;;;;142969:8;:77;;-1:-1:-1;;;;;143013:33:0;;;;;;;:18;:33;;;;;;;142969:77;;;-1:-1:-1;;;;;142980:30:0;;;;;;;:18;:30;;;;;;;142969:77;-1:-1:-1;;;;;142684:639:0;;;;;143267:13;-1:-1:-1;;;;;143260:31:0;;143300:9;143260:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142684:639;;142653:670;-1:-1:-1;143336:27:0;142653:670;143336:15;:27::i;87562:918::-;87782:7;87791;87800;87825:22;87857:10;-1:-1:-1;;;;;87850:28:0;;87887:9;87850:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87825:73;;87909:20;87932:60;:9;-1:-1:-1;;;;;87932:36:0;;87969:10;87932:48;;;;;;;;;;;;;;;;:60;87909:83;-1:-1:-1;88005:20:0;88040:18;;88036:304;;88090:189;88141:15;88175:25;88219:14;88252:12;88090:32;:189::i;:::-;88075:204;;88036:304;;;-1:-1:-1;88327:1:0;88036:304;88352:56;88372:9;88383:10;88395:12;88352:19;:56::i;:::-;88429:14;;88445:12;;-1:-1:-1;88429:14:0;;-1:-1:-1;87562:918:0;-1:-1:-1;;;;;87562:918:0:o;136223:490::-;136365:6;;-1:-1:-1;;;;;136354:17:0;;;136365:6;;136354:17;136350:356;;;136423:4;;136388:56;;-1:-1:-1;;;;;136388:26:0;;;;136423:4;136430:13;136388:56;:26;:56;:::i;:::-;136461:50;;-1:-1:-1;;;136461:50:0;;:26;;;;:50;;-1:-1:-1;;;;;136461:26:0;;;136488:7;;136497:13;;136461:50;;;;136350:356;136544:83;-1:-1:-1;;;;;136544:23:0;;136576:16;136603:7;136613:13;136544:83;:23;:83;:::i;:::-;136644:50;;-1:-1:-1;;;136644:50:0;;:26;;;;:50;;-1:-1:-1;;;;;136644:26:0;;;136671:7;;136680:13;;136644:50;;;;33874:307;33988:8;;33945:7;;;;;34007:129;34031:6;34027:1;:10;34007:129;;;34071:1;-1:-1:-1;;;;;34063:9:0;:1;34065;34063:4;;;;;;;;;;;;;;-1:-1:-1;;;;;34063:9:0;;34059:66;;;34101:1;-1:-1:-1;34104:4:0;;-1:-1:-1;34093:16:0;;-1:-1:-1;34093:16:0;34059:66;34039:3;;34007:129;;;;-1:-1:-1;;34167:5:0;34146:27;;;;;33874:307;;;;;;:::o;40042:471::-;40100:7;40345:6;40341:47;;-1:-1:-1;40375:1:0;40368:8;;40341:47;40412:5;;;40416:1;40412;:5;:1;40436:5;;;;;:10;40428:56;;;;-1:-1:-1;;;40428:56:0;;;;;;;;40989:132;41047:7;41074:39;41078:1;41081;41074:39;;;;;;;;;;;;;;;;;:3;:39::i;62186:222::-;62309:36;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;62309:36:0;-1:-1:-1;;;62309:36:0;;;62356:44;;-1:-1:-1;;;62356:44:0;;62309:36;;-1:-1:-1;;;;;62356:16:0;;;;;:44;;62373:5;;62380:9;;62309:36;;62356:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62356:44:0;;;;;;;;;;;;;;;62186:222;;;;:::o;102824:122::-;102915:23;;;;;;;;102824:122::o;100813:363::-;100900:7;100939:10;;100900:7;;100939:35;;-1:-1:-1;;;;;100939:10:0;:33;:35::i;:::-;-1:-1:-1;;;;;100939:65:0;;101027:4;101047:16;100939:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100921:153;-1:-1:-1;;;;;;101095:21:0;;101087:55;;;;-1:-1:-1;;;101087:55:0;;;;;;;;59165:326;59339:21;59415:8;59425:9;59363:72;;;;;;;;;;;;;;-1:-1:-1;;59363:72:0;;;;;;;;;;;;;;-1:-1:-1;;;;;59363:72:0;-1:-1:-1;;;59363:72:0;;;59446:37;-1:-1:-1;;;59446:37:0;;59363:72;;-1:-1:-1;;;;;;59446:16:0;;;;;:37;;59463:6;;-1:-1:-1;;59363:72:0;;59446:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59446:37:0;;;;;;;;;;;;;101287:236;101369:7;101413:10;;:49;;-1:-1:-1;;;101413:49:0;;101369:7;;-1:-1:-1;;;;;101413:10:0;;:23;;:49;;101445:4;;101452:9;;101413:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101389:73;-1:-1:-1;101480:35:0;:9;101389:73;101480:35;:20;:35;:::i;101650:251::-;101769:16;;101765:129;;101802:79;101833:6;101841:10;;;;;;;;;-1:-1:-1;;;;;101841:10:0;-1:-1:-1;;;;;101841:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;101802:30:0;;;:79;101868:12;101802:79;:30;:79;:::i;39591:192::-;39677:7;39713:12;39705:6;;;;39697:29;;;;-1:-1:-1;;;39697:29:0;;;;;;;;;;-1:-1:-1;;;39749:5:0;;;39591:192::o;61691:235::-;61792:21;61861:9;61816:55;;;;;;;;;;;;;-1:-1:-1;;61816:55:0;;;;;;;;;;;;;;-1:-1:-1;;;;;61816:55:0;-1:-1:-1;;;61816:55:0;;;61882:36;-1:-1:-1;;;61882:36:0;;61816:55;;-1:-1:-1;;;;;;61882:16:0;;;;;:36;;61899:5;;-1:-1:-1;;61816:55:0;;61882:36;;;;38688:181;38746:7;38778:5;;;38802:6;;;;38794:46;;;;-1:-1:-1;;;38794:46:0;;;;;;;;75837:126;75902:7;75929:26;75953:1;75929:19;:1;73352:8;75929:19;:5;:19;:::i;81919:840::-;82027:20;82050:41;82069:9;82080:10;82050:18;:41::i;:::-;82027:64;;82107:15;82106:16;:32;;;;;82137:1;82126:8;:12;82106:32;82102:571;;;82263:42;82283:9;82294:10;82263:19;:42::i;:::-;82258:118;;82326:34;;-1:-1:-1;;;82326:34:0;;-1:-1:-1;;;;;82326:22:0;;;;;:34;;82349:10;;82326:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82258:118;82102:571;;;82397:15;:32;;;;-1:-1:-1;82416:13:0;;82397:32;82393:280;;;82546:42;82566:9;82577:10;82546:19;:42::i;:::-;82541:121;;82609:37;;-1:-1:-1;;;82609:37:0;;-1:-1:-1;;;;;82609:25:0;;;;;:37;;82635:10;;82609:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82541:121;82685:9;-1:-1:-1;;;;;82685:33:0;;82719:10;82731:19;:8;:17;:19::i;:::-;82685:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76294:204;76363:7;76391:6;76383:35;;;;-1:-1:-1;;;76383:35:0;;;;;;;;;76442:1;76438;:5;:52;;76489:1;76438:52;;;76446:40;76484:1;76446:33;76477:1;76446:26;76484:1;76446:19;:1;73352:8;76446:19;:5;:19;:::i;69019:181::-;69075:6;-1:-1:-1;;;69102:5:0;:14;69094:67;;;;-1:-1:-1;;;69094:67:0;;;;;;;;83926:1535;84141:13;;84137:1317;;84176:33;;-1:-1:-1;;;84176:33:0;;-1:-1:-1;;;;;84176:21:0;;;;;:33;;84198:10;;84176:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84171:343;;84230:34;;-1:-1:-1;;;84230:34:0;;-1:-1:-1;;;;;84230:22:0;;;;;:34;;84253:10;;84230:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;84283:56:0;;-1:-1:-1;;;84283:56:0;;-1:-1:-1;;;;;84283:35:0;;;-1:-1:-1;84283:35:0;;-1:-1:-1;84283:56:0;;84319:10;;84331:7;;84283:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84171:343;;;84366:55;;-1:-1:-1;;;84366:55:0;;-1:-1:-1;;;;;84366:34:0;;;;;:55;;84401:10;;84413:7;;84366:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84361:153;;84442:56;;-1:-1:-1;;;84442:56:0;;-1:-1:-1;;;;;84442:35:0;;;;;:56;;84478:10;;84490:7;;84442:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84361:153;84528:65;;-1:-1:-1;;;84528:65:0;;-1:-1:-1;;;;;84528:34:0;;;;;:65;;84563:10;;84575:7;;84584:8;;84528:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;84608:62:0;;-1:-1:-1;;;84608:62:0;;-1:-1:-1;;;;;84608:34:0;;;-1:-1:-1;84608:34:0;;-1:-1:-1;84608:62:0;;84643:10;;84655:7;;84664:5;;84608:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84137:1317;;;84711:12;;:17;84703:54;;;;-1:-1:-1;;;84703:54:0;;;;;;;;;84881:58;;-1:-1:-1;;;84881:58:0;;-1:-1:-1;;;;;84881:37:0;;;;;:58;;84919:10;;84931:7;;84881:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:63;84877:566;;85000:48;;-1:-1:-1;;;85000:48:0;;84965:32;;-1:-1:-1;;;;;85000:36:0;;;;;:48;;85037:10;;85000:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;85000:48:0;;;;;;;;;;;;;;85071;;-1:-1:-1;;;85071:48:0;;84965:83;;-1:-1:-1;;;;;;85071:36:0;;;;;:48;;85108:10;;85071:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:53;:84;;;;;85128:15;:22;85154:1;85128:27;85071:84;85067:283;;;85210:7;-1:-1:-1;;;;;85188:29:0;:15;85204:1;85188:18;;;;;;;;;;;;;;-1:-1:-1;;;;;85188:29:0;;85180:90;;;;-1:-1:-1;;;85180:90:0;;;;;;;;;85293:37;;-1:-1:-1;;;85293:37:0;;-1:-1:-1;;;;;85293:25:0;;;;;:37;;85319:10;;85293:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85067:283;85368:59;;-1:-1:-1;;;85368:59:0;;-1:-1:-1;;;;;85368:38:0;;;;;:59;;85407:10;;85419:7;;85368:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84877:566;83926:1535;;;;;:::o;143413:498::-;143526:20;;-1:-1:-1;;;;;143502:45:0;;;;;;;:23;:45;;;;;;;;143548:33;;;;143502:80;;;;;;;;;;;;143494:115;;;;-1:-1:-1;;;143494:115:0;;;;;;;;;143648:20;;-1:-1:-1;;;;;143628:41:0;;;;;;;:19;:41;;;;;;;;143670:29;;;;143628:72;;;;;;;;;;;;143620:103;;;;-1:-1:-1;;;143620:103:0;;;;;;;;;143779:11;:29;;;-1:-1:-1;;;;;143742:66:0;:11;:33;;;-1:-1:-1;;;;;143742:66:0;;;143734:96;;;;-1:-1:-1;;;143734:96:0;;;;;;;;;143884:1;143849:11;:32;;;:36;143841:62;;;;-1:-1:-1;;;143841:62:0;;;;;;;;;143413:498;:::o;89168:587::-;89409:7;;89594:67;89616:44;:16;89644:15;89616:44;:27;:44;:::i;:::-;89594:17;;:67;:21;:67;:::i;:::-;89567:94;-1:-1:-1;89679:68:0;89731:15;89679:40;:18;89567:94;89679:40;:22;:40;:::i;:::-;:51;:68;:51;:68;:::i;:::-;89672:75;89168:587;-1:-1:-1;;;;;;89168:587:0:o;41617:278::-;41703:7;41738:12;41731:5;41723:28;;;;-1:-1:-1;;;41723:28:0;;;;;;;;;;;41762:9;41778:1;41774;:5;;;;;;;41617:278;-1:-1:-1;;;;;41617:278:0:o;94733:206::-;94874:56;;-1:-1:-1;;;94874:56:0;;94813:20;;-1:-1:-1;;;;;94874:22:0;;;;;:56;;94813:20;;94874:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60625:803;60805:13;;60801:620;;60928:44;;-1:-1:-1;;;60928:44:0;;60902:23;;-1:-1:-1;;;;;60928:24:0;;;;;:44;;60961:9;;60928:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60902:70;;60989:56;61011:9;61022:6;61030:3;61035:9;60989:21;:56::i;:::-;61149:44;;-1:-1:-1;;;61149:44:0;;61128:18;;-1:-1:-1;;;;;61149:24:0;;;;;:44;;61182:9;;61149:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61128:65;-1:-1:-1;61314:30:0;:15;61334:9;61314:30;:19;:30;:::i;:::-;61300:10;:44;61274:135;;;;-1:-1:-1;;;61274:135:0;;;;;;;;80040:175;80131:4;80206:1;80155:9;-1:-1:-1;;;;;80155:36:0;;80192:10;80155:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:52;;80040:175;-1:-1:-1;;;80040:175:0:o;80359:183::-;80451:4;80533:1;80475:9;-1:-1:-1;;;;;80475:36:0;;80512:10;80475:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;80475:48:0;;;;;;;;;;;;;;:55;:59;;80359:183;-1:-1:-1;;;80359:183:0:o;59827:367::-;60001:13;;59997:190;;60031:21;60108:3;60113:9;60055:68;;;;;;;;;;;;;;-1:-1:-1;;60055:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;60055:68:0;-1:-1:-1;;;60055:68:0;;;60138:37;-1:-1:-1;;;60138:37:0;;60055:68;;-1:-1:-1;;;;;;60138:16:0;;;;;:37;;60155:6;;-1:-1:-1;;60055:68:0;;60138:37;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1057:746;;1187:3;1180:4;1172:6;1168:17;1164:27;1154:2;;-1:-1;;1195:12;1154:2;1242:6;1229:20;1264:93;1279:77;1349:6;1279:77;;;1264:93;;;1385:21;;;1255:102;-1:-1;1429:4;1442:14;;;;1417:17;;;1531;;;1522:27;;;;1519:36;-1:-1;1516:2;;;1568:1;;1558:12;1516:2;1593:1;1578:219;1603:6;1600:1;1597:13;1578:219;;;3430:6;3417:20;3442:46;3482:5;3442:46;;;1671:63;;1748:14;;;;1776;;;;1625:1;1618:9;1578:219;;;1582:14;;;;;1147:656;;;;;2078:440;;2179:3;2172:4;2164:6;2160:17;2156:27;2146:2;;-1:-1;;2187:12;2146:2;2234:6;2221:20;2256:64;2271:48;2312:6;2271:48;;2256:64;2247:73;;2340:6;2333:5;2326:21;2444:3;2376:4;2435:6;2368;2426:16;;2423:25;2420:2;;;2461:1;;2451:12;2420:2;62001:6;2376:4;2368:6;2364:17;2376:4;2402:5;2398:16;61978:30;62057:1;62039:16;;;2376:4;62039:16;62032:27;2402:5;2139:379;-1:-1;;2139:379;2527:442;;2639:3;2632:4;2624:6;2620:17;2616:27;2606:2;;-1:-1;;2647:12;2606:2;2687:6;2681:13;2709:64;2724:48;2765:6;2724:48;;2709:64;2700:73;;2793:6;2786:5;2779:21;2897:3;2829:4;2888:6;2821;2879:16;;2876:25;2873:2;;;2914:1;;2904:12;2873:2;2924:39;2956:6;2829:4;2855:5;2851:16;2829:4;2821:6;2817:17;2924:39;;;;2599:370;;;;;4710:241;;4814:2;4802:9;4793:7;4789:23;4785:32;4782:2;;;-1:-1;;4820:12;4782:2;85:6;72:20;97:33;124:5;97:33;;4958:263;;5073:2;5061:9;5052:7;5048:23;5044:32;5041:2;;;-1:-1;;5079:12;5041:2;226:6;220:13;238:33;265:5;238:33;;5228:632;;;;5386:2;5374:9;5365:7;5361:23;5357:32;5354:2;;;-1:-1;;5392:12;5354:2;226:6;220:13;238:33;265:5;238:33;;;5555:2;5605:22;;4647:13;5695:2;5680:18;;5674:25;5444:74;;-1:-1;4647:13;-1:-1;5719:18;5708:30;;5705:2;;;-1:-1;;5741:12;5705:2;5771:73;5836:7;5827:6;5816:9;5812:22;5771:73;;;5761:83;;;5348:512;;;;;;5867:392;;6007:2;;5995:9;5986:7;5982:23;5978:32;5975:2;;;-1:-1;;6013:12;5975:2;6064:17;6058:24;6102:18;6094:6;6091:30;6088:2;;;-1:-1;;6124:12;6088:2;6226:6;6215:9;6211:22;429:3;422:4;414:6;410:17;406:27;396:2;;-1:-1;;437:12;396:2;477:6;471:13;457:27;;499:80;514:64;571:6;514:64;;499:80;607:21;;;664:14;;;;639:17;;;753;;;744:27;;;;741:36;-1:-1;738:2;;;-1:-1;;780:12;738:2;-1:-1;806:10;;800:217;825:6;822:1;819:13;800:217;;;226:6;220:13;238:33;265:5;238:33;;;893:61;;847:1;840:9;;;;;968:14;;;;996;;800:217;;;-1:-1;6144:99;5969:290;-1:-1;;;;;;;5969:290;6266:235;;6367:2;6355:9;6346:7;6342:23;6338:32;6335:2;;;-1:-1;;6373:12;6335:2;1888:6;1875:20;1900:30;1924:5;1900:30;;6508:257;;6620:2;6608:9;6599:7;6595:23;6591:32;6588:2;;;-1:-1;;6626:12;6588:2;2023:6;2017:13;2035:30;2059:5;2035:30;;6772:360;;6896:2;6884:9;6875:7;6871:23;6867:32;6864:2;;;-1:-1;;6902:12;6864:2;6953:17;6947:24;6991:18;6983:6;6980:30;6977:2;;;-1:-1;;7013:12;6977:2;7043:73;7108:7;7099:6;7088:9;7084:22;7043:73;;7139:422;;;7288:2;7276:9;7267:7;7263:23;7259:32;7256:2;;;-1:-1;;7294:12;7256:2;3072:6;3059:20;3084:48;3126:5;3084:48;;;7346:78;-1:-1;7461:2;7513:22;;3417:20;3442:46;3417:20;3442:46;;;7469:76;;;;7250:311;;;;;;8124:562;;;8300:2;8288:9;8279:7;8275:23;8271:32;8268:2;;;-1:-1;;8306:12;8268:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;8358:80;-1:-1;8503:2;8488:18;;8475:32;8527:18;8516:30;;8513:2;;;-1:-1;;8549:12;8513:2;8579:91;8662:7;8653:6;8642:9;8638:22;8579:91;;;8569:101;;;8262:424;;;;;;8693:849;;;;8924:2;8912:9;8903:7;8899:23;8895:32;8892:2;;;-1:-1;;8930:12;8892:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;8982:80;-1:-1;9127:2;9112:18;;9099:32;9151:18;9140:30;;;9137:2;;;-1:-1;;9173:12;9137:2;9203:91;9286:7;9277:6;9266:9;9262:22;9203:91;;;9193:101;;9359:2;9348:9;9344:18;9331:32;9317:46;;9151:18;9375:6;9372:30;9369:2;;;-1:-1;;9405:12;9369:2;;9435:91;9518:7;9509:6;9498:9;9494:22;9435:91;;9549:394;;;9684:2;9672:9;9663:7;9659:23;9655:32;9652:2;;;-1:-1;;9690:12;9652:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;9742:80;-1:-1;9859:2;9895:22;;1875:20;1900:30;1875:20;1900:30;;10850:1165;;;;;;;11101:3;11089:9;11080:7;11076:23;11072:33;11069:2;;;-1:-1;;11108:12;11069:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;11160:80;-1:-1;11277:2;11329:22;;3417:20;3442:46;3417:20;3442:46;;;11285:76;-1:-1;11398:2;11450:22;;3417:20;3442:46;3417:20;3442:46;;;11406:76;-1:-1;11519:2;11558:22;;4499:20;;-1:-1;11655:3;11640:19;;11627:33;11680:18;11669:30;;;11666:2;;;-1:-1;;11702:12;11666:2;11732:63;11787:7;11778:6;11767:9;11763:22;11732:63;;;11722:73;;11860:3;11849:9;11845:19;11832:33;11818:47;;11680:18;11877:6;11874:30;11871:2;;;-1:-1;;11907:12;11871:2;;11937:62;11991:7;11982:6;11971:9;11967:22;11937:62;;;11927:72;;;11063:952;;;;;;;;;12022:1291;;;;;;;;12290:3;12278:9;12269:7;12265:23;12261:33;12258:2;;;-1:-1;;12297:12;12258:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;12349:80;-1:-1;12466:2;12518:22;;3417:20;3442:46;3417:20;3442:46;;;12474:76;-1:-1;12587:2;12639:22;;3417:20;3442:46;3417:20;3442:46;;;12595:76;-1:-1;12708:2;12747:22;;4499:20;;-1:-1;12816:3;12856:22;;4499:20;;-1:-1;12953:3;12938:19;;12925:33;12978:18;12967:30;;;12964:2;;;-1:-1;;13000:12;12964:2;13030:63;13085:7;13076:6;13065:9;13061:22;13030:63;;;13020:73;;13158:3;13147:9;13143:19;13130:33;13116:47;;12978:18;13175:6;13172:30;13169:2;;;-1:-1;;13205:12;13169:2;;13235:62;13289:7;13280:6;13269:9;13265:22;13235:62;;;13225:72;;;12252:1061;;;;;;;;;;;13320:400;;;13458:2;13446:9;13437:7;13433:23;13429:32;13426:2;;;-1:-1;;13464:12;13426:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;13516:80;13633:2;13672:22;;;;4499:20;;-1:-1;;;13420:300;13727:671;;;;;13909:3;13897:9;13888:7;13884:23;13880:33;13877:2;;;-1:-1;;13916:12;13877:2;3597:6;3584:20;3609:50;3653:5;3609:50;;;13968:80;-1:-1;14085:2;14124:22;;4499:20;;-1:-1;14193:2;14245:22;;3417:20;3442:46;3417:20;3442:46;;;14201:76;-1:-1;14314:2;14350:22;;1875:20;1900:30;1875:20;1900:30;;;13871:527;;;;-1:-1;13871:527;;-1:-1;;13871:527;14405:293;;14535:2;14523:9;14514:7;14510:23;14506:32;14503:2;;;-1:-1;;14541:12;14503:2;3770:6;3764:13;63423:1;63416:5;63413:12;63403:2;;-1:-1;;63429:12;14705:261;;14819:2;14807:9;14798:7;14794:23;14790:32;14787:2;;;-1:-1;;14825:12;14787:2;-1:-1;3919:13;;14781:185;-1:-1;14781:185;16043:690;;16236:5;57382:12;58211:6;58206:3;58199:19;58248:4;;58243:3;58239:14;16248:93;;58248:4;16412:5;57065:14;-1:-1;16451:260;16476:6;16473:1;16470:13;16451:260;;;16537:13;;-1:-1;;;;;59484:54;15843:37;;15397:14;;;;57926;;;;5719:18;16491:9;16451:260;;;-1:-1;16717:10;;16167:566;-1:-1;;;;;16167:566;17774:343;;17916:5;57382:12;58211:6;58206:3;58199:19;18009:52;18054:6;58248:4;58243:3;58239:14;58248:4;18035:5;18031:16;18009:52;;;62434:7;62418:14;-1:-1;;62414:28;18073:39;;;;58248:4;18073:39;;17864:253;-1:-1;;17864:253;31698:222;-1:-1;;;;;59484:54;;;;15843:37;;31825:2;31810:18;;31796:124;32172:333;-1:-1;;;;;59484:54;;;15843:37;;59484:54;;32491:2;32476:18;;15843:37;32327:2;32312:18;;32298:207;32512:864;-1:-1;;;;;59484:54;;;15843:37;;59484:54;;;32962:2;32947:18;;15843:37;59484:54;;33045:2;33030:18;;15843:37;33128:2;33113:18;;17725:37;;;33211:3;33196:19;;17725:37;;;32797:3;59495:42;33234:19;;33227:49;;;32512:864;;33290:76;;32782:19;;33352:6;33290:76;;;33282:84;32768:608;-1:-1;;;;;;;;32768:608;33383:528;-1:-1;;;;;59484:54;;;15843:37;;59484:54;;33748:2;33733:18;;15843:37;33584:2;33785;33770:18;;33763:48;;;33383:528;;33825:76;;33569:18;;33887:6;33825:76;;33918:440;-1:-1;;;;;59484:54;;;15843:37;;59484:54;;;;34263:2;34248:18;;15843:37;34344:2;34329:18;;17725:37;;;;34099:2;34084:18;;34070:288;34365:333;-1:-1;;;;;59484:54;;;;15843:37;;34684:2;34669:18;;17725:37;34520:2;34505:18;;34491:207;35041:544;;5719:18;;59495:42;;;58690:5;59484:54;15850:3;15843:37;61640:24;35422:2;35411:9;35407:18;19682:58;35250:2;35459;35448:9;35444:18;35437:48;35499:76;35250:2;35239:9;35235:18;35561:6;35499:76;;36467:629;;36722:2;36743:17;36736:47;36797:108;36722:2;36711:9;36707:18;36891:6;36797:108;;;36953:9;36947:4;36943:20;36938:2;36927:9;36923:18;36916:48;36978:108;37081:4;37072:6;36978:108;;37103:396;37293:2;37307:47;;;57382:12;;37278:18;;;58199:19;;;37103:396;;37293:2;57065:14;;;;58239;;;;37103:396;17227:286;17252:6;17249:1;17246:13;17227:286;;;17313:13;;-1:-1;;;;;59484:54;15843:37;;57926:14;;;;15605;;;;5719:18;17267:9;17227:286;;;-1:-1;37360:129;;37264:235;-1:-1;;;;;;37264:235;37506:210;58774:13;;58767:21;17608:34;;37627:2;37612:18;;37598:118;38251:622;-1:-1;;;;;59484:54;;;;18210:65;;38685:2;38670:18;;17725:37;;;;38768:2;38753:18;;17725:37;38859:2;38844:18;;19682:58;38495:3;38480:19;;38466:407;39756:580;-1:-1;;;;;59484:54;;;18210:65;;59484:54;;;40211:2;40196:18;;18210:65;59484:54;;;40322:2;40307:18;;18210:65;39999:2;39984:18;;39970:366;40890:310;;41037:2;41058:17;41051:47;41112:78;41037:2;41026:9;41022:18;41176:6;41112:78;;41207:416;41407:2;41421:47;;;20331:2;41392:18;;;58199:19;-1:-1;;;58239:14;;;20347:44;20410:12;;;41378:245;41630:416;41830:2;41844:47;;;20661:2;41815:18;;;58199:19;20697:28;58239:14;;;20677:49;20745:12;;;41801:245;42053:416;42253:2;42267:47;;;20996:2;42238:18;;;58199:19;21032:34;58239:14;;;21012:55;-1:-1;;;21087:12;;;21080:32;21131:12;;;42224:245;42476:416;42676:2;42690:47;;;21382:2;42661:18;;;58199:19;-1:-1;;;58239:14;;;21398:40;21457:12;;;42647:245;42899:416;43099:2;43113:47;;;21708:2;43084:18;;;58199:19;21744:34;58239:14;;;21724:55;-1:-1;;;21799:12;;;21792:30;21841:12;;;43070:245;43322:416;43522:2;43536:47;;;22092:2;43507:18;;;58199:19;22128:29;58239:14;;;22108:50;22177:12;;;43493:245;43745:416;43945:2;43959:47;;;22428:2;43930:18;;;58199:19;22464:32;58239:14;;;22444:53;22516:12;;;43916:245;44168:416;44368:2;44382:47;;;22767:2;44353:18;;;58199:19;-1:-1;;;58239:14;;;22783:36;22838:12;;;44339:245;44591:416;44791:2;44805:47;;;23089:2;44776:18;;;58199:19;-1:-1;;;58239:14;;;23105:40;23164:12;;;44762:245;45014:416;45214:2;45228:47;;;23415:2;45199:18;;;58199:19;-1:-1;;;58239:14;;;23431:44;23494:12;;;45185:245;45437:416;45637:2;45651:47;;;23745:2;45622:18;;;58199:19;-1:-1;;;58239:14;;;23761:40;23820:12;;;45608:245;45860:416;46060:2;46074:47;;;24071:2;46045:18;;;58199:19;-1:-1;;;58239:14;;;24087:45;24151:12;;;46031:245;46283:416;46483:2;46497:47;;;24402:2;46468:18;;;58199:19;-1:-1;;;58239:14;;;24418:41;24478:12;;;46454:245;46706:416;46906:2;46920:47;;;46891:18;;;58199:19;24765:34;58239:14;;;24745:55;24819:12;;;46877:245;47129:416;47329:2;47343:47;;;25070:2;47314:18;;;58199:19;25106:26;58239:14;;;25086:47;25152:12;;;47300:245;47552:416;47752:2;47766:47;;;25403:2;47737:18;;;58199:19;25439:26;58239:14;;;25419:47;25485:12;;;47723:245;47975:416;48175:2;48189:47;;;25736:2;48160:18;;;58199:19;25772:34;58239:14;;;25752:55;-1:-1;;;25827:12;;;25820:40;25879:12;;;48146:245;48398:416;48598:2;48612:47;;;26130:2;48583:18;;;58199:19;26166:34;58239:14;;;26146:55;-1:-1;;;26221:12;;;26214:25;26258:12;;;48569:245;48821:416;49021:2;49035:47;;;49006:18;;;58199:19;26545:34;58239:14;;;26525:55;26599:12;;;48992:245;49244:416;49444:2;49458:47;;;26850:2;49429:18;;;58199:19;-1:-1;;;58239:14;;;26866:43;26928:12;;;49415:245;49667:416;49867:2;49881:47;;;27179:2;49852:18;;;58199:19;27215:34;58239:14;;;27195:55;-1:-1;;;27270:12;;;27263:31;27313:12;;;49838:245;50090:416;50290:2;50304:47;;;27564:2;50275:18;;;58199:19;27600:31;58239:14;;;27580:52;27651:12;;;50261:245;50513:416;50713:2;50727:47;;;27902:2;50698:18;;;58199:19;-1:-1;;;58239:14;;;27918:36;27973:12;;;50684:245;50936:416;51136:2;51150:47;;;28224:2;51121:18;;;58199:19;-1:-1;;;58239:14;;;28240:37;28296:12;;;51107:245;51359:416;51559:2;51573:47;;;28547:2;51544:18;;;58199:19;28583:26;58239:14;;;28563:47;28629:12;;;51530:245;51782:416;51982:2;51996:47;;;28880:2;51967:18;;;58199:19;28916:34;58239:14;;;28896:55;-1:-1;;;28971:12;;;28964:32;29015:12;;;51953:245;52205:416;52405:2;52419:47;;;29266:2;52390:18;;;58199:19;29302:34;58239:14;;;29282:55;-1:-1;;;29357:12;;;29350:28;29397:12;;;52376:245;52628:416;52828:2;52842:47;;;29648:2;52813:18;;;58199:19;29684:34;58239:14;;;29664:55;-1:-1;;;29739:12;;;29732:27;29778:12;;;52799:245;53051:416;53251:2;53265:47;;;30029:2;53236:18;;;58199:19;30065:30;58239:14;;;30045:51;30115:12;;;53222:245;53474:416;53674:2;53688:47;;;30366:2;53659:18;;;58199:19;-1:-1;;;58239:14;;;30382:41;30442:12;;;53645:245;53897:416;54097:2;54111:47;;;30693:2;54082:18;;;58199:19;30729:33;58239:14;;;30709:54;30782:12;;;54068:245;54320:416;54520:2;54534:47;;;31033:1;54505:18;;;58199:19;-1:-1;;;58239:14;;;31048:32;31099:12;;;54491:245;54743:416;54943:2;54957:47;;;31350:2;54928:18;;;58199:19;-1:-1;;;58239:14;;;31366:39;31424:12;;;54914:245;55166:222;17725:37;;;55293:2;55278:18;;55264:124;55395:256;55457:2;55451:9;55483:17;;;55558:18;55543:34;;55579:22;;;55540:62;55537:2;;;55615:1;;55605:12;55537:2;55457;55624:22;55435:216;;-1:-1;55435:216;55658:304;;55817:18;55809:6;55806:30;55803:2;;;-1:-1;;55839:12;55803:2;-1:-1;55884:4;55872:17;;;55937:15;;55740:222;56293:321;;56436:18;56428:6;56425:30;56422:2;;;-1:-1;;56458:12;56422:2;-1:-1;62434:7;56512:17;-1:-1;;56508:33;56599:4;56589:15;;56359:255;62074:268;62139:1;62146:101;62160:6;62157:1;62154:13;62146:101;;;62227:11;;;62221:18;62208:11;;;62201:39;62182:2;62175:10;62146:101;;;62262:6;62259:1;62256:13;62253:2;;;-1:-1;;62139:1;62309:16;;62302:27;62123:219;62455:117;-1:-1;;;;;59484:54;;62514:35;;62504:2;;62563:1;;62553:12;62579:111;62660:5;58774:13;58767:21;62638:5;62635:32;62625:2;;62681:1;;62671:12

Swarm Source

ipfs://646d0fd97b148a1fff693c2e37262943d4fa88663a711f003492f4572e81ecdb
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading