Contract 0xD4E8f7FfDF98F7C170A48A31d2f6d358829878Af

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe14b44c0e5d9af02f90c960d6d0ea32ecab1604c1714830f79038c5cc5769cfd0x60806040150332012021-05-28 12:58:03144 days 4 hrs ago0x1fa44444291e2066b89969192b731eae6cd2cd25 IN  Contract Creation0 MATIC0.002521577
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HAaveProtocolV2

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 polygonscan.com on 2021-06-15
*/

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

// File: @openzeppelin/contracts/math/SafeMath.sol


pragma solidity >=0.6.0 <0.8.0;

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

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

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

        return c;
    }

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

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

// File: @openzeppelin/contracts/utils/Address.sol


pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol


pragma solidity >=0.6.0 <0.8.0;




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

// File: contracts/interface/IProxy.sol

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;

interface IProxy {
    function batchExec(address[] calldata tos, bytes32[] calldata configs, bytes[] memory datas) external payable;
    function execs(address[] calldata tos, bytes32[] calldata configs, bytes[] memory datas) external payable;
}

// File: contracts/interface/IERC20Usdt.sol

pragma solidity ^0.6.0;

interface IERC20Usdt {
    function totalSupply() external view returns (uint256);

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

    function transfer(address recipient, uint256 amount) external;

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

    function approve(address spender, uint256 amount) external;

    function transferFrom(address sender, address recipient, uint256 amount) external;

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

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

// File: contracts/Config.sol

pragma solidity ^0.6.0;

contract Config {
    // function signature of "postProcess()"
    bytes4 public constant POSTPROCESS_SIG = 0xc2722916;

    // The base amount of percentage function
    uint256 public constant PERCENTAGE_BASE = 1 ether;

    // Handler post-process type. Others should not happen now.
    enum HandlerType {Token, Custom, Others}
}

// File: contracts/lib/LibCache.sol

pragma solidity ^0.6.0;

library LibCache {
    function set(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        bytes32 _value
    ) internal {
        _cache[_key] = _value;
    }

    function setAddress(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        address _value
    ) internal {
        _cache[_key] = bytes32(uint256(uint160(_value)));
    }

    function setUint256(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        uint256 _value
    ) internal {
        _cache[_key] = bytes32(_value);
    }

    function getAddress(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key
    ) internal view returns (address ret) {
        ret = address(uint160(uint256(_cache[_key])));
    }

    function getUint256(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key
    ) internal view returns (uint256 ret) {
        ret = uint256(_cache[_key]);
    }

    function get(mapping(bytes32 => bytes32) storage _cache, bytes32 _key)
        internal
        view
        returns (bytes32 ret)
    {
        ret = _cache[_key];
    }
}

// File: contracts/lib/LibStack.sol

pragma solidity ^0.6.0;


library LibStack {
    function setAddress(bytes32[] storage _stack, address _input) internal {
        _stack.push(bytes32(uint256(uint160(_input))));
    }

    function set(bytes32[] storage _stack, bytes32 _input) internal {
        _stack.push(_input);
    }

    function setHandlerType(bytes32[] storage _stack, Config.HandlerType _input)
        internal
    {
        _stack.push(bytes12(uint96(_input)));
    }

    function getAddress(bytes32[] storage _stack)
        internal
        returns (address ret)
    {
        ret = address(uint160(uint256(peek(_stack))));
        _stack.pop();
    }

    function getSig(bytes32[] storage _stack) internal returns (bytes4 ret) {
        ret = bytes4(peek(_stack));
        _stack.pop();
    }

    function get(bytes32[] storage _stack) internal returns (bytes32 ret) {
        ret = peek(_stack);
        _stack.pop();
    }

    function peek(bytes32[] storage _stack)
        internal
        view
        returns (bytes32 ret)
    {
        require(_stack.length > 0, "stack empty");
        ret = _stack[_stack.length - 1];
    }
}

// File: contracts/Storage.sol

pragma solidity ^0.6.0;



/// @notice A cache structure composed by a bytes32 array
contract Storage {
    using LibCache for mapping(bytes32 => bytes32);
    using LibStack for bytes32[];

    bytes32[] public stack;
    mapping(bytes32 => bytes32) public cache;

    // keccak256 hash of "msg.sender"
    // prettier-ignore
    bytes32 public constant MSG_SENDER_KEY = 0xb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a;

    // keccak256 hash of "cube.counter"
    // prettier-ignore
    bytes32 public constant CUBE_COUNTER_KEY = 0xf9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be;

    modifier isStackEmpty() {
        require(stack.length == 0, "Stack not empty");
        _;
    }

    modifier isCubeCounterZero() {
        require(_getCubeCounter() == 0, "Cube counter not zero");
        _;
    }

    modifier isInitialized() {
        require(_getSender() != address(0), "Sender is not initialized");
        _;
    }

    modifier isNotInitialized() {
        require(_getSender() == address(0), "Sender is initialized");
        _;
    }

    function _setSender() internal isNotInitialized {
        cache.setAddress(MSG_SENDER_KEY, msg.sender);
    }

    function _resetSender() internal {
        cache.setAddress(MSG_SENDER_KEY, address(0));
    }

    function _getSender() internal view returns (address) {
        return cache.getAddress(MSG_SENDER_KEY);
    }

    function _addCubeCounter() internal {
        cache.setUint256(CUBE_COUNTER_KEY, _getCubeCounter() + 1);
    }

    function _resetCubeCounter() internal {
        cache.setUint256(CUBE_COUNTER_KEY, 0);
    }

    function _getCubeCounter() internal view returns (uint256) {
        return cache.getUint256(CUBE_COUNTER_KEY);
    }
}

// File: contracts/handlers/HandlerBase.sol

pragma solidity ^0.6.0;





abstract contract HandlerBase is Storage, Config {
    using SafeERC20 for IERC20;

    address private constant MATIC_TOKEN =
        0x0000000000000000000000000000000000001010;

    function postProcess() external payable virtual {
        revert("Invalid post process");
        /* Implementation template
        bytes4 sig = stack.getSig();
        if (sig == bytes4(keccak256(bytes("handlerFunction_1()")))) {
            // Do something
        } else if (sig == bytes4(keccak256(bytes("handlerFunction_2()")))) {
            bytes32 temp = stack.get();
            // Do something
        } else revert("Invalid post process");
        */
    }

    function _updateToken(address token) internal {
        _notMaticToken(token);
        stack.setAddress(token);
        // Ignore token type to fit old handlers
        // stack.setHandlerType(uint256(HandlerType.Token));
    }

    function _updatePostProcess(bytes32[] memory params) internal {
        for (uint256 i = params.length; i > 0; i--) {
            stack.set(params[i - 1]);
        }
        stack.set(msg.sig);
        stack.setHandlerType(HandlerType.Custom);
    }

    function getContractName() public pure virtual returns (string memory);

    function _revertMsg(string memory functionName, string memory reason)
        internal
        view
    {
        revert(
            string(
                abi.encodePacked(
                    _uint2String(_getCubeCounter()),
                    "_",
                    getContractName(),
                    "_",
                    functionName,
                    ": ",
                    reason
                )
            )
        );
    }

    function _revertMsg(string memory functionName) internal view {
        _revertMsg(functionName, "Unspecified");
    }

    function _uint2String(uint256 n) internal pure returns (string memory) {
        if (n == 0) {
            return "0";
        } else {
            uint256 len = 0;
            for (uint256 temp = n; temp > 0; temp /= 10) {
                len++;
            }
            bytes memory str = new bytes(len);
            for (uint256 i = len; i > 0; i--) {
                str[i - 1] = bytes1(uint8(48 + (n % 10)));
                n /= 10;
            }
            return string(str);
        }
    }

    function _getBalance(address token, uint256 amount)
        internal
        view
        returns (uint256)
    {
        if (amount != uint256(-1)) {
            return amount;
        }

        // ETH case
        if (
            token == address(0) ||
            token == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
        ) {
            return address(this).balance;
        }
        // ERC20 token case
        return IERC20(token).balanceOf(address(this));
    }

    function _tokenApprove(
        address token,
        address spender,
        uint256 amount
    ) internal {
        try IERC20Usdt(token).approve(spender, amount) {} catch {
            IERC20(token).safeApprove(spender, 0);
            IERC20(token).safeApprove(spender, amount);
        }
    }

    // Do not support matic token (0x0000...1010)
    function _notMaticToken(address token) internal pure {
        require(token != MATIC_TOKEN, "Not support matic token");
    }

    function _notMaticToken(address[] memory tokens) internal pure {
        for (uint256 i = 0; i < tokens.length; i++) {
            require(tokens[i] != MATIC_TOKEN, "Not support matic token");
        }
    }
}

// File: contracts/handlers/wmatic/IWMATIC.sol

pragma solidity ^0.6.0;

interface IWMATIC {
    fallback() external payable;
    function deposit() external payable;
    function withdraw(uint256 wad) external;
}

// File: contracts/handlers/aavev2/ILendingPoolAddressesProviderV2.sol

pragma solidity 0.6.12;

/**
 * @title LendingPoolAddressesProvider contract
 * @dev Main registry of addresses part of or connected to the protocol, including permissioned roles
 * - Acting also as factory of proxies and admin of those, so with right to change its implementations
 * - Owned by the Aave Governance
 * @author Aave
 **/
interface ILendingPoolAddressesProviderV2 {
  event MarketIdSet(string newMarketId);
  event LendingPoolUpdated(address indexed newAddress);
  event ConfigurationAdminUpdated(address indexed newAddress);
  event EmergencyAdminUpdated(address indexed newAddress);
  event LendingPoolConfiguratorUpdated(address indexed newAddress);
  event LendingPoolCollateralManagerUpdated(address indexed newAddress);
  event PriceOracleUpdated(address indexed newAddress);
  event LendingRateOracleUpdated(address indexed newAddress);
  event ProxyCreated(bytes32 id, address indexed newAddress);
  event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy);

  function getMarketId() external view returns (string memory);

  function setMarketId(string calldata marketId) external;

  function setAddress(bytes32 id, address newAddress) external;

  function setAddressAsProxy(bytes32 id, address impl) external;

  function getAddress(bytes32 id) external view returns (address);

  function getLendingPool() external view returns (address);

  function setLendingPoolImpl(address pool) external;

  function getLendingPoolConfigurator() external view returns (address);

  function setLendingPoolConfiguratorImpl(address configurator) external;

  function getLendingPoolCollateralManager() external view returns (address);

  function setLendingPoolCollateralManager(address manager) external;

  function getPoolAdmin() external view returns (address);

  function setPoolAdmin(address admin) external;

  function getEmergencyAdmin() external view returns (address);

  function setEmergencyAdmin(address admin) external;

  function getPriceOracle() external view returns (address);

  function setPriceOracle(address priceOracle) external;

  function getLendingRateOracle() external view returns (address);

  function setLendingRateOracle(address lendingRateOracle) external;
}

// File: contracts/handlers/aavev2/libraries/DataTypes.sol

pragma solidity 0.6.12;

library DataTypes {
    // refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties.
    struct ReserveData {
        //stores the reserve configuration
        ReserveConfigurationMap configuration;
        //the liquidity index. Expressed in ray
        uint128 liquidityIndex;
        //variable borrow index. Expressed in ray
        uint128 variableBorrowIndex;
        //the current supply rate. Expressed in ray
        uint128 currentLiquidityRate;
        //the current variable borrow rate. Expressed in ray
        uint128 currentVariableBorrowRate;
        //the current stable borrow rate. Expressed in ray
        uint128 currentStableBorrowRate;
        uint40 lastUpdateTimestamp;
        //tokens addresses
        address aTokenAddress;
        address stableDebtTokenAddress;
        address variableDebtTokenAddress;
        //address of the interest rate strategy
        address interestRateStrategyAddress;
        //the id of the reserve. Represents the position in the list of the active reserves
        uint8 id;
    }

    struct ReserveConfigurationMap {
        //bit 0-15: LTV
        //bit 16-31: Liq. threshold
        //bit 32-47: Liq. bonus
        //bit 48-55: Decimals
        //bit 56: Reserve is active
        //bit 57: reserve is frozen
        //bit 58: borrowing is enabled
        //bit 59: stable rate borrowing enabled
        //bit 60-63: reserved
        //bit 64-79: reserve factor
        uint256 data;
    }

    struct UserConfigurationMap {
        uint256 data;
    }

    enum InterestRateMode {NONE, STABLE, VARIABLE}
}

// File: contracts/handlers/aavev2/ILendingPoolV2.sol

pragma solidity 0.6.12;



interface ILendingPoolV2 {
  /**
   * @dev Emitted on deposit()
   * @param reserve The address of the underlying asset of the reserve
   * @param user The address initiating the deposit
   * @param onBehalfOf The beneficiary of the deposit, receiving the aTokens
   * @param amount The amount deposited
   * @param referral The referral code used
   **/
  event Deposit(
    address indexed reserve,
    address user,
    address indexed onBehalfOf,
    uint256 amount,
    uint16 indexed referral
  );

  /**
   * @dev Emitted on withdraw()
   * @param reserve The address of the underlyng asset being withdrawn
   * @param user The address initiating the withdrawal, owner of aTokens
   * @param to Address that will receive the underlying
   * @param amount The amount to be withdrawn
   **/
  event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount);

  /**
   * @dev Emitted on borrow() and flashLoan() when debt needs to be opened
   * @param reserve The address of the underlying asset being borrowed
   * @param user The address of the user initiating the borrow(), receiving the funds on borrow() or just
   * initiator of the transaction on flashLoan()
   * @param onBehalfOf The address that will be getting the debt
   * @param amount The amount borrowed out
   * @param borrowRateMode The rate mode: 1 for Stable, 2 for Variable
   * @param borrowRate The numeric rate at which the user has borrowed
   * @param referral The referral code used
   **/
  event Borrow(
    address indexed reserve,
    address user,
    address indexed onBehalfOf,
    uint256 amount,
    uint256 borrowRateMode,
    uint256 borrowRate,
    uint16 indexed referral
  );

  /**
   * @dev Emitted on repay()
   * @param reserve The address of the underlying asset of the reserve
   * @param user The beneficiary of the repayment, getting his debt reduced
   * @param repayer The address of the user initiating the repay(), providing the funds
   * @param amount The amount repaid
   **/
  event Repay(
    address indexed reserve,
    address indexed user,
    address indexed repayer,
    uint256 amount
  );

  /**
   * @dev Emitted on swapBorrowRateMode()
   * @param reserve The address of the underlying asset of the reserve
   * @param user The address of the user swapping his rate mode
   * @param rateMode The rate mode that the user wants to swap to
   **/
  event Swap(address indexed reserve, address indexed user, uint256 rateMode);

  /**
   * @dev Emitted on setUserUseReserveAsCollateral()
   * @param reserve The address of the underlying asset of the reserve
   * @param user The address of the user enabling the usage as collateral
   **/
  event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user);

  /**
   * @dev Emitted on setUserUseReserveAsCollateral()
   * @param reserve The address of the underlying asset of the reserve
   * @param user The address of the user enabling the usage as collateral
   **/
  event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user);

  /**
   * @dev Emitted on rebalanceStableBorrowRate()
   * @param reserve The address of the underlying asset of the reserve
   * @param user The address of the user for which the rebalance has been executed
   **/
  event RebalanceStableBorrowRate(address indexed reserve, address indexed user);

  /**
   * @dev Emitted on flashLoan()
   * @param target The address of the flash loan receiver contract
   * @param initiator The address initiating the flash loan
   * @param asset The address of the asset being flash borrowed
   * @param amount The amount flash borrowed
   * @param premium The fee flash borrowed
   * @param referralCode The referral code used
   **/
  event FlashLoan(
    address indexed target,
    address indexed initiator,
    address indexed asset,
    uint256 amount,
    uint256 premium,
    uint16 referralCode
  );

  /**
   * @dev Emitted when the pause is triggered.
   */
  event Paused();

  /**
   * @dev Emitted when the pause is lifted.
   */
  event Unpaused();

  /**
   * @dev Emitted when a borrower is liquidated. This event is emitted by the LendingPool via
   * LendingPoolCollateral manager using a DELEGATECALL
   * This allows to have the events in the generated ABI for LendingPool.
   * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation
   * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation
   * @param user The address of the borrower getting liquidated
   * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover
   * @param liquidatedCollateralAmount The amount of collateral received by the liiquidator
   * @param liquidator The address of the liquidator
   * @param receiveAToken `true` if the liquidators wants to receive the collateral aTokens, `false` if he wants
   * to receive the underlying collateral asset directly
   **/
  event LiquidationCall(
    address indexed collateralAsset,
    address indexed debtAsset,
    address indexed user,
    uint256 debtToCover,
    uint256 liquidatedCollateralAmount,
    address liquidator,
    bool receiveAToken
  );

  /**
   * @dev Emitted when the state of a reserve is updated. NOTE: This event is actually declared
   * in the ReserveLogic library and emitted in the updateInterestRates() function. Since the function is internal,
   * the event will actually be fired by the LendingPool contract. The event is therefore replicated here so it
   * gets added to the LendingPool ABI
   * @param reserve The address of the underlying asset of the reserve
   * @param liquidityRate The new liquidity rate
   * @param stableBorrowRate The new stable borrow rate
   * @param variableBorrowRate The new variable borrow rate
   * @param liquidityIndex The new liquidity index
   * @param variableBorrowIndex The new variable borrow index
   **/
  event ReserveDataUpdated(
    address indexed reserve,
    uint256 liquidityRate,
    uint256 stableBorrowRate,
    uint256 variableBorrowRate,
    uint256 liquidityIndex,
    uint256 variableBorrowIndex
  );

  /**
   * @dev Deposits an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.
   * - E.g. User deposits 100 USDC and gets in return 100 aUSDC
   * @param asset The address of the underlying asset to deposit
   * @param amount The amount to be deposited
   * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user
   *   wants to receive them on his own wallet, or a different address if the beneficiary of aTokens
   *   is a different wallet
   * @param referralCode Code used to register the integrator originating the operation, for potential rewards.
   *   0 if the action is executed directly by the user, without any middle-man
   **/
  function deposit(
    address asset,
    uint256 amount,
    address onBehalfOf,
    uint16 referralCode
  ) external;

  /**
   * @dev Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned
   * E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC
   * @param asset The address of the underlying asset to withdraw
   * @param amount The underlying amount to be withdrawn
   *   - Send the value type(uint256).max in order to withdraw the whole aToken balance
   * @param to Address that will receive the underlying, same as msg.sender if the user
   *   wants to receive it on his own wallet, or a different address if the beneficiary is a
   *   different wallet
   * @return The final amount withdrawn
   **/
  function withdraw(
    address asset,
    uint256 amount,
    address to
  ) external returns (uint256);

  /**
   * @dev Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower
   * already deposited enough collateral, or he was given enough allowance by a credit delegator on the
   * corresponding debt token (StableDebtToken or VariableDebtToken)
   * - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet
   *   and 100 stable/variable debt tokens, depending on the `interestRateMode`
   * @param asset The address of the underlying asset to borrow
   * @param amount The amount to be borrowed
   * @param interestRateMode The interest rate mode at which the user wants to borrow: 1 for Stable, 2 for Variable
   * @param referralCode Code used to register the integrator originating the operation, for potential rewards.
   *   0 if the action is executed directly by the user, without any middle-man
   * @param onBehalfOf Address of the user who will receive the debt. Should be the address of the borrower itself
   * calling the function if he wants to borrow against his own collateral, or the address of the credit delegator
   * if he has been given credit delegation allowance
   **/
  function borrow(
    address asset,
    uint256 amount,
    uint256 interestRateMode,
    uint16 referralCode,
    address onBehalfOf
  ) external;

  /**
   * @notice Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned
   * - E.g. User repays 100 USDC, burning 100 variable/stable debt tokens of the `onBehalfOf` address
   * @param asset The address of the borrowed underlying asset previously borrowed
   * @param amount The amount to repay
   * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`
   * @param rateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable
   * @param onBehalfOf Address of the user who will get his debt reduced/removed. Should be the address of the
   * user calling the function if he wants to reduce/remove his own debt, or the address of any other
   * other borrower whose debt should be removed
   * @return The final amount repaid
   **/
  function repay(
    address asset,
    uint256 amount,
    uint256 rateMode,
    address onBehalfOf
  ) external returns (uint256);

  /**
   * @dev Allows a borrower to swap his debt between stable and variable mode, or viceversa
   * @param asset The address of the underlying asset borrowed
   * @param rateMode The rate mode that the user wants to swap to
   **/
  function swapBorrowRateMode(address asset, uint256 rateMode) external;

  /**
   * @dev Rebalances the stable interest rate of a user to the current stable rate defined on the reserve.
   * - Users can be rebalanced if the following conditions are satisfied:
   *     1. Usage ratio is above 95%
   *     2. the current deposit APY is below REBALANCE_UP_THRESHOLD * maxVariableBorrowRate, which means that too much has been
   *        borrowed at a stable rate and depositors are not earning enough
   * @param asset The address of the underlying asset borrowed
   * @param user The address of the user to be rebalanced
   **/
  function rebalanceStableBorrowRate(address asset, address user) external;

  /**
   * @dev Allows depositors to enable/disable a specific deposited asset as collateral
   * @param asset The address of the underlying asset deposited
   * @param useAsCollateral `true` if the user wants to use the deposit as collateral, `false` otherwise
   **/
  function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) external;

  /**
   * @dev Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1
   * - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives
   *   a proportionally amount of the `collateralAsset` plus a bonus to cover market risk
   * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation
   * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation
   * @param user The address of the borrower getting liquidated
   * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover
   * @param receiveAToken `true` if the liquidators wants to receive the collateral aTokens, `false` if he wants
   * to receive the underlying collateral asset directly
   **/
  function liquidationCall(
    address collateralAsset,
    address debtAsset,
    address user,
    uint256 debtToCover,
    bool receiveAToken
  ) external;

  /**
   * @dev Allows smartcontracts to access the liquidity of the pool within one transaction,
   * as long as the amount taken plus a fee is returned.
   * IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept into consideration.
   * For further details please visit https://developers.aave.com
   * @param receiverAddress The address of the contract receiving the funds, implementing the IFlashLoanReceiver interface
   * @param assets The addresses of the assets being flash-borrowed
   * @param amounts The amounts amounts being flash-borrowed
   * @param modes Types of the debt to open if the flash loan is not returned:
   *   0 -> Don't open any debt, just revert if funds can't be transferred from the receiver
   *   1 -> Open debt at stable rate for the value of the amount flash-borrowed to the `onBehalfOf` address
   *   2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address
   * @param onBehalfOf The address  that will receive the debt in the case of using on `modes` 1 or 2
   * @param params Variadic packed params to pass to the receiver as extra information
   * @param referralCode Code used to register the integrator originating the operation, for potential rewards.
   *   0 if the action is executed directly by the user, without any middle-man
   **/
  function flashLoan(
    address receiverAddress,
    address[] calldata assets,
    uint256[] calldata amounts,
    uint256[] calldata modes,
    address onBehalfOf,
    bytes calldata params,
    uint16 referralCode
  ) external;

  /**
   * @dev Returns the user account data across all the reserves
   * @param user The address of the user
   * @return totalCollateralETH the total collateral in ETH of the user
   * @return totalDebtETH the total debt in ETH of the user
   * @return availableBorrowsETH the borrowing power left of the user
   * @return currentLiquidationThreshold the liquidation threshold of the user
   * @return ltv the loan to value of the user
   * @return healthFactor the current health factor of the user
   **/
  function getUserAccountData(address user)
    external
    view
    returns (
      uint256 totalCollateralETH,
      uint256 totalDebtETH,
      uint256 availableBorrowsETH,
      uint256 currentLiquidationThreshold,
      uint256 ltv,
      uint256 healthFactor
    );

  function initReserve(
    address reserve,
    address aTokenAddress,
    address stableDebtAddress,
    address variableDebtAddress,
    address interestRateStrategyAddress
  ) external;

  function setReserveInterestRateStrategyAddress(address reserve, address rateStrategyAddress)
    external;

  function setConfiguration(address reserve, uint256 configuration) external;

  /**
   * @dev Returns the configuration of the reserve
   * @param asset The address of the underlying asset of the reserve
   * @return The configuration of the reserve
   **/
  function getConfiguration(address asset)
    external
    view
    returns (DataTypes.ReserveConfigurationMap memory);

  /**
   * @dev Returns the configuration of the user across all the reserves
   * @param user The user address
   * @return The configuration of the user
   **/
  function getUserConfiguration(address user)
    external
    view
    returns (DataTypes.UserConfigurationMap memory);

  /**
   * @dev Returns the normalized income normalized income of the reserve
   * @param asset The address of the underlying asset of the reserve
   * @return The reserve's normalized income
   */
  function getReserveNormalizedIncome(address asset) external view returns (uint256);

  /**
   * @dev Returns the normalized variable debt per unit of asset
   * @param asset The address of the underlying asset of the reserve
   * @return The reserve normalized variable debt
   */
  function getReserveNormalizedVariableDebt(address asset) external view returns (uint256);

  /**
   * @dev Returns the state and configuration of the reserve
   * @param asset The address of the underlying asset of the reserve
   * @return The state of the reserve
   **/
  function getReserveData(address asset) external view returns (DataTypes.ReserveData memory);

  function finalizeTransfer(
    address asset,
    address from,
    address to,
    uint256 amount,
    uint256 balanceFromAfter,
    uint256 balanceToBefore
  ) external;

  function getReservesList() external view returns (address[] memory);

  function getAddressesProvider() external view returns (ILendingPoolAddressesProviderV2);

  function setPause(bool val) external;

  function paused() external view returns (bool);
}

// File: contracts/handlers/aavev2/IFlashLoanReceiver.sol

pragma solidity ^0.6.0;


interface IFlashLoanReceiver {
  function executeOperation(
    address[] calldata assets,
    uint256[] calldata amounts,
    uint256[] calldata premiums,
    address initiator,
    bytes calldata params
  ) external returns (bool);
}

// File: contracts/handlers/aavev2/HAaveProtocolV2.sol

pragma solidity ^0.6.0;










contract HAaveProtocolV2 is HandlerBase, IFlashLoanReceiver {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    // prettier-ignore
    address public constant PROVIDER = 0xd05e3E715d945B59290df0ae8eF85c1BdB684744;
    // prettier-ignore
    address payable public constant WMATIC = 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270;
    // prettier-ignore
    address payable public constant ETHER = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    uint16 public constant REFERRAL_CODE = 56;

    function getContractName() public pure override returns (string memory) {
        return "HAaveProtocolV2";
    }

    function deposit(address asset, uint256 amount) external payable {
        _notMaticToken(asset);
        amount = _getBalance(asset, amount);
        _deposit(asset, amount);
    }

    function depositETH(uint256 amount) external payable {
        amount = _getBalance(ETHER, amount);
        IWMATIC(WMATIC).deposit{value: amount}();
        _deposit(WMATIC, amount);

        _updateToken(WMATIC);
    }

    function withdraw(address asset, uint256 amount)
        external
        payable
        returns (uint256 withdrawAmount)
    {
        _notMaticToken(asset);
        withdrawAmount = _withdraw(asset, amount);

        _updateToken(asset);
    }

    function withdrawETH(uint256 amount)
        external
        payable
        returns (uint256 withdrawAmount)
    {
        withdrawAmount = _withdraw(WMATIC, amount);
        IWMATIC(WMATIC).withdraw(withdrawAmount);
    }

    function repay(
        address asset,
        uint256 amount,
        uint256 rateMode,
        address onBehalfOf
    ) external payable returns (uint256 remainDebt) {
        _notMaticToken(asset);
        remainDebt = _repay(asset, amount, rateMode, onBehalfOf);
    }

    function repayETH(
        uint256 amount,
        uint256 rateMode,
        address onBehalfOf
    ) external payable returns (uint256 remainDebt) {
        IWMATIC(WMATIC).deposit{value: amount}();
        remainDebt = _repay(WMATIC, amount, rateMode, onBehalfOf);

        _updateToken(WMATIC);
    }

    function borrow(
        address asset,
        uint256 amount,
        uint256 rateMode
    ) external payable {
        _notMaticToken(asset);
        address onBehalfOf = _getSender();
        _borrow(asset, amount, rateMode, onBehalfOf);
        _updateToken(asset);
    }

    function borrowETH(uint256 amount, uint256 rateMode) external payable {
        address onBehalfOf = _getSender();
        _borrow(WMATIC, amount, rateMode, onBehalfOf);
        IWMATIC(WMATIC).withdraw(amount);
    }

    function flashLoan(
        address[] calldata assets,
        uint256[] calldata amounts,
        uint256[] calldata modes,
        bytes calldata params
    ) external payable {
        _notMaticToken(assets);
        if (assets.length != amounts.length) {
            _revertMsg("flashLoan", "assets and amounts do not match");
        }

        if (assets.length != modes.length) {
            _revertMsg("flashLoan", "assets and modes do not match");
        }

        address onBehalfOf = _getSender();
        address pool =
            ILendingPoolAddressesProviderV2(PROVIDER).getLendingPool();

        try
            ILendingPoolV2(pool).flashLoan(
                address(this),
                assets,
                amounts,
                modes,
                onBehalfOf,
                params,
                REFERRAL_CODE
            )
        {} catch Error(string memory reason) {
            _revertMsg("flashLoan", reason);
        } catch {
            _revertMsg("flashLoan");
        }

        // approve lending pool zero
        for (uint256 i = 0; i < assets.length; i++) {
            IERC20(assets[i]).safeApprove(pool, 0);
            if (modes[i] != 0) _updateToken(assets[i]);
        }
    }

    function executeOperation(
        address[] memory assets,
        uint256[] memory amounts,
        uint256[] memory premiums,
        address initiator,
        bytes memory params
    ) external override returns (bool) {
        _notMaticToken(assets);
        if (
            msg.sender !=
            ILendingPoolAddressesProviderV2(PROVIDER).getLendingPool()
        ) {
            _revertMsg("executeOperation", "invalid caller");
        }

        if (initiator != address(this)) {
            _revertMsg("executeOperation", "not initiated by the proxy");
        }

        (address[] memory tos, bytes32[] memory configs, bytes[] memory datas) =
            abi.decode(params, (address[], bytes32[], bytes[]));
        IProxy(address(this)).execs(tos, configs, datas);

        address pool =
            ILendingPoolAddressesProviderV2(PROVIDER).getLendingPool();
        for (uint256 i = 0; i < assets.length; i++) {
            uint256 amountOwing = amounts[i].add(premiums[i]);
            IERC20(assets[i]).safeApprove(pool, amountOwing);
        }
        return true;
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function _deposit(address asset, uint256 amount) internal {
        (address pool, address aToken) = _getLendingPoolAndAToken(asset);
        IERC20(asset).safeApprove(pool, amount);

        try
            ILendingPoolV2(pool).deposit(
                asset,
                amount,
                address(this),
                REFERRAL_CODE
            )
        {} catch Error(string memory reason) {
            _revertMsg("deposit", reason);
        } catch {
            _revertMsg("deposit");
        }

        IERC20(asset).safeApprove(pool, 0);
        _updateToken(aToken);
    }

    function _withdraw(address asset, uint256 amount)
        internal
        returns (uint256 withdrawAmount)
    {
        (address pool, address aToken) = _getLendingPoolAndAToken(asset);
        amount = _getBalance(aToken, amount);

        try
            ILendingPoolV2(pool).withdraw(asset, amount, address(this))
        returns (uint256 ret) {
            withdrawAmount = ret;
        } catch Error(string memory reason) {
            _revertMsg("withdraw", reason);
        } catch {
            _revertMsg("withdraw");
        }
    }

    function _repay(
        address asset,
        uint256 amount,
        uint256 rateMode,
        address onBehalfOf
    ) internal returns (uint256 remainDebt) {
        address pool =
            ILendingPoolAddressesProviderV2(PROVIDER).getLendingPool();
        IERC20(asset).safeApprove(pool, amount);

        try
            ILendingPoolV2(pool).repay(asset, amount, rateMode, onBehalfOf)
        {} catch Error(string memory reason) {
            _revertMsg("repay", reason);
        } catch {
            _revertMsg("repay");
        }

        IERC20(asset).safeApprove(pool, 0);

        DataTypes.ReserveData memory reserve =
            ILendingPoolV2(pool).getReserveData(asset);
        remainDebt = DataTypes.InterestRateMode(rateMode) ==
            DataTypes.InterestRateMode.STABLE
            ? IERC20(reserve.stableDebtTokenAddress).balanceOf(onBehalfOf)
            : IERC20(reserve.variableDebtTokenAddress).balanceOf(onBehalfOf);
    }

    function _borrow(
        address asset,
        uint256 amount,
        uint256 rateMode,
        address onBehalfOf
    ) internal {
        address pool =
            ILendingPoolAddressesProviderV2(PROVIDER).getLendingPool();

        try
            ILendingPoolV2(pool).borrow(
                asset,
                amount,
                rateMode,
                REFERRAL_CODE,
                onBehalfOf
            )
        {} catch Error(string memory reason) {
            _revertMsg("borrow", reason);
        } catch {
            _revertMsg("borrow");
        }
    }

    function _getLendingPoolAndAToken(address underlying)
        internal
        view
        returns (address pool, address aToken)
    {
        pool = ILendingPoolAddressesProviderV2(PROVIDER).getLendingPool();
        try ILendingPoolV2(pool).getReserveData(underlying) returns (
            DataTypes.ReserveData memory data
        ) {
            aToken = data.aTokenAddress;
            if (aToken == address(0))
                _revertMsg("General", "aToken should not be zero address");
        } catch Error(string memory reason) {
            _revertMsg("General", reason);
        } catch {
            _revertMsg("General");
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"CUBE_COUNTER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHER","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MSG_SENDER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POSTPROCESS_SIG","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVIDER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REFERRAL_CODE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WMATIC","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rateMode","type":"uint256"}],"name":"borrow","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rateMode","type":"uint256"}],"name":"borrowETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"cache","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"premiums","type":"uint256[]"},{"internalType":"address","name":"initiator","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"modes","type":"uint256[]"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"flashLoan","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getContractName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"postProcess","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rateMode","type":"uint256"},{"internalType":"address","name":"onBehalfOf","type":"address"}],"name":"repay","outputs":[{"internalType":"uint256","name":"remainDebt","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rateMode","type":"uint256"},{"internalType":"address","name":"onBehalfOf","type":"address"}],"name":"repayETH","outputs":[{"internalType":"uint256","name":"remainDebt","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stack","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b50612ca4806100206000396000f3fe6080604052600436106101345760003560e01c806387c13943116100ab578063dc9031c41161006f578063dc9031c4146102c5578063f14210a6146102e5578063f3fef3a3146102f8578063f538ba511461030b578063f5f5ba721461031e578063fa2901a51461034057610134565b806387c1394314610248578063920f5c841461025d57806399eb59b91461028a578063c1bce0b7146102aa578063c2722916146102bd57610134565b806347e7ef24116100fd57806347e7ef24146101d25780634d95cad9146101e75780635358fbda146101fc578063542961541461020f578063573ade81146102225780636fab3b731461023557610134565b8062d34411146101395780630f532d18146101645780631413dc7d146101865780633583849a1461019b57806342cb1fbc146101bd575b600080fd5b34801561014557600080fd5b5061014e610362565b60405161015b91906126a8565b60405180910390f35b34801561017057600080fd5b5061017961037a565b60405161015b91906128fd565b34801561019257600080fd5b5061017961039e565b3480156101a757600080fd5b506101b06103c2565b60405161015b9190612ae7565b3480156101c957600080fd5b5061014e6103c7565b6101e56101e0366004611fd5565b6103df565b005b3480156101f357600080fd5b5061014e610402565b6101e561020a366004612387565b61041a565b6101e561021d36600461207d565b6104e0565b610179610230366004612034565b6107f8565b6101e56102433660046124b2565b610818565b34801561025457600080fd5b506101796108b2565b34801561026957600080fd5b5061027d61027836600461224b565b6108be565b60405161015b91906128f2565b34801561029657600080fd5b506101796102a5366004612387565b610bcc565b6101e56102b8366004612000565b610bde565b6101e5610c0e565b3480156102d157600080fd5b506101796102e0366004612387565b610c2f565b6101796102f3366004612387565b610c4d565b610179610306366004611fd5565b610cde565b6101796103193660046124d3565b610d04565b34801561032a57600080fd5b50610333610db4565b60405161015b919061291b565b34801561034c57600080fd5b50610355610dde565b60405161015b9190612906565b73d05e3e715d945b59290df0ae8ef85c1bdb68474481565b7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a81565b7ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be81565b603881565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6103e882610de9565b6103f28282610e14565b90506103fe8282610ee0565b5050565b730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b61043873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee82610e14565b9050730d500b1d8e8ef31e21c99d1db9a6444d3adf12706001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561048957600080fd5b505af115801561049d573d6000803e3d6000fd5b50505050506104c0730d500b1d8e8ef31e21c99d1db9a6444d3adf127082610ee0565b6104dd730d500b1d8e8ef31e21c99d1db9a6444d3adf1270610feb565b50565b61051c888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610fff92505050565b8685146105835761058360405180604001604052806009815260200168333630b9b42637b0b760b91b8152506040518060400160405280601f81526020017f61737365747320616e6420616d6f756e747320646f206e6f74206d617463680081525061105a565b8683146105ea576105ea60405180604001604052806009815260200168333630b9b42637b0b760b91b8152506040518060400160405280601d81526020017f61737365747320616e64206d6f64657320646f206e6f74206d6174636800000081525061105a565b60006105f46110ad565b9050600073d05e3e715d945b59290df0ae8ef85c1bdb6847446001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561064557600080fd5b505afa158015610659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067d9190611fb9565b60405163ab9c4b5d60e01b81529091506001600160a01b0382169063ab9c4b5d906106c19030908e908e908e908e908e908e908c908f908f906038906004016126d6565b600060405180830381600087803b1580156106db57600080fd5b505af19250505080156106ec575060015b61075e576106f8612b93565b806107035750610734565b61072e60405180604001604052806009815260200168333630b9b42637b0b760b91b8152508261105a565b5061075e565b61075e60405180604001604052806009815260200168333630b9b42637b0b760b91b8152506110df565b60005b898110156107eb576107a08260008d8d8581811061077b57fe5b90506020020160208101906107909190611f9d565b6001600160a01b0316919061110c565b8686828181106107ac57fe5b905060200201356000146107e3576107e38b8b838181106107c957fe5b90506020020160208101906107de9190611f9d565b610feb565b600101610761565b5050505050505050505050565b600061080385610de9565b61080f8585858561120b565b95945050505050565b60006108226110ad565b9050610844730d500b1d8e8ef31e21c99d1db9a6444d3adf1270848484611562565b604051632e1a7d4d60e01b8152730d500b1d8e8ef31e21c99d1db9a6444d3adf127090632e1a7d4d9061087b9086906004016128fd565b600060405180830381600087803b15801561089557600080fd5b505af11580156108a9573d6000803e3d6000fd5b50505050505050565b670de0b6b3a764000081565b60006108c986610fff565b73d05e3e715d945b59290df0ae8ef85c1bdb6847446001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611fb9565b6001600160a01b0316336001600160a01b0316146109be576109be6040518060400160405280601081526020016f32bc32b1baba32a7b832b930ba34b7b760811b8152506040518060400160405280600e81526020016d34b73b30b634b21031b0b63632b960911b81525061105a565b6001600160a01b0383163014610a3557610a356040518060400160405280601081526020016f32bc32b1baba32a7b832b930ba34b7b760811b8152506040518060400160405280601a81526020017f6e6f7420696e69746961746564206279207468652070726f787900000000000081525061105a565b606080606084806020019051810190610a4e9190612166565b604051637193850960e01b815292955090935091503090637193850990610a7d9086908690869060040161285e565b600060405180830381600087803b158015610a9757600080fd5b505af1158015610aab573d6000803e3d6000fd5b50505050600073d05e3e715d945b59290df0ae8ef85c1bdb6847446001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611fb9565b905060005b8a51811015610bbb576000610b7f8a8381518110610b5557fe5b60200260200101518c8481518110610b6957fe5b60200260200101516116bf90919063ffffffff16565b9050610bb283828e8581518110610b9257fe5b60200260200101516001600160a01b031661110c9092919063ffffffff16565b50600101610b3b565b5060019a9950505050505050505050565b60016020526000908152604090205481565b610be783610de9565b6000610bf16110ad565b9050610bff84848484611562565b610c0884610feb565b50505050565b60405162461bcd60e51b8152600401610c26906129ab565b60405180910390fd5b60008181548110610c3c57fe5b600091825260209091200154905081565b6000610c6d730d500b1d8e8ef31e21c99d1db9a6444d3adf1270836116e4565b604051632e1a7d4d60e01b8152909150730d500b1d8e8ef31e21c99d1db9a6444d3adf127090632e1a7d4d90610ca79084906004016128fd565b600060405180830381600087803b158015610cc157600080fd5b505af1158015610cd5573d6000803e3d6000fd5b50505050919050565b6000610ce983610de9565b610cf383836116e4565b9050610cfe83610feb565b92915050565b6000730d500b1d8e8ef31e21c99d1db9a6444d3adf12706001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d5557600080fd5b505af1158015610d69573d6000803e3d6000fd5b5050505050610d8e730d500b1d8e8ef31e21c99d1db9a6444d3adf127085858561120b565b9050610dad730d500b1d8e8ef31e21c99d1db9a6444d3adf1270610feb565b9392505050565b60408051808201909152600f81526e2420b0bb32a83937ba37b1b7b62b1960891b60208201525b90565b636139148b60e11b81565b6001600160a01b03811661101014156104dd5760405162461bcd60e51b8152600401610c26906129d9565b60006000198214610e26575080610cfe565b6001600160a01b0383161580610e5857506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b15610e64575047610cfe565b6040516370a0823160e01b81526001600160a01b038416906370a0823190610e909030906004016126a8565b60206040518083038186803b158015610ea857600080fd5b505afa158015610ebc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dad919061249a565b600080610eec846117fd565b9092509050610f056001600160a01b038516838561110c565b60405163e8eda9df60e01b81526001600160a01b0383169063e8eda9df90610f38908790879030906038906004016127d2565b600060405180830381600087803b158015610f5257600080fd5b505af1925050508015610f63575060015b610fd157610f6f612b93565b80610f7a5750610fa9565b610fa36040518060400160405280600781526020016619195c1bdcda5d60ca1b8152508261105a565b50610fd1565b610fd16040518060400160405280600781526020016619195c1bdcda5d60ca1b8152506110df565b610fe66001600160a01b03851683600061110c565b610c08815b610ff481610de9565b6104dd6000826119cd565b60005b81518110156103fe576110106001600160a01b031682828151811061102357fe5b60200260200101516001600160a01b031614156110525760405162461bcd60e51b8152600401610c26906129d9565b600101611002565b61106a6110656119ef565b611a1c565b611072610db4565b8383604051602001611087949392919061262a565b60408051601f198184030181529082905262461bcd60e51b8252610c269160040161291b565b60006110da60017fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a611af9565b905090565b6104dd816040518060400160405280600b81526020016a155b9cdc1958da599a595960aa1b81525061105a565b8015806111945750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e9061114290309086906004016126bc565b60206040518083038186803b15801561115a57600080fd5b505afa15801561116e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611192919061249a565b155b6111b05760405162461bcd60e51b8152600401610c2690612a91565b6112068363095ea7b360e01b84846040516024016111cf929190612796565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b0c565b505050565b60008073d05e3e715d945b59290df0ae8ef85c1bdb6847446001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561125b57600080fd5b505afa15801561126f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112939190611fb9565b90506112a96001600160a01b038716828761110c565b60405163573ade8160e01b81526001600160a01b0382169063573ade81906112db9089908990899089906004016127ff565b602060405180830381600087803b1580156112f557600080fd5b505af1925050508015611325575060408051601f3d908101601f191682019092526113229181019061249a565b60015b61139457611331612b93565b8061133c5750611369565b61136360405180604001604052806005815260200164726570617960d81b8152508261105a565b5061138f565b61138f60405180604001604052806005815260200164726570617960d81b8152506110df565b611396565b505b6113ab6001600160a01b03871682600061110c565b6113b3611ca7565b6040516335ea6a7560e01b81526001600160a01b038316906335ea6a75906113df908a906004016126a8565b6101806040518083038186803b1580156113f857600080fd5b505afa15801561140c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611430919061239f565b9050600185600281111561144057fe5b600281111561144b57fe5b146114d6578061012001516001600160a01b03166370a08231856040518263ffffffff1660e01b815260040161148191906126a8565b60206040518083038186803b15801561149957600080fd5b505afa1580156114ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d1919061249a565b611557565b8061010001516001600160a01b03166370a08231856040518263ffffffff1660e01b815260040161150791906126a8565b60206040518083038186803b15801561151f57600080fd5b505afa158015611533573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611557919061249a565b979650505050505050565b600073d05e3e715d945b59290df0ae8ef85c1bdb6847446001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156115b157600080fd5b505afa1580156115c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e99190611fb9565b60405163a415bcad60e01b81529091506001600160a01b0382169063a415bcad9061162190889088908890603890899060040161282a565b600060405180830381600087803b15801561163b57600080fd5b505af192505050801561164c575060015b6116b857611658612b93565b806116635750611691565b61168b60405180604001604052806006815260200165626f72726f7760d01b8152508261105a565b506116b8565b6116b860405180604001604052806006815260200165626f72726f7760d01b8152506110df565b5050505050565b600082820183811015610dad5760405162461bcd60e51b8152600401610c269061292e565b60008060006116f2856117fd565b915091506117008185610e14565b604051631a4ca37b60e21b81529094506001600160a01b038316906369328dec90611733908890889030906004016127af565b602060405180830381600087803b15801561174d57600080fd5b505af192505050801561177d575060408051601f3d908101601f1916820190925261177a9181019061249a565b60015b6117f257611789612b93565b8061179457506117c4565b6117be60405180604001604052806008815260200167776974686472617760c01b8152508261105a565b506117ed565b6117ed60405180604001604052806008815260200167776974686472617760c01b8152506110df565b6117f5565b92505b505092915050565b60008073d05e3e715d945b59290df0ae8ef85c1bdb6847446001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561184d57600080fd5b505afa158015611861573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118859190611fb9565b6040516335ea6a7560e01b81529092506001600160a01b038316906335ea6a75906118b49086906004016126a8565b6101806040518083038186803b1580156118cd57600080fd5b505afa9250505080156118fd575060408051601f3d908101601f191682019092526118fa9181019061239f565b60015b61197057611909612b93565b806119145750611943565b61193d6040518060400160405280600781526020016611d95b995c985b60ca1b8152508261105a565b5061196b565b61196b6040518060400160405280600781526020016611d95b995c985b60ca1b8152506110df565b6119c8565b60e081015191506001600160a01b0382166119c6576119c66040518060400160405280600781526020016611d95b995c985b60ca1b815250604051806060016040528060218152602001612c4e6021913961105a565b505b915091565b8154600181018355600092835260209092206001600160a01b03909116910155565b60006110da60017ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be611af9565b606081611a4157506040805180820190915260018152600360fc1b6020820152611af4565b6000825b8015611a5b5760019190910190600a9004611a45565b5060608167ffffffffffffffff81118015611a7557600080fd5b506040519080825280601f01601f191660200182016040528015611aa0576020820181803683370190505b509050815b8015611aea57600a850660300160f81b826001830381518110611ac457fe5b60200101906001600160f81b031916908160001a905350600a8504945060001901611aa5565b509150611af49050565b919050565b6000908152602091909152604090205490565b6060611b61826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b9b9092919063ffffffff16565b8051909150156112065780806020019051810190611b7f9190612367565b6112065760405162461bcd60e51b8152600401610c2690612a47565b6060611baa8484600085611bb2565b949350505050565b606082471015611bd45760405162461bcd60e51b8152600401610c2690612965565b611bdd85611c68565b611bf95760405162461bcd60e51b8152600401610c2690612a10565b60006060866001600160a01b03168587604051611c16919061260e565b60006040518083038185875af1925050503d8060008114611c53576040519150601f19603f3d011682016040523d82523d6000602084013e611c58565b606091505b5091509150611557828286611c6e565b3b151590565b60608315611c7d575081610dad565b825115611c8d5782518084602001fd5b8160405162461bcd60e51b8152600401610c26919061291b565b604051806101800160405280611cbb611d12565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e082018190526101008201819052610120820181905261014082018190526101609091015290565b6040518060200160405280600081525090565b8035610cfe81612c38565b8051610cfe81612c38565b60008083601f840112611d4c578182fd5b50813567ffffffffffffffff811115611d63578182fd5b6020830191508360208083028501011115611d7d57600080fd5b9250929050565b600082601f830112611d94578081fd5b8151611da7611da282612b1d565b612af6565b818152915060208083019084810181840286018201871015611dc857600080fd5b60005b84811015611de757815184529282019290820190600101611dcb565b505050505092915050565b600082601f830112611e02578081fd5b8151611e10611da282612b1d565b818152915060208083019084810160005b84811015611de7578151870188603f820112611e3c57600080fd5b83810151611e4c611da282612b3d565b81815260408b81848601011115611e6257600080fd5b611e7183888401838701612b61565b50865250509282019290820190600101611e21565b600082601f830112611e96578081fd5b8135611ea4611da282612b1d565b818152915060208083019084810181840286018201871015611ec557600080fd5b60005b84811015611de757813584529282019290820190600101611ec8565b600082601f830112611ef4578081fd5b8135611f02611da282612b3d565b9150808252836020828501011115611f1957600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215611f43578081fd5b611f4d6020612af6565b9151825250919050565b80516fffffffffffffffffffffffffffffffff81168114610cfe57600080fd5b805164ffffffffff81168114610cfe57600080fd5b805160ff81168114610cfe57600080fd5b600060208284031215611fae578081fd5b8135610dad81612c38565b600060208284031215611fca578081fd5b8151610dad81612c38565b60008060408385031215611fe7578081fd5b8235611ff281612c38565b946020939093013593505050565b600080600060608486031215612014578081fd5b833561201f81612c38565b95602085013595506040909401359392505050565b60008060008060808587031215612049578182fd5b843561205481612c38565b93506020850135925060408501359150606085013561207281612c38565b939692955090935050565b6000806000806000806000806080898b031215612098578586fd5b883567ffffffffffffffff808211156120af578788fd5b6120bb8c838d01611d3b565b909a50985060208b01359150808211156120d3578788fd5b6120df8c838d01611d3b565b909850965060408b01359150808211156120f7578586fd5b6121038c838d01611d3b565b909650945060608b013591508082111561211b578384fd5b818b0191508b601f83011261212e578384fd5b81358181111561213c578485fd5b8c602082850101111561214d578485fd5b6020830194508093505050509295985092959890939650565b60008060006060848603121561217a578081fd5b835167ffffffffffffffff80821115612191578283fd5b818601915086601f8301126121a4578283fd5b81516121b2611da282612b1d565b80828252602080830192508086018b8283870289010111156121d2578788fd5b8796505b848710156121fc576121e88c82611d30565b8452600196909601959281019281016121d6565b508901519097509350505080821115612213578283fd5b61221f87838801611d84565b93506040860151915080821115612234578283fd5b5061224186828701611df2565b9150509250925092565b600080600080600060a08688031215612262578283fd5b853567ffffffffffffffff80821115612279578485fd5b818801915088601f83011261228c578485fd5b813561229a611da282612b1d565b80828252602080830192508086018d8283870289010111156122ba57898afd5b8996505b848710156122e55780356122d181612c38565b8452600196909601959281019281016122be565b509099508a013593505050808211156122fc578485fd5b61230889838a01611e86565b9550604088013591508082111561231d578485fd5b61232989838a01611e86565b94506123388960608a01611d25565b9350608088013591508082111561234d578283fd5b5061235a88828901611ee4565b9150509295509295909350565b600060208284031215612378578081fd5b81518015158114610dad578182fd5b600060208284031215612398578081fd5b5035919050565b60006101808083850312156123b2578182fd5b6123bb81612af6565b90506123c78484611f32565b81526123d68460208501611f57565b60208201526123e88460408501611f57565b60408201526123fa8460608501611f57565b606082015261240c8460808501611f57565b608082015261241e8460a08501611f57565b60a08201526124308460c08501611f77565b60c08201526124428460e08501611d30565b60e082015261010061245685828601611d30565b9082015261012061246985858301611d30565b9082015261014061247c85858301611d30565b9082015261016061248f85858301611f8c565b908201529392505050565b6000602082840312156124ab578081fd5b5051919050565b600080604083850312156124c4578182fd5b50508035926020909101359150565b6000806000606084860312156124e7578081fd5b8335925060208401359150604084013561250081612c38565b809150509250925092565b6001600160a01b0316815260200190565b6001600160a01b03169052565b6000815180845260208085018081965082840281019150828601855b8581101561256f57828403895261255d8483516125da565b98850198935090840190600101612545565b5091979650505050505050565b81835260006001600160fb1b03831115612594578081fd5b6020830280836020870137939093016020019283525090919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600081518084526125f2816020860160208601612b61565b601f01601f19169290920160200192915050565b61ffff169052565b60008251612620818460208701612b61565b9190910192915050565b6000855161263c818460208a01612b61565b8083019050605f60f81b808252865161265c816001850160208b01612b61565b60019201918201528451612677816002840160208901612b61565b6101d160f51b60029290910191820152835161269a816004840160208801612b61565b016004019695505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038c16815260e060208083018290529082018b90526000908c906101008401835b8e8110156127295782840161271c836127178388611d25565b61250b565b90945091506001016126fe565b50848103604086015261273d818d8f61257c565b92505050828103606084015261275481898b61257c565b9050612763608084018861251c565b82810360a08401526127768186886125b0565b91505061278660c0830184612606565b9c9b505050505050505050505050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b03948516815260208101939093529216604082015261ffff909116606082015260800190565b6001600160a01b03948516815260208101939093526040830191909152909116606082015260800190565b6001600160a01b0395861681526020810194909452604084019290925261ffff166060830152909116608082015260a00190565b606080825284519082018190526000906020906080840190828801845b8281101561289e5761288e84835161251c565b928401929084019060010161287b565b50505083810382850152855180825286830191830190845b818110156128d2578351835292840192918401916001016128b6565b505084810360408601526128e68187612529565b98975050505050505050565b901515815260200190565b90815260200190565b6001600160e01b031991909116815260200190565b600060208252610dad60208301846125da565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b602080825260149082015273496e76616c696420706f73742070726f6365737360601b604082015260600190565b60208082526017908201527f4e6f7420737570706f7274206d6174696320746f6b656e000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b61ffff91909116815260200190565b60405181810167ffffffffffffffff81118282101715612b1557600080fd5b604052919050565b600067ffffffffffffffff821115612b33578081fd5b5060209081020190565b600067ffffffffffffffff821115612b53578081fd5b50601f01601f191660200190565b60005b83811015612b7c578181015183820152602001612b64565b83811115610c085750506000910152565b60e01c90565b600060443d1015612ba357610ddb565b600481823e6308c379a0612bb78251612b8d565b14612bc157610ddb565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612bf15750505050610ddb565b82840192508251915080821115612c0b5750505050610ddb565b503d83016020828401011115612c2357505050610ddb565b601f01601f1916810160200160405291505090565b6001600160a01b03811681146104dd57600080fdfe61546f6b656e2073686f756c64206e6f74206265207a65726f2061646472657373a26469706673582212209d367cf425f30df42cb2e54186edc1b0bada8c5138fa5740fdeaeca40bae650a64736f6c634300060c0033

Deployed ByteCode Sourcemap

50896:8638:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51055:77;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23332:107;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;23513:109::-;;;;;;;;;;;;;:::i;51366:41::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;51277:82::-;;;;;;;;;;;;;:::i;51539:185::-;;;;;;:::i;:::-;;:::i;:::-;;51163:83;;;;;;;;;;;;;:::i;51732:226::-;;;;;;:::i;:::-;;:::i;53598:1274::-;;;;;;:::i;:::-;;:::i;52468:280::-;;;;;;:::i;:::-;;:::i;53369:221::-;;;;;;:::i;:::-;;:::i;20315:49::-;;;;;;;;;;;;;:::i;54880:1124::-;;;;;;;;;;-1:-1:-1;54880:1124:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;23220:40::-;;;;;;;;;;-1:-1:-1;23220:40:0;;;;;:::i;:::-;;:::i;53076:285::-;;;;;;:::i;:::-;;:::i;25081:479::-;;;:::i;23191:22::-;;;;;;;;;;-1:-1:-1;23191:22:0;;;;;:::i;:::-;;:::i;52229:231::-;;;;;;:::i;:::-;;:::i;51966:255::-;;;;;;:::i;:::-;;:::i;52756:312::-;;;;;;:::i;:::-;;:::i;51416:115::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;20208:51::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;51055:77::-;51090:42;51055:77;:::o;23332:107::-;23373:66;23332:107;:::o;23513:109::-;23556:66;23513:109;:::o;51366:41::-;51405:2;51366:41;:::o;51277:82::-;51317:42;51277:82;:::o;51539:185::-;51615:21;51630:5;51615:14;:21::i;:::-;51656:26;51668:5;51675:6;51656:11;:26::i;:::-;51647:35;;51693:23;51702:5;51709:6;51693:8;:23::i;:::-;51539:185;;:::o;51163:83::-;51204:42;51163:83;:::o;51732:226::-;51805:26;51317:42;51824:6;51805:11;:26::i;:::-;51796:35;;51204:42;-1:-1:-1;;;;;51842:23:0;;51873:6;51842:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51893:24;51204:42;51910:6;51893:8;:24::i;:::-;51930:20;51204:42;51930:12;:20::i;:::-;51732:226;:::o;53598:1274::-;53792:22;53807:6;;53792:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53792:14:0;;-1:-1:-1;;;53792:22:0:i;:::-;53829:31;;;53825:122;;53877:58;;;;;;;;;;;;;;-1:-1:-1;;;53877:58:0;;;;;;;;;;;;;;;;;;;;:10;:58::i;:::-;53963:29;;;53959:118;;54009:56;;;;;;;;;;;;;;-1:-1:-1;;;54009:56:0;;;;;;;;;;;;;;;;;;;;:10;:56::i;:::-;54089:18;54110:12;:10;:12::i;:::-;54089:33;;54133:12;51090:42;-1:-1:-1;;;;;54161:56:0;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54249:238;;-1:-1:-1;;;54249:238:0;;54133:86;;-1:-1:-1;;;;;;54249:30:0;;;;;:238;;54306:4;;54330:6;;;;54355:7;;;;54381:5;;;;54405:10;;54434:6;;;;51405:2;;54249:238;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54232:417;;;;:::i;:::-;;;;;;;;54549:31;;;;;;;;;;;;;;-1:-1:-1;;;54549:31:0;;;54573:6;54549:10;:31::i;:::-;54500:92;54232:417;;;54614:23;;;;;;;;;;;;;;-1:-1:-1;;;54614:23:0;;;:10;:23::i;:::-;54704:9;54699:166;54719:17;;;54699:166;;;54758:38;54788:4;54794:1;54765:6;;54772:1;54765:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;54758:29:0;;:38;:29;:38::i;:::-;54815:5;;54821:1;54815:8;;;;;;;;;;;;;54827:1;54815:13;54811:42;;54830:23;54843:6;;54850:1;54843:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;54830:12;:23::i;:::-;54738:3;;54699:166;;;;53598:1274;;;;;;;;;;:::o;52468:280::-;52621:18;52652:21;52667:5;52652:14;:21::i;:::-;52697:43;52704:5;52711:6;52719:8;52729:10;52697:6;:43::i;:::-;52684:56;52468:280;-1:-1:-1;;;;;52468:280:0:o;53369:221::-;53450:18;53471:12;:10;:12::i;:::-;53450:33;;53494:45;51204:42;53510:6;53518:8;53528:10;53494:7;:45::i;:::-;53550:32;;-1:-1:-1;;;53550:32:0;;51204:42;;53550:24;;:32;;53575:6;;53550:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53369:221;;;:::o;20315:49::-;20357:7;20315:49;:::o;54880:1124::-;55103:4;55120:22;55135:6;55120:14;:22::i;:::-;51090:42;-1:-1:-1;;;;;55198:56:0;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;55171:85:0;:10;-1:-1:-1;;;;;55171:85:0;;55153:190;;55283:48;;;;;;;;;;;;;;-1:-1:-1;;;55283:48:0;;;;;;;;;;;;;;;;-1:-1:-1;;;55283:48:0;;;:10;:48::i;:::-;-1:-1:-1;;;;;55359:26:0;;55380:4;55359:26;55355:119;;55402:60;;;;;;;;;;;;;;-1:-1:-1;;;55402:60:0;;;;;;;;;;;;;;;;;;;;:10;:60::i;:::-;55487:20;55509:24;55535:20;55583:6;55572:51;;;;;;;;;;;;:::i;:::-;55634:48;;-1:-1:-1;;;55634:48:0;;55486:137;;-1:-1:-1;55486:137:0;;-1:-1:-1;55486:137:0;-1:-1:-1;55649:4:0;;55634:27;;:48;;55486:137;;;;;;55634:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55695:12;51090:42;-1:-1:-1;;;;;55723:56:0;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55695:86;;55797:9;55792:183;55816:6;:13;55812:1;:17;55792:183;;;55851:19;55873:27;55888:8;55897:1;55888:11;;;;;;;;;;;;;;55873:7;55881:1;55873:10;;;;;;;;;;;;;;:14;;:27;;;;:::i;:::-;55851:49;;55915:48;55945:4;55951:11;55922:6;55929:1;55922:9;;;;;;;;;;;;;;-1:-1:-1;;;;;55915:29:0;;;:48;;;;;:::i;:::-;-1:-1:-1;55831:3:0;;55792:183;;;-1:-1:-1;55992:4:0;;54880:1124;-1:-1:-1;;;;;;;;;;54880:1124:0:o;23220:40::-;;;;;;;;;;;;;:::o;53076:285::-;53203:21;53218:5;53203:14;:21::i;:::-;53235:18;53256:12;:10;:12::i;:::-;53235:33;;53279:44;53287:5;53294:6;53302:8;53312:10;53279:7;:44::i;:::-;53334:19;53347:5;53334:12;:19::i;:::-;53076:285;;;;:::o;25081:479::-;25140:30;;-1:-1:-1;;;25140:30:0;;;;;;;:::i;:::-;;;;;;;;23191:22;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23191:22:0;:::o;52229:231::-;52319:22;52376:25;51204:42;52394:6;52376:9;:25::i;:::-;52412:40;;-1:-1:-1;;;52412:40:0;;52359:42;;-1:-1:-1;51204:42:0;;52412:24;;:40;;52359:42;;52412:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52229:231;;;:::o;51966:255::-;52068:22;52108:21;52123:5;52108:14;:21::i;:::-;52157:24;52167:5;52174:6;52157:9;:24::i;:::-;52140:41;;52194:19;52207:5;52194:12;:19::i;:::-;51966:255;;;;:::o;52756:312::-;52888:18;51204:42;-1:-1:-1;;;;;52919:23:0;;52950:6;52919:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52983:44;51204:42;52998:6;53006:8;53016:10;52983:6;:44::i;:::-;52970:57;;53040:20;51204:42;53040:12;:20::i;:::-;52756:312;;;;;:::o;51416:115::-;51499:24;;;;;;;;;;;;-1:-1:-1;;;51499:24:0;;;;51416:115;;:::o;20208:51::-;-1:-1:-1;;;20208:51:0;:::o;28156:128::-;-1:-1:-1;;;;;28228:20:0;;25030:42;28228:20;;28220:56;;;;-1:-1:-1;;;28220:56:0;;;;;;;:::i;27280:500::-;27382:7;-1:-1:-1;;27411:6:0;:21;27407:67;;-1:-1:-1;27456:6:0;27449:13;;27407:67;-1:-1:-1;;;;;27525:19:0;;;;:96;;-1:-1:-1;;;;;;27561:60:0;;27578:42;27561:60;27525:96;27507:181;;;-1:-1:-1;27655:21:0;27648:28;;27507:181;27734:38;;-1:-1:-1;;;27734:38:0;;-1:-1:-1;;;;;27734:23:0;;;;;:38;;27766:4;;27734:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;56066:612::-;56136:12;56150:14;56168:31;56193:5;56168:24;:31::i;:::-;56135:64;;-1:-1:-1;56135:64:0;-1:-1:-1;56210:39:0;-1:-1:-1;;;;;56210:25:0;;56135:64;56242:6;56210:25;:39::i;:::-;56279:156;;-1:-1:-1;;;56279:156:0;;-1:-1:-1;;;;;56279:28:0;;;;;:156;;56326:5;;56350:6;;56383:4;;51405:2;;56279:156;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56262:331;;;;:::i;:::-;;;;;;;;56497:29;;;;;;;;;;;;;;-1:-1:-1;;;56497:29:0;;;56519:6;56497:10;:29::i;:::-;56448:90;56262:331;;;56560:21;;;;;;;;;;;;;;-1:-1:-1;;;56560:21:0;;;:10;:21::i;:::-;56605:34;-1:-1:-1;;;;;56605:25:0;;56631:4;56637:1;56605:25;:34::i;:::-;56650:20;56663:6;25568:232;25625:21;25640:5;25625:14;:21::i;:::-;25657:23;:5;25674;25657:16;:23::i;28292:212::-;28371:9;28366:131;28390:6;:13;28386:1;:17;28366:131;;;25030:42;-1:-1:-1;;;;;28433:24:0;:6;28440:1;28433:9;;;;;;;;;;;;;;-1:-1:-1;;;;;28433:24:0;;;28425:60;;;;-1:-1:-1;;;28425:60:0;;;;;;;:::i;:::-;28405:3;;28366:131;;26150:470;26353:31;26366:17;:15;:17::i;:::-;26353:12;:31::i;:::-;26433:17;:15;:17::i;:::-;26499:12;26561:6;26314:272;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;26314:272:0;;;;;;;;;;-1:-1:-1;;;26268:344:0;;;;;;;:::i;24341:112::-;24386:7;24413:32;:5;23373:66;24413:16;:32::i;:::-;24406:39;;24341:112;:::o;26628:120::-;26701:39;26712:12;26701:39;;;;;;;;;;;;;-1:-1:-1;;;26701:39:0;;;:10;:39::i;16583:622::-;16953:10;;;16952:62;;-1:-1:-1;16969:39:0;;-1:-1:-1;;;16969:39:0;;-1:-1:-1;;;;;16969:15:0;;;;;:39;;16993:4;;17000:7;;16969:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;16952:62;16944:152;;;;-1:-1:-1;;;16944:152:0;;;;;;;:::i;:::-;17107:90;17127:5;17157:22;;;17181:7;17190:5;17134:62;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;17134:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;17134:62:0;-1:-1:-1;;;;;;17134:62:0;;;;;;;;;;17107:19;:90::i;:::-;16583:622;;;:::o;57254:985::-;57400:18;57431:12;51090:42;-1:-1:-1;;;;;57459:56:0;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57431:86;-1:-1:-1;57528:39:0;-1:-1:-1;;;;;57528:25:0;;57431:86;57560:6;57528:25;:39::i;:::-;57597:63;;-1:-1:-1;;;57597:63:0;;-1:-1:-1;;;;;57597:26:0;;;;;:63;;57624:5;;57631:6;;57639:8;;57649:10;;57597:63;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57597:63:0;;;;;;;;-1:-1:-1;;57597:63:0;;;;;;;;;;;;:::i;:::-;;;57580:234;;;;:::i;:::-;;;;;;;;57722:27;;;;;;;;;;;;;;-1:-1:-1;;;57722:27:0;;;57742:6;57722:10;:27::i;:::-;57673:88;57580:234;;;57783:19;;;;;;;;;;;;;;-1:-1:-1;;;57783:19:0;;;:10;:19::i;:::-;57580:234;;;;;57826:34;-1:-1:-1;;;;;57826:25:0;;57852:4;57858:1;57826:25;:34::i;:::-;57873:36;;:::i;:::-;57925:42;;-1:-1:-1;;;57925:42:0;;-1:-1:-1;;;;;57925:35:0;;;;;:42;;57961:5;;57925:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57873:94;-1:-1:-1;58044:33:0;58018:8;57991:36;;;;;;;;:86;;;;;;;;;:240;;58176:7;:32;;;-1:-1:-1;;;;;58169:50:0;;58220:10;58169:62;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57991:240;;;58100:7;:30;;;-1:-1:-1;;;;;58093:48:0;;58142:10;58093:60;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57978:253;57254:985;-1:-1:-1;;;;;;;57254:985:0:o;58247:607::-;58396:12;51090:42;-1:-1:-1;;;;;58424:56:0;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58512:179;;-1:-1:-1;;;58512:179:0;;58396:86;;-1:-1:-1;;;;;;58512:27:0;;;;;:179;;58558:5;;58582:6;;58607:8;;51405:2;;58666:10;;58512:179;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58495:352;;;;:::i;:::-;;;;;;;;58753:28;;;;;;;;;;;;;;-1:-1:-1;;;58753:28:0;;;58774:6;58753:10;:28::i;:::-;58704:89;58495:352;;;58815:20;;;;;;;;;;;;;;-1:-1:-1;;;58815:20:0;;;:10;:20::i;:::-;58247:607;;;;;:::o;3773:181::-;3831:7;3863:5;;;3887:6;;;;3879:46;;;;-1:-1:-1;;;3879:46:0;;;;;;;:::i;56686:560::-;56772:22;56813:12;56827:14;56845:31;56870:5;56845:24;:31::i;:::-;56812:64;;;;56896:27;56908:6;56916;56896:11;:27::i;:::-;56953:59;;-1:-1:-1;;;56953:59:0;;56887:36;;-1:-1:-1;;;;;;56953:29:0;;;;;:59;;56983:5;;56887:36;;57006:4;;56953:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56953:59:0;;;;;;;;-1:-1:-1;;56953:59:0;;;;;;;;;;;;:::i;:::-;;;56936:303;;;;:::i;:::-;;;;;;;;57141:30;;;;;;;;;;;;;;-1:-1:-1;;;57141:30:0;;;57164:6;57141:10;:30::i;:::-;57092:91;56936:303;;;57205:22;;;;;;;;;;;;;;-1:-1:-1;;;57205:22:0;;;:10;:22::i;:::-;56936:303;;;57076:3;-1:-1:-1;56936:303:0;56686:560;;;;;;:::o;58862:669::-;58966:12;58980:14;51090:42;-1:-1:-1;;;;;59019:56:0;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59092:47;;-1:-1:-1;;;59092:47:0;;59012:65;;-1:-1:-1;;;;;;59092:35:0;;;;;:47;;59128:10;;59092:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59092:47:0;;;;;;;;-1:-1:-1;;59092:47:0;;;;;;;;;;;;:::i;:::-;;;59088:436;;;;:::i;:::-;;;;;;;;59428:29;;;;;;;;;;;;;;-1:-1:-1;;;59428:29:0;;;59450:6;59428:10;:29::i;:::-;59379:90;59088:436;;;59491:21;;;;;;;;;;;;;;-1:-1:-1;;;59491:21:0;;;:10;:21::i;:::-;59088:436;;;59232:18;;;;;-1:-1:-1;;;;;;59269:20:0;;59265:101;;59308:58;;;;;;;;;;;;;;-1:-1:-1;;;59308:58:0;;;;;;;;;;;;;;;;;;;;:10;:58::i;:::-;59140:238;59088:436;58862:669;;;:::o;21838:136::-;21920:46;;;;;;;21932:33;21920:46;;;;;;;-1:-1:-1;;;;;21940:24:0;;;21920:46;;;21838:136::o;24683:119::-;24733:7;24760:34;:5;23556:66;24760:16;:34::i;26756:516::-;26812:13;26842:6;26838:427;;-1:-1:-1;26865:10:0;;;;;;;;;;;;-1:-1:-1;;;26865:10:0;;;;;;26838:427;26908:11;26958:1;26938:85;26961:8;;26938:85;;27002:5;;;;;;26979:2;26971:10;;26938:85;;;;27037:16;27066:3;27056:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27056:14:0;-1:-1:-1;27037:33:0;-1:-1:-1;27102:3:0;27085:136;27107:5;;27085:136;;27174:2;27170:1;:6;27164:2;:13;27151:28;;27138:3;27146:1;27142;:5;27138:10;;;;;;;;;;;:41;-1:-1:-1;;;;;27138:41:0;;;;;;;;-1:-1:-1;27203:2:0;27198:7;;;-1:-1:-1;;;27114:3:0;27085:136;;;-1:-1:-1;27249:3:0;-1:-1:-1;27235:18:0;;-1:-1:-1;27235:18:0;26838:427;26756:516;;;:::o;21159:203::-;21285:11;21339:12;;;;;;;;;;;;;21159:203::o;18229:761::-;18653:23;18679:69;18707:4;18679:69;;;;;;;;;;;;;;;;;18687:5;-1:-1:-1;;;;;18679:27:0;;;:69;;;;;:::i;:::-;18763:17;;18653:95;;-1:-1:-1;18763:21:0;18759:224;;18905:10;18894:30;;;;;;;;;;;;:::i;:::-;18886:85;;;;-1:-1:-1;;;18886:85:0;;;;;;;:::i;11923:195::-;12026:12;12058:52;12080:6;12088:4;12094:1;12097:12;12058:21;:52::i;:::-;12051:59;11923:195;-1:-1:-1;;;;11923:195:0:o;12975:530::-;13102:12;13160:5;13135:21;:30;;13127:81;;;;-1:-1:-1;;;13127:81:0;;;;;;;:::i;:::-;13227:18;13238:6;13227:10;:18::i;:::-;13219:60;;;;-1:-1:-1;;;13219:60:0;;;;;;;:::i;:::-;13353:12;13367:23;13394:6;-1:-1:-1;;;;;13394:11:0;13414:5;13422:4;13394:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13352:75;;;;13445:52;13463:7;13472:10;13484:12;13445:17;:52::i;9005:422::-;9372:20;9411:8;;;9005:422::o;14511:742::-;14626:12;14655:7;14651:595;;;-1:-1:-1;14686:10:0;14679:17;;14651:595;14800:17;;:21;14796:439;;15063:10;15057:17;15124:15;15111:10;15107:2;15103:19;15096:44;15011:148;15206:12;15199:20;;-1:-1:-1;;;15199:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;5:130::-;72:20;;97:33;72:20;97:33;:::i;142:134::-;220:13;;238:33;220:13;238:33;:::i;301:352::-;;;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;-1:-1;469:20;;509:18;498:30;;495:2;;;-1:-1;;531:12;495:2;575:4;567:6;563:17;551:29;;626:3;575:4;;610:6;606:17;567:6;592:32;;589:41;586:2;;;643:1;;633:12;586:2;391:262;;;;;:::o;2160:722::-;;2288:3;2281:4;2273:6;2269:17;2265:27;2255:2;;-1:-1;;2296:12;2255:2;2336:6;2330:13;2358:80;2373:64;2430:6;2373:64;:::i;:::-;2358:80;:::i;:::-;2466:21;;;2349:89;-1:-1;2510:4;2523:14;;;;2498:17;;;2612;;;2603:27;;;;2600:36;-1:-1;2597:2;;;2649:1;;2639:12;2597:2;2674:1;2659:217;2684:6;2681:1;2678:13;2659:217;;;5088:13;;2752:61;;2827:14;;;;2855;;;;2706:1;2699:9;2659:217;;;2663:14;;;;;2248:634;;;;:::o;2906:713::-;;3043:3;3036:4;3028:6;3024:17;3020:27;3010:2;;-1:-1;;3051:12;3010:2;3091:6;3085:13;3113:89;3128:73;3194:6;3128:73;:::i;3113:89::-;3230:21;;;3104:98;-1:-1;3274:4;3287:14;;;;3262:17;;;3382:1;3367:246;3392:6;3389:1;3386:13;3367:246;;;3468:3;3462:10;3266:6;3450:23;6071:3;6052:17;3450:23;6052:17;6048:27;6038:2;;3382:1;;6079:12;6038:2;3274:4;3450:23;;6113:13;6141:64;6156:48;6197:6;6156:48;:::i;6141:64::-;6225:6;6218:5;6211:21;6249:17;6329:3;6249:17;6320:6;3450:23;6311:16;;6308:25;6305:2;;;3382:1;;6336:12;6305:2;6356:39;6388:6;3274:4;6287:5;6283:16;6249:17;3450:23;6249:17;6356:39;:::i;:::-;-1:-1;3480:70;;-1:-1;;3564:14;;;;3592;;;;3414:1;3407:9;3367:246;;4023:707;;4140:3;4133:4;4125:6;4121:17;4117:27;4107:2;;-1:-1;;4148:12;4107:2;4195:6;4182:20;4217:80;4232:64;4289:6;4232:64;:::i;4217:80::-;4325:21;;;4208:89;-1:-1;4369:4;4382:14;;;;4357:17;;;4471;;;4462:27;;;;4459:36;-1:-1;4456:2;;;4508:1;;4498:12;4456:2;4533:1;4518:206;4543:6;4540:1;4537:13;4518:206;;;9359:20;;4611:50;;4675:14;;;;4703;;;;4565:1;4558:9;4518:206;;5510:440;;5611:3;5604:4;5596:6;5592:17;5588:27;5578:2;;-1:-1;;5619:12;5578:2;5666:6;5653:20;5688:64;5703:48;5744:6;5703:48;:::i;5688:64::-;5679:73;;5772:6;5765:5;5758:21;5876:3;5808:4;5867:6;5800;5858:16;;5855:25;5852:2;;;5893:1;;5883:12;5852:2;46331:6;5808:4;5800:6;5796:17;5808:4;5834:5;5830:16;46308:30;46387:1;46369:16;;;5808:4;46369:16;46362:27;5834:5;5571:379;-1:-1;;5571:379::o;6456:361::-;;6597:4;6585:9;6580:3;6576:19;6572:30;6569:2;;;-1:-1;;6605:12;6569:2;6633:20;6597:4;6633:20;:::i;:::-;9507:13;;6710:86;;-1:-1;6624:29;6563:254;-1:-1;6563:254::o;9151:134::-;9229:13;;45719:34;45708:46;;48070:35;;48060:2;;48119:1;;48109:12;9570:132;9647:13;;46136:12;46125:24;;48317:34;;48307:2;;48365:1;;48355:12;9709:130;9785:13;;46232:4;46221:16;;48438:33;;48428:2;;48485:1;;48475:12;9846:241;;9950:2;9938:9;9929:7;9925:23;9921:32;9918:2;;;-1:-1;;9956:12;9918:2;85:6;72:20;97:33;124:5;97:33;:::i;10094:263::-;;10209:2;10197:9;10188:7;10184:23;10180:32;10177:2;;;-1:-1;;10215:12;10177:2;226:6;220:13;238:33;265:5;238:33;:::i;10364:366::-;;;10485:2;10473:9;10464:7;10460:23;10456:32;10453:2;;;-1:-1;;10491:12;10453:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;10543:63;10643:2;10682:22;;;;9359:20;;-1:-1;;;10447:283::o;10737:491::-;;;;10875:2;10863:9;10854:7;10850:23;10846:32;10843:2;;;-1:-1;;10881:12;10843:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;10933:63;11033:2;11072:22;;9359:20;;-1:-1;11141:2;11180:22;;;9359:20;;10837:391;-1:-1;;;10837:391::o;11235:617::-;;;;;11390:3;11378:9;11369:7;11365:23;11361:33;11358:2;;;-1:-1;;11397:12;11358:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;11449:63;-1:-1;11549:2;11588:22;;9359:20;;-1:-1;11657:2;11696:22;;9359:20;;-1:-1;11765:2;11804:22;;72:20;97:33;72:20;97:33;:::i;:::-;11352:500;;;;-1:-1;11352:500;;-1:-1;;11352:500::o;11859:1209::-;;;;;;;;;12138:3;12126:9;12117:7;12113:23;12109:33;12106:2;;;-1:-1;;12145:12;12106:2;12203:17;12190:31;12241:18;;12233:6;12230:30;12227:2;;;-1:-1;;12263:12;12227:2;12301:80;12373:7;12364:6;12353:9;12349:22;12301:80;:::i;:::-;12283:98;;-1:-1;12283:98;-1:-1;12446:2;12431:18;;12418:32;;-1:-1;12459:30;;;12456:2;;;-1:-1;;12492:12;12456:2;12530:80;12602:7;12593:6;12582:9;12578:22;12530:80;:::i;:::-;12512:98;;-1:-1;12512:98;-1:-1;12675:2;12660:18;;12647:32;;-1:-1;12688:30;;;12685:2;;;-1:-1;;12721:12;12685:2;12759:80;12831:7;12822:6;12811:9;12807:22;12759:80;:::i;:::-;12741:98;;-1:-1;12741:98;-1:-1;12904:2;12889:18;;12876:32;;-1:-1;12917:30;;;12914:2;;;-1:-1;;12950:12;12914:2;13035:6;13024:9;13020:22;;;5279:3;5272:4;5264:6;5260:17;5256:27;5246:2;;-1:-1;;5287:12;5246:2;5330:6;5317:20;12241:18;5349:6;5346:30;5343:2;;;-1:-1;;5379:12;5343:2;5474:3;12446:2;5454:17;5415:6;5440:32;;5437:41;5434:2;;;-1:-1;;5481:12;5434:2;12446;5415:6;5411:17;12970:82;;;;;;;;12100:968;;;;;;;;;;;:::o;13075:940::-;;;;13308:2;13296:9;13287:7;13283:23;13279:32;13276:2;;;-1:-1;;13314:12;13276:2;13365:17;13359:24;13403:18;;13395:6;13392:30;13389:2;;;-1:-1;;13425:12;13389:2;13527:6;13516:9;13512:22;;;1540:3;1533:4;1525:6;1521:17;1517:27;1507:2;;-1:-1;;1548:12;1507:2;1588:6;1582:13;1610:80;1625:64;1682:6;1625:64;:::i;1610:80::-;1696:16;1732:6;1725:5;1718:21;1762:4;;1779:3;1775:14;1768:21;;1762:4;1754:6;1750:17;1884:3;1762:4;;1868:6;1864:17;1754:6;1855:27;;1852:36;1849:2;;;-1:-1;;1891:12;1849:2;-1:-1;1917:10;;1911:217;1936:6;1933:1;1930:13;1911:217;;;2016:48;2060:3;2048:10;2016:48;:::i;:::-;2004:61;;1958:1;1951:9;;;;;2079:14;;;;2107;;1911:217;;;-1:-1;13587:18;;13581:25;13445:99;;-1:-1;13581:25;-1:-1;;;13615:30;;;13612:2;;;-1:-1;;13648:12;13612:2;13678:89;13759:7;13750:6;13739:9;13735:22;13678:89;:::i;:::-;13668:99;;13825:2;13814:9;13810:18;13804:25;13790:39;;13403:18;13841:6;13838:30;13835:2;;;-1:-1;;13871:12;13835:2;;13901:98;13991:7;13982:6;13971:9;13967:22;13901:98;:::i;:::-;13891:108;;;13270:745;;;;;:::o;14022:1255::-;;;;;;14278:3;14266:9;14257:7;14253:23;14249:33;14246:2;;;-1:-1;;14285:12;14246:2;14343:17;14330:31;14381:18;;14373:6;14370:30;14367:2;;;-1:-1;;14403:12;14367:2;14494:6;14483:9;14479:22;;;796:3;789:4;781:6;777:17;773:27;763:2;;-1:-1;;804:12;763:2;851:6;838:20;873:80;888:64;945:6;888:64;:::i;873:80::-;959:16;995:6;988:5;981:21;1025:4;;1042:3;1038:14;1031:21;;1025:4;1017:6;1013:17;1147:3;1025:4;;1131:6;1127:17;1017:6;1118:27;;1115:36;1112:2;;;-1:-1;;1154:12;1112:2;-1:-1;1180:10;;1174:206;1199:6;1196:1;1193:13;1174:206;;;85:6;72:20;97:33;124:5;97:33;:::i;:::-;1267:50;;1221:1;1214:9;;;;;1331:14;;;;1359;;1174:206;;;-1:-1;14423:88;;-1:-1;14561:18;;14548:32;;-1:-1;;;14589:30;;;14586:2;;;-1:-1;;14622:12;14586:2;14652:78;14722:7;14713:6;14702:9;14698:22;14652:78;:::i;:::-;14642:88;;14795:2;14784:9;14780:18;14767:32;14753:46;;14381:18;14811:6;14808:30;14805:2;;;-1:-1;;14841:12;14805:2;14871:78;14941:7;14932:6;14921:9;14917:22;14871:78;:::i;:::-;14861:88;;15004:53;15049:7;14986:2;15029:9;15025:22;15004:53;:::i;:::-;14994:63;;15122:3;15111:9;15107:19;15094:33;15080:47;;14381:18;15139:6;15136:30;15133:2;;;-1:-1;;15169:12;15133:2;;15199:62;15253:7;15244:6;15233:9;15229:22;15199:62;:::i;:::-;15189:72;;;14240:1037;;;;;;;;:::o;15284:257::-;;15396:2;15384:9;15375:7;15371:23;15367:32;15364:2;;;-1:-1;;15402:12;15364:2;4819:6;4813:13;47850:5;45390:13;45383:21;47828:5;47825:32;47815:2;;-1:-1;;47861:12;15548:241;;15652:2;15640:9;15631:7;15627:23;15623:32;15620:2;;;-1:-1;;15658:12;15620:2;-1:-1;4940:20;;15614:175;-1:-1;15614:175::o;15796:322::-;;15940:3;;15928:9;15919:7;15915:23;15911:33;15908:2;;;-1:-1;;15947:12;15908:2;7026:22;15940:3;7026:22;:::i;:::-;7017:31;;7139:101;7236:3;7212:22;7139:101;:::i;:::-;7121:16;7114:127;7345:60;7401:3;7312:2;7381:9;7377:22;7345:60;:::i;:::-;7312:2;7331:5;7327:16;7320:86;7515:60;7571:3;7482:2;7551:9;7547:22;7515:60;:::i;:::-;7482:2;7501:5;7497:16;7490:86;7686:60;7742:3;7653:2;7722:9;7718:22;7686:60;:::i;:::-;7653:2;7672:5;7668:16;7661:86;7863:60;7919:3;7829;7899:9;7895:22;7863:60;:::i;:::-;7829:3;7849:5;7845:16;7838:86;8038:60;8094:3;8004;8074:9;8070:22;8038:60;:::i;:::-;8004:3;8024:5;8020:16;8013:86;8209:59;8264:3;8175;8244:9;8240:22;8209:59;:::i;:::-;8175:3;8195:5;8191:16;8184:85;8373:60;8429:3;8339;8409:9;8405:22;8373:60;:::i;:::-;8339:3;8359:5;8355:16;8348:86;8513:3;8549:60;8605:3;8513;8585:9;8581:22;8549:60;:::i;:::-;8529:18;;;8522:88;8691:3;8727:60;8783:3;8759:22;;;8727:60;:::i;:::-;8707:18;;;8700:88;8872:3;8908:60;8964:3;8940:22;;;8908:60;:::i;:::-;8888:18;;;8881:88;9028:3;9064:58;9118:3;9094:22;;;9064:58;:::i;:::-;9044:18;;;9037:86;9048:5;15902:216;-1:-1;;;15902:216::o;16373:263::-;;16488:2;16476:9;16467:7;16463:23;16459:32;16456:2;;;-1:-1;;16494:12;16456:2;-1:-1;9507:13;;16450:186;-1:-1;16450:186::o;16643:366::-;;;16764:2;16752:9;16743:7;16739:23;16735:32;16732:2;;;-1:-1;;16770:12;16732:2;-1:-1;;9359:20;;;16922:2;16961:22;;;9359:20;;-1:-1;16726:283::o;17016:491::-;;;;17154:2;17142:9;17133:7;17129:23;17125:32;17122:2;;;-1:-1;;17160:12;17122:2;9372:6;9359:20;17212:63;;17312:2;17355:9;17351:22;9359:20;17320:63;;17420:2;17463:9;17459:22;72:20;97:33;124:5;97:33;:::i;:::-;17428:63;;;;17116:391;;;;;:::o;17515:173::-;-1:-1;;;;;45919:54;18163:45;;17677:4;17668:14;;17595:93::o;18076:137::-;-1:-1;;;;;45919:54;18163:45;;18157:56::o;20639:920::-;;20859:5;42358:12;43555:6;43550:3;43543:19;43592:4;;43587:3;43583:14;20871:102;;;;43592:4;21030:6;21026:17;21021:3;21017:27;21005:39;;43592:4;21124:5;41887:14;-1:-1;21163:357;21188:6;21185:1;21182:13;21163:357;;;21250:9;21244:4;21240:20;21235:3;21228:33;17998:64;18058:3;21295:6;21289:13;17998:64;:::i;:::-;21499:14;;;;21309:90;-1:-1;43044:14;;;;21210:1;21203:9;21163:357;;;-1:-1;21543:10;;20781:778;-1:-1;;;;;;;20781:778::o;21598:467::-;43543:19;;;21598:467;-1:-1;;;;;21846:78;;21843:2;;;-1:-1;;21927:12;21843:2;43592:4;21962:6;21958:17;46331:6;46326:3;43592:4;43587:3;43583:14;46308:30;46369:16;;;;43592:4;46369:16;46362:27;;;-1:-1;46369:16;;21730:335;-1:-1;21730:335::o;22554:297::-;;43555:6;43550:3;43543:19;46331:6;46326:3;43592:4;43587:3;43583:14;46308:30;-1:-1;43592:4;46378:6;43587:3;46369:16;;46362:27;43592:4;46764:7;;46768:2;22837:6;46748:14;46744:28;43587:3;22806:39;;22799:46;;22654:197;;;;;:::o;22859:323::-;;22991:5;42358:12;43555:6;43550:3;43543:19;23074:52;23119:6;43592:4;43587:3;43583:14;43592:4;23100:5;23096:16;23074:52;:::i;:::-;46764:7;46748:14;-1:-1;;46744:28;23138:39;;;;43592:4;23138:39;;22939:243;-1:-1;;22939:243::o;27469:110::-;45838:6;45827:18;27538:36;;27532:47::o;27706:271::-;;23349:5;42358:12;23460:52;23505:6;23500:3;23493:4;23486:5;23482:16;23460:52;:::i;:::-;23524:16;;;;;27840:137;-1:-1;;27840:137::o;27984:1559::-;;23349:5;42358:12;23460:52;23505:6;23500:3;23493:4;23486:5;23482:16;23460:52;:::i;:::-;23533:6;23528:3;23524:16;23517:23;;-1:-1;;;26288:3;26275:11;26268:24;23349:5;42358:12;23460:52;23505:6;26253:1;26315:3;26311:11;23493:4;23486:5;23482:16;23460:52;:::i;:::-;26253:1;23524:16;;;;;26268:24;42358:12;;23460:52;42358:12;26311:11;;;23493:4;23482:16;;23460:52;:::i;:::-;-1:-1;;;26311:11;23524:16;;;;;;;27000:25;42358:12;;23460:52;42358:12;27044:11;;;23493:4;23482:16;;23460:52;:::i;:::-;23524:16;27044:11;23524:16;;28567:976;-1:-1;;;;;;28567:976::o;29550:222::-;-1:-1;;;;;45919:54;;;;18163:45;;29677:2;29662:18;;29648:124::o;30040:333::-;-1:-1;;;;;45919:54;;;18163:45;;45919:54;;30359:2;30344:18;;18163:45;30195:2;30180:18;;30166:207::o;30380:1498::-;-1:-1;;;;;45919:54;;18163:45;;30882:3;31001:2;30986:18;;;30979:48;;;30867:19;;;43543;;;30380:1498;;18806:21;;43583:14;;;30380:1498;18833:291;18858:6;18855:1;18852:13;18833:291;;;31001:2;18954:6;45093:12;18975:63;19034:3;45067:39;45093:12;18954:6;45067:39;:::i;:::-;18975:63;:::i;:::-;19045:72;;-1:-1;18968:70;-1:-1;18880:1;18873:9;18833:291;;;18837:14;31207:9;31201:4;31197:20;31192:2;31181:9;31177:18;31170:48;31232:118;31345:4;31336:6;31328;31232:118;:::i;:::-;31224:126;;;;31398:9;31392:4;31388:20;31383:2;31372:9;31368:18;31361:48;31423:118;31536:4;31527:6;31519;31423:118;:::i;:::-;31415:126;;31552:73;31620:3;31609:9;31605:19;31596:6;31552:73;:::i;:::-;31674:9;31668:4;31664:20;31658:3;31647:9;31643:19;31636:49;31699:86;31780:4;31771:6;31763;31699:86;:::i;:::-;31691:94;;;31796:72;31863:3;31852:9;31848:19;31838:7;31796:72;:::i;:::-;30853:1025;;;;;;;;;;;;;;:::o;31885:333::-;-1:-1;;;;;45919:54;;;;18163:45;;32204:2;32189:18;;22245:37;32040:2;32025:18;;32011:207::o;32225:444::-;-1:-1;;;;;45919:54;;;18163:45;;32572:2;32557:18;;22245:37;;;;45919:54;;;32655:2;32640:18;;18163:45;32408:2;32393:18;;32379:290::o;32676:552::-;-1:-1;;;;;45919:54;;;18163:45;;33050:2;33035:18;;22245:37;;;;45919:54;;33133:2;33118:18;;18163:45;45838:6;45827:18;;;33214:2;33199:18;;27538:36;32885:3;32870:19;;32856:372::o;33235:556::-;-1:-1;;;;;45919:54;;;18163:45;;33611:2;33596:18;;22245:37;;;;33694:2;33679:18;;22245:37;;;;45919:54;;;33777:2;33762:18;;18163:45;33446:3;33431:19;;33417:374::o;33798:664::-;-1:-1;;;;;45919:54;;;18163:45;;34200:2;34185:18;;22245:37;;;;34283:2;34268:18;;22245:37;;;;45838:6;45827:18;34364:2;34349:18;;27538:36;45919:54;;;34447:3;34432:19;;18163:45;34035:3;34020:19;;34006:456::o;34469:924::-;34820:2;34834:47;;;42358:12;;34805:18;;;43543:19;;;34469:924;;43592:4;;43583:14;;;;41887;;;34469:924;19593:260;19618:6;19615:1;19612:13;19593:260;;;17602:46;17644:3;19685:6;19679:13;17602:46;:::i;:::-;17668:14;;;;43044;;;;19640:1;19633:9;19593:260;;;-1:-1;;;35041:20;;;35021:18;;;35014:48;42358:12;;43543:19;;;41887:14;;;;43583;;;-1:-1;20322:260;20347:6;20344:1;20341:13;20322:260;;;20408:13;;22245:37;;43044:14;;;;17850;;;;19640:1;20362:9;20322:260;;;20326:14;;35232:9;35226:4;35222:20;35217:2;35206:9;35202:18;35195:48;35257:126;35378:4;35369:6;35257:126;:::i;:::-;35249:134;34791:602;-1:-1;;;;;;;;34791:602::o;35400:210::-;45390:13;;45383:21;22138:34;;35521:2;35506:18;;35492:118::o;35617:222::-;22245:37;;;35744:2;35729:18;;35715:124::o;35846:218::-;-1:-1;;;;;;45556:78;;;;22483:36;;35971:2;35956:18;;35942:122::o;36071:310::-;;36218:2;36239:17;36232:47;36293:78;36218:2;36207:9;36203:18;36357:6;36293:78;:::i;36388:416::-;36588:2;36602:47;;;24498:2;36573:18;;;43543:19;24534:29;43583:14;;;24514:50;24583:12;;;36559:245::o;36811:416::-;37011:2;37025:47;;;24834:2;36996:18;;;43543:19;24870:34;43583:14;;;24850:55;-1:-1;;;24925:12;;;24918:30;24967:12;;;36982:245::o;37234:416::-;37434:2;37448:47;;;25218:2;37419:18;;;43543:19;-1:-1;;;43583:14;;;25234:43;25296:12;;;37405:245::o;37657:416::-;37857:2;37871:47;;;25547:2;37842:18;;;43543:19;25583:25;43583:14;;;25563:46;25628:12;;;37828:245::o;38080:416::-;38280:2;38294:47;;;25879:2;38265:18;;;43543:19;25915:31;43583:14;;;25895:52;25966:12;;;38251:245::o;38503:416::-;38703:2;38717:47;;;26561:2;38688:18;;;43543:19;26597:34;43583:14;;;26577:55;-1:-1;;;26652:12;;;26645:34;26698:12;;;38674:245::o;38926:416::-;39126:2;39140:47;;;27294:2;39111:18;;;43543:19;27330:34;43583:14;;;27310:55;-1:-1;;;27385:12;;;27378:46;27443:12;;;39097:245::o;39349:218::-;45838:6;45827:18;;;;27538:36;;39474:2;39459:18;;39445:122::o;39803:256::-;39865:2;39859:9;39891:17;;;39966:18;39951:34;;39987:22;;;39948:62;39945:2;;;40023:1;;40013:12;39945:2;39865;40032:22;39843:216;;-1:-1;39843:216::o;40066:304::-;;40225:18;40217:6;40214:30;40211:2;;;-1:-1;;40247:12;40211:2;-1:-1;40292:4;40280:17;;;40345:15;;40148:222::o;41319:321::-;;41462:18;41454:6;41451:30;41448:2;;;-1:-1;;41484:12;41448:2;-1:-1;46764:7;41538:17;-1:-1;;41534:33;41625:4;41615:15;;41385:255::o;46404:268::-;46469:1;46476:101;46490:6;46487:1;46484:13;46476:101;;;46557:11;;;46551:18;46538:11;;;46531:39;46512:2;46505:10;46476:101;;;46592:6;46589:1;46586:13;46583:2;;;-1:-1;;46469:1;46639:16;;46632:27;46453:219::o;46785:106::-;46870:3;46866:15;;46838:53::o;46899:739::-;;46972:4;46954:16;46951:26;46948:2;;;46980:5;;46948:2;47014:1;-1:-1;;46993:23;47089:10;47032:34;-1:-1;47057:8;47032:34;:::i;:::-;47081:19;47071:2;;47104:5;;47071:2;47135;47129:9;47171:16;-1:-1;;47167:24;47014:1;47129:9;47143:49;47218:4;47212:11;47299:16;47251:18;47299:16;47292:4;47284:6;47280:17;47277:39;47251:18;47243:6;47240:30;47231:91;47228:2;;;47330:5;;;;;;47228:2;47368:6;47362:4;47358:17;47347:28;;47400:3;47394:10;47380:24;;47251:18;47415:6;47412:30;47409:2;;;47445:5;;;;;;47409:2;;47522:16;47516:4;47512:27;47482:4;47489:6;47477:3;47469:27;;47504:36;47501:2;;;47543:5;;;;;47501:2;46764:7;46748:14;-1:-1;;46744:28;47567:50;;47482:4;47567:50;47135:2;47556:62;47575:3;-1:-1;;46942:696;:::o;47645:117::-;-1:-1;;;;;45919:54;;47704:35;;47694:2;;47753:1;;47743:12

Swarm Source

ipfs://9d367cf425f30df42cb2e54186edc1b0bada8c5138fa5740fdeaeca40bae650a
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.