Contract 0x81d851800d097fafb9844cc7f88c6a055989fe3a

 

Contract Overview

Balance:
404.646414338393226702 ETH

ETH Value:
$1,565,750.98 (@ $3,869.43/ETH)
Txn Hash
Block
From
To
Value [Txn Fee]
0x2b24dc21f4d69e18cb0d41ec81b70ef8d181c193ea2f0c308546611b032dd99222226352021-10-14 18:11:333 days 13 hrs ago0x6576096cb7b877f207ecf1a76bd14c6599bd5465 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001814678647 ETH
0x92a6cb66367458f1c772ec605e69cf30413989dff6b4c009b4490a26b9cd64f321865962021-10-13 14:26:254 days 17 hrs ago0x0e2e2febc90db8edc8ecd2d43b816fc6e45d6448 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001518684568 ETH
0x42bf1f1998e6fbeb1f677f44eefeee264d36e167f29476a03929edb56299e43c21549022021-10-12 14:05:395 days 17 hrs ago0xd88189f7dee6e5dbd6cbc6f06fd357f4bf7f330b IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001642329371 ETH
0x311d9494f0e81b7ab5e217ca0f7cabaf9e65a0454555cf314775fed7fc865f1f21304702021-10-11 20:54:516 days 10 hrs ago0x7fa3ca0af0d2cd9de0077b8a97130880d72ae061 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001759727973 ETH
0x1eb9da75704b7483fae89aa00d065133ae00c58d26b25f68d5c3d3c9df70a6f820844672021-10-10 14:16:347 days 17 hrs ago0x358de7bae44025257eae6dd2d9774e7cbdbeeeb2 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001720885116 ETH
0x9398c724ce1fa8821a8f7a794acaa5598ce7116f7eda81355347fafb70f51bd320535732021-10-09 17:14:368 days 14 hrs ago0x535428c2608d1ae486abf8af0fb330629b6884d3 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001998309394 ETH
0x25829f4b45e6f421bdfa9c602cb605cd712a81c385fe241eca9df0391b35397920227222021-10-08 14:00:469 days 17 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.002498779392 ETH
0xfc6261ad1c25bcbc7c20ef830564e8ee0a2cbc51da15feb90f993fed8f111a2e19996302021-10-07 15:28:3310 days 16 hrs ago0x6cf7538744dc6a1416eb2a9dfd2daf2c9a829832 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.002061111539 ETH
0xaaaf1b364b185c32177f3a2810a2b6da3edad608e51b365403e87e95ec3eb57519730492021-10-06 14:14:0211 days 17 hrs ago0xdf33b0500e6232904594704730e557683303dfd6 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.002086523193 ETH
0x52be0cc38bcce5cddba00ffd24f5e3b5fc616840d14ee230a4d4d174c0f34f4119453042021-10-05 14:50:1912 days 16 hrs ago0xadc3c1ac7b171b5a2f7e58c52203c1af37e76ab4 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.00155298172 ETH
0x20965a8d2532edaf3a530722960682ca134f74ff5f1ea6911f8db7a56e8d419619142672021-10-04 14:34:4113 days 16 hrs ago0x9601adb9f4b8a7bc91edbc3a565e9e898bebe1b4 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.00140570316 ETH
0xe3ee194fb1a5544d9a5923024fdf1b5c9fbca767090af526917cb0332f920b0518837612021-10-03 14:20:0514 days 17 hrs ago0xf6c9f11e7213c38004ecb071803cefba1f1fb560 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001132993205 ETH
0xb73413cc991cfb459ba0c846e10ef00099f2b9aafc8760140b88844c91fcb4a718571042021-10-02 15:58:2415 days 15 hrs ago0x242cf7b05d4019eed93e5531965f32a7aa0dd167 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001419637999 ETH
0x10bc8cd1c5d4cfefd4d234d0badb9a2d234c723d2aae5abbd42d811ba29cfcee18231822021-10-01 14:09:0016 days 17 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001651421944 ETH
0x5af94b9ee59542cac7d3931e39fb3b1c3331edde5daa73713f969743ba34e72817905352021-09-30 14:16:0017 days 17 hrs ago0x1c5c8e8789a38424617df30bee4848520279b6e4 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001610874531 ETH
0xc85a5374753660963189aa26c8a24cdd2b2673659b4a6da138988642b07da24717539902021-09-29 14:11:4118 days 17 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001439943177 ETH
0x75a64fe056c82371be01a0a70be5e51e70fdd49fcb55545dad4613dc5b7b85d417207432021-09-28 14:55:2519 days 16 hrs ago0xa72eb809bef34346b887430d970b264747a6315d IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001538408772 ETH
0xb5309fd8917df9849acba0802987ed4a2920ee405096e10d6f8979d3b5a3aa2416872912021-09-27 14:15:5520 days 17 hrs ago0xbd1f74c2e879780183cd9cc238d7dd3ca816db04 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001197945654 ETH
0x6854cb411231d4c1e1bc651678a4840e5564ce366b0a420a0d6224401d47020516500562021-09-26 14:04:2221 days 17 hrs ago0x8debcbd66a2bf3b91d20df47830a328d8b7733ad IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001101916225 ETH
0xadcffa36a0733228c806e62fe75de3f3e632c5b18f46fac0bb821c7ea64b68d016412832021-09-26 9:31:1021 days 22 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.000384712045 ETH
0xcf4effbc1d0886cb0e492285ccd483f204e729f2c22ab9f14f83c43f4bee290f16105752021-09-25 14:00:5622 days 17 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001185056871 ETH
0xe3259328d6012a116384955895cf213a39ba7c23b5351925b2607cde92964a4215684882021-09-24 14:00:0823 days 17 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001736603352 ETH
0x0c9d51478b764443ffb8f0ecd07dfa4292e81cb68bf31f0a3d12e71ada66bc7d15640262021-09-24 12:07:0723 days 19 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  0x81d851800d097fafb9844cc7f88c6a055989fe3a0 ETH0.001681477231 ETH
0x3f06928d8cb7a524239e534b4d30d1dd761889bc2882d7232185ec768123a5c915627762021-09-24 11:37:5723 days 19 hrs ago0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26 IN  Contract Creation0 ETH0.094570752201 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Fund

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at arbiscan.io on 2021-09-24
*/

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

// SPDX-License-Identifier: MIT

// pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

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

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


// Dependency file: @openzeppelin/contracts/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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


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


// pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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


// pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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


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


// pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}


// Dependency file: @openzeppelin/contracts/utils/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/utils/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 virtual returns (address) {
        return _owner;
    }

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

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

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


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


// pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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


// Dependency file: contracts/utils/SafeDecimalMath.sol

// pragma solidity >=0.6.10 <0.8.0;

// import "@openzeppelin/contracts/math/SafeMath.sol";

library SafeDecimalMath {
    using SafeMath for uint256;

    /* Number of decimal places in the representations. */
    uint256 private constant decimals = 18;
    uint256 private constant highPrecisionDecimals = 27;

    /* The number representing 1.0. */
    uint256 private constant UNIT = 10**uint256(decimals);

    /* The number representing 1.0 for higher fidelity numbers. */
    uint256 private constant PRECISE_UNIT = 10**uint256(highPrecisionDecimals);
    uint256 private constant UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR =
        10**uint256(highPrecisionDecimals - decimals);

    /**
     * @return The result of multiplying x and y, interpreting the operands as fixed-point
     * decimals.
     *
     * @dev A unit factor is divided out after the product of x and y is evaluated,
     * so that product must be less than 2**256. As this is an integer division,
     * the internal division always rounds down. This helps save on gas. Rounding
     * is more expensive on gas.
     */
    function multiplyDecimal(uint256 x, uint256 y) internal pure returns (uint256) {
        /* Divide by UNIT to remove the extra factor introduced by the product. */
        return x.mul(y).div(UNIT);
    }

    function multiplyDecimalPrecise(uint256 x, uint256 y) internal pure returns (uint256) {
        /* Divide by UNIT to remove the extra factor introduced by the product. */
        return x.mul(y).div(PRECISE_UNIT);
    }

    /**
     * @return The result of safely dividing x and y. The return value is a high
     * precision decimal.
     *
     * @dev y is divided after the product of x and the standard precision unit
     * is evaluated, so the product of x and UNIT must be less than 2**256. As
     * this is an integer division, the result is always rounded down.
     * This helps save on gas. Rounding is more expensive on gas.
     */
    function divideDecimal(uint256 x, uint256 y) internal pure returns (uint256) {
        /* Reintroduce the UNIT factor that will be divided out by y. */
        return x.mul(UNIT).div(y);
    }

    function divideDecimalPrecise(uint256 x, uint256 y) internal pure returns (uint256) {
        /* Reintroduce the UNIT factor that will be divided out by y. */
        return x.mul(PRECISE_UNIT).div(y);
    }

    /**
     * @dev Convert a standard decimal representation to a high precision one.
     */
    function decimalToPreciseDecimal(uint256 i) internal pure returns (uint256) {
        return i.mul(UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR);
    }

    /**
     * @dev Convert a high precision decimal to a standard decimal representation.
     */
    function preciseDecimalToDecimal(uint256 i) internal pure returns (uint256) {
        uint256 quotientTimesTen = i.mul(10).div(UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR);

        if (quotientTimesTen % 10 >= 5) {
            quotientTimesTen = quotientTimesTen.add(10);
        }

        return quotientTimesTen.div(10);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, and the max value of
     * uint256 on overflow.
     */
    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        return c / a != b ? type(uint256).max : c;
    }

    function saturatingMultiplyDecimal(uint256 x, uint256 y) internal pure returns (uint256) {
        /* Divide by UNIT to remove the extra factor introduced by the product. */
        return saturatingMul(x, y).div(UNIT);
    }
}


// Dependency file: contracts/utils/CoreUtility.sol

// pragma solidity >=0.6.10 <0.8.0;

// import "@openzeppelin/contracts/math/SafeMath.sol";

abstract contract CoreUtility {
    using SafeMath for uint256;

    /// @dev UTC time of a day when the fund settles.
    uint256 internal constant SETTLEMENT_TIME = 14 hours;

    /// @dev Return end timestamp of the trading week containing a given timestamp.
    ///
    ///      A trading week starts at UTC time `SETTLEMENT_TIME` on a Thursday (inclusive)
    ///      and ends at the same time of the next Thursday (exclusive).
    /// @param timestamp The given timestamp
    /// @return End timestamp of the trading week.
    function _endOfWeek(uint256 timestamp) internal pure returns (uint256) {
        return
            ((timestamp.add(1 weeks) - (SETTLEMENT_TIME + 1 days)) / 1 weeks) *
            1 weeks +
            SETTLEMENT_TIME +
            1 days;
    }
}


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

// pragma solidity >=0.6.10 <0.8.0;

interface IPrimaryMarket {
    function claim(address payable account)
        external
        returns (uint256 createdShares, uint256 redeemedUnderlying);

    function transferToFund(uint256 amount) external;

    function settle(
        uint256 day,
        uint256 fundTotalShares,
        uint256 fundUnderlying,
        uint256 underlyingPrice,
        uint256 previousNav
    )
        external
        returns (
            uint256 sharesToMint,
            uint256 sharesToBurn,
            uint256 creationUnderlying,
            uint256 redemptionUnderlying,
            uint256 fee
        );
}


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

// pragma solidity >=0.6.10 <0.8.0;

interface ILatestPriceOracle {
    function getLatestPrice() external view returns (uint256);
}


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

// pragma solidity >=0.6.10 <0.8.0;
pragma experimental ABIEncoderV2;

// import "contracts/interfaces/ILatestPriceOracle.sol";

interface IFund {
    /// @notice A linear transformation matrix that represents a rebalance.
    ///
    ///         ```
    ///             [ ratioM          0        0 ]
    ///         R = [ ratioA2M  ratioAB        0 ]
    ///             [ ratioB2M        0  ratioAB ]
    ///         ```
    ///
    ///         Amounts of the three tranches `m`, `a` and `b` can be rebalanced by multiplying the matrix:
    ///
    ///         ```
    ///         [ m', a', b' ] = [ m, a, b ] * R
    ///         ```
    struct Rebalance {
        uint256 ratioM;
        uint256 ratioA2M;
        uint256 ratioB2M;
        uint256 ratioAB;
        uint256 timestamp;
    }

    function trancheWeights() external pure returns (uint256 weightA, uint256 weightB);

    function tokenUnderlying() external view returns (address);

    function tokenM() external view returns (address);

    function tokenA() external view returns (address);

    function tokenB() external view returns (address);

    function underlyingDecimalMultiplier() external view returns (uint256);

    // function twapOracle() external view returns (ITwapOracle);
    function latestPriceOracle() external view returns (ILatestPriceOracle);

    function feeCollector() external view returns (address);

    function endOfDay(uint256 timestamp) external pure returns (uint256);

    function shareTotalSupply(uint256 tranche) external view returns (uint256);

    function shareBalanceOf(uint256 tranche, address account) external view returns (uint256);

    function allShareBalanceOf(address account)
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        );

    function shareBalanceVersion(address account) external view returns (uint256);

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

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

    function getRebalanceSize() external view returns (uint256);

    function getRebalance(uint256 index) external view returns (Rebalance memory);

    function getRebalanceTimestamp(uint256 index) external view returns (uint256);

    function currentDay() external view returns (uint256);

    function fundActivityStartTime() external view returns (uint256);

    function exchangeActivityStartTime() external view returns (uint256);

    function isFundActive(uint256 timestamp) external view returns (bool);

    function isPrimaryMarketActive(address primaryMarket, uint256 timestamp)
        external
        view
        returns (bool);

    function isExchangeActive(uint256 timestamp) external view returns (bool);

    function getTotalShares() external view returns (uint256);

    function extrapolateNav(uint256 timestamp, uint256 price)
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        );

    function calculateNavB(uint256 navM, uint256 navA) external pure returns (uint256);

    function doRebalance(
        uint256 amountM,
        uint256 amountA,
        uint256 amountB,
        uint256 index
    )
        external
        view
        returns (
            uint256 newAmountM,
            uint256 newAmountA,
            uint256 newAmountB
        );

    function batchRebalance(
        uint256 amountM,
        uint256 amountA,
        uint256 amountB,
        uint256 fromIndex,
        uint256 toIndex
    )
        external
        view
        returns (
            uint256 newAmountM,
            uint256 newAmountA,
            uint256 newAmountB
        );

    function refreshBalance(address account, uint256 targetVersion) external;

    function refreshAllowance(
        address owner,
        address spender,
        uint256 targetVersion
    ) external;

    function mint(
        uint256 tranche,
        address account,
        uint256 amount
    ) external;

    function burn(
        uint256 tranche,
        address account,
        uint256 amount
    ) external;

    function transfer(
        uint256 tranche,
        address sender,
        address recipient,
        uint256 amount
    ) external;

    function transferFrom(
        uint256 tranche,
        address spender,
        address sender,
        address recipient,
        uint256 amount
    ) external returns (uint256 newAllowance);

    function increaseAllowance(
        uint256 tranche,
        address sender,
        address spender,
        uint256 addedValue
    ) external returns (uint256 newAllowance);

    function decreaseAllowance(
        uint256 tranche,
        address sender,
        address spender,
        uint256 subtractedValue
    ) external returns (uint256 newAllowance);

    function approve(
        uint256 tranche,
        address owner,
        address spender,
        uint256 amount
    ) external;

    event RebalanceTriggered(
        uint256 indexed index,
        uint256 indexed day,
        uint256 ratioM,
        uint256 ratioA2M,
        uint256 ratioB2M,
        uint256 ratioAB
    );
    event Settled(uint256 indexed day, uint256 navM, uint256 navA, uint256 navB);
    event InterestRateUpdated(uint256 baseInterestRate, uint256 floatingInterestRate);
    event Transfer(
        uint256 indexed tranche,
        address indexed from,
        address indexed to,
        uint256 amount
    );
    event Approval(
        uint256 indexed tranche,
        address indexed owner,
        address indexed spender,
        uint256 amount
    );
    event BalancesRebalanced(
        address indexed account,
        uint256 version,
        uint256 balanceM,
        uint256 balanceA,
        uint256 balanceB
    );
    event AllowancesRebalanced(
        address indexed owner,
        address indexed spender,
        uint256 version,
        uint256 allowanceM,
        uint256 allowanceA,
        uint256 allowanceB
    );
}


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

// pragma solidity >=0.6.10 <0.8.0;

interface ITwapOracle {
    function getTwap(uint256 timestamp) external view returns (uint256);
}


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

// pragma solidity >=0.6.10 <0.8.0;

interface IAprOracle {
    function capture() external returns (uint256 dailyRate);
}


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

// pragma solidity >=0.6.10 <0.8.0;

interface IBallot {
    struct Voter {
        uint256 amount;
        uint256 unlockTime;
        uint256 weight;
    }

    function count(uint256 timestamp) external view returns (uint256);

    function syncWithVotingEscrow(address account) external;
}


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

// pragma solidity >=0.6.10 <0.8.0;
// pragma experimental ABIEncoderV2;

interface IVotingEscrow {
    struct LockedBalance {
        uint256 amount;
        uint256 unlockTime;
    }

    function token() external view returns (address);

    function maxTime() external view returns (uint256);

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

    function totalSupply() external view returns (uint256);

    function balanceOfAtTimestamp(address account, uint256 timestamp)
        external
        view
        returns (uint256);

    function getTimestampDropBelow(address account, uint256 threshold)
        external
        view
        returns (uint256);

    function getLockedBalance(address account) external view returns (LockedBalance memory);
}


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

// pragma solidity >=0.6.10 <0.8.0;

/// @notice Amounts of Token M, A and B are sometimes stored in a `uint256[3]` array. This contract
///         defines index of each tranche in this array.
///
///         Solidity does not allow constants to be defined in interfaces. So this contract follows
///         the naming convention of interfaces but is implemented as an `abstract contract`.
abstract contract ITrancheIndex {
    uint256 internal constant TRANCHE_M = 0;
    uint256 internal constant TRANCHE_A = 1;
    uint256 internal constant TRANCHE_B = 2;

    uint256 internal constant TRANCHE_COUNT = 3;
}


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


// pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}


// Dependency file: contracts/fund/FundRoles.sol

// pragma solidity >=0.6.10 <0.8.0;

// import "@openzeppelin/contracts/utils/EnumerableSet.sol";

abstract contract FundRoles {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private _primaryMarketMembers;
    mapping(address => bool) private _shareMembers;

    event PrimaryMarketAdded(address indexed primaryMarket);
    event PrimaryMarketRemoved(address indexed primaryMarket);

    function _initializeRoles(
        address tokenM_,
        address tokenA_,
        address tokenB_,
        address primaryMarket_
    ) internal {
        _shareMembers[tokenM_] = true;
        _shareMembers[tokenA_] = true;
        _shareMembers[tokenB_] = true;

        _addPrimaryMarket(primaryMarket_);
    }

    modifier onlyPrimaryMarket() {
        require(isPrimaryMarket(msg.sender), "FundRoles: only primary market");
        _;
    }

    function isPrimaryMarket(address account) public view returns (bool) {
        return _primaryMarketMembers.contains(account);
    }

    function getPrimaryMarketMember(uint256 index) public view returns (address) {
        return _primaryMarketMembers.at(index);
    }

    function getPrimaryMarketCount() public view returns (uint256) {
        return _primaryMarketMembers.length();
    }

    function _addPrimaryMarket(address primaryMarket) internal {
        if (_primaryMarketMembers.add(primaryMarket)) {
            emit PrimaryMarketAdded(primaryMarket);
        }
    }

    function _removePrimaryMarket(address primaryMarket) internal {
        if (_primaryMarketMembers.remove(primaryMarket)) {
            emit PrimaryMarketRemoved(primaryMarket);
        }
    }

    modifier onlyShare() {
        require(isShare(msg.sender), "FundRoles: only share");
        _;
    }

    function isShare(address account) public view returns (bool) {
        return _shareMembers[account];
    }
}


// Root file: contracts/fund/Fund.sol

pragma solidity >=0.6.10 <0.8.0;
// pragma experimental ABIEncoderV2;

// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
// import "@openzeppelin/contracts/math/Math.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

// import "contracts/utils/SafeDecimalMath.sol";
// import "contracts/utils/CoreUtility.sol";

// import "contracts/interfaces/IPrimaryMarket.sol";
// import "contracts/interfaces/IFund.sol";
// import "contracts/interfaces/ITwapOracle.sol";
// import "contracts/interfaces/ILatestPriceOracle.sol";
// import "contracts/interfaces/IAprOracle.sol";
// import "contracts/interfaces/IBallot.sol";
// import "contracts/interfaces/IVotingEscrow.sol";
// import "contracts/interfaces/ITrancheIndex.sol";

// import "contracts/fund/FundRoles.sol";

contract Fund is IFund, Ownable, ReentrancyGuard, FundRoles, CoreUtility, ITrancheIndex {
    using Math for uint256;
    using SafeMath for uint256;
    using SafeDecimalMath for uint256;
    using SafeERC20 for IERC20;

    uint256 private constant UNIT = 1e18;
    uint256 private constant MAX_INTEREST_RATE = 0.2e18; // 20% daily
    uint256 private constant MAX_DAILY_PROTOCOL_FEE_RATE = 0.05e18; // 5% daily rate

    uint256 private constant WEIGHT_A = 1;
    uint256 private constant WEIGHT_B = 1;
    uint256 private constant WEIGHT_M = WEIGHT_A + WEIGHT_B;

    /// @notice Upper bound of `NAV_B / NAV_A` to trigger a rebalance.
    uint256 public immutable upperRebalanceThreshold;

    /// @notice Lower bound of `NAV_B / NAV_A` to trigger a rebalance.
    uint256 public immutable lowerRebalanceThreshold;

    /// @notice Address of the underlying token.
    address public immutable override tokenUnderlying;

    /// @notice A multipler that normalizes an underlying balance to 18 decimal places.
    uint256 public immutable override underlyingDecimalMultiplier;

    /// @notice Daily protocol fee rate.
    uint256 public dailyProtocolFeeRate;

    /// @notice TwapOracle address for the underlying asset.
    // ITwapOracle public override twapOracle;

    ILatestPriceOracle public override latestPriceOracle;

    /// @notice AprOracle address.
    IAprOracle public aprOracle;

    /// @notice Address of the interest rate ballot.
    address public ballot;

    /// @notice Fee Collector address.
    address public override feeCollector;

    /// @notice Address of Token M.
    address public override tokenM;

    /// @notice Address of Token A.
    address public override tokenA;

    /// @notice Address of Token B.
    address public override tokenB;

    /// @notice End timestamp of the current trading day.
    ///         A trading day starts at UTC time `SETTLEMENT_TIME` of a day (inclusive)
    ///         and ends at the same time of the next day (exclusive).
    uint256 public override currentDay;

    /// @notice Start timestamp of the current primary market activity window.
    uint256 public override fundActivityStartTime;

    /// @notice Start timestamp of the current exchange activity window.
    uint256 public override exchangeActivityStartTime;

    /// @dev Historical rebalances. Rebalances are often accessed in loops with bounds checking.
    ///      So we store them in a fixed-length array, in order to make compiler-generated
    ///      bounds checking on every access cheaper. The actual length of this array is stored in
    ///      `_rebalanceSize` and should be explicitly checked when necessary.
    Rebalance[65535] private _rebalances;

    /// @dev Historical rebalance count.
    uint256 private _rebalanceSize;

    /// @dev Total share supply of the three tranches. They are always rebalanced to the latest
    ///      version.
    uint256[TRANCHE_COUNT] private _totalSupplies;

    /// @dev Mapping of account => share balance of the three tranches.
    ///      Rebalance versions are stored in a separate mapping `_balanceVersions`.
    mapping(address => uint256[TRANCHE_COUNT]) private _balances;

    /// @dev Rebalance version mapping for `_balances`.
    mapping(address => uint256) private _balanceVersions;

    /// @dev Mapping of owner => spender => share allowance of the three tranches.
    ///      Rebalance versions are stored in a separate mapping `_allowanceVersions`.
    mapping(address => mapping(address => uint256[TRANCHE_COUNT])) private _allowances;

    /// @dev Rebalance version mapping for `_allowances`.
    mapping(address => mapping(address => uint256)) private _allowanceVersions;

    /// @dev Mapping of trading day => NAV tuple.
    mapping(uint256 => uint256[TRANCHE_COUNT]) private _historicalNavs;

    /// @notice Mapping of trading day => total fund shares.
    ///
    ///         Key is the end timestamp of a trading day. Value is the total fund shares after
    ///         settlement of that trading day, as if all Token A and B are merged.
    mapping(uint256 => uint256) public historicalTotalShares;

    /// @notice Mapping of trading day => underlying assets in the fund.
    ///
    ///         Key is the end timestamp of a trading day. Value is the underlying assets in
    ///         the fund after settlement of that trading day.
    mapping(uint256 => uint256) public historicalUnderlying;

    /// @notice Mapping of trading week => interest rate of Token A.
    ///
    ///         Key is the end timestamp of a trading week. Value is the interest rate captured
    ///         after settlement of the last day of the previous trading week.
    mapping(uint256 => uint256) public historicalInterestRate;

    address[] private obsoletePrimaryMarkets;
    address[] private newPrimaryMarkets;

    constructor(
        address tokenUnderlying_,
        uint256 underlyingDecimals_,
        uint256 dailyProtocolFeeRate_,
        uint256 upperRebalanceThreshold_,
        uint256 lowerRebalanceThreshold_,
        address latestPriceOracle_,
        address aprOracle_,
        address ballot_,
        address feeCollector_
    ) public Ownable() FundRoles() {
        tokenUnderlying = tokenUnderlying_;
        require(underlyingDecimals_ <= 18, "Underlying decimals larger than 18");
        underlyingDecimalMultiplier = 10**(18 - underlyingDecimals_);
        require(
            dailyProtocolFeeRate_ <= MAX_DAILY_PROTOCOL_FEE_RATE,
            "Exceed max protocol fee rate"
        );
        dailyProtocolFeeRate = dailyProtocolFeeRate_;
        upperRebalanceThreshold = upperRebalanceThreshold_;
        lowerRebalanceThreshold = lowerRebalanceThreshold_;
        latestPriceOracle = ILatestPriceOracle(latestPriceOracle_);
        aprOracle = IAprOracle(aprOracle_);
        ballot = ballot_;
        feeCollector = feeCollector_;

        currentDay = endOfDay(block.timestamp);
        uint256 lastDay = currentDay - 1 days;
        uint256 currentPrice = latestPriceOracle.getLatestPrice();
        require(currentPrice != 0, "Price not available");
        _historicalNavs[lastDay][TRANCHE_M] = UNIT;
        _historicalNavs[lastDay][TRANCHE_A] = UNIT;
        _historicalNavs[lastDay][TRANCHE_B] = UNIT;
        historicalInterestRate[_endOfWeek(lastDay)] = MAX_INTEREST_RATE.min(aprOracle.capture());
        fundActivityStartTime = lastDay;
        exchangeActivityStartTime = lastDay + 30 minutes;
    }

    function initialize(
        address tokenM_,
        address tokenA_,
        address tokenB_,
        address primaryMarket_
    ) external onlyOwner {
        require(tokenM == address(0) && tokenM_ != address(0), "Already initialized");
        tokenM = tokenM_;
        tokenA = tokenA_;
        tokenB = tokenB_;
        _initializeRoles(tokenM_, tokenA_, tokenB_, primaryMarket_);
    }

    /// @notice Return weights of Token A and B when splitting Token M.
    /// @return weightA Weight of Token A
    /// @return weightB Weight of Token B
    function trancheWeights() external pure override returns (uint256 weightA, uint256 weightB) {
        return (WEIGHT_A, WEIGHT_B);
    }

    /// @notice UTC time of a day when the fund settles.
    function settlementTime() external pure returns (uint256) {
        return SETTLEMENT_TIME;
    }

    /// @notice Return end timestamp of the trading day containing a given timestamp.
    ///
    ///         A trading day starts at UTC time `SETTLEMENT_TIME` of a day (inclusive)
    ///         and ends at the same time of the next day (exclusive).
    /// @param timestamp The given timestamp
    /// @return End timestamp of the trading day.
    function endOfDay(uint256 timestamp) public pure override returns (uint256) {
        return ((timestamp.add(1 days) - SETTLEMENT_TIME) / 1 days) * 1 days + SETTLEMENT_TIME;
    }

    /// @notice Return end timestamp of the trading week containing a given timestamp.
    ///
    ///         A trading week starts at UTC time `SETTLEMENT_TIME` on a Thursday (inclusive)
    ///         and ends at the same time of the next Thursday (exclusive).
    /// @param timestamp The given timestamp
    /// @return End timestamp of the trading week.
    function endOfWeek(uint256 timestamp) external pure returns (uint256) {
        return _endOfWeek(timestamp);
    }

    /// @notice Return the status of the fund contract.
    /// @param timestamp Timestamp to assess
    /// @return True if the fund contract is active
    function isFundActive(uint256 timestamp) public view override returns (bool) {
        return timestamp >= fundActivityStartTime;
    }

    /// @notice Return the status of a given primary market contract.
    /// @param primaryMarket The primary market contract address
    /// @param timestamp Timestamp to assess
    /// @return True if the primary market contract is active
    function isPrimaryMarketActive(address primaryMarket, uint256 timestamp)
        public
        view
        override
        returns (bool)
    {
        return
            isPrimaryMarket(primaryMarket) &&
            timestamp >= fundActivityStartTime &&
            timestamp < currentDay;
    }

    /// @notice Return the status of the exchange. Unlike the primary market, exchange is
    ///         anonymous to fund
    /// @param timestamp Timestamp to assess
    /// @return True if the exchange contract is active
    function isExchangeActive(uint256 timestamp) public view override returns (bool) {
        return (timestamp >= exchangeActivityStartTime && timestamp < (currentDay - 60 minutes));
    }

    /// @notice Total shares of the fund, as if all Token A and B are merged.
    function getTotalShares() public view override returns (uint256) {
        return
            _totalSupplies[TRANCHE_M].add(_totalSupplies[TRANCHE_A]).add(_totalSupplies[TRANCHE_B]);
    }

    /// @notice Return the rebalance matrix at a given index. A zero struct is returned
    ///         if `index` is out of bound.
    /// @param index Rebalance index
    /// @return A rebalance matrix
    function getRebalance(uint256 index) external view override returns (Rebalance memory) {
        return _rebalances[index];
    }

    /// @notice Return timestamp of the transaction triggering the rebalance at a given index.
    ///         Zero is returned if `index` is out of bound.
    /// @param index Rebalance index
    /// @return Timestamp of the rebalance
    function getRebalanceTimestamp(uint256 index) external view override returns (uint256) {
        return _rebalances[index].timestamp;
    }

    /// @notice Return the number of historical rebalances.
    function getRebalanceSize() external view override returns (uint256) {
        return _rebalanceSize;
    }

    /// @notice Return NAV of Token M, A and B of the given trading day.
    /// @param day End timestamp of a trading day
    /// @return NAV of Token M, A and B
    function historicalNavs(uint256 day)
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        return (
            _historicalNavs[day][TRANCHE_M],
            _historicalNavs[day][TRANCHE_A],
            _historicalNavs[day][TRANCHE_B]
        );
    }

    /// @notice Estimate NAV of all tranches at a given timestamp, considering underlying price
    ///         change, accrued protocol fee and accrued interest since the previous settlement.
    ///
    ///         The extrapolation uses simple interest instead of daily compound interest in
    ///         calculating protocol fee and Token A's interest. There may be significant error
    ///         in the returned values when `timestamp` is far beyond the last settlement.
    /// @param timestamp Timestamp to estimate
    /// @param price Price of the underlying asset (18 decimal places)
    /// @return Estimated NAV of all tranches
    function extrapolateNav(uint256 timestamp, uint256 price)
        external
        view
        override
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        // Find the last settled trading day before the given timestamp.
        uint256 previousDay = currentDay - 1 days;
        if (previousDay > timestamp) {
            previousDay = endOfDay(timestamp) - 1 days;
        }
        uint256 previousShares = historicalTotalShares[previousDay];
        uint256 navM = _extrapolateNavM(previousDay, previousShares, timestamp, price);
        uint256 navA = _extrapolateNavA(previousDay, previousShares, timestamp);
        uint256 navB = calculateNavB(navM, navA);
        return (navM, navA, navB);
    }

    function _extrapolateNavM(
        uint256 previousDay,
        uint256 previousShares,
        uint256 timestamp,
        uint256 price
    ) private view returns (uint256) {
        uint256 navM;
        if (previousShares == 0) {
            // The fund is empty. Just return the previous recorded NAV.
            navM = _historicalNavs[previousDay][TRANCHE_M];
            if (navM == 0) {
                // No NAV is recorded because the given timestamp is before the fund launches.
                return UNIT;
            } else {
                return navM;
            }
        }
        uint256 totalValue = price.mul(
            historicalUnderlying[previousDay].mul(underlyingDecimalMultiplier)
        );
        uint256 accruedFee = totalValue
            .multiplyDecimal(dailyProtocolFeeRate)
            .mul(timestamp - previousDay)
            .div(1 days);
        navM = (totalValue - accruedFee).div(previousShares);
        return navM;
    }

    function _extrapolateNavA(
        uint256 previousDay,
        uint256 previousShares,
        uint256 timestamp
    ) private view returns (uint256) {
        uint256 navA = _historicalNavs[previousDay][TRANCHE_A];
        if (previousShares == 0) {
            // The fund is empty. Just return the previous recorded NAV.
            if (navA == 0) {
                // No NAV is recorded because the given timestamp is before the fund launches.
                return UNIT;
            } else {
                return navA;
            }
        }

        uint256 week = _endOfWeek(previousDay);
        uint256 newNavA = navA
            .multiplyDecimal(
                UNIT.sub(dailyProtocolFeeRate.mul(timestamp - previousDay).div(1 days))
            )
            .multiplyDecimal(
                UNIT.add(historicalInterestRate[week].mul(timestamp - previousDay).div(1 days))
            );
        return newNavA > navA ? newNavA : navA;
    }

    function calculateNavB(uint256 navM, uint256 navA) public pure override returns (uint256) {
        // Using unchecked multiplications because they are unlikely to overflow
        if (navM * WEIGHT_M >= navA * WEIGHT_A) {
            return (navM * WEIGHT_M - navA * WEIGHT_A) / WEIGHT_B;
        } else {
            return 0;
        }
    }

    /// @notice Transform share amounts according to the rebalance at a given index.
    ///         This function performs no bounds checking on the given index. A non-existent
    ///         rebalance transforms anything to a zero vector.
    /// @param amountM Amount of Token M before the rebalance
    /// @param amountA Amount of Token A before the rebalance
    /// @param amountB Amount of Token B before the rebalance
    /// @param index Rebalance index
    /// @return newAmountM Amount of Token M after the rebalance
    /// @return newAmountA Amount of Token A after the rebalance
    /// @return newAmountB Amount of Token B after the rebalance
    function doRebalance(
        uint256 amountM,
        uint256 amountA,
        uint256 amountB,
        uint256 index
    )
        public
        view
        override
        returns (
            uint256 newAmountM,
            uint256 newAmountA,
            uint256 newAmountB
        )
    {
        Rebalance storage rebalance = _rebalances[index];
        newAmountM = amountM
            .multiplyDecimal(rebalance.ratioM)
            .add(amountA.multiplyDecimal(rebalance.ratioA2M))
            .add(amountB.multiplyDecimal(rebalance.ratioB2M));
        uint256 ratioAB = rebalance.ratioAB; // Gas saver
        newAmountA = amountA.multiplyDecimal(ratioAB);
        newAmountB = amountB.multiplyDecimal(ratioAB);
    }

    /// @notice Transform share amounts according to rebalances in a given index range,
    ///         This function performs no bounds checking on the given indices. The original amounts
    ///         are returned if `fromIndex` is no less than `toIndex`. A zero vector is returned
    ///         if `toIndex` is greater than the number of existing rebalances.
    /// @param amountM Amount of Token M before the rebalance
    /// @param amountA Amount of Token A before the rebalance
    /// @param amountB Amount of Token B before the rebalance
    /// @param fromIndex Starting of the rebalance index range, inclusive
    /// @param toIndex End of the rebalance index range, exclusive
    /// @return newAmountM Amount of Token M after the rebalance
    /// @return newAmountA Amount of Token A after the rebalance
    /// @return newAmountB Amount of Token B after the rebalance
    function batchRebalance(
        uint256 amountM,
        uint256 amountA,
        uint256 amountB,
        uint256 fromIndex,
        uint256 toIndex
    )
        external
        view
        override
        returns (
            uint256 newAmountM,
            uint256 newAmountA,
            uint256 newAmountB
        )
    {
        for (uint256 i = fromIndex; i < toIndex; i++) {
            (amountM, amountA, amountB) = doRebalance(amountM, amountA, amountB, i);
        }
        newAmountM = amountM;
        newAmountA = amountA;
        newAmountB = amountB;
    }

    /// @notice Transform share balance to a given rebalance version, or to the latest version
    ///         if `targetVersion` is zero.
    /// @param account Account of the balance to rebalance
    /// @param targetVersion The target rebalance version, or zero for the latest version
    function refreshBalance(address account, uint256 targetVersion) external override {
        if (targetVersion > 0) {
            require(targetVersion <= _rebalanceSize, "Target version out of bound");
        }
        _refreshBalance(account, targetVersion);
    }

    /// @notice Transform allowance to a given rebalance version, or to the latest version
    ///         if `targetVersion` is zero.
    /// @param owner Owner of the allowance to rebalance
    /// @param spender Spender of the allowance to rebalance
    /// @param targetVersion The target rebalance version, or zero for the latest version
    function refreshAllowance(
        address owner,
        address spender,
        uint256 targetVersion
    ) external override {
        if (targetVersion > 0) {
            require(targetVersion <= _rebalanceSize, "Target version out of bound");
        }
        _refreshAllowance(owner, spender, targetVersion);
    }

    function shareBalanceOf(uint256 tranche, address account)
        external
        view
        override
        returns (uint256)
    {
        uint256 amountM = _balances[account][TRANCHE_M];
        uint256 amountA = _balances[account][TRANCHE_A];
        uint256 amountB = _balances[account][TRANCHE_B];

        if (tranche == TRANCHE_M) {
            if (amountM == 0 && amountA == 0 && amountB == 0) return 0;
        } else if (tranche == TRANCHE_A) {
            if (amountA == 0) return 0;
        } else {
            if (amountB == 0) return 0;
        }

        uint256 size = _rebalanceSize; // Gas saver
        for (uint256 i = _balanceVersions[account]; i < size; i++) {
            (amountM, amountA, amountB) = doRebalance(amountM, amountA, amountB, i);
        }

        if (tranche == TRANCHE_M) {
            return amountM;
        } else if (tranche == TRANCHE_A) {
            return amountA;
        } else {
            return amountB;
        }
    }

    /// @notice Return all three share balances transformed to the latest rebalance version.
    /// @param account Owner of the shares
    function allShareBalanceOf(address account)
        external
        view
        override
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        uint256 amountM = _balances[account][TRANCHE_M];
        uint256 amountA = _balances[account][TRANCHE_A];
        uint256 amountB = _balances[account][TRANCHE_B];

        uint256 size = _rebalanceSize; // Gas saver
        for (uint256 i = _balanceVersions[account]; i < size; i++) {
            (amountM, amountA, amountB) = doRebalance(amountM, amountA, amountB, i);
        }

        return (amountM, amountA, amountB);
    }

    function shareBalanceVersion(address account) external view override returns (uint256) {
        return _balanceVersions[account];
    }

    function shareAllowance(
        uint256 tranche,
        address owner,
        address spender
    ) external view override returns (uint256) {
        uint256 allowanceM = _allowances[owner][spender][TRANCHE_M];
        uint256 allowanceA = _allowances[owner][spender][TRANCHE_A];
        uint256 allowanceB = _allowances[owner][spender][TRANCHE_B];

        if (tranche == TRANCHE_M) {
            if (allowanceM == 0) return 0;
        } else if (tranche == TRANCHE_A) {
            if (allowanceA == 0) return 0;
        } else {
            if (allowanceB == 0) return 0;
        }

        uint256 size = _rebalanceSize; // Gas saver
        for (uint256 i = _allowanceVersions[owner][spender]; i < size; i++) {
            (allowanceM, allowanceA, allowanceB) = _rebalanceAllowance(
                allowanceM,
                allowanceA,
                allowanceB,
                i
            );
        }

        if (tranche == TRANCHE_M) {
            return allowanceM;
        } else if (tranche == TRANCHE_A) {
            return allowanceA;
        } else {
            return allowanceB;
        }
    }

    function shareAllowanceVersion(address owner, address spender)
        external
        view
        override
        returns (uint256)
    {
        return _allowanceVersions[owner][spender];
    }

    function shareTotalSupply(uint256 tranche) external view override returns (uint256) {
        return _totalSupplies[tranche];
    }

    function mint(
        uint256 tranche,
        address account,
        uint256 amount
    ) external override onlyPrimaryMarket {
        _refreshBalance(account, _rebalanceSize);
        _mint(tranche, account, amount);
    }

    function burn(
        uint256 tranche,
        address account,
        uint256 amount
    ) external override onlyPrimaryMarket {
        _refreshBalance(account, _rebalanceSize);
        _burn(tranche, account, amount);
    }

    function transfer(
        uint256 tranche,
        address sender,
        address recipient,
        uint256 amount
    ) public override onlyShare {
        require(isFundActive(block.timestamp), "Transfer is inactive");
        _refreshBalance(sender, _rebalanceSize);
        _refreshBalance(recipient, _rebalanceSize);
        _transfer(tranche, sender, recipient, amount);
    }

    function transferFrom(
        uint256 tranche,
        address spender,
        address sender,
        address recipient,
        uint256 amount
    ) external override onlyShare returns (uint256 newAllowance) {
        transfer(tranche, sender, recipient, amount);

        _refreshAllowance(sender, spender, _rebalanceSize);
        newAllowance = _allowances[sender][spender][tranche].sub(
            amount,
            "ERC20: transfer amount exceeds allowance"
        );
        _approve(tranche, sender, spender, newAllowance);
    }

    function approve(
        uint256 tranche,
        address owner,
        address spender,
        uint256 amount
    ) external override onlyShare {
        _refreshAllowance(owner, spender, _rebalanceSize);
        _approve(tranche, owner, spender, amount);
    }

    function increaseAllowance(
        uint256 tranche,
        address sender,
        address spender,
        uint256 addedValue
    ) external override onlyShare returns (uint256 newAllowance) {
        _refreshAllowance(sender, spender, _rebalanceSize);
        newAllowance = _allowances[sender][spender][tranche].add(addedValue);
        _approve(tranche, sender, spender, newAllowance);
    }

    function decreaseAllowance(
        uint256 tranche,
        address sender,
        address spender,
        uint256 subtractedValue
    ) external override onlyShare returns (uint256 newAllowance) {
        _refreshAllowance(sender, spender, _rebalanceSize);
        newAllowance = _allowances[sender][spender][tranche].sub(subtractedValue);
        _approve(tranche, sender, spender, newAllowance);
    }

    function _transfer(
        uint256 tranche,
        address sender,
        address recipient,
        uint256 amount
    ) private {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender][tranche] = _balances[sender][tranche].sub(
            amount,
            "ERC20: transfer amount exceeds balance"
        );
        _balances[recipient][tranche] = _balances[recipient][tranche].add(amount);

        emit Transfer(tranche, sender, recipient, amount);
    }

    function _mint(
        uint256 tranche,
        address account,
        uint256 amount
    ) private {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupplies[tranche] = _totalSupplies[tranche].add(amount);
        _balances[account][tranche] = _balances[account][tranche].add(amount);

        emit Transfer(tranche, address(0), account, amount);
    }

    function _burn(
        uint256 tranche,
        address account,
        uint256 amount
    ) private {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account][tranche] = _balances[account][tranche].sub(
            amount,
            "ERC20: burn amount exceeds balance"
        );
        _totalSupplies[tranche] = _totalSupplies[tranche].sub(amount);

        emit Transfer(tranche, account, address(0), amount);
    }

    function _approve(
        uint256 tranche,
        address owner,
        address spender,
        uint256 amount
    ) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender][tranche] = amount;

        emit Approval(tranche, owner, spender, amount);
    }

    /// @notice Settle the current trading day. Settlement includes the following changes
    ///         to the fund.
    ///
    ///         1. Transfer protocol fee of the day to the fee collector.
    ///         2. Settle all pending creations and redemptions from all primary markets.
    ///         3. Calculate NAV of the day and trigger rebalance if necessary.
    ///         4. Capture new interest rate for Token A.
    function settle() external nonReentrant {
        uint256 day = currentDay;
        uint256 currentWeek = _endOfWeek(day - 1 days);
        require(block.timestamp >= day, "The current trading day does not end yet");
        uint256 price = latestPriceOracle.getLatestPrice();
        require(price != 0, "Underlying price for settlement is not ready yet");

        _collectFee();

        _settlePrimaryMarkets(day, price);

        // Calculate NAV
        uint256 totalShares = getTotalShares();
        IERC20 token = IERC20(tokenUnderlying);
        uint256 underlying;
        if (token == IERC20(address(0))) {
            underlying = address(this).balance;
        } else {
            underlying = IERC20(tokenUnderlying).balanceOf(address(this));
        }
        uint256 navA = _historicalNavs[day - 1 days][TRANCHE_A];
        uint256 navM;
        if (totalShares > 0) {
            navM = price.mul(underlying.mul(underlyingDecimalMultiplier)).div(totalShares);
            if (historicalTotalShares[day - 1 days] > 0) {
                // Update NAV of Token A only when the fund is non-empty both before and after
                // this settlement
                uint256 newNavA = navA
                    .multiplyDecimal(UNIT.sub(dailyProtocolFeeRate))
                    .multiplyDecimal(historicalInterestRate[currentWeek].add(UNIT));
                if (navA < newNavA) {
                    navA = newNavA;
                }
            }
        } else {
            // If the fund is empty, use NAV of Token M in the last day
            navM = _historicalNavs[day - 1 days][TRANCHE_M];
        }
        uint256 navB = calculateNavB(navM, navA);

        if (_shouldTriggerRebalance(navA, navB)) {
            _triggerRebalance(day, navM, navA, navB);
            navM = UNIT;
            navA = UNIT;
            navB = UNIT;
            totalShares = getTotalShares();
            fundActivityStartTime = day + 12 hours;
            exchangeActivityStartTime = day + 12 hours;
        } else {
            fundActivityStartTime = day;
            exchangeActivityStartTime = day + 30 minutes;
        }

        if (currentDay == currentWeek) {
            historicalInterestRate[currentWeek + 1 weeks] = _updateInterestRate(currentWeek);
        }

        historicalTotalShares[day] = totalShares;
        historicalUnderlying[day] = underlying;
        _historicalNavs[day][TRANCHE_M] = navM;
        _historicalNavs[day][TRANCHE_A] = navA;
        _historicalNavs[day][TRANCHE_B] = navB;
        currentDay = day + 1 days;

        if (obsoletePrimaryMarkets.length > 0) {
            for (uint256 i = 0; i < obsoletePrimaryMarkets.length; i++) {
                _removePrimaryMarket(obsoletePrimaryMarkets[i]);
            }
            delete obsoletePrimaryMarkets;
        }

        if (newPrimaryMarkets.length > 0) {
            for (uint256 i = 0; i < newPrimaryMarkets.length; i++) {
                _addPrimaryMarket(newPrimaryMarkets[i]);
            }
            delete newPrimaryMarkets;
        }

        emit Settled(day, navM, navA, navB);
    }

    function addObsoletePrimaryMarket(address obsoletePrimaryMarket) external onlyOwner {
        require(isPrimaryMarket(obsoletePrimaryMarket), "The address is not a primary market");
        obsoletePrimaryMarkets.push(obsoletePrimaryMarket);
    }

    function addNewPrimaryMarket(address newPrimaryMarket) external onlyOwner {
        require(!isPrimaryMarket(newPrimaryMarket), "The address is already a primary market");
        newPrimaryMarkets.push(newPrimaryMarket);
    }

    function updateDailyProtocolFeeRate(uint256 newDailyProtocolFeeRate) external onlyOwner {
        require(
            newDailyProtocolFeeRate <= MAX_DAILY_PROTOCOL_FEE_RATE,
            "Exceed max protocol fee rate"
        );
        dailyProtocolFeeRate = newDailyProtocolFeeRate;
    }

    function updateLatestPriceOracle(address newLatestPriceOracle) external onlyOwner {
        latestPriceOracle = ILatestPriceOracle(newLatestPriceOracle);
    }

    function updateAprOracle(address newAprOracle) external onlyOwner {
        aprOracle = IAprOracle(newAprOracle);
    }

    function updateBallot(address newBallot) external onlyOwner {
        require(
            newBallot == address(0) || Address.isContract(newBallot),
            "Must be null or a contract"
        );
        ballot = newBallot;
    }

    function updateFeeCollector(address newFeeCollector) external onlyOwner {
        feeCollector = newFeeCollector;
    }

    /// @dev Transfer protocol fee of the current trading day to the fee collector.
    ///      This function should be called before creation and redemption on the same day
    ///      are settled.
    function _collectFee() private {
        IERC20 token = IERC20(tokenUnderlying);
        uint256 currentUnderlying;
        if (token == IERC20(address(0))) {
            currentUnderlying = address(this).balance;
        } else {
            currentUnderlying = IERC20(tokenUnderlying).balanceOf(address(this));
        }
        uint256 fee = currentUnderlying.multiplyDecimal(dailyProtocolFeeRate);
        if (fee > 0) {
            if (token == IERC20(address(0))) {
                // payable(feeCollector).transfer(fee);
                (bool success, ) = payable(address(feeCollector)).call{value: fee}("");
                require(success, "eth transfer failure");
            } else {
                IERC20(tokenUnderlying).safeTransfer(address(feeCollector), fee);
            }
        }
    }

    /// @dev Settle primary market operations in every PrimaryMarket contract.
    function _settlePrimaryMarkets(uint256 day, uint256 price) private {
        uint256 totalShares = getTotalShares();
        IERC20 token = IERC20(tokenUnderlying);
        uint256 underlying;
        if (token == IERC20(address(0))) {
            underlying = address(this).balance;
        } else {
            underlying = IERC20(tokenUnderlying).balanceOf(address(this));
        }
        uint256 prevNavM = _historicalNavs[day - 1 days][TRANCHE_M];
        uint256 primaryMarketCount = getPrimaryMarketCount();
        for (uint256 i = 0; i < primaryMarketCount; i++) {
            uint256 day_ = day; // Fix the "stack too deep" error
            uint256 totalShares_ = totalShares; // Fix the "stack too deep" error
            uint256 price_ = price; // Fix the "stack too deep" error
            uint256 underlying_ = underlying;
            uint256 prevNavM_ = prevNavM;
            IERC20 token_ = token;
            IPrimaryMarket pm = IPrimaryMarket(getPrimaryMarketMember(i));
            (
                uint256 sharesToMint,
                uint256 sharesToBurn,
                uint256 creationUnderlying,
                uint256 redemptionUnderlying,
                uint256 fee
            ) = pm.settle(day_, totalShares_, underlying_, price_, prevNavM_);
            if (sharesToMint > sharesToBurn) {
                _mint(TRANCHE_M, address(pm), sharesToMint - sharesToBurn);
            } else if (sharesToBurn > sharesToMint) {
                _burn(TRANCHE_M, address(pm), sharesToBurn - sharesToMint);
            }
            if (creationUnderlying > redemptionUnderlying) {
                pm.transferToFund(creationUnderlying - redemptionUnderlying);
            } else if (redemptionUnderlying > creationUnderlying) {
                if (token_ == IERC20(address(0))) {
                    // payable(address(pm)).transfer(redemptionUnderlying - creationUnderlying);
                    uint256 amount = redemptionUnderlying - creationUnderlying;
                    (bool success, ) = payable(address(pm)).call{value: amount}("");
                    require(success, "eth transfer failure");
                } else {
                    token_.safeTransfer(address(pm), redemptionUnderlying - creationUnderlying);
                }
            }
            if (fee > 0) {
                if (token_ == IERC20(address(0))) {
                    // payable(address(feeCollector)).transfer(fee);
                    (bool success, ) = payable(address(feeCollector)).call{value: fee}("");
                    require(success, "eth transfer failure");
                } else {
                    token_.safeTransfer(address(feeCollector), fee);
                }
            }
        }
    }

    /// @dev Check whether a new rebalance should be triggered. Rebalance is triggered if
    ///      NAV of Token B over NAV of Token A is greater than the upper threshold or
    ///      less than the lower threshold.
    /// @param navA NAV of Token A before the rebalance
    /// @param navBOrZero NAV of Token B before the rebalance or zero if the NAV is negative
    /// @return Whether a new rebalance should be triggered
    function _shouldTriggerRebalance(uint256 navA, uint256 navBOrZero) private view returns (bool) {
        uint256 bOverA = navBOrZero.divideDecimal(navA);
        return bOverA < lowerRebalanceThreshold || bOverA > upperRebalanceThreshold;
    }

    /// @dev Create a new rebalance that resets NAV of all tranches to 1. Total supplies are
    ///      rebalanced immediately.
    /// @param day Trading day that triggers this rebalance
    /// @param navM NAV of Token M before this rebalance
    /// @param navA NAV of Token A before this rebalance
    /// @param navBOrZero NAV of Token B before this rebalance or zero if the NAV is negative
    function _triggerRebalance(
        uint256 day,
        uint256 navM,
        uint256 navA,
        uint256 navBOrZero
    ) private {
        Rebalance memory rebalance = _calculateRebalance(navM, navA, navBOrZero);
        uint256 oldSize = _rebalanceSize;
        _rebalances[oldSize] = rebalance;
        _rebalanceSize = oldSize + 1;
        emit RebalanceTriggered(
            oldSize,
            day,
            rebalance.ratioM,
            rebalance.ratioA2M,
            rebalance.ratioB2M,
            rebalance.ratioAB
        );

        (
            _totalSupplies[TRANCHE_M],
            _totalSupplies[TRANCHE_A],
            _totalSupplies[TRANCHE_B]
        ) = doRebalance(
            _totalSupplies[TRANCHE_M],
            _totalSupplies[TRANCHE_A],
            _totalSupplies[TRANCHE_B],
            oldSize
        );
        _refreshBalance(address(this), oldSize + 1);
    }

    /// @dev Create a new rebalance matrix that resets given NAVs to (1, 1, 1).
    ///
    ///      Note that NAV of Token B can be negative before the rebalance when the underlying price
    ///      drops dramatically in a single trading day, in which case zero should be passed to
    ///      this function instead of the negative NAV.
    /// @param navM NAV of Token M before the rebalance
    /// @param navA NAV of Token A before the rebalance
    /// @param navBOrZero NAV of Token B before the rebalance or zero if the NAV is negative
    /// @return The rebalance matrix
    function _calculateRebalance(
        uint256 navM,
        uint256 navA,
        uint256 navBOrZero
    ) private view returns (Rebalance memory) {
        uint256 ratioAB;
        uint256 ratioA2M;
        uint256 ratioB2M;
        if (navBOrZero <= navA) {
            // Lower rebalance
            ratioAB = navBOrZero;
            ratioA2M = ((navM - navBOrZero) * WEIGHT_M) / WEIGHT_A;
            ratioB2M = 0;
        } else {
            // Upper rebalance
            ratioAB = UNIT;
            ratioA2M = navA - UNIT;
            ratioB2M = navBOrZero - UNIT;
        }
        return
            Rebalance({
                ratioM: navM,
                ratioA2M: ratioA2M,
                ratioB2M: ratioB2M,
                ratioAB: ratioAB,
                timestamp: block.timestamp
            });
    }

    function _updateInterestRate(uint256 week) private returns (uint256) {
        uint256 baseInterestRate = MAX_INTEREST_RATE.min(aprOracle.capture());
        uint256 floatingInterestRate;
        if (ballot != address(0) && Address.isContract(ballot)) {
            floatingInterestRate = IBallot(ballot).count(week).div(365);
        }
        uint256 rate = baseInterestRate.add(floatingInterestRate);

        emit InterestRateUpdated(baseInterestRate, floatingInterestRate);

        return rate;
    }

    /// @dev Transform share balance to a given rebalance version, or to the latest version
    ///      if `targetVersion` is zero. This function does no bound check on `targetVersion`.
    /// @param account Account of the balance to rebalance
    /// @param targetVersion The target rebalance version, or zero for the latest version
    function _refreshBalance(address account, uint256 targetVersion) private {
        if (targetVersion == 0) {
            targetVersion = _rebalanceSize;
        }
        uint256 oldVersion = _balanceVersions[account];
        if (oldVersion >= targetVersion) {
            return;
        }

        uint256[TRANCHE_COUNT] storage balanceTuple = _balances[account];
        uint256 balanceM = balanceTuple[TRANCHE_M];
        uint256 balanceA = balanceTuple[TRANCHE_A];
        uint256 balanceB = balanceTuple[TRANCHE_B];
        _balanceVersions[account] = targetVersion;

        if (balanceM == 0 && balanceA == 0 && balanceB == 0) {
            // Fast path for an empty account
            return;
        }

        for (uint256 i = oldVersion; i < targetVersion; i++) {
            (balanceM, balanceA, balanceB) = doRebalance(balanceM, balanceA, balanceB, i);
        }
        balanceTuple[TRANCHE_M] = balanceM;
        balanceTuple[TRANCHE_A] = balanceA;
        balanceTuple[TRANCHE_B] = balanceB;

        emit BalancesRebalanced(account, targetVersion, balanceM, balanceA, balanceB);
    }

    /// @dev Transform allowance to a given rebalance version, or to the latest version
    ///      if `targetVersion` is zero. This function does no bound check on `targetVersion`.
    /// @param owner Owner of the allowance to rebalance
    /// @param spender Spender of the allowance to rebalance
    /// @param targetVersion The target rebalance version, or zero for the latest version
    function _refreshAllowance(
        address owner,
        address spender,
        uint256 targetVersion
    ) private {
        if (targetVersion == 0) {
            targetVersion = _rebalanceSize;
        }
        uint256 oldVersion = _allowanceVersions[owner][spender];
        if (oldVersion >= targetVersion) {
            return;
        }

        uint256[TRANCHE_COUNT] storage allowanceTuple = _allowances[owner][spender];
        uint256 allowanceM = allowanceTuple[TRANCHE_M];
        uint256 allowanceA = allowanceTuple[TRANCHE_A];
        uint256 allowanceB = allowanceTuple[TRANCHE_B];
        _allowanceVersions[owner][spender] = targetVersion;

        if (allowanceM == 0 && allowanceA == 0 && allowanceB == 0) {
            // Fast path for an empty allowance
            return;
        }

        for (uint256 i = oldVersion; i < targetVersion; i++) {
            (allowanceM, allowanceA, allowanceB) = _rebalanceAllowance(
                allowanceM,
                allowanceA,
                allowanceB,
                i
            );
        }
        allowanceTuple[TRANCHE_M] = allowanceM;
        allowanceTuple[TRANCHE_A] = allowanceA;
        allowanceTuple[TRANCHE_B] = allowanceB;

        emit AllowancesRebalanced(
            owner,
            spender,
            targetVersion,
            allowanceM,
            allowanceA,
            allowanceB
        );
    }

    function _rebalanceAllowance(
        uint256 allowanceM,
        uint256 allowanceA,
        uint256 allowanceB,
        uint256 index
    )
        private
        view
        returns (
            uint256 newAllowanceM,
            uint256 newAllowanceA,
            uint256 newAllowanceB
        )
    {
        Rebalance storage rebalance = _rebalances[index];

        /// @dev using saturating arithmetic to avoid unconscious overflow revert
        newAllowanceM = allowanceM.saturatingMultiplyDecimal(rebalance.ratioM);
        newAllowanceA = allowanceA.saturatingMultiplyDecimal(rebalance.ratioAB);
        newAllowanceB = allowanceB.saturatingMultiplyDecimal(rebalance.ratioAB);
    }

    receive() external payable {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenUnderlying_","type":"address"},{"internalType":"uint256","name":"underlyingDecimals_","type":"uint256"},{"internalType":"uint256","name":"dailyProtocolFeeRate_","type":"uint256"},{"internalType":"uint256","name":"upperRebalanceThreshold_","type":"uint256"},{"internalType":"uint256","name":"lowerRebalanceThreshold_","type":"uint256"},{"internalType":"address","name":"latestPriceOracle_","type":"address"},{"internalType":"address","name":"aprOracle_","type":"address"},{"internalType":"address","name":"ballot_","type":"address"},{"internalType":"address","name":"feeCollector_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allowanceM","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allowanceA","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allowanceB","type":"uint256"}],"name":"AllowancesRebalanced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tranche","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balanceM","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balanceA","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balanceB","type":"uint256"}],"name":"BalancesRebalanced","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"baseInterestRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"floatingInterestRate","type":"uint256"}],"name":"InterestRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"primaryMarket","type":"address"}],"name":"PrimaryMarketAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"primaryMarket","type":"address"}],"name":"PrimaryMarketRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"day","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ratioM","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ratioA2M","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ratioB2M","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ratioAB","type":"uint256"}],"name":"RebalanceTriggered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"day","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"navM","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"navA","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"navB","type":"uint256"}],"name":"Settled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tranche","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"newPrimaryMarket","type":"address"}],"name":"addNewPrimaryMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"obsoletePrimaryMarket","type":"address"}],"name":"addObsoletePrimaryMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"allShareBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"aprOracle","outputs":[{"internalType":"contract IAprOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ballot","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountM","type":"uint256"},{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"fromIndex","type":"uint256"},{"internalType":"uint256","name":"toIndex","type":"uint256"}],"name":"batchRebalance","outputs":[{"internalType":"uint256","name":"newAmountM","type":"uint256"},{"internalType":"uint256","name":"newAmountA","type":"uint256"},{"internalType":"uint256","name":"newAmountB","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"navM","type":"uint256"},{"internalType":"uint256","name":"navA","type":"uint256"}],"name":"calculateNavB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"currentDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyProtocolFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"uint256","name":"newAllowance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountM","type":"uint256"},{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"doRebalance","outputs":[{"internalType":"uint256","name":"newAmountM","type":"uint256"},{"internalType":"uint256","name":"newAmountA","type":"uint256"},{"internalType":"uint256","name":"newAmountB","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"endOfDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"endOfWeek","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"exchangeActivityStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"extrapolateNav","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundActivityStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrimaryMarketCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getPrimaryMarketMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRebalance","outputs":[{"components":[{"internalType":"uint256","name":"ratioM","type":"uint256"},{"internalType":"uint256","name":"ratioA2M","type":"uint256"},{"internalType":"uint256","name":"ratioB2M","type":"uint256"},{"internalType":"uint256","name":"ratioAB","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct IFund.Rebalance","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRebalanceSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRebalanceTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"historicalInterestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"historicalNavs","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"historicalTotalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"historicalUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"uint256","name":"newAllowance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenM_","type":"address"},{"internalType":"address","name":"tokenA_","type":"address"},{"internalType":"address","name":"tokenB_","type":"address"},{"internalType":"address","name":"primaryMarket_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isExchangeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isFundActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPrimaryMarket","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"primaryMarket","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isPrimaryMarketActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isShare","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestPriceOracle","outputs":[{"internalType":"contract ILatestPriceOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lowerRebalanceThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"targetVersion","type":"uint256"}],"name":"refreshAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"targetVersion","type":"uint256"}],"name":"refreshBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settlementTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"shareAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"shareAllowanceVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"shareBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shareBalanceVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"}],"name":"shareTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenUnderlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trancheWeights","outputs":[{"internalType":"uint256","name":"weightA","type":"uint256"},{"internalType":"uint256","name":"weightB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tranche","type":"uint256"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"uint256","name":"newAllowance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlyingDecimalMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAprOracle","type":"address"}],"name":"updateAprOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newBallot","type":"address"}],"name":"updateBallot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDailyProtocolFeeRate","type":"uint256"}],"name":"updateDailyProtocolFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newLatestPriceOracle","type":"address"}],"name":"updateLatestPriceOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upperRebalanceThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101006040523480156200001257600080fd5b5060405162004a9138038062004a9183398101604081905262000035916200040e565b60006200004162000324565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160601b031960608a901b1660c0526012881115620000ce5760405162461bcd60e51b8152600401620000c590620004c2565b60405180910390fd5b6012889003600a0a60e05266b1a2bc2ec50000871115620001035760405162461bcd60e51b8152600401620000c5906200053b565b6005879055608086905260a0859052600680546001600160a01b038087166001600160a01b03199283161790925560078054868416908316179055600880548584169083161790556009805492841692909116919091179055620001674262000328565b600d81905560065460408051638e15f47360e01b815290516201517f19909301926000926001600160a01b031691638e15f473916004808301926020929190829003018186803b158015620001bb57600080fd5b505afa158015620001d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f69190620004a9565b905080620002185760405162461bcd60e51b8152600401620000c59062000572565b60008281526205001360209081526040808320670de0b6b3a764000080825560018201819055600290910155600754815163d4a3e9d760e01b81529151620002e5946001600160a01b039092169363d4a3e9d793600480820194929392918390030190829087803b1580156200028d57600080fd5b505af1158015620002a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c89190620004a9565b6702c68af0bb1400006200036860201b6200205a1790919060201c565b620500166000620002f68562000384565b815260208101919091526040016000205550600e81905561070801600f5550620005a9975050505050505050565b3390565b600061c4e06201518061c4e0620003516201518086620003ce60201b620020701790919060201c565b03816200035a57fe5b046201518002019050919050565b60008183106200037957816200037b565b825b90505b92915050565b600061c4e062093a8061c4e06201518001620003b262093a8086620003ce60201b620020701790919060201c565b0381620003bb57fe5b0462093a80020162015180019050919050565b6000828201838110156200037b5760405162461bcd60e51b8152600401620000c59062000504565b80516001600160a01b03811681146200037e57600080fd5b60008060008060008060008060006101208a8c0312156200042d578485fd5b620004398b8b620003f6565b985060208a0151975060408a0151965060608a0151955060808a01519450620004668b60a08c01620003f6565b9350620004778b60c08c01620003f6565b9250620004888b60e08c01620003f6565b91506200049a8b6101008c01620003f6565b90509295985092959850929598565b600060208284031215620004bb578081fd5b5051919050565b60208082526022908201527f556e6465726c79696e6720646563696d616c73206c6172676572207468616e20604082015261062760f31b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601c908201527f457863656564206d61782070726f746f636f6c20666565207261746500000000604082015260600190565b60208082526013908201527f5072696365206e6f7420617661696c61626c6500000000000000000000000000604082015260600190565b60805160a05160c05160601c60e0516144786200061960003980610c6e5280610f86528061328f525080610e825280610ecf5280611b3a528061238152806123ce528061251b5280612552528061259f52508061148652806129e8525080611b165280612a1152506144786000f3fe6080604052600436106103d25760003560e01c80638da5cb5b116101fd578063d2c35ce811610118578063ed056e21116100ab578063f2ad414e1161007a578063f2ad414e14610abd578063f2fde38b14610add578063f8c8765e14610afd578063fb954b2014610b1d578063fd4fc82f14610b3d576103d9565b8063ed056e2114610a3d578063eeb80ee914610a5d578063eed9a17914610a7d578063f20f76ba14610a9d576103d9565b8063d90ed209116100e7578063d90ed209146109d3578063db77e2b2146109e8578063e780bf6c146109fd578063e89900bc14610a1d576103d9565b8063d2c35ce81461095e578063d5002f2e1461097e578063d52011c214610993578063d5feac71146109b3576103d9565b8063ac3910a211610190578063bbae20ea1161015f578063bbae20ea146108e9578063c415b95c14610909578063c82c464f1461091e578063cb15d6ec1461093e576103d9565b8063ac3910a214610874578063ad65048f14610889578063b6b7b4de146108a9578063b8a5374d146108c9576103d9565b80639c6ff4f3116101cc5780639c6ff4f3146107f45780639d657d6e146108145780639eea5f6614610834578063a2f9018314610854576103d9565b80638da5cb5b1461079557806393af74e1146107aa57806394990bd8146107bf578063999db3d4146107d4576103d9565b806339359a8a116102ed5780635264e681116102805780636961b4ee1161024f5780636961b4ee14610720578063715018a6146107405780637d76b99114610755578063836a104014610775576103d9565b80635264e681146106b25780635c9302c9146106c75780635f64b55b146106dc5780636809de6b146106f1576103d9565b8063443beba0116102bc578063443beba014610648578063491f7deb1461066857806350fca1bf146106885780635118a1821461069d576103d9565b806339359a8a146105d05780633a56c61c146105f05780633d760bdb146106105780633fa4f59014610625576103d9565b8063170d352311610365578063287ad84911610334578063287ad8491461054e57806332050d8b1461057b57806336cd52a6146105905780633806b4e6146105b0576103d9565b8063170d3523146104d95780631d25d8ef146104f957806323c794cb146105195780632629a2f314610539576103d9565b80630eb67ab5116103a15780630eb67ab51461045e5780630fc63d101461048057806311da60b4146104955780631673e914146104ac576103d9565b806301af6a8c146103de5780630553d60414610414578063094fc921146104295780630a23b9b11461043e576103d9565b366103d957005b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046139ee565b610b5d565b60405161040b9190614326565b60405180910390f35b34801561042057600080fd5b506103fe610c66565b34801561043557600080fd5b506103fe610c6c565b34801561044a57600080fd5b506103fe610459366004613a2f565b610c90565b34801561046a57600080fd5b50610473610d4a565b60405161040b9190613bea565b34801561048c57600080fd5b50610473610d59565b3480156104a157600080fd5b506104aa610d68565b005b3480156104b857600080fd5b506104cc6104c7366004613951565b61122f565b60405161040b9190613c17565b3480156104e557600080fd5b506103fe6104f436600461399b565b61125e565b34801561050557600080fd5b506103fe61051436600461399b565b611269565b34801561052557600080fd5b506104cc61053436600461399b565b61127d565b34801561054557600080fd5b506103fe611285565b34801561055a57600080fd5b5061056e61056936600461399b565b61128b565b60405161040b91906142ec565b34801561058757600080fd5b506103fe6112e9565b34801561059c57600080fd5b506104aa6105ab366004613a86565b6112fa565b3480156105bc57600080fd5b506104aa6105cb36600461386b565b611372565b3480156105dc57600080fd5b506104cc6105eb36600461399b565b611409565b3480156105fc57600080fd5b5061047361060b36600461399b565b611425565b34801561061c57600080fd5b506103fe611432565b34801561063157600080fd5b5061063a611438565b60405161040b92919061432f565b34801561065457600080fd5b506103fe610663366004613886565b61143e565b34801561067457600080fd5b506103fe61068336600461399b565b61146b565b34801561069457600080fd5b506103fe611484565b3480156106a957600080fd5b506103fe6114a8565b3480156106be57600080fd5b506103fe6114ae565b3480156106d357600080fd5b506103fe6114b6565b3480156106e857600080fd5b506104736114bc565b3480156106fd57600080fd5b5061071161070c366004613b21565b6114cb565b60405161040b9392919061433d565b34801561072c57600080fd5b506103fe61073b366004613b00565b611558565b34801561074c57600080fd5b506104aa611579565b34801561076157600080fd5b506103fe610770366004613a86565b611602565b34801561078157600080fd5b506104aa610790366004613acb565b61168e565b3480156107a157600080fd5b506104736116d1565b3480156107b657600080fd5b506104736116e0565b3480156107cb57600080fd5b506104736116ef565b3480156107e057600080fd5b506104cc6107ef36600461386b565b6116fe565b34801561080057600080fd5b506104aa61080f366004613911565b61170b565b34801561082057600080fd5b506103fe61082f36600461399b565b611740565b34801561084057600080fd5b506104aa61084f366004613acb565b61176a565b34801561086057600080fd5b506103fe61086f36600461399b565b6117a8565b34801561088057600080fd5b506104736117bc565b34801561089557600080fd5b506104aa6108a436600461386b565b6117cb565b3480156108b557600080fd5b506104aa6108c436600461386b565b61182c565b3480156108d557600080fd5b506104aa6108e436600461386b565b61188d565b3480156108f557600080fd5b5061071161090436600461386b565b611945565b34801561091557600080fd5b506104736119b9565b34801561092a57600080fd5b506104cc61093936600461386b565b6119c8565b34801561094a57600080fd5b506103fe61095936600461399b565b6119e6565b34801561096a57600080fd5b506104aa61097936600461386b565b611a05565b34801561098a57600080fd5b506103fe611a66565b34801561099f57600080fd5b506103fe6109ae36600461386b565b611a89565b3480156109bf57600080fd5b506103fe6109ce366004613a86565b611aa6565b3480156109df57600080fd5b506103fe611b14565b3480156109f457600080fd5b50610473611b38565b348015610a0957600080fd5b506103fe610a183660046139cb565b611b5c565b348015610a2957600080fd5b506103fe610a3836600461399b565b611c58565b348015610a4957600080fd5b50610711610a58366004613b52565b611c6c565b348015610a6957600080fd5b506104aa610a7836600461386b565b611ca4565b348015610a8957600080fd5b50610711610a9836600461399b565b611d5c565b348015610aa957600080fd5b506104aa610ab8366004613a86565b611d7d565b348015610ac957600080fd5b506104aa610ad836600461399b565b611dbd565b348015610ae957600080fd5b506104aa610af836600461386b565b611e28565b348015610b0957600080fd5b506104aa610b183660046138ba565b611ee8565b348015610b2957600080fd5b50610711610b38366004613b00565b611fad565b348015610b4957600080fd5b506104aa610b58366004613951565b612022565b6001600160a01b038281166000908152620500116020908152604080832093851683529290529081208054600182015460029092015490919086610bb15782610bac5760009350505050610c5f565b610bdc565b6001871415610bcb5781610bac5760009350505050610c5f565b80610bdc5760009350505050610c5f565b6205000b546001600160a01b0380881660009081526205001260209081526040808320938a16835292905220545b81811015610c2d57610c1e85858584612095565b91965094509250600101610c0a565b5087610c3f5783945050505050610c5f565b6001881415610c545782945050505050610c5f565b509250610c5f915050565b9392505050565b61c4e090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610c9b336119c8565b610cc05760405162461bcd60e51b8152600401610cb790614221565b60405180910390fd5b610ccc868585856112fa565b610cdb84866205000b546120fc565b610d338260405180606001604052806028815260200161441b602891396001600160a01b0380881660009081526205001160209081526040808320938c168352929052208960038110610d2a57fe5b0154919061224a565b9050610d4186858784612276565b95945050505050565b6006546001600160a01b031681565b600b546001600160a01b031681565b60026001541415610d8b5760405162461bcd60e51b8152600401610cb79061427e565b6002600155600d546000610da46201517f19830161234d565b905081421015610dc65760405162461bcd60e51b8152600401610cb790613f6d565b60065460408051638e15f47360e01b815290516000926001600160a01b031691638e15f473916004808301926020929190829003018186803b158015610e0b57600080fd5b505afa158015610e1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4391906139b3565b905080610e625760405162461bcd60e51b8152600401610cb790613d54565b610e6a61237f565b610e748382612544565b6000610e7e611a66565b90507f000000000000000000000000000000000000000000000000000000000000000060006001600160a01b038216610eb8575047610f57565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610f04903090600401613bea565b60206040518083038186803b158015610f1c57600080fd5b505afa158015610f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5491906139b3565b90505b6201517f198601600090815262050013602052604081206001015490841561104057610fb785610fb1610faa867f000000000000000000000000000000000000000000000000000000000000000061292b565b899061292b565b90612965565b6201517f19890160009081526205001460205260409020549091501561103b57600087815262050016602052604081205461102b90610ffe90670de0b6b3a7640000612070565b61102561101e600554670de0b6b3a764000061299790919063ffffffff16565b86906129bf565b906129bf565b905080831015611039578092505b505b61105a565b506201517f19870160009081526205001360205260409020545b60006110668284611558565b905061107283826129d7565b156110af5761108389838584612a38565b50670de0b6b3a764000091508190508061109b611a66565b61a8c08a01600e819055600f5595506110bd565b600e8990556107088901600f555b87600d5414156110e8576110d088612b35565b62093a80890160009081526205001660205260409020555b6000898152620500146020908152604080832089905562050015825280832087905562050013909152902082815560018101849055600201819055620151808901600d556205001754156111885760005b62050017548110156111795761117162050017828154811061115757fe5b6000918252602090912001546001600160a01b0316612ce1565b600101611139565b506111886205001760006137ee565b6205001854156111e45760005b62050018548110156111d5576111cd6205001882815481106111b357fe5b6000918252602090912001546001600160a01b0316612d29565b600101611195565b506111e46205001860006137ee565b887f0b88c5bd74fc625a4f651904bf835063c6a449220be319924685261fb7709dd58385846040516112189392919061433d565b60405180910390a250506001805550505050505050565b600061123a836116fe565b80156112485750600e548210155b80156112555750600d5482105b90505b92915050565b60006112588261234d565b620500146020526000908152604090205481565b600e54111590565b600f5481565b61129361380c565b60108261ffff81106112a157fe5b600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050919050565b60006112f56002612d70565b905090565b611303336119c8565b61131f5760405162461bcd60e51b8152600401610cb790614221565b6113284261127d565b6113445760405162461bcd60e51b8152600401610cb790614250565b611352836205000b54612d7b565b611360826205000b54612d7b565b61136c84848484612e97565b50505050565b61137a612fe5565b6001600160a01b031661138b6116d1565b6001600160a01b0316146113b15760405162461bcd60e51b8152600401610cb79061402d565b6001600160a01b03811615806113cb57506113cb81612fe9565b6113e75760405162461bcd60e51b8152600401610cb790613cda565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000600f548210158015611258575050600d54610e0f19011190565b6000611258600283612fef565b600e5481565b60018091565b6001600160a01b039182166000908152620500126020908152604080832093909416825291909152205490565b60006205000c826003811061147c57fe5b015492915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b6205000b5490565b600d5481565b600c546001600160a01b031681565b60008060008060108561ffff81106114df57fe5b60050201905061152c6114ff8260020154886129bf90919063ffffffff16565b61152661151984600101548b6129bf90919063ffffffff16565b8454611526908d906129bf565b90612070565b600382015490945061153e88826129bf565b935061154a87826129bf565b925050509450945094915050565b6000600283028211611571575060028202819003611258565b506000611258565b611581612fe5565b6001600160a01b03166115926116d1565b6001600160a01b0316146115b85760405162461bcd60e51b8152600401610cb79061402d565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061160d336119c8565b6116295760405162461bcd60e51b8152600401610cb790614221565b61163884846205000b546120fc565b6001600160a01b0380851660009081526205001160209081526040808320938716835292905220611678908390876003811061167057fe5b015490612997565b905061168685858584612276565b949350505050565b611697336116fe565b6116b35760405162461bcd60e51b8152600401610cb790613e63565b6116c1826205000b54612d7b565b6116cc838383612ffb565b505050565b6000546001600160a01b031690565b600a546001600160a01b031681565b6007546001600160a01b031681565b60006112586002836130e4565b8015611735576205000b548111156117355760405162461bcd60e51b8152600401610cb790613fb5565b6116cc8383836120fc565b600061c4e062015180816117548583612070565b038161175c57fe5b046201518002019050919050565b611773336116fe565b61178f5760405162461bcd60e51b8152600401610cb790613e63565b61179d826205000b54612d7b565b6116cc8383836130f9565b620500156020526000908152604090205481565b6008546001600160a01b031681565b6117d3612fe5565b6001600160a01b03166117e46116d1565b6001600160a01b03161461180a5760405162461bcd60e51b8152600401610cb79061402d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611834612fe5565b6001600160a01b03166118456116d1565b6001600160a01b03161461186b5760405162461bcd60e51b8152600401610cb79061402d565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b611895612fe5565b6001600160a01b03166118a66116d1565b6001600160a01b0316146118cc5760405162461bcd60e51b8152600401610cb79061402d565b6118d5816116fe565b6118f15760405162461bcd60e51b8152600401610cb790613d11565b6205001780546001810182556000919091527fdc74df4d1bc467265435b4b4806cad304a5e2ba6107cd8428a78b09a9935dc420180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526205000f60209081526040808320805460018201546002909201546205000b54620500109095529285205485948594929392915b818110156119ab5761199c858585846114cb565b91965094509250600101611988565b509297919650945092505050565b6009546001600160a01b031681565b6001600160a01b031660009081526004602052604090205460ff1690565b600060108261ffff81106119f657fe5b60050201600401549050919050565b611a0d612fe5565b6001600160a01b0316611a1e6116d1565b6001600160a01b031614611a445760405162461bcd60e51b8152600401610cb79061402d565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6205000e546205000d546000916112f591611526906205000c855b015490612070565b6001600160a01b0316600090815262050010602052604090205490565b6000611ab1336119c8565b611acd5760405162461bcd60e51b8152600401610cb790614221565b611adc84846205000b546120fc565b6001600160a01b03808516600090815262050011602090815260408083209387168352929052206116789083908760038110611a8157fe5b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03811660009081526205000f602052604081208054600182015460029092015490919085611bb75782158015611b97575081155b8015611ba1575080155b15611bb25760009350505050611258565b611be2565b6001861415611bd15781611bb25760009350505050611258565b80611be25760009350505050611258565b6205000b546001600160a01b03861660009081526205001060205260409020545b81811015611c2657611c17858585846114cb565b91965094509250600101611c03565b5086611c385783945050505050611258565b6001871415611c4d5782945050505050611258565b509250611258915050565b620500166020526000908152604090205481565b60008080845b84811015611c9557611c86898989846114cb565b919a5098509650600101611c72565b50969795965093949350505050565b611cac612fe5565b6001600160a01b0316611cbd6116d1565b6001600160a01b031614611ce35760405162461bcd60e51b8152600401610cb79061402d565b611cec816116fe565b15611d095760405162461bcd60e51b8152600401610cb790614062565b6205001880546001810182556000919091527e9340f16b65397f216be6c1432cec66d2ee87dc6950e7794214e8e4d8716d2c0180546001600160a01b0319166001600160a01b0392909216919091179055565b60009081526205001360205260409020805460018201546002909201549092565b611d86336119c8565b611da25760405162461bcd60e51b8152600401610cb790614221565b611db183836205000b546120fc565b61136c84848484612276565b611dc5612fe5565b6001600160a01b0316611dd66116d1565b6001600160a01b031614611dfc5760405162461bcd60e51b8152600401610cb79061402d565b66b1a2bc2ec50000811115611e235760405162461bcd60e51b8152600401610cb790613e9a565b600555565b611e30612fe5565b6001600160a01b0316611e416116d1565b6001600160a01b031614611e675760405162461bcd60e51b8152600401610cb79061402d565b6001600160a01b038116611e8d5760405162461bcd60e51b8152600401610cb790613da4565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611ef0612fe5565b6001600160a01b0316611f016116d1565b6001600160a01b031614611f275760405162461bcd60e51b8152600401610cb79061402d565b600a546001600160a01b0316158015611f4857506001600160a01b03841615155b611f645760405162461bcd60e51b8152600401610cb7906141aa565b600a80546001600160a01b038087166001600160a01b031992831617909255600b8054868416908316179055600c80549285169290911691909117905561136c848484846131ec565b60008060008062015180600d5403905085811115611fd65762015180611fd287611740565b0390505b600081815262050014602052604081205490611ff483838a8a61323d565b9050600061200384848b613300565b905060006120118383611558565b929a91995091975095505050505050565b801561204c576205000b5481111561204c5760405162461bcd60e51b8152600401610cb790613fb5565b6120568282612d7b565b5050565b60008183106120695781611255565b5090919050565b6000828201838110156112555760405162461bcd60e51b8152600401610cb790613e2c565b60008060008060108561ffff81106120a957fe5b6005020180549091506120bd9089906133d1565b93506120d68160030154886133d190919063ffffffff16565b92506120ef8160030154876133d190919063ffffffff16565b9150509450945094915050565b8061210857506205000b545b6001600160a01b03808416600090815262050012602090815260408083209386168352929052205481811061213d57506116cc565b6001600160a01b0384811660008181526205001160209081526040808320948816808452948252808320805460018201546002830154968652620500128552838620978652969093529220869055909290918215801561219b575081155b80156121a5575080155b156121b45750505050506116cc565b845b868110156121d9576121ca84848484612095565b919550935091506001016121b6565b50828460000155818460010155808460020181905550866001600160a01b0316886001600160a01b03167f8fa162daa8095482092c801a2fbf4a0351846b94fe2d2e0c3ab60dbb9b6693ae888686866040516122389493929190614353565b60405180910390a35050505050505050565b6000818484111561226e5760405162461bcd60e51b8152600401610cb79190613c22565b505050900390565b6001600160a01b03831661229c5760405162461bcd60e51b8152600401610cb79061412f565b6001600160a01b0382166122c25760405162461bcd60e51b8152600401610cb790613dea565b6001600160a01b0380841660009081526205001160209081526040808320938616835292905220819085600381106122f657fe5b0181905550816001600160a01b0316836001600160a01b0316857f69e4aaf23f9318cf40839ac20453d8fbedaac2955eb08a27ae5189cc719257168460405161233f9190614326565b60405180910390a450505050565b600061c4e062093a80620216606123648583612070565b038161236c57fe5b0462093a80020162015180019050919050565b7f000000000000000000000000000000000000000000000000000000000000000060006001600160a01b0382166123b7575047612456565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190612403903090600401613bea565b60206040518083038186803b15801561241b57600080fd5b505afa15801561242f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245391906139b3565b90505b600061246d600554836129bf90919063ffffffff16565b905080156116cc576001600160a01b03831661250a576009546040516000916001600160a01b03169083906124a190613be7565b60006040518083038185875af1925050503d80600081146124de576040519150601f19603f3d011682016040523d82523d6000602084013e6124e3565b606091505b50509050806125045760405162461bcd60e51b8152600401610cb790613f3f565b506116cc565b6009546116cc906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836133e9565b600061254e611a66565b90507f000000000000000000000000000000000000000000000000000000000000000060006001600160a01b038216612588575047612627565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906125d4903090600401613bea565b60206040518083038186803b1580156125ec57600080fd5b505afa158015612600573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262491906139b3565b90505b6201517f1985016000908152620500136020526040812054906126486112e9565b905060005b8181101561292157878688868689600061266688611425565b90506000806000806000856001600160a01b0316635235bf908d8d8c8e8d6040518663ffffffff1660e01b81526004016126a495949392919061436e565b60a060405180830381600087803b1580156126be57600080fd5b505af11580156126d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f69190613b8c565b945094509450945094508385111561271b57612716600087868803612ffb565b612731565b84841115612731576127316000878787036130f9565b8183111561279e57604051630f9ad57560e01b81526001600160a01b03871690630f9ad575906127679085870390600401614326565b600060405180830381600087803b15801561278157600080fd5b505af1158015612795573d6000803e3d6000fd5b50505050612854565b82821115612854576001600160a01b03871661283e57600083830390506000876001600160a01b0316826040516127d490613be7565b60006040518083038185875af1925050503d8060008114612811576040519150601f19603f3d011682016040523d82523d6000602084013e612816565b606091505b50509050806128375760405162461bcd60e51b8152600401610cb790613f3f565b5050612854565b6128546001600160a01b038816878585036133e9565b8015612909576001600160a01b0387166128ef576009546040516000916001600160a01b031690839061288690613be7565b60006040518083038185875af1925050503d80600081146128c3576040519150601f19603f3d011682016040523d82523d6000602084013e6128c8565b606091505b50509050806128e95760405162461bcd60e51b8152600401610cb790613f3f565b50612909565b600954612909906001600160a01b038981169116836133e9565b50506001909a01995061264d98505050505050505050565b5050505050505050565b60008261293a57506000611258565b8282028284828161294757fe5b04146112555760405162461bcd60e51b8152600401610cb790613fec565b60008082116129865760405162461bcd60e51b8152600401610cb790613f08565b81838161298f57fe5b049392505050565b6000828211156129b95760405162461bcd60e51b8152600401610cb790613ed1565b50900390565b6000611255670de0b6b3a7640000610fb1858561292b565b6000806129e4838561343f565b90507f000000000000000000000000000000000000000000000000000000000000000081108061168657507f0000000000000000000000000000000000000000000000000000000000000000109392505050565b612a4061380c565b612a4b848484613457565b6205000b549091508160108261ffff8110612a6257fe5b600502016000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050806001016205000b8190555085817f2646fce1ab948f0064ff11ff23fe1fb2b482174464b400d834c25fe6d564d62e8460000151856020015186604001518760600151604051612aee9493929190614353565b60405180910390a36205000c546205000d546205000e54612b11929190846114cb565b6205000e556205000d556205000c55612b2d3060018301612d7b565b505050505050565b600080612bd2600760009054906101000a90046001600160a01b03166001600160a01b031663d4a3e9d76040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612b8b57600080fd5b505af1158015612b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc391906139b3565b6702c68af0bb1400009061205a565b6008549091506000906001600160a01b031615801590612c025750600854612c02906001600160a01b0316612fe9565b15612c9257600854604051630766a8d960e31b8152612c8f9161016d916001600160a01b0390911690633b3546c890612c3f908990600401614326565b60206040518083038186803b158015612c5757600080fd5b505afa158015612c6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb191906139b3565b90505b6000612c9e8383612070565b90507f41e376fd99913dea7fda140f5c0bd997515b1a181acc58737320322548ec6e728383604051612cd192919061432f565b60405180910390a1949350505050565b612cec6002826134c5565b15612d26576040516001600160a01b038216907f9a3d6285c0c0ecadb50aeb8ce65db861aa9107eff2d78ba69610fe6c7d854b5290600090a25b50565b612d346002826134da565b15612d26576040516001600160a01b038216907f07dcfbc227b93d1631b8861a3f6b9c2b79b5d2ca159fe4f90ced4cc46c97d58e90600090a250565b6000611258826134ef565b80612d8757506205000b545b6001600160a01b0382166000908152620500106020526040902054818110612daf5750612056565b6001600160a01b03831660009081526205000f602090815260408083208054600182015460028301546205001090955292909420869055929182158015612df4575081155b8015612dfe575080155b15612e0d575050505050612056565b845b86811015612e3257612e23848484846114cb565b91955093509150600101612e0f565b508284600001558184600101558084600201556040516001600160a01b038816907fd3f04497b42e4930518874144f53da3a7b078a70d319cb2a210e34f4b8dfd24e90612e86908990879087908790614353565b60405180910390a250505050505050565b6001600160a01b038316612ebd5760405162461bcd60e51b8152600401610cb7906140ea565b6001600160a01b038216612ee35760405162461bcd60e51b8152600401610cb790613c97565b612f25816040518060600160405280602681526020016143f5602691396001600160a01b03861660009081526205000f602052604090208760038110610d2a57fe5b6001600160a01b03841660009081526205000f602052604090208560038110612f4a57fe5b01556001600160a01b03821660009081526205000f60205260409020612f779082908660038110611a8157fe5b6001600160a01b03831660009081526205000f602052604090208560038110612f9c57fe5b0181905550816001600160a01b0316836001600160a01b0316857ff2dbd98d79f00f7aff338b824931d607bfcc63d47307162470f25a055102d3b08460405161233f9190614326565b3390565b3b151590565b600061125583836134f3565b6001600160a01b0382166130215760405162461bcd60e51b8152600401610cb7906142b5565b613034816205000c8560038110611a8157fe5b6205000c846003811061304357fe5b01556001600160a01b03821660009081526205000f602052604090206130709082908560038110611a8157fe5b6001600160a01b03831660009081526205000f60205260409020846003811061309557fe5b01556040516001600160a01b0383169060009085907ff2dbd98d79f00f7aff338b824931d607bfcc63d47307162470f25a055102d3b0906130d7908690614326565b60405180910390a4505050565b6000611255836001600160a01b038416613538565b6001600160a01b03821661311f5760405162461bcd60e51b8152600401610cb7906140a9565b613161816040518060600160405280602281526020016143d3602291396001600160a01b03851660009081526205000f602052604090208660038110610d2a57fe5b6001600160a01b03831660009081526205000f60205260409020846003811061318657fe5b015561319b816205000c856003811061167057fe5b6205000c84600381106131aa57fe5b01556040516000906001600160a01b0384169085907ff2dbd98d79f00f7aff338b824931d607bfcc63d47307162470f25a055102d3b0906130d7908690614326565b6001600160a01b038481166000908152600460205260408082208054600160ff1991821681179092558785168452828420805482168317905593861683529120805490921617905561136c81612d29565b60008084613274575060008581526205001360205260409020548061326d57670de0b6b3a7640000915050611686565b9050611686565b60008681526205001560205260408120546132ba906132b3907f000000000000000000000000000000000000000000000000000000000000000061292b565b859061292b565b905060006132e662015180610fb18a89036132e0600554876129bf90919063ffffffff16565b9061292b565b90506132f481830388612965565b98975050505050505050565b600083815262050013602052604081206001015483613336578061332f57670de0b6b3a7640000915050610c5f565b9050610c5f565b60006133418661234d565b6000818152620500166020526040812054919250906133b59061338290613373906201518090610fb1908c8b0361292b565b670de0b6b3a764000090612070565b61102561101e6133a662015180610fb18d8c0360055461292b90919063ffffffff16565b670de0b6b3a764000090612997565b90508281116133c457826133c6565b805b979650505050505050565b6000611255670de0b6b3a7640000610fb18585613550565b6116cc8363a9059cbb60e01b8484604051602401613408929190613bfe565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613584565b600061125582610fb185670de0b6b3a764000061292b565b61345f61380c565b600080600085851161347d575083915050600281860302600061349b565b50670de0b6b3a7640000915050670de0b6b3a763ffff198085019084015b6040805160a081018252978852602088019290925290860152606085015250504260808301525090565b6000611255836001600160a01b038416613613565b6000611255836001600160a01b0384166136d9565b5490565b815460009082106135165760405162461bcd60e51b8152600401610cb790613c55565b82600001828154811061352557fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b60008261355f57506000611258565b8282028284828161356c57fe5b0414156135795780611686565b506000199392505050565b60606135d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661371b9092919063ffffffff16565b8051909150156116cc57808060200190518101906135f7919061397b565b6116cc5760405162461bcd60e51b8152600401610cb7906141d7565b600081815260018301602052604081205480156136cf578354600019808301919081019060009087908390811061364657fe5b906000526020600020015490508087600001848154811061366357fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061369357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611258565b6000915050611258565b60006136e58383613538565b61157157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611258565b606061168684846000858561372f85612fe9565b61374b5760405162461bcd60e51b8152600401610cb790614173565b60006060866001600160a01b031685876040516137689190613bcb565b60006040518083038185875af1925050503d80600081146137a5576040519150601f19603f3d011682016040523d82523d6000602084013e6137aa565b606091505b50915091506133c6828286606083156137c4575081610c5f565b8251156137d45782518084602001fd5b8160405162461bcd60e51b8152600401610cb79190613c22565b5080546000825590600052602060002090810190612d26919061383b565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b5b80821115613850576000815560010161383c565b5090565b80356001600160a01b038116811461125857600080fd5b60006020828403121561387c578081fd5b6112558383613854565b60008060408385031215613898578081fd5b6138a28484613854565b91506138b18460208501613854565b90509250929050565b600080600080608085870312156138cf578182fd5b6138d98686613854565b93506138e88660208701613854565b92506138f78660408701613854565b91506139068660608701613854565b905092959194509250565b600080600060608486031215613925578283fd5b8335613930816143bd565b92506020840135613940816143bd565b929592945050506040919091013590565b60008060408385031215613963578182fd5b61396d8484613854565b946020939093013593505050565b60006020828403121561398c578081fd5b81518015158114611255578182fd5b6000602082840312156139ac578081fd5b5035919050565b6000602082840312156139c4578081fd5b5051919050565b600080604083850312156139dd578182fd5b823591506138b18460208501613854565b600080600060608486031215613a02578283fd5b833592506020840135613a14816143bd565b91506040840135613a24816143bd565b809150509250925092565b600080600080600060a08688031215613a46578081fd5b85359450613a578760208801613854565b9350613a668760408801613854565b9250613a758760608801613854565b949793965091946080013592915050565b60008060008060808587031215613a9b578384fd5b84359350613aac8660208701613854565b9250613abb8660408701613854565b9396929550929360600135925050565b600080600060608486031215613adf578283fd5b83359250613af08560208601613854565b9150604084013590509250925092565b60008060408385031215613b12578182fd5b50508035926020909101359150565b60008060008060808587031215613b36578182fd5b5050823594602084013594506040840135936060013592509050565b600080600080600060a08688031215613b69578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b600080600080600060a08688031215613ba3578283fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60008251613bdd818460208701614391565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152613c41816040850160208701614391565b601f01601f19169190910160400192915050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252601a908201527f4d757374206265206e756c6c206f72206120636f6e7472616374000000000000604082015260600190565b60208082526023908201527f5468652061646472657373206973206e6f742061207072696d617279206d61726040820152621ad95d60ea1b606082015260800190565b60208082526030908201527f556e6465726c79696e6720707269636520666f7220736574746c656d656e742060408201526f1a5cc81b9bdd081c9958591e481e595d60821b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f46756e64526f6c65733a206f6e6c79207072696d617279206d61726b65740000604082015260600190565b6020808252601c908201527f457863656564206d61782070726f746f636f6c20666565207261746500000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b602080825260149082015273657468207472616e73666572206661696c75726560601b604082015260600190565b60208082526028908201527f5468652063757272656e742074726164696e672064617920646f6573206e6f7460408201526708195b99081e595d60c21b606082015260800190565b6020808252601b908201527f5461726765742076657273696f6e206f7574206f6620626f756e640000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f546865206164647265737320697320616c72656164792061207072696d617279604082015266081b585c9ad95d60ca1b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b602080825260139082015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526015908201527446756e64526f6c65733a206f6e6c7920736861726560581b604082015260600190565b6020808252601490820152735472616e7366657220697320696e61637469766560601b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b60005b838110156143ac578181015183820152602001614394565b8381111561136c5750506000910152565b6001600160a01b0381168114612d2657600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212208c9bdc5d705a7c74246bb9cf0b30341b18819769775cd7a22845201803756d7464736f6c634300060c0033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000190af13c5e390000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000c31f374f86e2fecbeca1c7f3037b1c7efc6cf97b000000000000000000000000fc1f2bbd518e4508aa50ca3a9bc05e6f80b33059000000000000000000000000000000000000000000000000000000000000000000000000000000000000000078d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26

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

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000190af13c5e390000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000c31f374f86e2fecbeca1c7f3037b1c7efc6cf97b000000000000000000000000fc1f2bbd518e4508aa50ca3a9bc05e6f80b33059000000000000000000000000000000000000000000000000000000000000000000000000000000000000000078d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26

-----Decoded View---------------
Arg [0] : tokenUnderlying_ (address): 0x0000000000000000000000000000000000000000
Arg [1] : underlyingDecimals_ (uint256): 18
Arg [2] : dailyProtocolFeeRate_ (uint256): 27534787632697
Arg [3] : upperRebalanceThreshold_ (uint256): 2000000000000000000
Arg [4] : lowerRebalanceThreshold_ (uint256): 500000000000000000
Arg [5] : latestPriceOracle_ (address): 0xc31f374f86e2fecbeca1c7f3037b1c7efc6cf97b
Arg [6] : aprOracle_ (address): 0xfc1f2bbd518e4508aa50ca3a9bc05e6f80b33059
Arg [7] : ballot_ (address): 0x0000000000000000000000000000000000000000
Arg [8] : feeCollector_ (address): 0x78d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [2] : 0000000000000000000000000000000000000000000000000000190af13c5e39
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [4] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [5] : 000000000000000000000000c31f374f86e2fecbeca1c7f3037b1c7efc6cf97b
Arg [6] : 000000000000000000000000fc1f2bbd518e4508aa50ca3a9bc05e6f80b33059
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 00000000000000000000000078d0fbc5bedd3b8e4a47a9dc1636d3119e62ef26


Deployed ByteCode Sourcemap

56429:44642:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77914:1158;;;;;;;;;;-1:-1:-1;77914:1158:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63825:99;;;;;;;;;;;;;:::i;57470:61::-;;;;;;;;;;;;;:::i;80323:559::-;;;;;;;;;;-1:-1:-1;80323:559:0;;;;;:::i;:::-;;:::i;57738:52::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;58153:30::-;;;;;;;;;;;;;:::i;84403:3179::-;;;;;;;;;;;;;:::i;:::-;;65514:309;;;;;;;;;;-1:-1:-1;65514:309:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64842:117::-;;;;;;;;;;-1:-1:-1;64842:117:0;;;;;:::i;:::-;;:::i;60597:56::-;;;;;;;;;;-1:-1:-1;60597:56:0;;;;;:::i;:::-;;:::i;65123:137::-;;;;;;;;;;-1:-1:-1;65123:137:0;;;;;:::i;:::-;;:::i;58739:49::-;;;;;;;;;;;;;:::i;66742:131::-;;;;;;;;;;-1:-1:-1;66742:131:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;54700:119::-;;;;;;;;;;;;;:::i;79920:395::-;;;;;;;;;;-1:-1:-1;79920:395:0;;;;;:::i;:::-;;:::i;88688:240::-;;;;;;;;;;-1:-1:-1;88688:240:0;;;;;:::i;:::-;;:::i;66060:188::-;;;;;;;;;;-1:-1:-1;66060:188:0;;;;;:::i;:::-;;:::i;54558:134::-;;;;;;;;;;-1:-1:-1;54558:134:0;;;;;:::i;:::-;;:::i;58611:45::-;;;;;;;;;;;;;:::i;63621:138::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;79080:205::-;;;;;;;;;;-1:-1:-1;79080:205:0;;;;;:::i;:::-;;:::i;79293:133::-;;;;;;;;;;-1:-1:-1;79293:133:0;;;;;:::i;:::-;;:::i;57216:48::-;;;;;;;;;;;;;:::i;57582:35::-;;;;;;;;;;;;;:::i;67331:109::-;;;;;;;;;;;;;:::i;58488:34::-;;;;;;;;;;;;;:::i;58229:30::-;;;;;;;;;;;;;:::i;72430:754::-;;;;;;;;;;-1:-1:-1;72430:754:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;71401:351::-;;;;;;;;;;-1:-1:-1;71401:351:0;;;;;:::i;:::-;;:::i;26014:148::-;;;;;;;;;;;;;:::i;81585:416::-;;;;;;;;;;-1:-1:-1;81585:416:0;;;;;:::i;:::-;;:::i;79434:235::-;;;;;;;;;;-1:-1:-1;79434:235:0;;;;;:::i;:::-;;:::i;25363:87::-;;;;;;;;;;;;;:::i;58077:30::-;;;;;;;;;;;;;:::i;57835:27::-;;;;;;;;;;;;;:::i;54416:134::-;;;;;;;;;;-1:-1:-1;54416:134:0;;;;;:::i;:::-;;:::i;75620:331::-;;;;;;;;;;-1:-1:-1;75620:331:0;;;;;:::i;:::-;;:::i;64286:181::-;;;;;;;;;;-1:-1:-1;64286:181:0;;;;;:::i;:::-;;:::i;79677:235::-;;;;;;;;;;-1:-1:-1;79677:235:0;;;;;:::i;:::-;;:::i;60903:55::-;;;;;;;;;;-1:-1:-1;60903:55:0;;;;;:::i;:::-;;:::i;57925:21::-;;;;;;;;;;;;;:::i;88559:121::-;;;;;;;;;;-1:-1:-1;88559:121:0;;;;;:::i;:::-;;:::i;88390:161::-;;;;;;;;;;-1:-1:-1;88390:161:0;;;;;:::i;:::-;;:::i;87590:250::-;;;;;;;;;;-1:-1:-1;87590:250:0;;;;;:::i;:::-;;:::i;77115:645::-;;;;;;;;;;-1:-1:-1;77115:645:0;;;;;:::i;:::-;;:::i;57995:36::-;;;;;;;;;;;;;:::i;55340:109::-;;;;;;;;;;-1:-1:-1;55340:109:0;;;;;:::i;:::-;;:::i;67121:141::-;;;;;;;;;;-1:-1:-1;67121:141:0;;;;;:::i;:::-;;:::i;88936:121::-;;;;;;;;;;-1:-1:-1;88936:121:0;;;;;:::i;:::-;;:::i;66335:191::-;;;;;;;;;;;;;:::i;77768:138::-;;;;;;;;;;-1:-1:-1;77768:138:0;;;;;:::i;:::-;;:::i;81171:406::-;;;;;;;;;;-1:-1:-1;81171:406:0;;;;;:::i;:::-;;:::i;57087:48::-;;;;;;;;;;;;;:::i;57323:49::-;;;;;;;;;;;;;:::i;75959:1010::-;;;;;;;;;;-1:-1:-1;75959:1010:0;;;;;:::i;:::-;;:::i;61223:57::-;;;;;;;;;;-1:-1:-1;61223:57:0;;;;;:::i;:::-;;:::i;74092:601::-;;;;;;;;;;-1:-1:-1;74092:601:0;;;;;:::i;:::-;;:::i;87848:230::-;;;;;;;;;;-1:-1:-1;87848:230:0;;;;;:::i;:::-;;:::i;67614:344::-;;;;;;;;;;-1:-1:-1;67614:344:0;;;;;:::i;:::-;;:::i;80890:273::-;;;;;;;;;;-1:-1:-1;80890:273:0;;;;;:::i;:::-;;:::i;88086:296::-;;;;;;;;;;-1:-1:-1;88086:296:0;;;;;:::i;:::-;;:::i;26317:244::-;;;;;;;;;;-1:-1:-1;26317:244:0;;;;;:::i;:::-;;:::i;63050:404::-;;;;;;;;;;-1:-1:-1;63050:404:0;;;;;:::i;:::-;;:::i;68620:778::-;;;;;;;;;;-1:-1:-1;68620:778:0;;;;;:::i;:::-;;:::i;74993:271::-;;;;;;;;;;-1:-1:-1;74993:271:0;;;;;:::i;:::-;;:::i;77914:1158::-;-1:-1:-1;;;;;78094:18:0;;;78053:7;78094:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;:38;;43613:1;78164:38;;;43659:1;78234:38;;;;78094;;78164;78289:20;78285:232;;78330:15;78326:29;;78354:1;78347:8;;;;;;;78326:29;78285:232;;;43613:1;78377:7;:20;78373:144;;;78418:15;78414:29;;78442:1;78435:8;;;;;;;78373:144;78480:15;78476:29;;78504:1;78497:8;;;;;;;78476:29;78544:14;;-1:-1:-1;;;;;78599:25:0;;;78529:12;78599:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;78582:275;78639:4;78635:1;:8;78582:275;;;78704:141;78742:10;78771;78800;78829:1;78704:19;:141::i;:::-;78665:180;;-1:-1:-1;78665:180:0;-1:-1:-1;78665:180:0;-1:-1:-1;78645:3:0;;78582:275;;;-1:-1:-1;78873:20:0;78869:196;;78917:10;78910:17;;;;;;;;78869:196;43613:1;78949:7;:20;78945:120;;;78993:10;78986:17;;;;;;;;78945:120;-1:-1:-1;79043:10:0;-1:-1:-1;79036:17:0;;-1:-1:-1;;79036:17:0;77914:1158;;;;;;:::o;63825:99::-;33405:8;63825:99;:::o;57470:61::-;;;:::o;80323:559::-;80519:20;55267:19;55275:10;55267:7;:19::i;:::-;55259:53;;;;-1:-1:-1;;;55259:53:0;;;;;;;:::i;:::-;;;;;;;;;80552:44:::1;80561:7;80570:6;80578:9;80589:6;80552:8;:44::i;:::-;80609:50;80627:6;80635:7;80644:14;;80609:17;:50::i;:::-;80685:130;80741:6;80685:130;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;80685:19:0;;::::1;;::::0;;;:11:::1;:19;::::0;;;;;;;:28;;::::1;::::0;;;;;;80714:7;80685:37:::1;::::0;::::1;;;;;;::::0;;:130;:41:::1;:130::i;:::-;80670:145;;80826:48;80835:7;80844:6;80852:7;80861:12;80826:8;:48::i;:::-;80323:559:::0;;;;;;;:::o;57738:52::-;;;-1:-1:-1;;;;;57738:52:0;;:::o;58153:30::-;;;-1:-1:-1;;;;;58153:30:0;;:::o;84403:3179::-;28334:1;28940:7;;:19;;28932:63;;;;-1:-1:-1;;;28932:63:0;;;;;;;:::i;:::-;28334:1;29073:7;:18;84468:10:::1;::::0;84454:11:::1;84511:24;-1:-1:-1::0;;84522:12:0;;84511:10:::1;:24::i;:::-;84489:46;;84573:3;84554:15;:22;;84546:75;;;;-1:-1:-1::0;;;84546:75:0::1;;;;;;;:::i;:::-;84648:17;::::0;:34:::1;::::0;;-1:-1:-1;;;84648:34:0;;;;84632:13:::1;::::0;-1:-1:-1;;;;;84648:17:0::1;::::0;:32:::1;::::0;:34:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:17;:34;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84632:50:::0;-1:-1:-1;84701:10:0;84693:71:::1;;;;-1:-1:-1::0;;;84693:71:0::1;;;;;;;:::i;:::-;84777:13;:11;:13::i;:::-;84803:33;84825:3;84830:5;84803:21;:33::i;:::-;84875:19;84897:16;:14;:16::i;:::-;84875:38:::0;-1:-1:-1;84946:15:0::1;84924:12;-1:-1:-1::0;;;;;85006:27:0;::::1;85002:188;;-1:-1:-1::0;85063:21:0::1;85002:188;;;85130:48;::::0;-1:-1:-1;;;85130:48:0;;-1:-1:-1;;;;;85137:15:0::1;85130:33;::::0;::::1;::::0;:48:::1;::::0;85172:4:::1;::::0;85130:48:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85117:61;;85002:188;-1:-1:-1::0;;85231:12:0;;85200::::1;85215:29:::0;;;:15:::1;:29;::::0;;;;43613:1:::1;85215:40;::::0;;85293:15;;85289:777:::1;;85332:71;85391:11:::0;85332:54:::1;85342:43;:10:::0;85357:27:::1;85342:14;:43::i;:::-;85332:5:::0;;:9:::1;:54::i;:::-;:58:::0;::::1;:71::i;:::-;-1:-1:-1::0;;85444:12:0;;85460:1:::1;85422:35:::0;;;:21:::1;:35;::::0;;;;;85325:78;;-1:-1:-1;85422:39:0;85418:484:::1;;85614:15;85745:35:::0;;;:22:::1;:35;::::0;;;;;85632:159:::1;::::0;85745:45:::1;::::0;56693:4:::1;85745:39;:45::i;:::-;85632:74;85675:30;85684:20;;56693:4;85675:8;;:30;;;;:::i;:::-;85632:4:::0;;:42:::1;:74::i;:::-;:112:::0;::::1;:159::i;:::-;85614:177;;85821:7;85814:4;:14;85810:77;;;85860:7;85853:14;;85810:77;85418:484;;85289:777;;;-1:-1:-1::0;;;86030:12:0;;86014:29:::1;::::0;;;:15:::1;:29;::::0;;;;:40;85289:777:::1;86076:12;86091:25;86105:4;86111;86091:13;:25::i;:::-;86076:40;;86133:35;86157:4;86163;86133:23;:35::i;:::-;86129:460;;;86185:40;86203:3;86208:4;86214;86220;86185:17;:40::i;:::-;-1:-1:-1::0;56693:4:0::1;::::0;-1:-1:-1;56693:4:0;;-1:-1:-1;56693:4:0;86332:16:::1;:14;:16::i;:::-;86393:8;86387:14:::0;::::1;86363:21;:38:::0;;;86416:25:::1;:42:::0;86318:30;-1:-1:-1;86129:460:0::1;;;86491:21;:27:::0;;;86567:10:::1;86561:16:::0;::::1;86533:25;:44:::0;86129:460:::1;86619:11;86605:10;;:25;86601:138;;;86695:32;86715:11;86695:19;:32::i;:::-;86684:7;86670:21:::0;::::1;86647:45;::::0;;;:22:::1;:45;::::0;;;;:80;86601:138:::1;86751:26;::::0;;;:21:::1;:26;::::0;;;;;;;:40;;;86802:20:::1;:25:::0;;;;;:38;;;86851:15:::1;:20:::0;;;;;:38;;;43613:1:::1;86900:31:::0;::::1;:38:::0;;;43659:1:::1;86949:31;:38:::0;;;87017:6:::1;87011:12:::0;::::1;86998:10;:25:::0;87040:22:::1;:29:::0;:33;87036:251:::1;;87095:9;87090:142;87114:22;:29:::0;87110:33;::::1;87090:142;;;87169:47;87190:22;87213:1;87190:25;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;87190:25:0::1;87169:20;:47::i;:::-;87145:3;;87090:142;;;-1:-1:-1::0;87246:29:0::1;87253:22;;87246:29;:::i;:::-;87303:17;:24:::0;:28;87299:228:::1;;87353:9;87348:129;87372:17;:24:::0;87368:28;::::1;87348:129;;;87422:39;87440:17;87458:1;87440:20;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;87440:20:0::1;87422:17;:39::i;:::-;87398:3;;87348:129;;;-1:-1:-1::0;87491:24:0::1;87498:17;;87491:24;:::i;:::-;87552:3;87544:30;87557:4;87563;87569;87544:30;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;28290:1:0;29252:22;;-1:-1:-1;;;;;;;84403:3179:0:o;65514:309::-;65653:4;65695:30;65711:13;65695:15;:30::i;:::-;:81;;;;;65755:21;;65742:9;:34;;65695:81;:120;;;;;65805:10;;65793:9;:22;65695:120;65675:140;;65514:309;;;;;:::o;64842:117::-;64903:7;64930:21;64941:9;64930:10;:21::i;60597:56::-;;;;;;;;;;;;;:::o;65123:137::-;65231:21;;-1:-1:-1;65218:34:0;;65123:137::o;58739:49::-;;;;:::o;66742:131::-;66811:16;;:::i;:::-;66847:11;66859:5;66847:18;;;;;;;;;;66840:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66742:131;;;:::o;54700:119::-;54754:7;54781:30;:21;:28;:30::i;:::-;54774:37;;54700:119;:::o;79920:395::-;55267:19;55275:10;55267:7;:19::i;:::-;55259:53;;;;-1:-1:-1;;;55259:53:0;;;;;;;:::i;:::-;80094:29:::1;80107:15;80094:12;:29::i;:::-;80086:62;;;;-1:-1:-1::0;;;80086:62:0::1;;;;;;;:::i;:::-;80159:39;80175:6;80183:14;;80159:15;:39::i;:::-;80209:42;80225:9;80236:14;;80209:15;:42::i;:::-;80262:45;80272:7;80281:6;80289:9;80300:6;80262:9;:45::i;:::-;79920:395:::0;;;;:::o;88688:240::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;88781:23:0;::::1;::::0;;:56:::1;;;88808:29;88827:9;88808:18;:29::i;:::-;88759:132;;;;-1:-1:-1::0;;;88759:132:0::1;;;;;;;:::i;:::-;88902:6;:18:::0;;-1:-1:-1;;;;;;88902:18:0::1;-1:-1:-1::0;;;;;88902:18:0;;;::::1;::::0;;;::::1;::::0;;88688:240::o;66060:188::-;66135:4;66173:25;;66160:9;:38;;:79;;;;-1:-1:-1;;66215:10:0;;-1:-1:-1;;66215:23:0;-1:-1:-1;66202:37:0;66060:188::o;54558:134::-;54626:7;54653:31;:21;54678:5;54653:24;:31::i;58611:45::-;;;;:::o;63621:138::-;56899:1;;63621:138;:::o;79080:205::-;-1:-1:-1;;;;;79243:25:0;;;79211:7;79243:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;79080:205::o;79293:133::-;79368:7;79395:14;79410:7;79395:23;;;;;;;;;;79293:133;-1:-1:-1;;79293:133:0:o;57216:48::-;;;:::o;57582:35::-;;;;:::o;67331:109::-;67418:14;;67331:109;:::o;58488:34::-;;;;:::o;58229:30::-;;;-1:-1:-1;;;;;58229:30:0;;:::o;72430:754::-;72640:18;72673;72706;72752:27;72782:11;72794:5;72782:18;;;;;;;;;;72752:48;;72824:181;72961:43;72985:9;:18;;;72961:7;:23;;:43;;;;:::i;:::-;72824:118;72898:43;72922:9;:18;;;72898:7;:23;;:43;;;;:::i;:::-;72862:16;;72824:55;;:7;;:37;:55::i;:::-;:73;;:118::i;:181::-;73034:17;;;;72811:194;;-1:-1:-1;73088:32:0;:7;73034:17;73088:23;:32::i;:::-;73075:45;-1:-1:-1;73144:32:0;:7;73168;73144:23;:32::i;:::-;73131:45;;72430:754;;;;;;;;;;:::o;71401:351::-;71482:7;56987:19;71588:15;;:34;-1:-1:-1;71584:161:0;;-1:-1:-1;56987:19:0;71647:15;;:33;;;71639:53;;71584:161;-1:-1:-1;71732:1:0;71725:8;;26014:148;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;26121:1:::1;26105:6:::0;;26084:40:::1;::::0;-1:-1:-1;;;;;26105:6:0;;::::1;::::0;26084:40:::1;::::0;26121:1;;26084:40:::1;26152:1;26135:19:::0;;-1:-1:-1;;;;;;26135:19:0::1;::::0;;26014:148::o;81585:416::-;81767:20;55267:19;55275:10;55267:7;:19::i;:::-;55259:53;;;;-1:-1:-1;;;55259:53:0;;;;;;;:::i;:::-;81800:50:::1;81818:6;81826:7;81835:14;;81800:17;:50::i;:::-;-1:-1:-1::0;;;;;81876:19:0;;::::1;;::::0;;;:11:::1;:19;::::0;;;;;;;:28;;::::1;::::0;;;;;;:58:::1;::::0;81918:15;;81905:7;81876:37:::1;::::0;::::1;;;;;;::::0;;:41:::1;:58::i;:::-;81861:73;;81945:48;81954:7;81963:6;81971:7;81980:12;81945:8;:48::i;:::-;81585:416:::0;;;;;;:::o;79434:235::-;54326:27;54342:10;54326:15;:27::i;:::-;54318:70;;;;-1:-1:-1;;;54318:70:0;;;;;;;:::i;:::-;79579:40:::1;79595:7;79604:14;;79579:15;:40::i;:::-;79630:31;79636:7;79645;79654:6;79630:5;:31::i;:::-;79434:235:::0;;;:::o;25363:87::-;25409:7;25436:6;-1:-1:-1;;;;;25436:6:0;25363:87;:::o;58077:30::-;;;-1:-1:-1;;;;;58077:30:0;;:::o;57835:27::-;;;-1:-1:-1;;;;;57835:27:0;;:::o;54416:134::-;54479:4;54503:39;:21;54534:7;54503:30;:39::i;75620:331::-;75768:17;;75764:121;;75827:14;;75810:13;:31;;75802:71;;;;-1:-1:-1;;;75802:71:0;;;;;;;:::i;:::-;75895:48;75913:5;75920:7;75929:13;75895:17;:48::i;64286:181::-;64353:7;33405:8;64425:6;33405:8;64382:21;:9;64425:6;64382:13;:21::i;:::-;:39;64381:50;;;;;;64435:6;64380:61;:79;64373:86;;64286:181;;;:::o;79677:235::-;54326:27;54342:10;54326:15;:27::i;:::-;54318:70;;;;-1:-1:-1;;;54318:70:0;;;;;;;:::i;:::-;79822:40:::1;79838:7;79847:14;;79822:15;:40::i;:::-;79873:31;79879:7;79888;79897:6;79873:5;:31::i;60903:55::-:0;;;;;;;;;;;;;:::o;57925:21::-;;;-1:-1:-1;;;;;57925:21:0;;:::o;88559:121::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;88636:9:::1;:36:::0;;-1:-1:-1;;;;;;88636:36:0::1;-1:-1:-1::0;;;;;88636:36:0;;;::::1;::::0;;;::::1;::::0;;88559:121::o;88390:161::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;88483:17:::1;:60:::0;;-1:-1:-1;;;;;;88483:60:0::1;-1:-1:-1::0;;;;;88483:60:0;;;::::1;::::0;;;::::1;::::0;;88390:161::o;87590:250::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;87693:38:::1;87709:21;87693:15;:38::i;:::-;87685:86;;;;-1:-1:-1::0;;;87685:86:0::1;;;;;;;:::i;:::-;87782:22;:50:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;87782:50:0;;;;;::::1;::::0;;-1:-1:-1;;;;;;87782:50:0::1;-1:-1:-1::0;;;;;87782:50:0;;;::::1;::::0;;;::::1;::::0;;87590:250::o;77115:645::-;-1:-1:-1;;;;;77338:18:0;;77241:7;77338:18;;;:9;:18;;;;;;;;:29;;43613:1;77396:29;;;43659:1;77454:29;;;;77511:14;;77566:16;:25;;;;;;;77241:7;;;;77338:29;;77396;77454;77549:157;77597:4;77593:1;:8;77549:157;;;77653:41;77665:7;77674;77683;77692:1;77653:11;:41::i;:::-;77623:71;;-1:-1:-1;77623:71:0;-1:-1:-1;77623:71:0;-1:-1:-1;77603:3:0;;77549:157;;;-1:-1:-1;77726:7:0;;77735;;-1:-1:-1;77735:7:0;-1:-1:-1;77115:645:0;-1:-1:-1;;;77115:645:0:o;57995:36::-;;;-1:-1:-1;;;;;57995:36:0;;:::o;55340:109::-;-1:-1:-1;;;;;55419:22:0;55395:4;55419:22;;;:13;:22;;;;;;;;;55340:109::o;67121:141::-;67199:7;67226:11;67238:5;67226:18;;;;;;;;;;:28;;;67219:35;;67121:141;;;:::o;88936:121::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;89019:12:::1;:30:::0;;-1:-1:-1;;;;;;89019:30:0::1;-1:-1:-1::0;;;;;89019:30:0;;;::::1;::::0;;;::::1;::::0;;88936:121::o;66335:191::-;66492:25;;66461;;66391:7;;66431:87;;:56;;66492:14;66391:7;66431:25;;;;:29;:56::i;77768:138::-;-1:-1:-1;;;;;77873:25:0;77846:7;77873:25;;;:16;:25;;;;;;;77768:138::o;81171:406::-;81348:20;55267:19;55275:10;55267:7;:19::i;:::-;55259:53;;;;-1:-1:-1;;;55259:53:0;;;;;;;:::i;:::-;81381:50:::1;81399:6;81407:7;81416:14;;81381:17;:50::i;:::-;-1:-1:-1::0;;;;;81457:19:0;;::::1;;::::0;;;:11:::1;:19;::::0;;;;;;;:28;;::::1;::::0;;;;;;:53:::1;::::0;81499:10;;81486:7;81457:37:::1;::::0;::::1;;;;57087:48:::0;;;:::o;57323:49::-;;;:::o;75959:1010::-;-1:-1:-1;;;;;76128:18:0;;76085:7;76128:18;;;:9;:18;;;;;:29;;43613:1;76186:29;;;43659:1;76244:29;;;;76128;;76186;76290:20;76286:255;;76331:12;;:28;;;;-1:-1:-1;76347:12:0;;76331:28;:44;;;;-1:-1:-1;76363:12:0;;76331:44;76327:58;;;76384:1;76377:8;;;;;;;76327:58;76286:255;;;43613:1;76407:7;:20;76403:138;;;76448:12;76444:26;;76469:1;76462:8;;;;;;;76403:138;76507:12;76503:26;;76528:1;76521:8;;;;;;;76503:26;76568:14;;-1:-1:-1;;;;;76623:25:0;;76553:12;76623:25;;;:16;:25;;;;;;76606:157;76654:4;76650:1;:8;76606:157;;;76710:41;76722:7;76731;76740;76749:1;76710:11;:41::i;:::-;76680:71;;-1:-1:-1;76680:71:0;-1:-1:-1;76680:71:0;-1:-1:-1;76660:3:0;;76606:157;;;-1:-1:-1;76779:20:0;76775:187;;76823:7;76816:14;;;;;;;;76775:187;43613:1;76852:7;:20;76848:114;;;76896:7;76889:14;;;;;;;;76848:114;-1:-1:-1;76943:7:0;-1:-1:-1;76936:14:0;;-1:-1:-1;;76936:14:0;61223:57;;;;;;;;;;;;;:::o;74092:601::-;74337:18;;;74466:9;74449:144;74481:7;74477:1;:11;74449:144;;;74540:41;74552:7;74561;74570;74579:1;74540:11;:41::i;:::-;74510:71;;-1:-1:-1;74510:71:0;-1:-1:-1;74510:71:0;-1:-1:-1;74490:3:0;;74449:144;;;-1:-1:-1;74616:7:0;;74647;;-1:-1:-1;74678:7:0;;74092:601;-1:-1:-1;;;;74092:601:0:o;87848:230::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;87942:33:::1;87958:16;87942:15;:33::i;:::-;87941:34;87933:86;;;;-1:-1:-1::0;;;87933:86:0::1;;;;;;;:::i;:::-;88030:17;:40:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;88030:40:0;;;;;::::1;::::0;;-1:-1:-1;;;;;;88030:40:0::1;-1:-1:-1::0;;;;;88030:40:0;;;::::1;::::0;;;::::1;::::0;;87848:230::o;67614:344::-;67715:7;67816:20;;;:15;:20;;;;;:31;;43613:1;67862:31;;;43659:1;67908:31;;;;67816;;67614:344::o;80890:273::-;55267:19;55275:10;55267:7;:19::i;:::-;55259:53;;;;-1:-1:-1;;;55259:53:0;;;;;;;:::i;:::-;81054:49:::1;81072:5;81079:7;81088:14;;81054:17;:49::i;:::-;81114:41;81123:7;81132:5;81139:7;81148:6;81114:8;:41::i;88086:296::-:0;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;56830:7:::1;88207:23;:54;;88185:132;;;;-1:-1:-1::0;;;88185:132:0::1;;;;;;;:::i;:::-;88328:20;:46:::0;88086:296::o;26317:244::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;26406:22:0;::::1;26398:73;;;;-1:-1:-1::0;;;26398:73:0::1;;;;;;;:::i;:::-;26508:6;::::0;;26487:38:::1;::::0;-1:-1:-1;;;;;26487:38:0;;::::1;::::0;26508:6;::::1;::::0;26487:38:::1;::::0;::::1;26536:6;:17:::0;;-1:-1:-1;;;;;;26536:17:0::1;-1:-1:-1::0;;;;;26536:17:0;;;::::1;::::0;;;::::1;::::0;;26317:244::o;63050:404::-;25594:12;:10;:12::i;:::-;-1:-1:-1;;;;;25583:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25583:23:0;;25575:68;;;;-1:-1:-1;;;25575:68:0;;;;;;;:::i;:::-;63226:6:::1;::::0;-1:-1:-1;;;;;63226:6:0::1;:20:::0;:45;::::1;;;-1:-1:-1::0;;;;;;63250:21:0;::::1;::::0;::::1;63226:45;63218:77;;;;-1:-1:-1::0;;;63218:77:0::1;;;;;;;:::i;:::-;63306:6;:16:::0;;-1:-1:-1;;;;;63306:16:0;;::::1;-1:-1:-1::0;;;;;;63306:16:0;;::::1;;::::0;;;63333:6:::1;:16:::0;;;;::::1;::::0;;::::1;;::::0;;63360:6:::1;:16:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;63387:59:::1;63315:7:::0;63342;63369;63431:14;63387:16:::1;:59::i;68620:778::-:0;68760:7;68782;68804;68913:19;68948:6;68935:10;;:19;68913:41;;68983:9;68969:11;:23;68965:98;;;69045:6;69023:19;69032:9;69023:8;:19::i;:::-;:28;69009:42;;68965:98;69073:22;69098:34;;;:21;:34;;;;;;;69158:63;69120:11;69098:34;69204:9;69215:5;69158:16;:63::i;:::-;69143:78;;69232:12;69247:56;69264:11;69277:14;69293:9;69247:16;:56::i;:::-;69232:71;;69314:12;69329:25;69343:4;69349;69329:13;:25::i;:::-;69373:4;;69379;;-1:-1:-1;69373:4:0;;-1:-1:-1;68620:778:0;-1:-1:-1;;;;;;68620:778:0:o;74993:271::-;75090:17;;75086:121;;75149:14;;75132:13;:31;;75124:71;;;;-1:-1:-1;;;75124:71:0;;;;;;;:::i;:::-;75217:39;75233:7;75242:13;75217:15;:39::i;:::-;74993:271;;:::o;22753:106::-;22811:7;22842:1;22838;:5;:13;;22850:1;22838:13;;;-1:-1:-1;22846:1:0;;22753:106;-1:-1:-1;22753:106:0:o;5667:179::-;5725:7;5757:5;;;5781:6;;;;5773:46;;;;-1:-1:-1;;;5773:46:0;;;;;;;:::i;100314:717::-;100524:21;100560;100596;100645:27;100675:11;100687:5;100675:18;;;;;;;;;;100842:16;;100675:18;;-1:-1:-1;100805:54:0;;:10;;:36;:54::i;:::-;100789:70;;100886:55;100923:9;:17;;;100886:10;:36;;:55;;;;:::i;:::-;100870:71;;100968:55;101005:9;:17;;;100968:10;:36;;:55;;;;:::i;:::-;100952:71;;100314:717;;;;;;;;;:::o;98855:1451::-;98994:18;98990:81;;-1:-1:-1;99045:14:0;;98990:81;-1:-1:-1;;;;;99102:25:0;;;99081:18;99102:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;99151:27;;;99147:66;;99195:7;;;99147:66;-1:-1:-1;;;;;99273:18:0;;;99225:45;99273:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;99332:25;;43613:1;99389:25;;;43659:1;99446:25;;;99482;;;:18;:25;;;;;:34;;;;;;;;;:50;;;99273:27;;99332:25;;99549:15;;:34;;;;-1:-1:-1;99568:15:0;;99549:34;:53;;;;-1:-1:-1;99587:15:0;;99549:53;99545:141;;;99668:7;;;;;;;99545:141;99715:10;99698:260;99731:13;99727:1;:17;99698:260;;;99805:141;99843:10;99872;99901;99930:1;99805:19;:141::i;:::-;99766:180;;-1:-1:-1;99766:180:0;-1:-1:-1;99766:180:0;-1:-1:-1;99746:3:0;;99698:260;;;-1:-1:-1;99996:10:0;99968:14;43567:1;99968:25;:38;100045:10;100017:14;43613:1;100017:25;:38;100094:10;100066:14;43659:1;100066:25;:38;;;;100177:7;-1:-1:-1;;;;;100122:176:0;100157:5;-1:-1:-1;;;;;100122:176:0;;100199:13;100227:10;100252;100277;100122:176;;;;;;;;;:::i;:::-;;;;;;;;98855:1451;;;;;;;;:::o;8494:166::-;8580:7;8616:12;8608:6;;;;8600:29;;;;-1:-1:-1;;;8600:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;8647:5:0;;;8494:166::o;83542:417::-;-1:-1:-1;;;;;83695:19:0;;83687:68;;;;-1:-1:-1;;;83687:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;83774:21:0;;83766:68;;;;-1:-1:-1;;;83766:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;83847:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;83886:6;;83875:7;83847:36;;;;;;;;:45;;;;83935:7;-1:-1:-1;;;;;83910:41:0;83928:5;-1:-1:-1;;;;;83910:41:0;83919:7;83910:41;83944:6;83910:41;;;;;;:::i;:::-;;;;;;;;83542:417;;;;:::o;33780:251::-;33842:7;33405:8;33939:7;33910:24;33884:22;:9;33939:7;33884:13;:22::i;:::-;:51;33883:63;;;;;;33963:7;33882:88;:119;34017:6;33882:141;33862:161;;33780:251;;;:::o;89269:824::-;89333:15;89311:12;-1:-1:-1;;;;;89400:27:0;;89396:202;;-1:-1:-1;89464:21:0;89396:202;;;89538:48;;-1:-1:-1;;;89538:48:0;;-1:-1:-1;;;;;89545:15:0;89538:33;;;;:48;;89580:4;;89538:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89518:68;;89396:202;89608:11;89622:55;89656:20;;89622:17;:33;;:55;;;;:::i;:::-;89608:69;-1:-1:-1;89692:7:0;;89688:398;;-1:-1:-1;;;;;89720:27:0;;89716:359;;89860:12;;89844:51;;89826:12;;-1:-1:-1;;;;;89860:12:0;;89887:3;;89844:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89825:70;;;89922:7;89914:40;;;;-1:-1:-1;;;89914:40:0;;;;;;;:::i;:::-;89716:359;;;;90040:12;;89995:64;;-1:-1:-1;;;;;90002:15:0;89995:36;;;90040:12;90055:3;89995:36;:64::i;90181:2779::-;90259:19;90281:16;:14;:16::i;:::-;90259:38;-1:-1:-1;90330:15:0;90308:12;-1:-1:-1;;;;;90390:27:0;;90386:188;;-1:-1:-1;90447:21:0;90386:188;;;90514:48;;-1:-1:-1;;;90514:48:0;;-1:-1:-1;;;;;90521:15:0;90514:33;;;;:48;;90556:4;;90514:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;90501:61;;90386:188;-1:-1:-1;;90619:12:0;;90584:16;90603:29;;;:15;:29;;;;;:40;;90683:23;:21;:23::i;:::-;90654:52;;90722:9;90717:2236;90741:18;90737:1;:22;90717:2236;;;90796:3;90871:11;90948:5;91024:10;91069:8;91108:5;90781:12;91163:25;91186:1;91163:22;:25::i;:::-;91128:61;;91223:20;91262;91301:26;91346:28;91393:11;91422:2;-1:-1:-1;;;;;91422:9:0;;91432:4;91438:12;91452:11;91465:6;91473:9;91422:61;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91204:279;;;;;;;;;;91517:12;91502;:27;91498:258;;;91550:58;43567:1;91575:2;91595:12;91580;:27;91550:5;:58::i;:::-;91498:258;;;91649:12;91634;:27;91630:126;;;91682:58;43567:1;91707:2;91727:12;91712;:27;91682:5;:58::i;:::-;91795:20;91774:18;:41;91770:735;;;91836:60;;-1:-1:-1;;;91836:60:0;;-1:-1:-1;;;;;91836:17:0;;;;;:60;;91854:41;;;;91836:60;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91770:735;;;91945:18;91922:20;:41;91918:587;;;-1:-1:-1;;;;;91988:28:0;;91984:506;;92139:14;92179:18;92156:20;:41;92139:58;;92221:12;92255:2;-1:-1:-1;;;;;92239:25:0;92272:6;92239:44;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92220:63;;;92314:7;92306:40;;;;-1:-1:-1;;;92306:40:0;;;;;;;:::i;:::-;91984:506;;;;;92395:75;-1:-1:-1;;;;;92395:19:0;;92423:2;92428:41;;;92395:19;:75::i;:::-;92523:7;;92519:423;;-1:-1:-1;;;;;92555:28:0;;92551:376;;92713:12;;92697:51;;92679:12;;-1:-1:-1;;;;;92713:12:0;;92740:3;;92697:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92678:70;;;92779:7;92771:40;;;;-1:-1:-1;;;92771:40:0;;;;;;;:::i;:::-;92551:376;;;;92888:12;;92860:47;;-1:-1:-1;;;;;92860:19:0;;;;92888:12;92903:3;92860:19;:47::i;:::-;-1:-1:-1;;90761:3:0;;;;;-1:-1:-1;90717:2236:0;;-1:-1:-1;;;;;;;;;90717:2236:0;;;90181:2779;;;;;;;:::o;6546:220::-;6604:7;6628:6;6624:20;;-1:-1:-1;6643:1:0;6636:8;;6624:20;6667:5;;;6671:1;6667;:5;:1;6691:5;;;;;:10;6683:56;;;;-1:-1:-1;;;6683:56:0;;;;;;;:::i;7244:153::-;7302:7;7334:1;7330;:5;7322:44;;;;-1:-1:-1;;;7322:44:0;;;;;;;:::i;:::-;7388:1;7384;:5;;;;;;;7244:153;-1:-1:-1;;;7244:153:0:o;6129:158::-;6187:7;6220:1;6215;:6;;6207:49;;;;-1:-1:-1;;;6207:49:0;;;;;;;:::i;:::-;-1:-1:-1;6274:5:0;;;6129:158::o;30480:207::-;30550:7;30661:18;29750:21;30661:8;:1;30667;30661:5;:8::i;93404:247::-;93493:4;;93527:30;:10;93552:4;93527:24;:30::i;:::-;93510:47;;93584:23;93575:6;:32;:68;;;-1:-1:-1;93620:23:0;-1:-1:-1;93611:32:0;93568:75;-1:-1:-1;;;93404:247:0:o;94063:934::-;94213:26;;:::i;:::-;94242:43;94262:4;94268;94274:10;94242:19;:43::i;:::-;94314:14;;94213:72;;-1:-1:-1;94213:72:0;94339:11;94314:14;94339:20;;;;;;;;;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94399:7;94409:1;94399:11;94382:14;:28;;;;94481:3;94459:7;94426:198;94499:9;:16;;;94530:9;:18;;;94563:9;:18;;;94596:9;:17;;;94426:198;;;;;;;;;:::i;:::-;;;;;;;;94797:14;:25;94837;;94877;;94771:164;;94797:25;94837;94917:7;94771:11;:164::i;:::-;94732:25;94637:298;94692:25;94637:298;94652:14;94637:298;94946:43;94970:4;43613:1;94977:11;;94946:15;:43::i;:::-;94063:934;;;;;;:::o;96454:517::-;96514:7;96534:24;96561:42;96583:9;;;;;;;;;-1:-1:-1;;;;;96583:9:0;-1:-1:-1;;;;;96583:17:0;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56749:6;;96561:21;:42::i;:::-;96657:6;;96534:69;;-1:-1:-1;96614:28:0;;-1:-1:-1;;;;;96657:6:0;:20;;;;:50;;-1:-1:-1;96700:6:0;;96681:26;;-1:-1:-1;;;;;96700:6:0;96681:18;:26::i;:::-;96653:142;;;96755:6;;96747:27;;-1:-1:-1;;;96747:27:0;;:36;;96779:3;;-1:-1:-1;;;;;96755:6:0;;;;96747:21;;:27;;96769:4;;96747:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:36::-;96724:59;;96653:142;96805:12;96820:42;:16;96841:20;96820;:42::i;:::-;96805:57;;96880:59;96900:16;96918:20;96880:59;;;;;;;:::i;:::-;;;;;;;;96959:4;96454:517;-1:-1:-1;;;;96454:517:0:o;55023:196::-;55100:43;:21;55129:13;55100:28;:43::i;:::-;55096:116;;;55165:35;;-1:-1:-1;;;;;55165:35:0;;;;;;;;55096:116;55023:196;:::o;54827:188::-;54901:40;:21;54927:13;54901:25;:40::i;:::-;54897:111;;;54963:33;;-1:-1:-1;;;;;54963:33:0;;;;;;;;54827:188;:::o;51217:117::-;51280:7;51307:19;51315:3;51307:7;:19::i;97319:1132::-;97407:18;97403:81;;-1:-1:-1;97458:14:0;;97403:81;-1:-1:-1;;;;;97515:25:0;;97494:18;97515:25;;;:16;:25;;;;;;97555:27;;;97551:66;;97599:7;;;97551:66;-1:-1:-1;;;;;97675:18:0;;97629:43;97675:18;;;:9;:18;;;;;;;;97723:23;;43613:1;97776:23;;;43659:1;97829:23;;;97863:16;:25;;;;;;;:41;;;97675:18;97723:23;97921:13;;:30;;;;-1:-1:-1;97938:13:0;;97921:30;:47;;;;-1:-1:-1;97955:13:0;;97921:47;97917:133;;;98032:7;;;;;;;97917:133;98079:10;98062:157;98095:13;98091:1;:17;98062:157;;;98163:44;98175:8;98185;98195;98205:1;98163:11;:44::i;:::-;98130:77;;-1:-1:-1;98130:77:0;-1:-1:-1;98130:77:0;-1:-1:-1;98110:3:0;;98062:157;;;-1:-1:-1;98255:8:0;98229:12;43567:1;98229:23;:34;98300:8;98274:12;43613:1;98274:23;:34;98345:8;98319:12;43659:1;98319:23;:34;98371:72;;-1:-1:-1;;;;;98371:72:0;;;;;;;98399:13;;98414:8;;98424;;98434;;98371:72;:::i;:::-;;;;;;;;97319:1132;;;;;;;:::o;82009:614::-;-1:-1:-1;;;;;82166:20:0;;82158:70;;;;-1:-1:-1;;;82158:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;82247:23:0;;82239:71;;;;-1:-1:-1;;;82239:71:0;;;;;;;:::i;:::-;82352:117;82397:6;82352:117;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;82352:17:0;;;;;;:9;:17;;;;;82370:7;82352:26;;;;;;:117;-1:-1:-1;;;;;82323:17:0;;;;;;:9;:17;;;;;82341:7;82323:26;;;;;;;;:146;-1:-1:-1;;;;;82512:20:0;;;;;;:9;:20;;;;;:41;;82546:6;;82533:7;82512:29;;;;;;:41;-1:-1:-1;;;;;82480:20:0;;;;;;:9;:20;;;;;82501:7;82480:29;;;;;;;;:73;;;;82597:9;-1:-1:-1;;;;;82571:44:0;82589:6;-1:-1:-1;;;;;82571:44:0;82580:7;82571:44;82608:6;82571:44;;;;;;:::i;23828:106::-;23916:10;23828:106;:::o;11122:422::-;11489:20;11528:8;;;11122:422::o;51678:158::-;51752:7;51803:22;51807:3;51819:5;51803:3;:22::i;82631:409::-;-1:-1:-1;;;;;82757:21:0;;82749:65;;;;-1:-1:-1;;;82749:65:0;;;;;;;:::i;:::-;82853:35;82881:6;82853:14;82868:7;82853:23;;;;;;:35;82827:14;82842:7;82827:23;;;;;;;;:61;-1:-1:-1;;;;;82929:18:0;;;;;;:9;:18;;;;;:39;;82961:6;;82948:7;82929:27;;;;;;:39;-1:-1:-1;;;;;82899:18:0;;;;;;:9;:18;;;;;82918:7;82899:27;;;;;;;;:69;82986:46;;-1:-1:-1;;;;;82986:46:0;;;83012:1;;82995:7;;82986:46;;;;83025:6;;82986:46;:::i;:::-;;;;;;;;82631:409;;;:::o;50964:167::-;51044:4;51068:55;51078:3;-1:-1:-1;;;;;51098:23:0;;51068:9;:55::i;83048:486::-;-1:-1:-1;;;;;83174:21:0;;83166:67;;;;-1:-1:-1;;;83166:67:0;;;;;;;:::i;:::-;83276:114;83322:6;83276:114;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;83276:18:0;;;;;;:9;:18;;;;;83295:7;83276:27;;;;;;:114;-1:-1:-1;;;;;83246:18:0;;;;;;:9;:18;;;;;83265:7;83246:27;;;;;;;;:144;83427:35;83455:6;83427:14;83442:7;83427:23;;;;;;:35;83401:14;83416:7;83401:23;;;;;;;;:61;83480:46;;83515:1;;-1:-1:-1;;;;;83480:46:0;;;83489:7;;83480:46;;;;83519:6;;83480:46;:::i;53943:327::-;-1:-1:-1;;;;;54107:22:0;;;;;;;:13;:22;;;;;;:29;;54132:4;-1:-1:-1;;54107:29:0;;;;;;;;54147:22;;;;;;;;:29;;;;;;;;54187:22;;;;;;;:29;;;;;;;;54229:33;54247:14;54229:17;:33::i;69406:996::-;69576:7;;69623:19;69619:395;;-1:-1:-1;69740:28:0;;;;:15;:28;;;;;:39;;69794:209;;56693:4;69924:11;;;;;69794:209;69983:4;-1:-1:-1;69976:11:0;;69794:209;70024:18;70069:33;;;:20;:33;;;;;;70045:101;;70069:66;;70107:27;70069:37;:66::i;:::-;70045:5;;:9;:101::i;:::-;70024:122;;70157:18;70178:131;70302:6;70178:105;70271:11;70259:9;:23;70178:62;70219:20;;70178:10;:40;;:62;;;;:::i;:::-;:80;;:105::i;:131::-;70157:152;-1:-1:-1;70327:45:0;70328:23;;;70357:14;70327:29;:45::i;:::-;70320:52;69406:996;-1:-1:-1;;;;;;;;69406:996:0:o;70410:983::-;70556:7;70591:28;;;:15;:28;;;;;43613:1;70591:39;;70645:19;70641:334;;70759:9;70755:209;;56693:4;70885:11;;;;;70755:209;70944:4;-1:-1:-1;70937:11:0;;70755:209;70987:12;71002:23;71013:11;71002:10;:23::i;:::-;71036:15;71251:28;;;:22;:28;;;;;;70987:38;;-1:-1:-1;71036:15:0;71054:282;;71242:79;;71251:69;;71313:6;;71251:57;;71284:23;;;71251:32;:57::i;:69::-;56693:4;;71242:8;:79::i;:::-;71054:139;71107:71;71116:61;71170:6;71116:49;71153:11;71141:9;:23;71116:20;;:24;;:49;;;;:::i;:61::-;56693:4;;71107:8;:71::i;71054:282::-;71036:300;;71364:4;71354:7;:14;:31;;71381:4;71354:31;;;71371:7;71354:31;71347:38;70410:983;-1:-1:-1;;;;;;;70410:983:0:o;32845:228::-;32925:7;33036:29;29750:21;33036:19;33050:1;33053;33036:13;:19::i;19230:177::-;19313:86;19333:5;19363:23;;;19388:2;19392:5;19340:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;19340:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;19340:58:0;-1:-1:-1;;;;;;19340:58:0;;;;;;;;;;19313:19;:86::i;31360:195::-;31428:7;31529:18;31545:1;31529:11;:1;29750:21;31529:5;:11::i;95597:849::-;95730:16;;:::i;:::-;95759:15;95785:16;95812;95857:4;95843:10;:18;95839:358;;-1:-1:-1;95920:10:0;;-1:-1:-1;;56987:19:0;95958:17;;;95957:30;96025:1;95839:358;;;-1:-1:-1;56693:4:0;;-1:-1:-1;;;;96131:11:0;;;;96168:17;;95839:358;96227:211;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;96407:15:0;96227:211;;;;-1:-1:-1;96227:211:0;95597:849::o;50720:158::-;50793:4;50817:53;50825:3;-1:-1:-1;;;;;50845:23:0;;50817:7;:53::i;50392:152::-;50462:4;50486:50;50491:3;-1:-1:-1;;;;;50511:23:0;;50486:4;:50::i;47891:109::-;47974:18;;47891:109::o;48344:204::-;48439:18;;48411:7;;48439:26;-1:-1:-1;48431:73:0;;;;-1:-1:-1;;;48431:73:0;;;;;;;:::i;:::-;48522:3;:11;;48534:5;48522:18;;;;;;;;;;;;;;;;48515:25;;48344:204;;;;:::o;47676:129::-;47749:4;47773:19;;;:12;;;;;:19;;;;;;:24;;;47676:129::o;32615:222::-;32683:7;32707:6;32703:47;;-1:-1:-1;32737:1:0;32730:8;;32703:47;32772:5;;;32776:1;32772;:5;:1;32795:5;;;;;:10;;:34;;32828:1;32795:34;;;-1:-1:-1;;;32808:17:0;32615:222;-1:-1:-1;;;32615:222:0:o;21535:761::-;21959:23;21985:69;22013:4;21985:69;;;;;;;;;;;;;;;;;21993:5;-1:-1:-1;;;;;21985:27:0;;;:69;;;;;:::i;:::-;22069:17;;21959:95;;-1:-1:-1;22069:21:0;22065:224;;22211:10;22200:30;;;;;;;;;;;;:::i;:::-;22192:85;;;;-1:-1:-1;;;22192:85:0;;;;;;;:::i;46046:1544::-;46112:4;46251:19;;;:12;;;:19;;;;;;46287:15;;46283:1300;;46722:18;;-1:-1:-1;;46673:14:0;;;;46722:22;;;;46649:21;;46722:3;;:22;;47009;;;;;;;;;;;;;;46989:42;;47155:9;47126:3;:11;;47138:13;47126:26;;;;;;;;;;;;;;;;;;;:38;;;;47232:23;;;47274:1;47232:12;;;:23;;;;;;47258:17;;;47232:43;;47384:17;;47232:3;;47384:17;;;;;;;;;;;;;;;;;;;;;;47479:3;:12;;:19;47492:5;47479:19;;;;;;;;;;;47472:26;;;47522:4;47515:11;;;;;;;;46283:1300;47566:5;47559:12;;;;;45456:414;45519:4;45541:21;45551:3;45556:5;45541:9;:21::i;:::-;45536:327;;-1:-1:-1;45579:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;45762:18;;45740:19;;;:12;;;:19;;;;;;:40;;;;45795:11;;14040:195;14143:12;14175:52;14197:6;14205:4;14211:1;14214:12;14143;15344:18;15355:6;15344:10;:18::i;:::-;15336:60;;;;-1:-1:-1;;;15336:60:0;;;;;;;:::i;:::-;15470:12;15484:23;15511:6;-1:-1:-1;;;;;15511:11:0;15531:5;15539:4;15511:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15469:75;;;;15562:52;15580:7;15589:10;15601:12;17747;17776:7;17772:595;;;-1:-1:-1;17807:10:0;17800:17;;17772:595;17921:17;;:21;17917:439;;18184:10;18178:17;18245:15;18232:10;18228:2;18224:19;18217:44;18132:148;18327:12;18320:20;;-1:-1:-1;;;18320:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;5:130::-;72:20;;-1:-1;;;;;40428:54;;42017:35;;42007:2;;42066:1;;42056:12;555:241;;659:2;647:9;638:7;634:23;630:32;627:2;;;-1:-1;;665:12;627:2;727:53;772:7;748:22;727:53;:::i;803:366::-;;;924:2;912:9;903:7;899:23;895:32;892:2;;;-1:-1;;930:12;892:2;992:53;1037:7;1013:22;992:53;:::i;:::-;982:63;;1100:53;1145:7;1082:2;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;886:283;;;;;:::o;1176:617::-;;;;;1331:3;1319:9;1310:7;1306:23;1302:33;1299:2;;;-1:-1;;1338:12;1299:2;1400:53;1445:7;1421:22;1400:53;:::i;:::-;1390:63;;1508:53;1553:7;1490:2;1533:9;1529:22;1508:53;:::i;:::-;1498:63;;1616:53;1661:7;1598:2;1641:9;1637:22;1616:53;:::i;:::-;1606:63;;1724:53;1769:7;1706:2;1749:9;1745:22;1724:53;:::i;:::-;1714:63;;1293:500;;;;;;;:::o;1800:491::-;;;;1938:2;1926:9;1917:7;1913:23;1909:32;1906:2;;;-1:-1;;1944:12;1906:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;1996:63;-1:-1;2096:2;2135:22;;72:20;97:33;72:20;97:33;:::i;:::-;1900:391;;2104:63;;-1:-1;;;2204:2;2243:22;;;;344:20;;1900:391::o;2298:366::-;;;2419:2;2407:9;2398:7;2394:23;2390:32;2387:2;;;-1:-1;;2425:12;2387:2;2487:53;2532:7;2508:22;2487:53;:::i;:::-;2477:63;2577:2;2616:22;;;;344:20;;-1:-1;;;2381:283::o;2671:257::-;;2783:2;2771:9;2762:7;2758:23;2754:32;2751:2;;;-1:-1;;2789:12;2751:2;223:6;217:13;42163:5;40340:13;40333:21;42141:5;42138:32;42128:2;;-1:-1;;42174:12;2935:241;;3039:2;3027:9;3018:7;3014:23;3010:32;3007:2;;;-1:-1;;3045:12;3007:2;-1:-1;344:20;;3001:175;-1:-1;3001:175::o;3183:263::-;;3298:2;3286:9;3277:7;3273:23;3269:32;3266:2;;;-1:-1;;3304:12;3266:2;-1:-1;492:13;;3260:186;-1:-1;3260:186::o;3453:366::-;;;3574:2;3562:9;3553:7;3549:23;3545:32;3542:2;;;-1:-1;;3580:12;3542:2;357:6;344:20;3632:63;;3750:53;3795:7;3732:2;3775:9;3771:22;3750:53;:::i;3826:491::-;;;;3964:2;3952:9;3943:7;3939:23;3935:32;3932:2;;;-1:-1;;3970:12;3932:2;357:6;344:20;4022:63;;4122:2;4165:9;4161:22;72:20;97:33;124:5;97:33;:::i;:::-;4130:63;-1:-1;4230:2;4269:22;;72:20;97:33;72:20;97:33;:::i;:::-;4238:63;;;;3926:391;;;;;:::o;4324:743::-;;;;;;4496:3;4484:9;4475:7;4471:23;4467:33;4464:2;;;-1:-1;;4503:12;4464:2;357:6;344:20;4555:63;;4673:53;4718:7;4655:2;4698:9;4694:22;4673:53;:::i;:::-;4663:63;;4781:53;4826:7;4763:2;4806:9;4802:22;4781:53;:::i;:::-;4771:63;;4889:53;4934:7;4871:2;4914:9;4910:22;4889:53;:::i;:::-;4458:609;;;;-1:-1;4458:609;;4979:3;5019:22;344:20;;4458:609;-1:-1;;4458:609::o;5074:617::-;;;;;5229:3;5217:9;5208:7;5204:23;5200:33;5197:2;;;-1:-1;;5236:12;5197:2;357:6;344:20;5288:63;;5406:53;5451:7;5388:2;5431:9;5427:22;5406:53;:::i;:::-;5396:63;;5514:53;5559:7;5496:2;5539:9;5535:22;5514:53;:::i;:::-;5191:500;;;;-1:-1;5504:63;;5604:2;5643:22;344:20;;-1:-1;;5191:500::o;5698:491::-;;;;5836:2;5824:9;5815:7;5811:23;5807:32;5804:2;;;-1:-1;;5842:12;5804:2;357:6;344:20;5894:63;;6012:53;6057:7;5994:2;6037:9;6033:22;6012:53;:::i;:::-;6002:63;;6102:2;6145:9;6141:22;344:20;6110:63;;5798:391;;;;;:::o;6196:366::-;;;6317:2;6305:9;6296:7;6292:23;6288:32;6285:2;;;-1:-1;;6323:12;6285:2;-1:-1;;344:20;;;6475:2;6514:22;;;344:20;;-1:-1;6279:283::o;6569:617::-;;;;;6724:3;6712:9;6703:7;6699:23;6695:33;6692:2;;;-1:-1;;6731:12;6692:2;-1:-1;;344:20;;;6883:2;6922:22;;344:20;;-1:-1;6991:2;7030:22;;344:20;;7099:2;7138:22;344:20;;-1:-1;6686:500;-1:-1;6686:500::o;7193:743::-;;;;;;7365:3;7353:9;7344:7;7340:23;7336:33;7333:2;;;-1:-1;;7372:12;7333:2;-1:-1;;344:20;;;7524:2;7563:22;;344:20;;-1:-1;7632:2;7671:22;;344:20;;7740:2;7779:22;;344:20;;-1:-1;7848:3;7888:22;344:20;;-1:-1;7327:609;-1:-1;7327:609::o;7943:809::-;;;;;;8126:3;8114:9;8105:7;8101:23;8097:33;8094:2;;;-1:-1;;8133:12;8094:2;-1:-1;;492:13;;8296:2;8346:22;;492:13;8415:2;8465:22;;492:13;8534:2;8584:22;;492:13;8653:3;8704:22;;;492:13;;;;;-1:-1;492:13;;-1:-1;492:13;;-1:-1;8088:664;-1:-1;8088:664::o;22169:271::-;;9299:5;39681:12;9410:52;9455:6;9450:3;9443:4;9436:5;9432:16;9410:52;:::i;:::-;9474:16;;;;;22303:137;-1:-1;;22303:137::o;22447:379::-;22811:10;22635:191::o;22833:222::-;-1:-1;;;;;40428:54;;;;8979:37;;22960:2;22945:18;;22931:124::o;23307:333::-;-1:-1;;;;;40428:54;;;;8979:37;;23626:2;23611:18;;22000:37;23462:2;23447:18;;23433:207::o;23647:210::-;40340:13;;40333:21;9093:34;;23768:2;23753:18;;23739:118::o;24414:310::-;;24561:2;24582:17;24575:47;10005:5;39681:12;40120:6;24561:2;24550:9;24546:18;40108:19;10099:52;10144:6;40148:14;24550:9;40148:14;24561:2;10125:5;10121:16;10099:52;:::i;:::-;41937:7;41921:14;-1:-1;;41917:28;10163:39;;;;40148:14;10163:39;;24532:192;-1:-1;;24532:192::o;24731:416::-;24931:2;24945:47;;;10439:2;24916:18;;;40108:19;10475:34;40148:14;;;10455:55;-1:-1;;;10530:12;;;10523:26;10568:12;;;24902:245::o;25154:416::-;25354:2;25368:47;;;10819:2;25339:18;;;40108:19;10855:34;40148:14;;;10835:55;-1:-1;;;10910:12;;;10903:27;10949:12;;;25325:245::o;25577:416::-;25777:2;25791:47;;;11200:2;25762:18;;;40108:19;11236:28;40148:14;;;11216:49;11284:12;;;25748:245::o;26000:416::-;26200:2;26214:47;;;11535:2;26185:18;;;40108:19;11571:34;40148:14;;;11551:55;-1:-1;;;11626:12;;;11619:27;11665:12;;;26171:245::o;26423:416::-;26623:2;26637:47;;;11916:2;26608:18;;;40108:19;11952:34;40148:14;;;11932:55;-1:-1;;;12007:12;;;12000:40;12059:12;;;26594:245::o;26846:416::-;27046:2;27060:47;;;12310:2;27031:18;;;40108:19;12346:34;40148:14;;;12326:55;-1:-1;;;12401:12;;;12394:30;12443:12;;;27017:245::o;27269:416::-;27469:2;27483:47;;;12694:2;27454:18;;;40108:19;12730:34;40148:14;;;12710:55;-1:-1;;;12785:12;;;12778:26;12823:12;;;27440:245::o;27692:416::-;27892:2;27906:47;;;13074:2;27877:18;;;40108:19;13110:29;40148:14;;;13090:50;13159:12;;;27863:245::o;28115:416::-;28315:2;28329:47;;;13410:2;28300:18;;;40108:19;13446:32;40148:14;;;13426:53;13498:12;;;28286:245::o;28538:416::-;28738:2;28752:47;;;13749:2;28723:18;;;40108:19;13785:30;40148:14;;;13765:51;13835:12;;;28709:245::o;28961:416::-;29161:2;29175:47;;;14086:2;29146:18;;;40108:19;14122:32;40148:14;;;14102:53;14174:12;;;29132:245::o;29807:416::-;30007:2;30021:47;;;14809:2;29992:18;;;40108:19;14845:28;40148:14;;;14825:49;14893:12;;;29978:245::o;30230:416::-;30430:2;30444:47;;;15144:2;30415:18;;;40108:19;-1:-1;;;40148:14;;;15160:43;15222:12;;;30401:245::o;30653:416::-;30853:2;30867:47;;;15473:2;30838:18;;;40108:19;15509:34;40148:14;;;15489:55;-1:-1;;;15564:12;;;15557:32;15608:12;;;30824:245::o;31076:416::-;31276:2;31290:47;;;15859:2;31261:18;;;40108:19;15895:29;40148:14;;;15875:50;15944:12;;;31247:245::o;31499:416::-;31699:2;31713:47;;;16195:2;31684:18;;;40108:19;16231:34;40148:14;;;16211:55;-1:-1;;;16286:12;;;16279:25;16323:12;;;31670:245::o;31922:416::-;32122:2;32136:47;;;32107:18;;;40108:19;16610:34;40148:14;;;16590:55;16664:12;;;32093:245::o;32345:416::-;32545:2;32559:47;;;16915:2;32530:18;;;40108:19;16951:34;40148:14;;;16931:55;-1:-1;;;17006:12;;;16999:31;17049:12;;;32516:245::o;32768:416::-;32968:2;32982:47;;;17300:2;32953:18;;;40108:19;17336:34;40148:14;;;17316:55;-1:-1;;;17391:12;;;17384:25;17428:12;;;32939:245::o;33191:416::-;33391:2;33405:47;;;17679:2;33376:18;;;40108:19;17715:34;40148:14;;;17695:55;-1:-1;;;17770:12;;;17763:29;17811:12;;;33362:245::o;33614:416::-;33814:2;33828:47;;;18367:2;33799:18;;;40108:19;18403:34;40148:14;;;18383:55;-1:-1;;;18458:12;;;18451:28;18498:12;;;33785:245::o;34037:416::-;34237:2;34251:47;;;18749:2;34222:18;;;40108:19;18785:31;40148:14;;;18765:52;18836:12;;;34208:245::o;34460:416::-;34660:2;34674:47;;;19087:2;34645:18;;;40108:19;-1:-1;;;40148:14;;;19103:42;19164:12;;;34631:245::o;34883:416::-;35083:2;35097:47;;;19415:2;35068:18;;;40108:19;19451:34;40148:14;;;19431:55;-1:-1;;;19506:12;;;19499:34;19552:12;;;35054:245::o;35306:416::-;35506:2;35520:47;;;19803:2;35491:18;;;40108:19;-1:-1;;;40148:14;;;19819:44;19882:12;;;35477:245::o;35729:416::-;35929:2;35943:47;;;20133:2;35914:18;;;40108:19;-1:-1;;;40148:14;;;20149:43;20211:12;;;35900:245::o;36152:416::-;36352:2;36366:47;;;20462:2;36337:18;;;40108:19;20498:33;40148:14;;;20478:54;20551:12;;;36323:245::o;36575:416::-;36775:2;36789:47;;;20802:2;36760:18;;;40108:19;20838:33;40148:14;;;20818:54;20891:12;;;36746:245::o;36998:331::-;;37179:3;37168:9;37164:19;37156:27;;21193:16;21187:23;22007:3;22000:37;21362:4;21355:5;21351:16;21345:23;21362:4;21426:3;21422:14;22000:37;21520:4;21513:5;21509:16;21503:23;21520:4;21584:3;21580:14;22000:37;21677:4;21670:5;21666:16;21660:23;21677:4;21741:3;21737:14;22000:37;21836:4;21829:5;21825:16;21819:23;21836:4;21900:3;21896:14;22000:37;37150:179;;;;:::o;37336:222::-;22000:37;;;37463:2;37448:18;;37434:124::o;37565:333::-;22000:37;;;37884:2;37869:18;;22000:37;37720:2;37705:18;;37691:207::o;37905:444::-;22000:37;;;38252:2;38237:18;;22000:37;;;;38335:2;38320:18;;22000:37;38088:2;38073:18;;38059:290::o;38356:556::-;22000:37;;;38732:2;38717:18;;22000:37;;;;38815:2;38800:18;;22000:37;38898:2;38883:18;;22000:37;38567:3;38552:19;;38538:374::o;38919:668::-;22000:37;;;39323:2;39308:18;;22000:37;;;;39406:2;39391:18;;22000:37;;;;39489:2;39474:18;;22000:37;39572:3;39557:19;;22000:37;39158:3;39143:19;;39129:458::o;41577:268::-;41642:1;41649:101;41663:6;41660:1;41657:13;41649:101;;;41730:11;;;41724:18;41711:11;;;41704:39;41685:2;41678:10;41649:101;;;41765:6;41762:1;41759:13;41756:2;;;-1:-1;;41642:1;41812:16;;41805:27;41626:219::o;41958:117::-;-1:-1;;;;;40428:54;;42017:35;;42007:2;;42066:1;;42056:12

Swarm Source

ipfs://8c9bdc5d705a7c74246bb9cf0b30341b18819769775cd7a22845201803756d74
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.