Contract 0x5719f0478D32398e7b05bF55EbC04C62105F329D

 
Txn Hash
Method
Block
From
To
Value
0x512c6f02d34db69cb8ba5fd2ec96e7f535030c5ec09801dc294a68e92d260b6fAccrue Fee And D...129157612021-07-28 17:41:13384 days 1 hr agoSet: Rebalancer IN  0x5719f0478d32398e7b05bf55ebc04c62105f329d0 Ether0.‍0088908136
0x1a01600d99a808e0acfcfcbc1e3dc1d3214f73a3ae5f952567ae1e5fcf2bd7e9Accrue Fee And D...127238792021-06-28 17:33:58414 days 1 hr agoSet: Rebalancer IN  0x5719f0478d32398e7b05bf55ebc04c62105f329d0 Ether0.‍0053903522
0xa7855119b17e017562de5c1527db4c48fdaa1f3bb110e2bb57a7587fa40a995c0x60806040123557962021-05-02 16:24:16471 days 2 hrs agoSet: Deployer IN  Contract Creation0 Ether0.‍0928735248
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xbb7656e73b323a4027ddb0ac4baa54f34f8304e4

Contract Name:
ICManager

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-04-25
*/

// 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/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: contracts/interfaces/ISetToken.sol

// pragma solidity 0.6.10;
pragma experimental "ABIEncoderV2";

// 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/IIndexModule.sol

// pragma solidity 0.6.10;

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

interface IIndexModule {
    function startRebalance(
        address[] calldata _newComponents,
        uint256[] calldata _newComponentsTargetUnits,
        uint256[] calldata _oldComponentsTargetUnits,
        uint256 _positionMultiplier
    ) external;

    function setTradeMaximums(
        address[] calldata _components,
        uint256[] calldata _tradeMaximums
    ) external;

    function setExchanges(
        address[] calldata _components,
        uint256[] calldata _exchanges
    ) external;

    function setCoolOffPeriods(
        address[] calldata _components,
        uint256[] calldata _coolOffPeriods
    ) external;

    function updateTraderStatus(address[] calldata _traders, bool[] calldata _statuses) external;

    function updateAnyoneTrade(bool _status) external;
}

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

// pragma solidity 0.6.10;

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

interface IStreamingFeeModule {
    function getFee(ISetToken _setToken) external view returns (uint256);
    function accrueFee(ISetToken _setToken) external;
    function updateStreamingFee(ISetToken _setToken, uint256 _newFee) external;
    function updateFeeRecipient(ISetToken _setToken, address _newFeeRecipient) external;
}

// Dependency file: contracts/lib/MutualUpgrade.sol

/*
    Copyright 2018 Set Labs Inc.

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

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

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

// pragma solidity 0.6.10;

/**
 * @title MutualUpgrade
 * @author Set Protocol
 *
 * The MutualUpgrade contract contains a modifier for handling mutual upgrades between two parties
 */
contract MutualUpgrade {
    /* ============ State Variables ============ */

    // Mapping of upgradable units and if upgrade has been initialized by other party
    mapping(bytes32 => bool) public mutualUpgrades;

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

    event MutualUpgradeRegistered(
        bytes32 _upgradeHash
    );

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

    modifier mutualUpgrade(address _signerOne, address _signerTwo) {
        require(
            msg.sender == _signerOne || msg.sender == _signerTwo,
            "Must be authorized address"
        );

        address nonCaller = _getNonCaller(_signerOne, _signerTwo);

        // The upgrade hash is defined by the hash of the transaction call data and sender of msg,
        // which uniquely identifies the function, arguments, and sender.
        bytes32 expectedHash = keccak256(abi.encodePacked(msg.data, nonCaller));

        if (!mutualUpgrades[expectedHash]) {
            bytes32 newHash = keccak256(abi.encodePacked(msg.data, msg.sender));

            mutualUpgrades[newHash] = true;

            emit MutualUpgradeRegistered(newHash);

            return;
        }

        delete mutualUpgrades[expectedHash];

        // Run the rest of the upgrades
        _;
    }

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

    function _getNonCaller(address _signerOne, address _signerTwo) internal view returns(address) {
        return msg.sender == _signerOne ? _signerTwo : _signerOne;
    }
}


// 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/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.

    SPDX-License-Identifier: Apache License, Version 2.0
*/

// pragma solidity 0.6.10;

// 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: @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: contracts/lib/TimeLockUpgrade.sol

/*
    Copyright 2018 Set Labs Inc.

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

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

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

// pragma solidity 0.6.10;

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

/**
 * @title TimeLockUpgrade
 * @author Set Protocol
 *
 * The TimeLockUpgrade contract contains a modifier for handling minimum time period updates
 */
contract TimeLockUpgrade is
    Ownable
{
    using SafeMath for uint256;

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

    // Timelock Upgrade Period in seconds
    uint256 public timeLockPeriod;

    // Mapping of upgradable units and initialized timelock
    mapping(bytes32 => uint256) public timeLockedUpgrades;

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

    event UpgradeRegistered(
        bytes32 _upgradeHash,
        uint256 _timestamp
    );

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

    modifier timeLockUpgrade() {
        // If the time lock period is 0, then allow non-timebound upgrades.
        // This is useful for initialization of the protocol and for testing.
        if (timeLockPeriod == 0) {
            _;

            return;
        }

        // The upgrade hash is defined by the hash of the transaction call data,
        // which uniquely identifies the function as well as the passed in arguments.
        bytes32 upgradeHash = keccak256(
            abi.encodePacked(
                msg.data
            )
        );

        uint256 registrationTime = timeLockedUpgrades[upgradeHash];

        // If the upgrade hasn't been registered, register with the current time.
        if (registrationTime == 0) {
            timeLockedUpgrades[upgradeHash] = block.timestamp;

            emit UpgradeRegistered(
                upgradeHash,
                block.timestamp
            );

            return;
        }

        require(
            block.timestamp >= registrationTime.add(timeLockPeriod),
            "TimeLockUpgrade: Time lock period must have elapsed."
        );

        // Reset the timestamp to 0
        timeLockedUpgrades[upgradeHash] = 0;

        // Run the rest of the upgrades
        _;
    }

    /* ============ Function ============ */

    /**
     * Change timeLockPeriod period. Generally called after initially settings have been set up.
     *
     * @param  _timeLockPeriod   Time in seconds that upgrades need to be evaluated before execution
     */
    function setTimeLockPeriod(
        uint256 _timeLockPeriod
    )
        virtual
        external
        onlyOwner
    {
        // Only allow setting of the timeLockPeriod if the period is greater than the existing
        require(
            _timeLockPeriod > timeLockPeriod,
            "TimeLockUpgrade: New period must be greater than existing"
        );

        timeLockPeriod = _timeLockPeriod;
    }
}


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


// Root file: contracts/manager/ICManager.sol

pragma solidity ^0.6.10;

// import { Address } from "@openzeppelin/contracts/utils/Address.sol";
// import { ISetToken } from "contracts/interfaces/ISetToken.sol";
// import { IIndexModule } from "contracts/interfaces/IIndexModule.sol";
// import { IStreamingFeeModule } from "contracts/interfaces/IStreamingFeeModule.sol";
// import { MutualUpgrade } from "contracts/lib/MutualUpgrade.sol";
// import { PreciseUnitMath } from "contracts/lib/PreciseUnitMath.sol";
// import { TimeLockUpgrade } from "contracts/lib/TimeLockUpgrade.sol";
// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
// import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";

contract ICManager is TimeLockUpgrade, MutualUpgrade {
    using Address for address;
    using SafeMath for uint256;
    using PreciseUnitMath for uint256;

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

    event FeesAccrued(
        uint256 _totalFees,
        uint256 _operatorTake,
        uint256 _methodologistTake
    );

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

    /**
     * Throws if the sender is not the SetToken operator
     */
    modifier onlyOperator() {
        require(msg.sender == operator, "Must be operator");
        _;
    }

    /**
     * Throws if the sender is not the SetToken methodologist
     */
    modifier onlyMethodologist() {
        require(msg.sender == methodologist, "Must be methodologist");
        _;
    }

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

    // Instance of SetToken
    ISetToken public setToken;

    // Address of IndexModule for managing rebalances
    IIndexModule public indexModule;

    // Address of StreamingFeeModule
    IStreamingFeeModule public feeModule;

    // Address of operator
    address public operator;

    // Address of methodologist
    address public methodologist;

    // Percent in 1e18 of streamingFees sent to operator
    uint256 public operatorFeeSplit;

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

    constructor(
        ISetToken _setToken,
        IIndexModule _indexModule,
        IStreamingFeeModule _feeModule,
        address _operator,
        address _methodologist,
        uint256 _operatorFeeSplit
    )
        public
    {
        require(
            _operatorFeeSplit <= PreciseUnitMath.preciseUnit(),
            "Operator Fee Split must be less than 1e18"
        );
        
        setToken = _setToken;
        indexModule = _indexModule;
        feeModule = _feeModule;
        operator = _operator;
        methodologist = _methodologist;
        operatorFeeSplit = _operatorFeeSplit;
    }

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

    /**
     * OPERATOR ONLY: Start rebalance in IndexModule. Set new target units, zeroing out any units for components being removed from index.
     * Log position multiplier to adjust target units in case fees are accrued.
     *
     * @param _newComponents                    Array of new components to add to allocation
     * @param _newComponentsTargetUnits         Array of target units at end of rebalance for new components, maps to same index of component
     * @param _oldComponentsTargetUnits         Array of target units at end of rebalance for old component, maps to same index of component,
     *                                              if component being removed set to 0.
     * @param _positionMultiplier               Position multiplier when target units were calculated, needed in order to adjust target units
     *                                              if fees accrued
     */
    function startRebalance(
        address[] calldata _newComponents,
        uint256[] calldata _newComponentsTargetUnits,
        uint256[] calldata _oldComponentsTargetUnits,
        uint256 _positionMultiplier
    )
        external
        onlyOperator
    {
        indexModule.startRebalance(_newComponents, _newComponentsTargetUnits, _oldComponentsTargetUnits, _positionMultiplier);
    }

    /**
     * OPERATOR ONLY: Set trade maximums for passed components
     *
     * @param _components            Array of components
     * @param _tradeMaximums         Array of trade maximums mapping to correct component
     */
    function setTradeMaximums(
        address[] calldata _components,
        uint256[] calldata _tradeMaximums
    )
        external
        onlyOperator
    {
        indexModule.setTradeMaximums(_components, _tradeMaximums);
    }

    /**
     * OPERATOR ONLY: Set exchange for passed components
     *
     * @param _components        Array of components
     * @param _exchanges         Array of exchanges mapping to correct component, uint256 used to signify exchange
     */
    function setAssetExchanges(
        address[] calldata _components,
        uint256[] calldata _exchanges
    )
        external
        onlyOperator
    {
        indexModule.setExchanges(_components, _exchanges);
    }

    /**
     * OPERATOR ONLY: Set exchange for passed components
     *
     * @param _components           Array of components
     * @param _coolOffPeriods       Array of cool off periods to correct component
     */
    function setCoolOffPeriods(
        address[] calldata _components,
        uint256[] calldata _coolOffPeriods
    )
        external
        onlyOperator
    {
        indexModule.setCoolOffPeriods(_components, _coolOffPeriods);
    }

    /**
     * OPERATOR ONLY: Toggle ability for passed addresses to trade from current state 
     *
     * @param _traders           Array trader addresses to toggle status
     * @param _statuses          Booleans indicating if matching trader can trade
     */
    function updateTraderStatus(
        address[] calldata _traders,
        bool[] calldata _statuses
    )
        external
        onlyOperator
    {
        indexModule.updateTraderStatus(_traders, _statuses);
    }

    /**
     * OPERATOR ONLY: Toggle whether anyone can trade, bypassing the traderAllowList
     *
     * @param _status           Boolean indicating if anyone can trade
     */
    function updateAnyoneTrade(bool _status) external onlyOperator {
        indexModule.updateAnyoneTrade(_status);
    }

    /**
     * Accrue fees from streaming fee module and transfer tokens to operator / methodologist addresses based on fee split
     */
    function accrueFeeAndDistribute() public {
        feeModule.accrueFee(setToken);

        uint256 setTokenBalance = setToken.balanceOf(address(this));

        uint256 operatorTake = setTokenBalance.preciseMul(operatorFeeSplit);
        uint256 methodologistTake = setTokenBalance.sub(operatorTake);

        setToken.transfer(operator, operatorTake);

        setToken.transfer(methodologist, methodologistTake);

        emit FeesAccrued(setTokenBalance, operatorTake, methodologistTake);
    }

    /**
     * OPERATOR OR METHODOLOGIST ONLY: Update the SetToken manager address. Operator and Methodologist must each call
     * this function to execute the update.
     *
     * @param _newManager           New manager address
     */
    function updateManager(address _newManager) external mutualUpgrade(operator, methodologist) {
        setToken.setManager(_newManager);
    }

    /**
     * OPERATOR ONLY: Add a new module to the SetToken.
     *
     * @param _module           New module to add
     */
    function addModule(address _module) external onlyOperator {
        setToken.addModule(_module);
    }

    /**
     * OPERATOR ONLY: Interact with a module registered on the SetToken. Cannot be used to call functions in the
     * fee module, due to ability to bypass methodologist permissions to update streaming fee.
     *
     * @param _module           Module to interact with
     * @param _data             Byte data of function to call in module
     */
    function interactModule(address _module, bytes calldata _data) external onlyOperator {
        require(_module != address(feeModule), "Must not be fee module");

        // Invoke call to module, assume value will always be 0
        _module.functionCallWithValue(_data, 0);
    }

    /**
     * OPERATOR ONLY: Remove a new module from the SetToken.
     *
     * @param _module           Module to remove
     */
    function removeModule(address _module) external onlyOperator {
        setToken.removeModule(_module);
    }

    /**
     * METHODOLOGIST ONLY: Update the streaming fee for the SetToken. Subject to timelock period agreed upon by the
     * operator and methodologist
     *
     * @param _newFee           New streaming fee percentage
     */
    function updateStreamingFee(uint256 _newFee) external timeLockUpgrade onlyMethodologist {
        feeModule.updateStreamingFee(setToken, _newFee);
    }

    /**
     * OPERATOR OR METHODOLOGIST ONLY: Update the fee recipient address. Operator and Methodologist must each call
     * this function to execute the update.
     *
     * @param _newFeeRecipient           New fee recipient address
     */
    function updateFeeRecipient(address _newFeeRecipient) external mutualUpgrade(operator, methodologist) {
        feeModule.updateFeeRecipient(setToken, _newFeeRecipient);
    }

    /**
     * OPERATOR OR METHODOLOGIST ONLY: Update the fee split percentage. Operator and Methodologist must each call
     * this function to execute the update.
     *
     * @param _newFeeSplit           New fee split percentage
     */
    function updateFeeSplit(uint256 _newFeeSplit) external mutualUpgrade(operator, methodologist) {    
        require(
            _newFeeSplit <= PreciseUnitMath.preciseUnit(),
            "Operator Fee Split must be less than 1e18"
        );

        // Accrue fee to operator and methodologist prior to new fee split
        accrueFeeAndDistribute();
        operatorFeeSplit = _newFeeSplit;
    }

    /**
     * OPERATOR ONLY: Update the index module
     *
     * @param _newIndexModule           New index module
     */
    function updateIndexModule(IIndexModule _newIndexModule) external onlyOperator {
        indexModule = _newIndexModule;
    }

    /**
     * METHODOLOGIST ONLY: Update the methodologist address
     *
     * @param _newMethodologist           New methodologist address
     */
    function updateMethodologist(address _newMethodologist) external onlyMethodologist {
        methodologist = _newMethodologist;
    }

    /**
     * OPERATOR ONLY: Update the operator address
     *
     * @param _newOperator           New operator address
     */
    function updateOperator(address _newOperator) external onlyOperator {
        operator = _newOperator;
    }

    /**
     * OPERATOR OR METHODOLOGIST ONLY: Update the timelock period for updating the streaming fee percentage.
     * Operator and Methodologist must each call this function to execute the update.
     *
     * @param _newTimeLockPeriod           New timelock period in seconds
     */
    function setTimeLockPeriod(uint256 _newTimeLockPeriod) external override mutualUpgrade(operator, methodologist) {
        timeLockPeriod = _newTimeLockPeriod;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IIndexModule","name":"_indexModule","type":"address"},{"internalType":"contract IStreamingFeeModule","name":"_feeModule","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_methodologist","type":"address"},{"internalType":"uint256","name":"_operatorFeeSplit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_totalFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_operatorTake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_methodologistTake","type":"uint256"}],"name":"FeesAccrued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_upgradeHash","type":"bytes32"}],"name":"MutualUpgradeRegistered","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":false,"internalType":"bytes32","name":"_upgradeHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"UpgradeRegistered","type":"event"},{"inputs":[],"name":"accrueFeeAndDistribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"name":"addModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeModule","outputs":[{"internalType":"contract IStreamingFeeModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"indexModule","outputs":[{"internalType":"contract IIndexModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_module","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"interactModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"methodologist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"mutualUpgrades","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFeeSplit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"name":"removeModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_components","type":"address[]"},{"internalType":"uint256[]","name":"_exchanges","type":"uint256[]"}],"name":"setAssetExchanges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_components","type":"address[]"},{"internalType":"uint256[]","name":"_coolOffPeriods","type":"uint256[]"}],"name":"setCoolOffPeriods","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTimeLockPeriod","type":"uint256"}],"name":"setTimeLockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToken","outputs":[{"internalType":"contract ISetToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_components","type":"address[]"},{"internalType":"uint256[]","name":"_tradeMaximums","type":"uint256[]"}],"name":"setTradeMaximums","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_newComponents","type":"address[]"},{"internalType":"uint256[]","name":"_newComponentsTargetUnits","type":"uint256[]"},{"internalType":"uint256[]","name":"_oldComponentsTargetUnits","type":"uint256[]"},{"internalType":"uint256","name":"_positionMultiplier","type":"uint256"}],"name":"startRebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timeLockPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"timeLockedUpgrades","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateAnyoneTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeRecipient","type":"address"}],"name":"updateFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFeeSplit","type":"uint256"}],"name":"updateFeeSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IIndexModule","name":"_newIndexModule","type":"address"}],"name":"updateIndexModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newManager","type":"address"}],"name":"updateManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMethodologist","type":"address"}],"name":"updateMethodologist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"updateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"updateStreamingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_traders","type":"address[]"},{"internalType":"bool[]","name":"_statuses","type":"bool[]"}],"name":"updateTraderStatus","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620021433803806200214383398101604081905262000034916200014a565b6000620000496001600160e01b036200013a16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000a86200013e60201b620013b41760201c565b811115620000d35760405162461bcd60e51b8152600401620000ca90620001d1565b60405180910390fd5b600480546001600160a01b03199081166001600160a01b039889161790915560058054821696881696909617909555600680548616948716949094179093556007805485169286169290921790915560088054909316931692909217905560095562000233565b3390565b670de0b6b3a764000090565b60008060008060008060c0878903121562000163578182fd5b865162000170816200021a565b602088015190965062000183816200021a565b604088015190955062000196816200021a565b6060880151909450620001a9816200021a565b6080880151909350620001bc816200021a565b8092505060a087015190509295509295509295565b60208082526029908201527f4f70657261746f72204665652053706c6974206d757374206265206c657373206040820152680e8d0c2dc4062ca62760bb1b606082015260800190565b6001600160a01b03811681146200023057600080fd5b50565b611f0080620002436000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806378446bc111610104578063a0632461116100a2578063e8c4268d11610071578063e8c4268d1461039c578063ed9cf58c146103af578063f160d369146103b7578063f2fde38b146103ca576101da565b8063a06324611461035b578063ac7475ed1461036e578063bae41cbf14610381578063d1da933414610389576101da565b80638da5cb5b116100de5780638da5cb5b146103255780639303b16f1461032d5780639f53256a146103405780639f8e67bf14610353576101da565b806378446bc11461030257806388e4c6c81461030a5780638d3fa4e814610312576101da565b80634afdd22f1161017c5780635a41aeb21161014b5780635a41aeb2146102c15780636abab3e6146102d45780636d182ed6146102e7578063715018a6146102fa576101da565b80634afdd22f146102805780634e36245914610293578063570ca735146102a657806358aba00f146102ae576101da565b8063287ada37116101b8578063287ada371461023057806337187c4d14610245578063389f153214610258578063456919a814610278576101da565b80631766486d146101df57806317d647bc146102085780631ed86f191461021d575b600080fd5b6101f26101ed3660046118fe565b6103dd565b6040516101ff9190611b0b565b60405180910390f35b61021b6102163660046116d4565b6103ef565b005b61021b61022b3660046116d4565b610444565b6102386104d2565b6040516101ff91906119ff565b61021b6102533660046117d7565b6104e1565b61026b6102663660046118fe565b610579565b6040516101ff9190611b00565b61021b61058e565b61021b61028e3660046117d7565b6107f6565b61021b6102a13660046118c6565b610856565b6102386108b0565b61021b6102bc3660046116d4565b6108bf565b61021b6102cf3660046117d7565b610a5e565b61021b6102e23660046116f0565b610abe565b61021b6102f536600461176e565b610b6c565b61021b610bcc565b6101f2610c4b565b6101f2610c51565b61021b6103203660046118fe565b610c57565b610238610d58565b61021b61033b3660046118fe565b610d67565b61021b61034e3660046118fe565b610e35565b610238611043565b61021b6103693660046116d4565b611052565b61021b61037c3660046116d4565b6110ab565b6102386110f7565b61021b610397366004611827565b611106565b61021b6103aa3660046116d4565b6111a7565b6102386111f3565b61021b6103c53660046116d4565b611202565b61021b6103d83660046116d4565b6112fe565b60026020526000908152604090205481565b6007546001600160a01b031633146104225760405162461bcd60e51b815260040161041990611b6f565b60405180910390fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331461046e5760405162461bcd60e51b815260040161041990611b6f565b60048054604051631ed86f1960e01b81526001600160a01b0390911691631ed86f199161049d918591016119ff565b600060405180830381600087803b1580156104b757600080fd5b505af11580156104cb573d6000803e3d6000fd5b5050505050565b6005546001600160a01b031681565b6007546001600160a01b0316331461050b5760405162461bcd60e51b815260040161041990611b6f565b600554604051634438589160e01b81526001600160a01b0390911690634438589190610541908790879087908790600401611a89565b600060405180830381600087803b15801561055b57600080fd5b505af115801561056f573d6000803e3d6000fd5b5050505050505050565b60036020526000908152604090205460ff1681565b60065460048054604051632f3eec4960e01b81526001600160a01b0393841693632f3eec49936105c29390911691016119ff565b600060405180830381600087803b1580156105dc57600080fd5b505af11580156105f0573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600094506001600160a01b0390911692506370a0823191610626913091016119ff565b60206040518083038186803b15801561063e57600080fd5b505afa158015610652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106769190611916565b9050600061068f600954836113c090919063ffffffff16565b905060006106a3838363ffffffff6113f316565b6004805460075460405163a9059cbb60e01b81529394506001600160a01b039182169363a9059cbb936106dc9390921691879101611a13565b602060405180830381600087803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072e91906118e2565b506004805460085460405163a9059cbb60e01b81526001600160a01b039283169363a9059cbb93610763931691869101611a13565b602060405180830381600087803b15801561077d57600080fd5b505af1158015610791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b591906118e2565b507f3f0efd667efe2a4e661231bb42b65ce017c3326fb50d12aa6f936500d58c1c028383836040516107e993929190611e3c565b60405180910390a1505050565b6007546001600160a01b031633146108205760405162461bcd60e51b815260040161041990611b6f565b600554604051634afdd22f60e01b81526001600160a01b0390911690634afdd22f90610541908790879087908790600401611a89565b6007546001600160a01b031633146108805760405162461bcd60e51b815260040161041990611b6f565b600554604051634e36245960e01b81526001600160a01b0390911690634e3624599061049d908490600401611b00565b6007546001600160a01b031681565b6007546008546001600160a01b039182169116338214806108e85750336001600160a01b038216145b6109045760405162461bcd60e51b815260040161041990611e05565b60006109108383611435565b90506000803683604051602001610929939291906119ba565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff166109de57600080363360405160200161096f939291906119ba565b60408051601f19818403018152828252805160209182012060008181526003909252919020805460ff1916600117905591507f2d8be207af2fa24175b649fe62755a7b86fb6cb82c6efbd96de7447196d652ff906109ce908390611b0b565b60405180910390a1505050610a59565b60008181526003602052604090819020805460ff1916905560048054915163d0ebdbe760e01b81526001600160a01b039092169163d0ebdbe791610a24918991016119ff565b600060405180830381600087803b158015610a3e57600080fd5b505af1158015610a52573d6000803e3d6000fd5b5050505050505b505050565b6007546001600160a01b03163314610a885760405162461bcd60e51b815260040161041990611b6f565b600554604051632d20d75960e11b81526001600160a01b0390911690635a41aeb290610541908790879087908790600401611a89565b6007546001600160a01b03163314610ae85760405162461bcd60e51b815260040161041990611b6f565b6006546001600160a01b0384811691161415610b165760405162461bcd60e51b815260040161041990611d1b565b610b6682828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052506001600160a01b03891694935091505063ffffffff61145316565b50505050565b6007546001600160a01b03163314610b965760405162461bcd60e51b815260040161041990611b6f565b60055460405163368c176b60e11b81526001600160a01b0390911690636d182ed690610541908790879087908790600401611a2c565b610bd4611483565b6000546001600160a01b03908116911614610c015760405162461bcd60e51b815260040161041990611ce6565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b60095481565b6007546008546001600160a01b03918216911633821480610c805750336001600160a01b038216145b610c9c5760405162461bcd60e51b815260040161041990611e05565b6000610ca88383611435565b90506000803683604051602001610cc1939291906119ba565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff16610d0757600080363360405160200161096f939291906119ba565b6000818152600360205260409020805460ff19169055610d256113b4565b851115610d445760405162461bcd60e51b815260040161041990611b99565b610d4c61058e565b50506009839055505050565b6000546001600160a01b031690565b6007546008546001600160a01b03918216911633821480610d905750336001600160a01b038216145b610dac5760405162461bcd60e51b815260040161041990611e05565b6000610db88383611435565b90506000803683604051602001610dd1939291906119ba565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff16610e1757600080363360405160200161096f939291906119ba565b6000908152600360205260409020805460ff19169055505050600155565b600154610ed3576008546001600160a01b03163314610e665760405162461bcd60e51b815260040161041990611d4b565b600654600480546040516322e59fef60e11b81526001600160a01b03938416936345cb3fde93610e9c9390911691869101611a13565b600060405180830381600087803b158015610eb657600080fd5b505af1158015610eca573d6000803e3d6000fd5b50505050611040565b60008036604051602001610ee89291906119aa565b60408051601f1981840301815291815281516020928301206000818152600290935291205490915080610f695760008281526002602052604090819020429081905590517f0e0905d1a972d476e353bdcc3e06b19a71709054c8ba01eccb7e0691eca6d37491610f5a91859190611b14565b60405180910390a15050611040565b600154610f7d90829063ffffffff61148716565b421015610f9c5760405162461bcd60e51b815260040161041990611db1565b6000828152600260205260408120556008546001600160a01b03163314610fd55760405162461bcd60e51b815260040161041990611d4b565b600654600480546040516322e59fef60e11b81526001600160a01b03938416936345cb3fde9361100b9390911691889101611a13565b600060405180830381600087803b15801561102557600080fd5b505af1158015611039573d6000803e3d6000fd5b5050505050505b50565b6008546001600160a01b031681565b6007546001600160a01b0316331461107c5760405162461bcd60e51b815260040161041990611b6f565b6004805460405163a063246160e01b81526001600160a01b039091169163a06324619161049d918591016119ff565b6007546001600160a01b031633146110d55760405162461bcd60e51b815260040161041990611b6f565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031681565b6007546001600160a01b031633146111305760405162461bcd60e51b815260040161041990611b6f565b600554604051633476a4cd60e21b81526001600160a01b039091169063d1da93349061116c908a908a908a908a908a908a908a90600401611ab0565b600060405180830381600087803b15801561118657600080fd5b505af115801561119a573d6000803e3d6000fd5b5050505050505050505050565b6008546001600160a01b031633146111d15760405162461bcd60e51b815260040161041990611d4b565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6007546008546001600160a01b0391821691163382148061122b5750336001600160a01b038216145b6112475760405162461bcd60e51b815260040161041990611e05565b60006112538383611435565b9050600080368360405160200161126c939291906119ba565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff166112b257600080363360405160200161096f939291906119ba565b60008181526003602052604090819020805460ff19169055600654600480549251635d98c37360e01b81526001600160a01b0392831693635d98c37393610a24939116918a9101611b22565b611306611483565b6000546001600160a01b039081169116146113335760405162461bcd60e51b815260040161041990611ce6565b6001600160a01b0381166113595760405162461bcd60e51b815260040161041990611be2565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b670de0b6b3a764000090565b60006113ea670de0b6b3a76400006113de858563ffffffff6114ac16565b9063ffffffff6114e616565b90505b92915050565b60006113ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611528565b6000336001600160a01b0384161461144d57826113ea565b50919050565b6060611479848484604051806060016040528060298152602001611ea260299139611554565b90505b9392505050565b3390565b6000828201838110156113ea5760405162461bcd60e51b815260040161041990611c28565b6000826114bb575060006113ed565b828202828482816114c857fe5b04146113ea5760405162461bcd60e51b815260040161041990611ca5565b60006113ea83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611615565b6000818484111561154c5760405162461bcd60e51b81526004016104199190611b3c565b505050900390565b6060824710156115765760405162461bcd60e51b815260040161041990611c5f565b61157f8561164c565b61159b5760405162461bcd60e51b815260040161041990611d7a565b60006060866001600160a01b031685876040516115b891906119e3565b60006040518083038185875af1925050503d80600081146115f5576040519150601f19603f3d011682016040523d82523d6000602084013e6115fa565b606091505b509150915061160a828286611652565b979650505050505050565b600081836116365760405162461bcd60e51b81526004016104199190611b3c565b50600083858161164257fe5b0495945050505050565b3b151590565b6060831561166157508161147c565b8251156116715782518084602001fd5b8160405162461bcd60e51b81526004016104199190611b3c565b60008083601f84011261169c578182fd5b50813567ffffffffffffffff8111156116b3578182fd5b60208301915083602080830285010111156116cd57600080fd5b9250929050565b6000602082840312156116e5578081fd5b81356113ea81611e7e565b600080600060408486031215611704578182fd5b833561170f81611e7e565b9250602084013567ffffffffffffffff8082111561172b578384fd5b81860187601f82011261173c578485fd5b803592508183111561174c578485fd5b87602084830101111561175d578485fd5b949760209095019650909450505050565b60008060008060408587031215611783578081fd5b843567ffffffffffffffff8082111561179a578283fd5b6117a68883890161168b565b909650945060208701359150808211156117be578283fd5b506117cb8782880161168b565b95989497509550505050565b600080600080604085870312156117ec578384fd5b843567ffffffffffffffff80821115611803578586fd5b61180f8883890161168b565b909650945060208701359150808211156117be578384fd5b60008060008060008060006080888a031215611841578283fd5b873567ffffffffffffffff80821115611858578485fd5b6118648b838c0161168b565b909950975060208a013591508082111561187c578485fd5b6118888b838c0161168b565b909750955060408a01359150808211156118a0578485fd5b506118ad8a828b0161168b565b989b979a50959894979596606090950135949350505050565b6000602082840312156118d7578081fd5b81356113ea81611e93565b6000602082840312156118f3578081fd5b81516113ea81611e93565b60006020828403121561190f578081fd5b5035919050565b600060208284031215611927578081fd5b5051919050565b60008284526020808501945082825b8581101561196b57813561195081611e7e565b6001600160a01b03168752958201959082019060010161193d565b509495945050505050565b81835260006001600160fb1b0383111561198e578081fd5b6020830280836020870137939093016020019283525090919050565b6000828483379101908152919050565b6000838583375060609190911b6bffffffffffffffffffffffff19169101908152601401919050565b600082516119f5818460208701611e52565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b600060408252611a4060408301868861192e565b82810360208481019190915284825285918101835b86811015611a7c578335611a6881611e93565b151582529282019290820190600101611a55565b5098975050505050505050565b600060408252611a9d60408301868861192e565b828103602084015261160a818587611976565b600060808252611ac460808301898b61192e565b8281036020840152611ad781888a611976565b8381036040850152611aea818789611976565b9250505082606083015298975050505050505050565b901515815260200190565b90815260200190565b918252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6000602082528251806020840152611b5b816040850160208701611e52565b601f01601f19169190910160400192915050565b60208082526010908201526f26bab9ba1031329037b832b930ba37b960811b604082015260600190565b60208082526029908201527f4f70657261746f72204665652053706c6974206d757374206265206c657373206040820152680e8d0c2dc4062ca62760bb1b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601690820152754d757374206e6f7420626520666565206d6f64756c6560501b604082015260600190565b602080825260159082015274135d5cdd081899481b595d1a1bd91bdb1bd9da5cdd605a1b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526034908201527f54696d654c6f636b557067726164653a2054696d65206c6f636b20706572696f604082015273321036bab9ba103430bb329032b630b839b2b21760611b606082015260800190565b6020808252601a908201527f4d75737420626520617574686f72697a65642061646472657373000000000000604082015260600190565b9283526020830191909152604082015260600190565b60005b83811015611e6d578181015183820152602001611e55565b83811115610b665750506000910152565b6001600160a01b038116811461104057600080fd5b801515811461104057600080fdfe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209531f511931341e56b8da7f0eae7eb2ca92cfa7c1077fc6cb24011add801d0fd64736f6c634300060a003300000000000000000000000073baa8a41dda1cbcae8c7709a2a7b171182a1d46000000000000000000000000776c27990ce03d094ff2241ff8229cf98b91364d0000000000000000000000003d8d14b7efb8e342189ee14c3d40dce005eb901b00000000000000000000000069bdb276a17dd90f9d3a545944ccb20e593ae8e3000000000000000000000000d3d555bb655acba9452bfc6d7cea8cc7b3628c550000000000000000000000000000000000000000000000000429d069189e0000

Deployed ByteCode Sourcemap

45055:10687:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38112:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;54587:127;;;;;;;;;:::i;:::-;;51922:104;;;;;;;;;:::i;46021:31::-;;;:::i;:::-;;;;;;;;49204:228;;;;;;;;;:::i;17602:46::-;;;;;;;;;:::i;:::-;;;;;;;;50872:510;;;:::i;48703:239::-;;;;;;;;;:::i;50603:120::-;;;;;;;;;:::i;46172:23::-;;;:::i;51637:143::-;;;;;;;;;:::i;49665:243::-;;;;;;;;;:::i;52400:285::-;;;;;;;;;:::i;50187:224::-;;;;;;;;;:::i;36265:148::-;;;:::i;38013:29::-;;;:::i;46332:31::-;;;:::i;54040:408::-;;;;;;;;;:::i;35623:79::-;;;:::i;55573:166::-;;;;;;;;;:::i;53189:154::-;;;;;;;;;:::i;46237:28::-;;;:::i;52831:110::-;;;;;;;;;:::i;55157:::-;;;;;;;;;:::i;46099:36::-;;;:::i;48052:404::-;;;;;;;;;:::i;54878:135::-;;;;;;;;;:::i;45932:25::-;;;:::i;53606:177::-;;;;;;;;;:::i;36568:244::-;;;;;;;;;:::i;38112:53::-;;;;;;;;;;;;;:::o;54587:127::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;;;;;;;;;54677:11:::1;:29:::0;;-1:-1:-1;;;;;;54677:29:0::1;-1:-1:-1::0;;;;;54677:29:0;;;::::1;::::0;;;::::1;::::0;;54587:127::o;51922:104::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;51991:8:::1;::::0;;:27:::1;::::0;-1:-1:-1;;;51991:27:0;;-1:-1:-1;;;;;51991:8:0;;::::1;::::0;:18:::1;::::0;:27:::1;::::0;52010:7;;51991:27:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51922:104:::0;:::o;46021:31::-;;;-1:-1:-1;;;;;46021:31:0;;:::o;49204:228::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;49375:11:::1;::::0;:49:::1;::::0;-1:-1:-1;;;49375:49:0;;-1:-1:-1;;;;;49375:11:0;;::::1;::::0;:24:::1;::::0;:49:::1;::::0;49400:11;;;;49413:10;;;;49375:49:::1;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;49204:228:::0;;;;:::o;17602:46::-;;;;;;;;;;;;;;;:::o;50872:510::-;50924:9;;50944:8;;;50924:29;;-1:-1:-1;;;50924:29:0;;-1:-1:-1;;;;;50924:9:0;;;;:19;;:29;;50944:8;;;;50924:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50992:8:0;;;:33;;-1:-1:-1;;;50992:33:0;;50966:23;;-1:-1:-1;;;;;;50992:8:0;;;;-1:-1:-1;50992:18:0;;:33;;51019:4;;50992:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50966:59;;51038:20;51061:44;51088:16;;51061:15;:26;;:44;;;;:::i;:::-;51038:67;-1:-1:-1;51116:25:0;51144:33;:15;51038:67;51144:33;:19;:33;:::i;:::-;51190:8;;;51208;;51190:41;;-1:-1:-1;;;51190:41:0;;51116:61;;-1:-1:-1;;;;;;51190:8:0;;;;:17;;:41;;51208:8;;;;51218:12;;51190:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51244:8:0;;;51262:13;;51244:51;;-1:-1:-1;;;51244:51:0;;-1:-1:-1;;;;;51244:8:0;;;;:17;;:51;;51262:13;;51277:17;;51244:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51313:61;51325:15;51342:12;51356:17;51313:61;;;;;;;;;;;;;;;;;50872:510;;;:::o;48703:239::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;48877:11:::1;::::0;:57:::1;::::0;-1:-1:-1;;;48877:57:0;;-1:-1:-1;;;;;48877:11:0;;::::1;::::0;:28:::1;::::0;:57:::1;::::0;48906:11;;;;48919:14;;;;48877:57:::1;;;;50603:120:::0;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;50677:11:::1;::::0;:38:::1;::::0;-1:-1:-1;;;50677:38:0;;-1:-1:-1;;;;;50677:11:0;;::::1;::::0;:29:::1;::::0;:38:::1;::::0;50707:7;;50677:38:::1;;;;46172:23:::0;;;-1:-1:-1;;;;;46172:23:0;;:::o;51637:143::-;51704:8;;51714:13;;-1:-1:-1;;;;;51704:8:0;;;;51714:13;17924:10;:24;;;:52;;-1:-1:-1;17952:10:0;-1:-1:-1;;;;;17952:24:0;;;17924:52;17902:128;;;;-1:-1:-1;;;17902:128:0;;;;;;;;;18043:17;18063:37;18077:10;18089;18063:13;:37::i;:::-;18043:57;;18288:20;18338:8;;18348:9;18321:37;;;;;;;;;;;;;;;-1:-1:-1;;18321:37:0;;;;;;;;;18311:48;;18321:37;18311:48;;;;18377:28;;;;:14;:28;;;;;;18311:48;;-1:-1:-1;18377:28:0;;18372:253;;18422:15;18467:8;;18477:10;18450:38;;;;;;;;;;;;;;;-1:-1:-1;;18450:38:0;;;;;;;;;18440:49;;18450:38;18440:49;;;;18506:23;;;;:14;:23;;;;;;:30;;-1:-1:-1;;18506:30:0;18532:4;18506:30;;;18440:49;-1:-1:-1;18558:32:0;;;;18440:49;;18558:32;;;;;;;;;;18607:7;;;;;18372:253;18644:28;;;;:14;:28;;;;;;;18637:35;;-1:-1:-1;;18637:35:0;;;51740:8:::1;::::0;;:32;;-1:-1:-1;;;51740:32:0;;-1:-1:-1;;;;;51740:8:0;;::::1;::::0;:19:::1;::::0;:32:::1;::::0;51760:11;;51740:32:::1;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51637:143:::0;;;;;;:::o;49665:243::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;49841:11:::1;::::0;:59:::1;::::0;-1:-1:-1;;;49841:59:0;;-1:-1:-1;;;;;49841:11:0;;::::1;::::0;:29:::1;::::0;:59:::1;::::0;49871:11;;;;49884:15;;;;49841:59:::1;;;;52400:285:::0;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;52523:9:::1;::::0;-1:-1:-1;;;;;52504:29:0;;::::1;52523:9:::0;::::1;52504:29;;52496:64;;;;-1:-1:-1::0;;;52496:64:0::1;;;;;;;;;52638:39;52668:5;;52638:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;;;;;;52638:29:0;::::1;::::0;:39;-1:-1:-1;52638:39:0;-1:-1:-1;;52638:39:0::1;:29;:39;:::i;:::-;;52400:285:::0;;;:::o;50187:224::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;50352:11:::1;::::0;:51:::1;::::0;-1:-1:-1;;;50352:51:0;;-1:-1:-1;;;;;50352:11:0;;::::1;::::0;:30:::1;::::0;:51:::1;::::0;50383:8;;;;50393:9;;;;50352:51:::1;;;;36265:148:::0;35845:12;:10;:12::i;:::-;35835:6;;-1:-1:-1;;;;;35835:6:0;;;:22;;;35827:67;;;;-1:-1:-1;;;35827:67:0;;;;;;;;;36372:1:::1;36356:6:::0;;36335:40:::1;::::0;-1:-1:-1;;;;;36356:6:0;;::::1;::::0;36335:40:::1;::::0;36372:1;;36335:40:::1;36403:1;36386:19:::0;;-1:-1:-1;;;;;;36386:19:0::1;::::0;;36265:148::o;38013:29::-;;;;:::o;46332:31::-;;;;:::o;54040:408::-;54109:8;;54119:13;;-1:-1:-1;;;;;54109:8:0;;;;54119:13;17924:10;:24;;;:52;;-1:-1:-1;17952:10:0;-1:-1:-1;;;;;17952:24:0;;;17924:52;17902:128;;;;-1:-1:-1;;;17902:128:0;;;;;;;;;18043:17;18063:37;18077:10;18089;18063:13;:37::i;:::-;18043:57;;18288:20;18338:8;;18348:9;18321:37;;;;;;;;;;;;;;;-1:-1:-1;;18321:37:0;;;;;;;;;18311:48;;18321:37;18311:48;;;;18377:28;;;;:14;:28;;;;;;18311:48;;-1:-1:-1;18377:28:0;;18372:253;;18422:15;18467:8;;18477:10;18450:38;;;;;;;;;;;18372:253;18644:28;;;;:14;:28;;;;;18637:35;;-1:-1:-1;;18637:35:0;;;54187:29:::1;:27;:29::i;:::-;54171:12;:45;;54149:136;;;;-1:-1:-1::0;;;54149:136:0::1;;;;;;;;;54374:24;:22;:24::i;:::-;-1:-1:-1::0;;54409:16:0::1;:31:::0;;;54040:408;;;:::o;35623:79::-;35661:7;35688:6;-1:-1:-1;;;;;35688:6:0;35623:79;:::o;55573:166::-;55660:8;;55670:13;;-1:-1:-1;;;;;55660:8:0;;;;55670:13;17924:10;:24;;;:52;;-1:-1:-1;17952:10:0;-1:-1:-1;;;;;17952:24:0;;;17924:52;17902:128;;;;-1:-1:-1;;;17902:128:0;;;;;;;;;18043:17;18063:37;18077:10;18089;18063:13;:37::i;:::-;18043:57;;18288:20;18338:8;;18348:9;18321:37;;;;;;;;;;;;;;;-1:-1:-1;;18321:37:0;;;;;;;;;18311:48;;18321:37;18311:48;;;;18377:28;;;;:14;:28;;;;;;18311:48;;-1:-1:-1;18377:28:0;;18372:253;;18422:15;18467:8;;18477:10;18450:38;;;;;;;;;;;18372:253;18644:28;;;;:14;:28;;;;;18637:35;;-1:-1:-1;;18637:35:0;;;-1:-1:-1;;;;55696:35:0;55573:166::o;53189:154::-;38566:14;;38562:76;;45781:13:::1;::::0;-1:-1:-1;;;;;45781:13:0::1;45767:10;:27;45759:61;;;;-1:-1:-1::0;;;45759:61:0::1;;;;;;;;;53288:9:::2;::::0;53317:8:::2;::::0;;53288:47:::2;::::0;-1:-1:-1;;;53288:47:0;;-1:-1:-1;;;;;53288:9:0;;::::2;::::0;:28:::2;::::0;:47:::2;::::0;53317:8;;::::2;::::0;53327:7;;53288:47:::2;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;38620:7:::0;;38562:76;38819:19;38900:8;;38865:58;;;;;;;;;;;;;;-1:-1:-1;;38865:58:0;;;;;;;;;38841:93;;38865:58;38841:93;;;;38947:24;38974:31;;;:18;:31;;;;;;38841:93;;-1:-1:-1;39105:21:0;39101:244;;39143:31;;;;:18;:31;;;;;;;39177:15;39143:49;;;;39214:96;;;;;;39162:11;;39177:15;39214:96;;;;;;;;;;39327:7;;;;39101:244;39419:14;;39398:36;;:16;;:36;:20;:36;:::i;:::-;39379:15;:55;;39357:157;;;;-1:-1:-1;;;39357:157:0;;;;;;;;;39598:1;39564:31;;;:18;:31;;;;;:35;45781:13:::1;::::0;-1:-1:-1;;;;;45781:13:0::1;45767:10;:27;45759:61;;;;-1:-1:-1::0;;;45759:61:0::1;;;;;;;;;53288:9:::2;::::0;53317:8:::2;::::0;;53288:47:::2;::::0;-1:-1:-1;;;53288:47:0;;-1:-1:-1;;;;;53288:9:0;;::::2;::::0;:28:::2;::::0;:47:::2;::::0;53317:8;;::::2;::::0;53327:7;;53288:47:::2;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;53189:154:::0;;;;:::o;46237:28::-;;;-1:-1:-1;;;;;46237:28:0;;:::o;52831:110::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;52903:8:::1;::::0;;:30:::1;::::0;-1:-1:-1;;;52903:30:0;;-1:-1:-1;;;;;52903:8:0;;::::1;::::0;:21:::1;::::0;:30:::1;::::0;52925:7;;52903:30:::1;;;55157:110:::0;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;55236:8:::1;:23:::0;;-1:-1:-1;;;;;;55236:23:0::1;-1:-1:-1::0;;;;;55236:23:0;;;::::1;::::0;;;::::1;::::0;;55157:110::o;46099:36::-;;;-1:-1:-1;;;;;46099:36:0;;:::o;48052:404::-;45581:8;;-1:-1:-1;;;;;45581:8:0;45567:10;:22;45559:51;;;;-1:-1:-1;;;45559:51:0;;;;;;;;;48331:11:::1;::::0;:117:::1;::::0;-1:-1:-1;;;48331:117:0;;-1:-1:-1;;;;;48331:11:0;;::::1;::::0;:26:::1;::::0;:117:::1;::::0;48358:14;;;;48374:25;;;;48401;;;;48428:19;;48331:117:::1;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;48052:404:::0;;;;;;;:::o;54878:135::-;45781:13;;-1:-1:-1;;;;;45781:13:0;45767:10;:27;45759:61;;;;-1:-1:-1;;;45759:61:0;;;;;;;;;54972:13:::1;:33:::0;;-1:-1:-1;;;;;;54972:33:0::1;-1:-1:-1::0;;;;;54972:33:0;;;::::1;::::0;;;::::1;::::0;;54878:135::o;45932:25::-;;;-1:-1:-1;;;;;45932:25:0;;:::o;53606:177::-;53683:8;;53693:13;;-1:-1:-1;;;;;53683:8:0;;;;53693:13;17924:10;:24;;;:52;;-1:-1:-1;17952:10:0;-1:-1:-1;;;;;17952:24:0;;;17924:52;17902:128;;;;-1:-1:-1;;;17902:128:0;;;;;;;;;18043:17;18063:37;18077:10;18089;18063:13;:37::i;:::-;18043:57;;18288:20;18338:8;;18348:9;18321:37;;;;;;;;;;;;;;;-1:-1:-1;;18321:37:0;;;;;;;;;18311:48;;18321:37;18311:48;;;;18377:28;;;;:14;:28;;;;;;18311:48;;-1:-1:-1;18377:28:0;;18372:253;;18422:15;18467:8;;18477:10;18450:38;;;;;;;;;;;18372:253;18644:28;;;;:14;:28;;;;;;;18637:35;;-1:-1:-1;;18637:35:0;;;53719:9:::1;::::0;53748:8:::1;::::0;;53719:56;;-1:-1:-1;;;53719:56:0;;-1:-1:-1;;;;;53719:9:0;;::::1;::::0;:28:::1;::::0;:56:::1;::::0;53748:8;::::1;::::0;53758:16;;53719:56:::1;;;36568:244:::0;35845:12;:10;:12::i;:::-;35835:6;;-1:-1:-1;;;;;35835:6:0;;;:22;;;35827:67;;;;-1:-1:-1;;;35827:67:0;;;;;;;;;-1:-1:-1;;;;;36657:22:0;::::1;36649:73;;;;-1:-1:-1::0;;;36649:73:0::1;;;;;;;;;36759:6;::::0;;36738:38:::1;::::0;-1:-1:-1;;;;;36738:38:0;;::::1;::::0;36759:6;::::1;::::0;36738:38:::1;::::0;::::1;36787:6;:17:::0;;-1:-1:-1;;;;;;36787:17:0::1;-1:-1:-1::0;;;;;36787:17:0;;;::::1;::::0;;;::::1;::::0;;36568:244::o;28996:93::-;28551:8;28996:93;:::o;30090:126::-;30155:7;30182:26;28551:8;30182;:1;30188;30182:8;:5;:8;:::i;:::-;:12;:26;:12;:26;:::i;:::-;30175:33;;30090:126;;;;;:::o;20389:136::-;20447:7;20474:43;20478:1;20481;20474:43;;;;;;;;;;;;;;;;;:3;:43::i;18801:170::-;18886:7;18913:10;-1:-1:-1;;;;;18913:24:0;;;:50;;18953:10;18913:50;;;-1:-1:-1;18940:10:0;18801:170;-1:-1:-1;18801:170:0:o;4278:226::-;4377:12;4409:87;4431:6;4439:4;4445:5;4409:87;;;;;;;;;;;;;;;;;:21;:87::i;:::-;4402:94;;4278:226;;;;;;:::o;34090:106::-;34178:10;34090:106;:::o;19925:181::-;19983:7;20015:5;;;20039:6;;;;20031:46;;;;-1:-1:-1;;;20031:46:0;;;;;;;;21279:471;21337:7;21582:6;21578:47;;-1:-1:-1;21612:1:0;21605:8;;21578:47;21649:5;;;21653:1;21649;:5;:1;21673:5;;;;;:10;21665:56;;;;-1:-1:-1;;;21665:56:0;;;;;;;;22226:132;22284:7;22311:39;22315:1;22318;22311:39;;;;;;;;;;;;;;;;;:3;:39::i;20828:192::-;20914:7;20950:12;20942:6;;;;20934:29;;;;-1:-1:-1;;;20934:29:0;;;;;;;;;;-1:-1:-1;;;20986:5:0;;;20828:192::o;4760:530::-;4887:12;4945:5;4920:21;:30;;4912:81;;;;-1:-1:-1;;;4912:81:0;;;;;;;;;5012:18;5023:6;5012:10;:18::i;:::-;5004:60;;;;-1:-1:-1;;;5004:60:0;;;;;;;;;5138:12;5152:23;5179:6;-1:-1:-1;;;;;5179:11:0;5199:5;5207:4;5179:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5137:75;;;;5230:52;5248:7;5257:10;5269:12;5230:17;:52::i;:::-;5223:59;4760:530;-1:-1:-1;;;;;;;4760:530:0:o;22854:278::-;22940:7;22975:12;22968:5;22960:28;;;;-1:-1:-1;;;22960:28:0;;;;;;;;;;;22999:9;23015:1;23011;:5;;;;;;;22854:278;-1:-1:-1;;;;;22854:278:0:o;787:422::-;1154:20;1193:8;;;787:422::o;6296:742::-;6411:12;6440:7;6436:595;;;-1:-1:-1;6471:10:0;6464:17;;6436:595;6585:17;;:21;6581:439;;6848:10;6842:17;6909:15;6896:10;6892:2;6888:19;6881:44;6796:148;6991:12;6984:20;;-1:-1:-1;;;6984:20:0;;;;;;;;;160:352:-1;;;290:3;283:4;275:6;271:17;267:27;257:2;;-1:-1;;298:12;257:2;-1:-1;328:20;;368:18;357:30;;354:2;;;-1:-1;;390:12;354:2;434:4;426:6;422:17;410:29;;485:3;434:4;;469:6;465:17;426:6;451:32;;448:41;445:2;;;502:1;;492:12;445:2;250:262;;;;;;2486:241;;2590:2;2578:9;2569:7;2565:23;2561:32;2558:2;;;-1:-1;;2596:12;2558:2;85:6;72:20;97:33;124:5;97:33;;2734:490;;;;2874:2;2862:9;2853:7;2849:23;2845:32;2842:2;;;-1:-1;;2880:12;2842:2;85:6;72:20;97:33;124:5;97:33;;;2932:63;-1:-1;3060:2;3045:18;;3032:32;3084:18;3073:30;;;3070:2;;;-1:-1;;3106:12;3070:2;3191:6;3180:9;3176:22;1801:3;1794:4;1786:6;1782:17;1778:27;1768:2;;-1:-1;;1809:12;1768:2;1852:6;1839:20;1829:30;;3084:18;1871:6;1868:30;1865:2;;;-1:-1;;1901:12;1865:2;1996:3;3060:2;1976:17;1937:6;1962:32;;1959:41;1956:2;;;-1:-1;;2003:12;1956:2;2836:388;;3060:2;1933:17;;;;-1:-1;3134:74;;-1:-1;;;;2836:388;3231:672;;;;;3419:2;3407:9;3398:7;3394:23;3390:32;3387:2;;;-1:-1;;3425:12;3387:2;3483:17;3470:31;3521:18;;3513:6;3510:30;3507:2;;;-1:-1;;3543:12;3507:2;3581:80;3653:7;3644:6;3633:9;3629:22;3581:80;;;3571:90;;-1:-1;3571:90;-1:-1;3726:2;3711:18;;3698:32;;-1:-1;3739:30;;;3736:2;;;-1:-1;;3772:12;3736:2;;3810:77;3879:7;3870:6;3859:9;3855:22;3810:77;;;3381:522;;;;-1:-1;3800:87;-1:-1;;;;3381:522;3910:678;;;;;4101:2;4089:9;4080:7;4076:23;4072:32;4069:2;;;-1:-1;;4107:12;4069:2;4165:17;4152:31;4203:18;;4195:6;4192:30;4189:2;;;-1:-1;;4225:12;4189:2;4263:80;4335:7;4326:6;4315:9;4311:22;4263:80;;;4253:90;;-1:-1;4253:90;-1:-1;4408:2;4393:18;;4380:32;;-1:-1;4421:30;;;4418:2;;;-1:-1;;4454:12;4595:1085;;;;;;;;4855:3;4843:9;4834:7;4830:23;4826:33;4823:2;;;-1:-1;;4862:12;4823:2;4920:17;4907:31;4958:18;;4950:6;4947:30;4944:2;;;-1:-1;;4980:12;4944:2;5018:80;5090:7;5081:6;5070:9;5066:22;5018:80;;;5008:90;;-1:-1;5008:90;-1:-1;5163:2;5148:18;;5135:32;;-1:-1;5176:30;;;5173:2;;;-1:-1;;5209:12;5173:2;5247:80;5319:7;5310:6;5299:9;5295:22;5247:80;;;5237:90;;-1:-1;5237:90;-1:-1;5392:2;5377:18;;5364:32;;-1:-1;5405:30;;;5402:2;;;-1:-1;;5438:12;5402:2;;5476:80;5548:7;5539:6;5528:9;5524:22;5476:80;;;4817:863;;;;-1:-1;4817:863;;;;;;5593:2;5632:22;;;2275:20;;4817:863;-1:-1;;;;4817:863;5687:235;;5788:2;5776:9;5767:7;5763:23;5759:32;5756:2;;;-1:-1;;5794:12;5756:2;1347:6;1334:20;1359:30;1383:5;1359:30;;5929:257;;6041:2;6029:9;6020:7;6016:23;6012:32;6009:2;;;-1:-1;;6047:12;6009:2;1482:6;1476:13;1494:30;1518:5;1494:30;;6193:241;;6297:2;6285:9;6276:7;6272:23;6268:32;6265:2;;;-1:-1;;6303:12;6265:2;-1:-1;1603:20;;6259:175;-1:-1;6259:175;6977:263;;7092:2;7080:9;7071:7;7067:23;7063:32;7060:2;;;-1:-1;;7098:12;7060:2;-1:-1;2423:13;;7054:186;-1:-1;7054:186;8210:665;;30114:6;30109:3;30102:19;30151:4;;30146:3;30142:14;8357:93;;8535:21;-1:-1;8562:291;8587:6;8584:1;8581:13;8562:291;;;85:6;72:20;97:33;124:5;97:33;;;-1:-1;;;;;31671:54;7851:37;;7401:14;;;;30967:12;;;;368:18;8602:9;8562:291;;;-1:-1;8859:10;;8344:531;-1:-1;;;;;8344:531;9588:467;30102:19;;;9588:467;-1:-1;;;;;9836:78;;9833:2;;;-1:-1;;9917:12;9833:2;30151:4;9952:6;9948:17;32819:6;32814:3;30151:4;30146:3;30142:14;32796:30;32857:16;;;;30151:4;32857:16;32850:27;;;-1:-1;32857:16;;9720:335;-1:-1;9720:335;16368:291;;32819:6;32814:3;32809;32796:30;32857:16;;32850:27;;;32857:16;16512:147;-1:-1;16512:147;16666:430;;32819:6;32814:3;32809;32796:30;-1:-1;33655:2;33651:14;;;;-1:-1;;33651:14;32857:16;;7704:74;;;17068:2;17059:12;;16838:258;-1:-1;16838:258;17572:271;;10896:5;29582:12;11007:52;11052:6;11047:3;11040:4;11033:5;11029:16;11007:52;;;11071:16;;;;;17706:137;-1:-1;;17706:137;17850:222;-1:-1;;;;;31671:54;;;;7851:37;;17977:2;17962:18;;17948:124;18079:333;-1:-1;;;;;31671:54;;;;7851:37;;18398:2;18383:18;;10346:37;18234:2;18219:18;;18205:207;18419:657;;18688:2;18709:17;18702:47;18763:118;18688:2;18677:9;18673:18;18867:6;18859;18763:118;;;18919:20;;;18914:2;18899:18;;;18892:48;;;;30102:19;;;9221:21;;30142:14;;-1:-1;9248:279;9273:6;9270:1;9267:13;9248:279;;;1347:6;1334:20;1359:30;1383:5;1359:30;;;31386:13;31379:21;10118:34;;31089:12;;;;7571:14;;;;9295:1;9288:9;9248:279;;;-1:-1;18946:120;18659:417;-1:-1;;;;;;;;18659:417;19083:669;;19358:2;19379:17;19372:47;19433:118;19358:2;19347:9;19343:18;19537:6;19529;19433:118;;;19599:9;19593:4;19589:20;19584:2;19573:9;19569:18;19562:48;19624:118;19737:4;19728:6;19720;19624:118;;19759:1060;;20150:3;20172:17;20165:47;20226:118;20150:3;20139:9;20135:19;20330:6;20322;20226:118;;;20392:9;20386:4;20382:20;20377:2;20366:9;20362:18;20355:48;20417:118;20530:4;20521:6;20513;20417:118;;;20583:9;20577:4;20573:20;20568:2;20557:9;20553:18;20546:48;20608:118;20721:4;20712:6;20704;20608:118;;;20600:126;;;;10376:5;20805:2;20794:9;20790:18;10346:37;20121:698;;;;;;;;;;;20826:210;31386:13;;31379:21;10118:34;;20947:2;20932:18;;20918:118;21043:222;10346:37;;;21170:2;21155:18;;21141:124;21272:333;10346:37;;;21591:2;21576:18;;10346:37;21427:2;21412:18;;21398:207;22144:367;-1:-1;;;;;31671:54;;;11190:70;;31671:54;;22497:2;22482:18;;7851:37;22316:2;22301:18;;22287:224;23175:310;;23322:2;23343:17;23336:47;11771:5;29582:12;30114:6;23322:2;23311:9;23307:18;30102:19;11865:52;11910:6;30142:14;23311:9;30142:14;23322:2;11891:5;11887:16;11865:52;;;33560:7;33544:14;-1:-1;;33540:28;11929:39;;;;30142:14;11929:39;;23293:192;-1:-1;;23293:192;23492:416;23692:2;23706:47;;;12205:2;23677:18;;;30102:19;-1:-1;;;30142:14;;;12221:39;12279:12;;;23663:245;23915:416;24115:2;24129:47;;;12530:2;24100:18;;;30102:19;12566:34;30142:14;;;12546:55;-1:-1;;;12621:12;;;12614:33;12666:12;;;24086:245;24338:416;24538:2;24552:47;;;12917:2;24523:18;;;30102:19;12953:34;30142:14;;;12933:55;-1:-1;;;13008:12;;;13001:30;13050:12;;;24509:245;24761:416;24961:2;24975:47;;;13301:2;24946:18;;;30102:19;13337:29;30142:14;;;13317:50;13386:12;;;24932:245;25184:416;25384:2;25398:47;;;13637:2;25369:18;;;30102:19;13673:34;30142:14;;;13653:55;-1:-1;;;13728:12;;;13721:30;13770:12;;;25355:245;25607:416;25807:2;25821:47;;;14021:2;25792:18;;;30102:19;14057:34;30142:14;;;14037:55;-1:-1;;;14112:12;;;14105:25;14149:12;;;25778:245;26030:416;26230:2;26244:47;;;26215:18;;;30102:19;14436:34;30142:14;;;14416:55;14490:12;;;26201:245;26453:416;26653:2;26667:47;;;14741:2;26638:18;;;30102:19;-1:-1;;;30142:14;;;14757:45;14821:12;;;26624:245;26876:416;27076:2;27090:47;;;15072:2;27061:18;;;30102:19;-1:-1;;;30142:14;;;15088:44;15151:12;;;27047:245;27299:416;27499:2;27513:47;;;15402:2;27484:18;;;30102:19;15438:31;30142:14;;;15418:52;15489:12;;;27470:245;27722:416;27922:2;27936:47;;;15740:2;27907:18;;;30102:19;15776:34;30142:14;;;15756:55;-1:-1;;;15831:12;;;15824:44;15887:12;;;27893:245;28145:416;28345:2;28359:47;;;16138:2;28330:18;;;30102:19;16174:28;30142:14;;;16154:49;16222:12;;;28316:245;28797:444;10346:37;;;29144:2;29129:18;;10346:37;;;;29227:2;29212:18;;10346:37;28980:2;28965:18;;28951:290;32892:268;32957:1;32964:101;32978:6;32975:1;32972:13;32964:101;;;33045:11;;;33039:18;33026:11;;;33019:39;33000:2;32993:10;32964:101;;;33080:6;33077:1;33074:13;33071:2;;;-1:-1;;32957:1;33127:16;;33120:27;32941:219;33683:117;-1:-1;;;;;31671:54;;33742:35;;33732:2;;33791:1;;33781:12;33807:111;33888:5;31386:13;31379:21;33866:5;33863:32;33853:2;;33909:1;;33899:12

Swarm Source

ipfs://9531f511931341e56b8da7f0eae7eb2ca92cfa7c1077fc6cb24011add801d0fd
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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