ETH Price: $3,421.56 (-2.25%)
Gas: 8 Gwei

Contract

0x63a3f444E97d14e671E7Ee323C4234c8095E3516
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0xc7ef2396ddf425945bdf07f490c301123b8b4ad1d4d828da2996c8c4799eb193 Swap And Deposit(pending)2024-07-14 3:04:564 days ago1720926296IN
0x63a3f444...8095E3516
0 ETH(Pending)(Pending)
0xb33c76ba46b22f9e173afa8bcd3cd4f742168e70c639403f81702e08ca430ca8 Swap And Deposit(pending)2024-07-14 2:43:024 days ago1720924982IN
0x63a3f444...8095E3516
0 ETH(Pending)(Pending)
0x16f8ecb3fcbb5defddf348b76a6fd5928965a5c3db8c192c016c6f1c29375682 Swap And Deposit(pending)2024-07-14 2:08:294 days ago1720922909IN
0x63a3f444...8095E3516
0 ETH(Pending)(Pending)
Swap And Deposit152434182022-07-30 11:05:02718 days ago1659179102IN
0x63a3f444...8095E3516
0 ETH0.001376973
Swap And Deposit127260632021-06-29 1:35:251115 days ago1624930525IN
0x63a3f444...8095E3516
0 ETH0.0096449412.1
Swap And Deposit127090512021-06-26 10:04:281117 days ago1624701868IN
0x63a3f444...8095E3516
0 ETH0.0065092410
Swap And Deposit126987342021-06-24 19:32:501119 days ago1624563170IN
0x63a3f444...8095E3516
0 ETH0.0095253214
Swap And Deposit126924242021-06-23 20:05:251120 days ago1624478725IN
0x63a3f444...8095E3516
0 ETH0.0430509640
Swap And Deposit126874882021-06-23 1:23:191121 days ago1624411399IN
0x63a3f444...8095E3516
0 ETH0.0196543632
Swap And Deposit126861732021-06-22 20:26:041121 days ago1624393564IN
0x63a3f444...8095E3516
0 ETH0.0298666828.4
Swap And Deposit126848862021-06-22 15:45:491121 days ago1624376749IN
0x63a3f444...8095E3516
0 ETH0.10235656121
Swap And Deposit126847772021-06-22 15:20:381121 days ago1624375238IN
0x63a3f444...8095E3516
0 ETH0.0712873299.00000072
Swap And Deposit126846652021-06-22 14:55:181121 days ago1624373718IN
0x63a3f444...8095E3516
0 ETH0.07776704111
Swap And Deposit126846572021-06-22 14:54:251121 days ago1624373665IN
0x63a3f444...8095E3516
0 ETH0.16418328155
Swap And Deposit126840872021-06-22 12:46:451121 days ago1624366005IN
0x63a3f444...8095E3516
0 ETH0.2501818220
Swap And Deposit126840412021-06-22 12:35:551121 days ago1624365355IN
0x63a3f444...8095E3516
0 ETH0.27519775250
Swap And Deposit126839192021-06-22 12:09:331121 days ago1624363773IN
0x63a3f444...8095E3516
0 ETH0.08101664109
Swap And Deposit126824832021-06-22 6:41:151121 days ago1624344075IN
0x63a3f444...8095E3516
0 ETH0.0101582112
Swap And Deposit126824802021-06-22 6:40:561121 days ago1624344056IN
0x63a3f444...8095E3516
0 ETH0.0093557812.00000145
Swap And Deposit126824262021-06-22 6:29:081121 days ago1624343348IN
0x63a3f444...8095E3516
0 ETH0.0154995620.00000145
Swap And Deposit126823842021-06-22 6:16:061121 days ago1624342566IN
0x63a3f444...8095E3516
0 ETH0.0109119912
Swap And Deposit126822202021-06-22 5:38:471122 days ago1624340327IN
0x63a3f444...8095E3516
0 ETH0.010829213
Swap And Deposit126821442021-06-22 5:25:171122 days ago1624339517IN
0x63a3f444...8095E3516
0 ETH0.01221812
Swap And Deposit126820542021-06-22 5:08:041122 days ago1624338484IN
0x63a3f444...8095E3516
0 ETH0.011692616.5
Swap And Deposit126819702021-06-22 4:50:101122 days ago1624337410IN
0x63a3f444...8095E3516
0 ETH0.0200061918
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniswapLiquiditySwapAdapter

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-08
*/

// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;


interface IBaseUniswapAdapter {
  event Swapped(address fromAsset, address toAsset, uint256 fromAmount, uint256 receivedAmount);

  struct PermitSignature {
    uint256 amount;
    uint256 deadline;
    uint8 v;
    bytes32 r;
    bytes32 s;
  }

  struct AmountCalc {
    uint256 calculatedAmount;
    uint256 relativePrice;
    uint256 amountInUsd;
    uint256 amountOutUsd;
    address[] path;
  }

  function WETH_ADDRESS() external returns (address);

  function MAX_SLIPPAGE_PERCENT() external returns (uint256);

  function FLASHLOAN_PREMIUM_TOTAL() external returns (uint256);

  function USD_ADDRESS() external returns (address);

  function ORACLE() external returns (IPriceOracleGetter);

  function UNISWAP_ROUTER() external returns (IUniswapV2Router02);

  /**
   * @dev Given an input asset amount, returns the maximum output amount of the other asset and the prices
   * @param amountIn Amount of reserveIn
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @return uint256 Amount out of the reserveOut
   * @return uint256 The price of out amount denominated in the reserveIn currency (18 decimals)
   * @return uint256 In amount of reserveIn value denominated in USD (8 decimals)
   * @return uint256 Out amount of reserveOut value denominated in USD (8 decimals)
   * @return address[] The exchange path
   */
  function getAmountsOut(
    uint256 amountIn,
    address reserveIn,
    address reserveOut
  )
    external
    view
    returns (
      uint256,
      uint256,
      uint256,
      uint256,
      address[] memory
    );

  /**
   * @dev Returns the minimum input asset amount required to buy the given output asset amount and the prices
   * @param amountOut Amount of reserveOut
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @return uint256 Amount in of the reserveIn
   * @return uint256 The price of in amount denominated in the reserveOut currency (18 decimals)
   * @return uint256 In amount of reserveIn value denominated in USD (8 decimals)
   * @return uint256 Out amount of reserveOut value denominated in USD (8 decimals)
   * @return address[] The exchange path
   */
  function getAmountsIn(
    uint256 amountOut,
    address reserveIn,
    address reserveOut
  )
    external
    view
    returns (
      uint256,
      uint256,
      uint256,
      uint256,
      address[] memory
    );
}



/**
 * @title IFlashLoanReceiver interface
 * @notice Interface for the Aave fee IFlashLoanReceiver.
 * @author Aave
 * @dev implement this interface to develop a flashloan-compatible flashLoanReceiver contract
 **/
interface IFlashLoanReceiver {
  function executeOperation(
    address[] calldata assets,
    uint256[] calldata amounts,
    uint256[] calldata premiums,
    address initiator,
    bytes calldata params
  ) external returns (bool);

  function ADDRESSES_PROVIDER() external view returns (ILendingPoolAddressesProvider);

  function LENDING_POOL() external view returns (ILendingPool);
}

abstract contract FlashLoanReceiverBase is IFlashLoanReceiver {
  using SafeERC20 for IERC20;
  using SafeMath for uint256;

  ILendingPoolAddressesProvider public immutable override ADDRESSES_PROVIDER;
  ILendingPool public immutable override LENDING_POOL;

  constructor(ILendingPoolAddressesProvider provider) public {
    ADDRESSES_PROVIDER = provider;
    LENDING_POOL = ILendingPool(provider.getLendingPool());
  }
}


interface IPriceOracleGetter {
  /**
   * @dev returns the asset price in ETH
   * @param asset the address of the asset
   * @return the ETH price of the asset
   **/
  function getAssetPrice(address asset) external view returns (uint256);
}

interface IUniswapV2Router02 {
  function swapExactTokensForTokens(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function swapTokensForExactTokens(
    uint amountOut,
    uint amountInMax,
    address[] calldata path,
    address to,
    uint deadline
  ) external returns (uint256[] memory amounts);

  function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);

  function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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}
}


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

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

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


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

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

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

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

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

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

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

/**
 * @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) {
    // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
    // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
    // for accounts without code, i.e. `keccak256('')`
    bytes32 codehash;
    bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      codehash := extcodehash(account)
    }
    return (codehash != accountHash && codehash != 0x0);
  }

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



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

  function safeApprove(
    IERC20 token,
    address spender,
    uint256 value
  ) internal {
    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 callOptionalReturn(IERC20 token, bytes memory data) private {
    require(address(token).isContract(), 'SafeERC20: call to non-contract');

    // solhint-disable-next-line avoid-low-level-calls
    (bool success, bytes memory returndata) = address(token).call(data);
    require(success, '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');
    }
  }
}

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



interface IERC20Detailed is IERC20 {
  function name() external view returns (string memory);

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

  function decimals() external view returns (uint8);
}

interface IERC20WithPermit is IERC20 {
  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;
}

/**
 * @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) {
    // Solidity only automatically asserts when dividing by 0
    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;
  }
}

/**
 * @title Errors library
 * @author Aave
 * @notice Defines the error messages emitted by the different contracts of the Aave protocol
 * @dev Error messages prefix glossary:
 *  - VL = ValidationLogic
 *  - MATH = Math libraries
 *  - CT = Common errors between tokens (AToken, VariableDebtToken and StableDebtToken)
 *  - AT = AToken
 *  - SDT = StableDebtToken
 *  - VDT = VariableDebtToken
 *  - LP = LendingPool
 *  - LPAPR = LendingPoolAddressesProviderRegistry
 *  - LPC = LendingPoolConfiguration
 *  - RL = ReserveLogic
 *  - LPCM = LendingPoolCollateralManager
 *  - P = Pausable
 */
library Errors {
  //common errors
  string public constant CALLER_NOT_POOL_ADMIN = '33'; // 'The caller must be the pool admin'
  string public constant BORROW_ALLOWANCE_NOT_ENOUGH = '59'; // User borrows on behalf, but allowance are too small

  //contract specific errors
  string public constant VL_INVALID_AMOUNT = '1'; // 'Amount must be greater than 0'
  string public constant VL_NO_ACTIVE_RESERVE = '2'; // 'Action requires an active reserve'
  string public constant VL_RESERVE_FROZEN = '3'; // 'Action cannot be performed because the reserve is frozen'
  string public constant VL_CURRENT_AVAILABLE_LIQUIDITY_NOT_ENOUGH = '4'; // 'The current liquidity is not enough'
  string public constant VL_NOT_ENOUGH_AVAILABLE_USER_BALANCE = '5'; // 'User cannot withdraw more than the available balance'
  string public constant VL_TRANSFER_NOT_ALLOWED = '6'; // 'Transfer cannot be allowed.'
  string public constant VL_BORROWING_NOT_ENABLED = '7'; // 'Borrowing is not enabled'
  string public constant VL_INVALID_INTEREST_RATE_MODE_SELECTED = '8'; // 'Invalid interest rate mode selected'
  string public constant VL_COLLATERAL_BALANCE_IS_0 = '9'; // 'The collateral balance is 0'
  string public constant VL_HEALTH_FACTOR_LOWER_THAN_LIQUIDATION_THRESHOLD = '10'; // 'Health factor is lesser than the liquidation threshold'
  string public constant VL_COLLATERAL_CANNOT_COVER_NEW_BORROW = '11'; // 'There is not enough collateral to cover a new borrow'
  string public constant VL_STABLE_BORROWING_NOT_ENABLED = '12'; // stable borrowing not enabled
  string public constant VL_COLLATERAL_SAME_AS_BORROWING_CURRENCY = '13'; // collateral is (mostly) the same currency that is being borrowed
  string public constant VL_AMOUNT_BIGGER_THAN_MAX_LOAN_SIZE_STABLE = '14'; // 'The requested amount is greater than the max loan size in stable rate mode
  string public constant VL_NO_DEBT_OF_SELECTED_TYPE = '15'; // 'for repayment of stable debt, the user needs to have stable debt, otherwise, he needs to have variable debt'
  string public constant VL_NO_EXPLICIT_AMOUNT_TO_REPAY_ON_BEHALF = '16'; // 'To repay on behalf of an user an explicit amount to repay is needed'
  string public constant VL_NO_STABLE_RATE_LOAN_IN_RESERVE = '17'; // 'User does not have a stable rate loan in progress on this reserve'
  string public constant VL_NO_VARIABLE_RATE_LOAN_IN_RESERVE = '18'; // 'User does not have a variable rate loan in progress on this reserve'
  string public constant VL_UNDERLYING_BALANCE_NOT_GREATER_THAN_0 = '19'; // 'The underlying balance needs to be greater than 0'
  string public constant VL_DEPOSIT_ALREADY_IN_USE = '20'; // 'User deposit is already being used as collateral'
  string public constant LP_NOT_ENOUGH_STABLE_BORROW_BALANCE = '21'; // 'User does not have any stable rate loan for this reserve'
  string public constant LP_INTEREST_RATE_REBALANCE_CONDITIONS_NOT_MET = '22'; // 'Interest rate rebalance conditions were not met'
  string public constant LP_LIQUIDATION_CALL_FAILED = '23'; // 'Liquidation call failed'
  string public constant LP_NOT_ENOUGH_LIQUIDITY_TO_BORROW = '24'; // 'There is not enough liquidity available to borrow'
  string public constant LP_REQUESTED_AMOUNT_TOO_SMALL = '25'; // 'The requested amount is too small for a FlashLoan.'
  string public constant LP_INCONSISTENT_PROTOCOL_ACTUAL_BALANCE = '26'; // 'The actual balance of the protocol is inconsistent'
  string public constant LP_CALLER_NOT_LENDING_POOL_CONFIGURATOR = '27'; // 'The caller of the function is not the lending pool configurator'
  string public constant LP_INCONSISTENT_FLASHLOAN_PARAMS = '28';
  string public constant CT_CALLER_MUST_BE_LENDING_POOL = '29'; // 'The caller of this function must be a lending pool'
  string public constant CT_CANNOT_GIVE_ALLOWANCE_TO_HIMSELF = '30'; // 'User cannot give allowance to himself'
  string public constant CT_TRANSFER_AMOUNT_NOT_GT_0 = '31'; // 'Transferred amount needs to be greater than zero'
  string public constant RL_RESERVE_ALREADY_INITIALIZED = '32'; // 'Reserve has already been initialized'
  string public constant LPC_RESERVE_LIQUIDITY_NOT_0 = '34'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_ATOKEN_POOL_ADDRESS = '35'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_STABLE_DEBT_TOKEN_POOL_ADDRESS = '36'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_VARIABLE_DEBT_TOKEN_POOL_ADDRESS = '37'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_STABLE_DEBT_TOKEN_UNDERLYING_ADDRESS = '38'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_VARIABLE_DEBT_TOKEN_UNDERLYING_ADDRESS = '39'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_ADDRESSES_PROVIDER_ID = '40'; // 'The liquidity of the reserve needs to be 0'
  string public constant LPC_INVALID_CONFIGURATION = '75'; // 'Invalid risk parameters for the reserve'
  string public constant LPC_CALLER_NOT_EMERGENCY_ADMIN = '76'; // 'The caller must be the emergency admin'
  string public constant LPAPR_PROVIDER_NOT_REGISTERED = '41'; // 'Provider is not registered'
  string public constant LPCM_HEALTH_FACTOR_NOT_BELOW_THRESHOLD = '42'; // 'Health factor is not below the threshold'
  string public constant LPCM_COLLATERAL_CANNOT_BE_LIQUIDATED = '43'; // 'The collateral chosen cannot be liquidated'
  string public constant LPCM_SPECIFIED_CURRENCY_NOT_BORROWED_BY_USER = '44'; // 'User did not borrow the specified currency'
  string public constant LPCM_NOT_ENOUGH_LIQUIDITY_TO_LIQUIDATE = '45'; // "There isn't enough liquidity available to liquidate"
  string public constant LPCM_NO_ERRORS = '46'; // 'No errors'
  string public constant LP_INVALID_FLASHLOAN_MODE = '47'; //Invalid flashloan mode selected
  string public constant MATH_MULTIPLICATION_OVERFLOW = '48';
  string public constant MATH_ADDITION_OVERFLOW = '49';
  string public constant MATH_DIVISION_BY_ZERO = '50';
  string public constant RL_LIQUIDITY_INDEX_OVERFLOW = '51'; //  Liquidity index overflows uint128
  string public constant RL_VARIABLE_BORROW_INDEX_OVERFLOW = '52'; //  Variable borrow index overflows uint128
  string public constant RL_LIQUIDITY_RATE_OVERFLOW = '53'; //  Liquidity rate overflows uint128
  string public constant RL_VARIABLE_BORROW_RATE_OVERFLOW = '54'; //  Variable borrow rate overflows uint128
  string public constant RL_STABLE_BORROW_RATE_OVERFLOW = '55'; //  Stable borrow rate overflows uint128
  string public constant CT_INVALID_MINT_AMOUNT = '56'; //invalid amount to mint
  string public constant LP_FAILED_REPAY_WITH_COLLATERAL = '57';
  string public constant CT_INVALID_BURN_AMOUNT = '58'; //invalid amount to burn
  string public constant LP_FAILED_COLLATERAL_SWAP = '60';
  string public constant LP_INVALID_EQUAL_ASSETS_TO_SWAP = '61';
  string public constant LP_REENTRANCY_NOT_ALLOWED = '62';
  string public constant LP_CALLER_MUST_BE_AN_ATOKEN = '63';
  string public constant LP_IS_PAUSED = '64'; // 'Pool is paused'
  string public constant LP_NO_MORE_RESERVES_ALLOWED = '65';
  string public constant LP_INVALID_FLASH_LOAN_EXECUTOR_RETURN = '66';
  string public constant RC_INVALID_LTV = '67';
  string public constant RC_INVALID_LIQ_THRESHOLD = '68';
  string public constant RC_INVALID_LIQ_BONUS = '69';
  string public constant RC_INVALID_DECIMALS = '70';
  string public constant RC_INVALID_RESERVE_FACTOR = '71';
  string public constant LPAPR_INVALID_ADDRESSES_PROVIDER_ID = '72';
  string public constant VL_INCONSISTENT_FLASHLOAN_PARAMS = '73';
  string public constant LP_INCONSISTENT_PARAMS_LENGTH = '74';
  string public constant UL_INVALID_INDEX = '77';
  string public constant LP_NOT_CONTRACT = '78';
  string public constant SDT_STABLE_DEBT_OVERFLOW = '79';
  string public constant SDT_BURN_EXCEEDS_BALANCE = '80';

  enum CollateralManagerErrors {
    NO_ERROR,
    NO_COLLATERAL_AVAILABLE,
    COLLATERAL_CANNOT_BE_LIQUIDATED,
    CURRRENCY_NOT_BORROWED,
    HEALTH_FACTOR_ABOVE_THRESHOLD,
    NOT_ENOUGH_LIQUIDITY,
    NO_ACTIVE_RESERVE,
    HEALTH_FACTOR_LOWER_THAN_LIQUIDATION_THRESHOLD,
    INVALID_EQUAL_ASSETS_TO_SWAP,
    FROZEN_RESERVE
  }
}

interface ILendingPool {
  /**
   * @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 (ILendingPoolAddressesProvider);

  function setPause(bool val) external;

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

/**
 * @title PercentageMath library
 * @author Aave
 * @notice Provides functions to perform percentage calculations
 * @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision is indicated by PERCENTAGE_FACTOR
 * @dev Operations are rounded half up
 **/

library PercentageMath {
  uint256 constant PERCENTAGE_FACTOR = 1e4; //percentage plus two decimals
  uint256 constant HALF_PERCENT = PERCENTAGE_FACTOR / 2;

  /**
   * @dev Executes a percentage multiplication
   * @param value The value of which the percentage needs to be calculated
   * @param percentage The percentage of the value to be calculated
   * @return The percentage of value
   **/
  function percentMul(uint256 value, uint256 percentage) internal pure returns (uint256) {
    if (value == 0 || percentage == 0) {
      return 0;
    }

    require(
      value <= (type(uint256).max - HALF_PERCENT) / percentage,
      Errors.MATH_MULTIPLICATION_OVERFLOW
    );

    return (value * percentage + HALF_PERCENT) / PERCENTAGE_FACTOR;
  }

  /**
   * @dev Executes a percentage division
   * @param value The value of which the percentage needs to be calculated
   * @param percentage The percentage of the value to be calculated
   * @return The value divided the percentage
   **/
  function percentDiv(uint256 value, uint256 percentage) internal pure returns (uint256) {
    require(percentage != 0, Errors.MATH_DIVISION_BY_ZERO);
    uint256 halfPercentage = percentage / 2;

    require(
      value <= (type(uint256).max - halfPercentage) / PERCENTAGE_FACTOR,
      Errors.MATH_MULTIPLICATION_OVERFLOW
    );

    return (value * PERCENTAGE_FACTOR + halfPercentage) / percentage;
  }
}

/**
 * @title BaseUniswapAdapter
 * @notice Implements the logic for performing assets swaps in Uniswap V2
 * @author Aave
 **/
abstract contract BaseUniswapAdapter is FlashLoanReceiverBase, IBaseUniswapAdapter, Ownable {
  using SafeMath for uint256;
  using PercentageMath for uint256;
  using SafeERC20 for IERC20;

  // Max slippage percent allowed
  uint256 public constant override MAX_SLIPPAGE_PERCENT = 3000; // 30%
  // FLash Loan fee set in lending pool
  uint256 public constant override FLASHLOAN_PREMIUM_TOTAL = 9;
  // USD oracle asset address
  address public constant override USD_ADDRESS = 0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96;

  //  address public constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; mainnet
  //  address public constant WETH_ADDRESS = 0xd0a1e359811322d97991e03f863a0c30c2cf029c; kovan

  address public immutable override WETH_ADDRESS;
  IPriceOracleGetter public immutable override ORACLE;
  IUniswapV2Router02 public immutable override UNISWAP_ROUTER;

  constructor(
    ILendingPoolAddressesProvider addressesProvider,
    IUniswapV2Router02 uniswapRouter,
    address wethAddress
  ) public FlashLoanReceiverBase(addressesProvider) {
    ORACLE = IPriceOracleGetter(addressesProvider.getPriceOracle());
    UNISWAP_ROUTER = uniswapRouter;
    WETH_ADDRESS = wethAddress;
  }

  /**
   * @dev Given an input asset amount, returns the maximum output amount of the other asset and the prices
   * @param amountIn Amount of reserveIn
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @return uint256 Amount out of the reserveOut
   * @return uint256 The price of out amount denominated in the reserveIn currency (18 decimals)
   * @return uint256 In amount of reserveIn value denominated in USD (8 decimals)
   * @return uint256 Out amount of reserveOut value denominated in USD (8 decimals)
   */
  function getAmountsOut(
    uint256 amountIn,
    address reserveIn,
    address reserveOut
  )
    external
    view
    override
    returns (
      uint256,
      uint256,
      uint256,
      uint256,
      address[] memory
    )
  {
    AmountCalc memory results = _getAmountsOutData(reserveIn, reserveOut, amountIn);

    return (
      results.calculatedAmount,
      results.relativePrice,
      results.amountInUsd,
      results.amountOutUsd,
      results.path
    );
  }

  /**
   * @dev Returns the minimum input asset amount required to buy the given output asset amount and the prices
   * @param amountOut Amount of reserveOut
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @return uint256 Amount in of the reserveIn
   * @return uint256 The price of in amount denominated in the reserveOut currency (18 decimals)
   * @return uint256 In amount of reserveIn value denominated in USD (8 decimals)
   * @return uint256 Out amount of reserveOut value denominated in USD (8 decimals)
   */
  function getAmountsIn(
    uint256 amountOut,
    address reserveIn,
    address reserveOut
  )
    external
    view
    override
    returns (
      uint256,
      uint256,
      uint256,
      uint256,
      address[] memory
    )
  {
    AmountCalc memory results = _getAmountsInData(reserveIn, reserveOut, amountOut);

    return (
      results.calculatedAmount,
      results.relativePrice,
      results.amountInUsd,
      results.amountOutUsd,
      results.path
    );
  }

  /**
   * @dev Swaps an exact `amountToSwap` of an asset to another
   * @param assetToSwapFrom Origin asset
   * @param assetToSwapTo Destination asset
   * @param amountToSwap Exact amount of `assetToSwapFrom` to be swapped
   * @param minAmountOut the min amount of `assetToSwapTo` to be received from the swap
   * @return the amount received from the swap
   */
  function _swapExactTokensForTokens(
    address assetToSwapFrom,
    address assetToSwapTo,
    uint256 amountToSwap,
    uint256 minAmountOut,
    bool useEthPath
  ) internal returns (uint256) {
    uint256 fromAssetDecimals = _getDecimals(assetToSwapFrom);
    uint256 toAssetDecimals = _getDecimals(assetToSwapTo);

    uint256 fromAssetPrice = _getPrice(assetToSwapFrom);
    uint256 toAssetPrice = _getPrice(assetToSwapTo);

    uint256 expectedMinAmountOut =
      amountToSwap
        .mul(fromAssetPrice.mul(10**toAssetDecimals))
        .div(toAssetPrice.mul(10**fromAssetDecimals))
        .percentMul(PercentageMath.PERCENTAGE_FACTOR.sub(MAX_SLIPPAGE_PERCENT));

    require(expectedMinAmountOut < minAmountOut, 'minAmountOut exceed max slippage');

    // Approves the transfer for the swap. Approves for 0 first to comply with tokens that implement the anti frontrunning approval fix.
    IERC20(assetToSwapFrom).safeApprove(address(UNISWAP_ROUTER), 0);
    IERC20(assetToSwapFrom).safeApprove(address(UNISWAP_ROUTER), amountToSwap);

    address[] memory path;
    if (useEthPath) {
      path = new address[](3);
      path[0] = assetToSwapFrom;
      path[1] = WETH_ADDRESS;
      path[2] = assetToSwapTo;
    } else {
      path = new address[](2);
      path[0] = assetToSwapFrom;
      path[1] = assetToSwapTo;
    }
    uint256[] memory amounts =
      UNISWAP_ROUTER.swapExactTokensForTokens(
        amountToSwap,
        minAmountOut,
        path,
        address(this),
        block.timestamp
      );

    emit Swapped(assetToSwapFrom, assetToSwapTo, amounts[0], amounts[amounts.length - 1]);

    return amounts[amounts.length - 1];
  }

  /**
   * @dev Receive an exact amount `amountToReceive` of `assetToSwapTo` tokens for as few `assetToSwapFrom` tokens as
   * possible.
   * @param assetToSwapFrom Origin asset
   * @param assetToSwapTo Destination asset
   * @param maxAmountToSwap Max amount of `assetToSwapFrom` allowed to be swapped
   * @param amountToReceive Exact amount of `assetToSwapTo` to receive
   * @return the amount swapped
   */
  function _swapTokensForExactTokens(
    address assetToSwapFrom,
    address assetToSwapTo,
    uint256 maxAmountToSwap,
    uint256 amountToReceive,
    bool useEthPath
  ) internal returns (uint256) {
    uint256 fromAssetDecimals = _getDecimals(assetToSwapFrom);
    uint256 toAssetDecimals = _getDecimals(assetToSwapTo);

    uint256 fromAssetPrice = _getPrice(assetToSwapFrom);
    uint256 toAssetPrice = _getPrice(assetToSwapTo);

    uint256 expectedMaxAmountToSwap =
      amountToReceive
        .mul(toAssetPrice.mul(10**fromAssetDecimals))
        .div(fromAssetPrice.mul(10**toAssetDecimals))
        .percentMul(PercentageMath.PERCENTAGE_FACTOR.add(MAX_SLIPPAGE_PERCENT));

    require(maxAmountToSwap < expectedMaxAmountToSwap, 'maxAmountToSwap exceed max slippage');

    // Approves the transfer for the swap. Approves for 0 first to comply with tokens that implement the anti frontrunning approval fix.
    IERC20(assetToSwapFrom).safeApprove(address(UNISWAP_ROUTER), 0);
    IERC20(assetToSwapFrom).safeApprove(address(UNISWAP_ROUTER), maxAmountToSwap);

    address[] memory path;
    if (useEthPath) {
      path = new address[](3);
      path[0] = assetToSwapFrom;
      path[1] = WETH_ADDRESS;
      path[2] = assetToSwapTo;
    } else {
      path = new address[](2);
      path[0] = assetToSwapFrom;
      path[1] = assetToSwapTo;
    }

    uint256[] memory amounts =
      UNISWAP_ROUTER.swapTokensForExactTokens(
        amountToReceive,
        maxAmountToSwap,
        path,
        address(this),
        block.timestamp
      );

    emit Swapped(assetToSwapFrom, assetToSwapTo, amounts[0], amounts[amounts.length - 1]);

    return amounts[0];
  }

  /**
   * @dev Get the price of the asset from the oracle denominated in eth
   * @param asset address
   * @return eth price for the asset
   */
  function _getPrice(address asset) internal view returns (uint256) {
    return ORACLE.getAssetPrice(asset);
  }

  /**
   * @dev Get the decimals of an asset
   * @return number of decimals of the asset
   */
  function _getDecimals(address asset) internal view returns (uint256) {
    return IERC20Detailed(asset).decimals();
  }

  /**
   * @dev Get the aToken associated to the asset
   * @return address of the aToken
   */
  function _getReserveData(address asset) internal view returns (DataTypes.ReserveData memory) {
    return LENDING_POOL.getReserveData(asset);
  }

  /**
   * @dev Pull the ATokens from the user
   * @param reserve address of the asset
   * @param reserveAToken address of the aToken of the reserve
   * @param user address
   * @param amount of tokens to be transferred to the contract
   * @param permitSignature struct containing the permit signature
   */
  function _pullAToken(
    address reserve,
    address reserveAToken,
    address user,
    uint256 amount,
    PermitSignature memory permitSignature
  ) internal {
    if (_usePermit(permitSignature)) {
      IERC20WithPermit(reserveAToken).permit(
        user,
        address(this),
        permitSignature.amount,
        permitSignature.deadline,
        permitSignature.v,
        permitSignature.r,
        permitSignature.s
      );
    }

    // transfer from user to adapter
    IERC20(reserveAToken).safeTransferFrom(user, address(this), amount);

    // withdraw reserve
    LENDING_POOL.withdraw(reserve, amount, address(this));
  }

  /**
   * @dev Tells if the permit method should be called by inspecting if there is a valid signature.
   * If signature params are set to 0, then permit won't be called.
   * @param signature struct containing the permit signature
   * @return whether or not permit should be called
   */
  function _usePermit(PermitSignature memory signature) internal pure returns (bool) {
    return
      !(uint256(signature.deadline) == uint256(signature.v) && uint256(signature.deadline) == 0);
  }

  /**
   * @dev Calculates the value denominated in USD
   * @param reserve Address of the reserve
   * @param amount Amount of the reserve
   * @param decimals Decimals of the reserve
   * @return whether or not permit should be called
   */
  function _calcUsdValue(
    address reserve,
    uint256 amount,
    uint256 decimals
  ) internal view returns (uint256) {
    uint256 ethUsdPrice = _getPrice(USD_ADDRESS);
    uint256 reservePrice = _getPrice(reserve);

    return amount.mul(reservePrice).div(10**decimals).mul(ethUsdPrice).div(10**18);
  }

  /**
   * @dev Given an input asset amount, returns the maximum output amount of the other asset
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @param amountIn Amount of reserveIn
   * @return Struct containing the following information:
   *   uint256 Amount out of the reserveOut
   *   uint256 The price of out amount denominated in the reserveIn currency (18 decimals)
   *   uint256 In amount of reserveIn value denominated in USD (8 decimals)
   *   uint256 Out amount of reserveOut value denominated in USD (8 decimals)
   */
  function _getAmountsOutData(
    address reserveIn,
    address reserveOut,
    uint256 amountIn
  ) internal view returns (AmountCalc memory) {
    // Subtract flash loan fee
    uint256 finalAmountIn = amountIn.sub(amountIn.mul(FLASHLOAN_PREMIUM_TOTAL).div(10000));

    address[] memory simplePath = new address[](2);
    simplePath[0] = reserveIn;
    simplePath[1] = reserveOut;

    uint256[] memory amountsWithoutWeth;
    uint256[] memory amountsWithWeth;

    address[] memory pathWithWeth = new address[](3);
    if (reserveIn != WETH_ADDRESS && reserveOut != WETH_ADDRESS) {
      pathWithWeth[0] = reserveIn;
      pathWithWeth[1] = WETH_ADDRESS;
      pathWithWeth[2] = reserveOut;

      try UNISWAP_ROUTER.getAmountsOut(finalAmountIn, pathWithWeth) returns (
        uint256[] memory resultsWithWeth
      ) {
        amountsWithWeth = resultsWithWeth;
      } catch {
        amountsWithWeth = new uint256[](3);
      }
    } else {
      amountsWithWeth = new uint256[](3);
    }

    uint256 bestAmountOut;
    try UNISWAP_ROUTER.getAmountsOut(finalAmountIn, simplePath) returns (
      uint256[] memory resultAmounts
    ) {
      amountsWithoutWeth = resultAmounts;

      bestAmountOut = (amountsWithWeth[2] > amountsWithoutWeth[1])
        ? amountsWithWeth[2]
        : amountsWithoutWeth[1];
    } catch {
      amountsWithoutWeth = new uint256[](2);
      bestAmountOut = amountsWithWeth[2];
    }

    uint256 reserveInDecimals = _getDecimals(reserveIn);
    uint256 reserveOutDecimals = _getDecimals(reserveOut);

    uint256 outPerInPrice =
      finalAmountIn.mul(10**18).mul(10**reserveOutDecimals).div(
        bestAmountOut.mul(10**reserveInDecimals)
      );

    return
      AmountCalc(
        bestAmountOut,
        outPerInPrice,
        _calcUsdValue(reserveIn, amountIn, reserveInDecimals),
        _calcUsdValue(reserveOut, bestAmountOut, reserveOutDecimals),
        (bestAmountOut == 0) ? new address[](2) : (bestAmountOut == amountsWithoutWeth[1])
          ? simplePath
          : pathWithWeth
      );
  }

  /**
   * @dev Returns the minimum input asset amount required to buy the given output asset amount
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @param amountOut Amount of reserveOut
   * @return Struct containing the following information:
   *   uint256 Amount in of the reserveIn
   *   uint256 The price of in amount denominated in the reserveOut currency (18 decimals)
   *   uint256 In amount of reserveIn value denominated in USD (8 decimals)
   *   uint256 Out amount of reserveOut value denominated in USD (8 decimals)
   */
  function _getAmountsInData(
    address reserveIn,
    address reserveOut,
    uint256 amountOut
  ) internal view returns (AmountCalc memory) {
    (uint256[] memory amounts, address[] memory path) =
      _getAmountsInAndPath(reserveIn, reserveOut, amountOut);

    // Add flash loan fee
    uint256 finalAmountIn = amounts[0].add(amounts[0].mul(FLASHLOAN_PREMIUM_TOTAL).div(10000));

    uint256 reserveInDecimals = _getDecimals(reserveIn);
    uint256 reserveOutDecimals = _getDecimals(reserveOut);

    uint256 inPerOutPrice =
      amountOut.mul(10**18).mul(10**reserveInDecimals).div(
        finalAmountIn.mul(10**reserveOutDecimals)
      );

    return
      AmountCalc(
        finalAmountIn,
        inPerOutPrice,
        _calcUsdValue(reserveIn, finalAmountIn, reserveInDecimals),
        _calcUsdValue(reserveOut, amountOut, reserveOutDecimals),
        path
      );
  }

  /**
   * @dev Calculates the input asset amount required to buy the given output asset amount
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @param amountOut Amount of reserveOut
   * @return uint256[] amounts Array containing the amountIn and amountOut for a swap
   */
  function _getAmountsInAndPath(
    address reserveIn,
    address reserveOut,
    uint256 amountOut
  ) internal view returns (uint256[] memory, address[] memory) {
    address[] memory simplePath = new address[](2);
    simplePath[0] = reserveIn;
    simplePath[1] = reserveOut;

    uint256[] memory amountsWithoutWeth;
    uint256[] memory amountsWithWeth;
    address[] memory pathWithWeth = new address[](3);

    if (reserveIn != WETH_ADDRESS && reserveOut != WETH_ADDRESS) {
      pathWithWeth[0] = reserveIn;
      pathWithWeth[1] = WETH_ADDRESS;
      pathWithWeth[2] = reserveOut;

      try UNISWAP_ROUTER.getAmountsIn(amountOut, pathWithWeth) returns (
        uint256[] memory resultsWithWeth
      ) {
        amountsWithWeth = resultsWithWeth;
      } catch {
        amountsWithWeth = new uint256[](3);
      }
    } else {
      amountsWithWeth = new uint256[](3);
    }

    try UNISWAP_ROUTER.getAmountsIn(amountOut, simplePath) returns (
      uint256[] memory resultAmounts
    ) {
      amountsWithoutWeth = resultAmounts;

      return
        (amountsWithWeth[2] > amountsWithoutWeth[1])
          ? (amountsWithWeth, pathWithWeth)
          : (amountsWithoutWeth, simplePath);
    } catch {
      return (amountsWithWeth, pathWithWeth);
    }
  }

  /**
   * @dev Calculates the input asset amount required to buy the given output asset amount
   * @param reserveIn Address of the asset to be swap from
   * @param reserveOut Address of the asset to be swap to
   * @param amountOut Amount of reserveOut
   * @return uint256[] amounts Array containing the amountIn and amountOut for a swap
   */
  function _getAmountsIn(
    address reserveIn,
    address reserveOut,
    uint256 amountOut,
    bool useEthPath
  ) internal view returns (uint256[] memory) {
    address[] memory path;

    if (useEthPath) {
      path = new address[](3);
      path[0] = reserveIn;
      path[1] = WETH_ADDRESS;
      path[2] = reserveOut;
    } else {
      path = new address[](2);
      path[0] = reserveIn;
      path[1] = reserveOut;
    }

    return UNISWAP_ROUTER.getAmountsIn(amountOut, path);
  }

  /**
   * @dev Emergency rescue for token stucked on this contract, as failsafe mechanism
   * - Funds should never remain in this contract more time than during transactions
   * - Only callable by the owner
   **/
  function rescueTokens(IERC20 token) external onlyOwner {
    token.transfer(owner(), token.balanceOf(address(this)));
  }
}

/**
 * @title UniswapLiquiditySwapAdapter
 * @notice Uniswap V2 Adapter to swap liquidity.
 * @author Aave
 **/
contract UniswapLiquiditySwapAdapter is BaseUniswapAdapter {
  struct PermitParams {
    uint256[] amount;
    uint256[] deadline;
    uint8[] v;
    bytes32[] r;
    bytes32[] s;
  }

  struct SwapParams {
    address[] assetToSwapToList;
    uint256[] minAmountsToReceive;
    bool[] swapAllBalance;
    PermitParams permitParams;
    bool[] useEthPath;
  }

  constructor(
    ILendingPoolAddressesProvider addressesProvider,
    IUniswapV2Router02 uniswapRouter,
    address wethAddress
  ) public BaseUniswapAdapter(addressesProvider, uniswapRouter, wethAddress) {}

  /**
   * @dev Swaps the received reserve amount from the flash loan into the asset specified in the params.
   * The received funds from the swap are then deposited into the protocol on behalf of the user.
   * The user should give this contract allowance to pull the ATokens in order to withdraw the underlying asset and
   * repay the flash loan.
   * @param assets Address of asset to be swapped
   * @param amounts Amount of the asset to be swapped
   * @param premiums Fee of the flash loan
   * @param initiator Address of the user
   * @param params Additional variadic field to include extra params. Expected parameters:
   *   address[] assetToSwapToList List of the addresses of the reserve to be swapped to and deposited
   *   uint256[] minAmountsToReceive List of min amounts to be received from the swap
   *   bool[] swapAllBalance Flag indicating if all the user balance should be swapped
   *   uint256[] permitAmount List of amounts for the permit signature
   *   uint256[] deadline List of deadlines for the permit signature
   *   uint8[] v List of v param for the permit signature
   *   bytes32[] r List of r param for the permit signature
   *   bytes32[] s List of s param for the permit signature
   */
  function executeOperation(
    address[] calldata assets,
    uint256[] calldata amounts,
    uint256[] calldata premiums,
    address initiator,
    bytes calldata params
  ) external override returns (bool) {
    require(msg.sender == address(LENDING_POOL), 'CALLER_MUST_BE_LENDING_POOL');

    SwapParams memory decodedParams = _decodeParams(params);

    require(
      assets.length == decodedParams.assetToSwapToList.length &&
        assets.length == decodedParams.minAmountsToReceive.length &&
        assets.length == decodedParams.swapAllBalance.length &&
        assets.length == decodedParams.permitParams.amount.length &&
        assets.length == decodedParams.permitParams.deadline.length &&
        assets.length == decodedParams.permitParams.v.length &&
        assets.length == decodedParams.permitParams.r.length &&
        assets.length == decodedParams.permitParams.s.length &&
        assets.length == decodedParams.useEthPath.length,
      'INCONSISTENT_PARAMS'
    );

    for (uint256 i = 0; i < assets.length; i++) {
      _swapLiquidity(
        assets[i],
        decodedParams.assetToSwapToList[i],
        amounts[i],
        premiums[i],
        initiator,
        decodedParams.minAmountsToReceive[i],
        decodedParams.swapAllBalance[i],
        PermitSignature(
          decodedParams.permitParams.amount[i],
          decodedParams.permitParams.deadline[i],
          decodedParams.permitParams.v[i],
          decodedParams.permitParams.r[i],
          decodedParams.permitParams.s[i]
        ),
        decodedParams.useEthPath[i]
      );
    }

    return true;
  }

  struct SwapAndDepositLocalVars {
    uint256 i;
    uint256 aTokenInitiatorBalance;
    uint256 amountToSwap;
    uint256 receivedAmount;
    address aToken;
  }

  /**
   * @dev Swaps an amount of an asset to another and deposits the new asset amount on behalf of the user without using
   * a flash loan. This method can be used when the temporary transfer of the collateral asset to this contract
   * does not affect the user position.
   * The user should give this contract allowance to pull the ATokens in order to withdraw the underlying asset and
   * perform the swap.
   * @param assetToSwapFromList List of addresses of the underlying asset to be swap from
   * @param assetToSwapToList List of addresses of the underlying asset to be swap to and deposited
   * @param amountToSwapList List of amounts to be swapped. If the amount exceeds the balance, the total balance is used for the swap
   * @param minAmountsToReceive List of min amounts to be received from the swap
   * @param permitParams List of struct containing the permit signatures
   *   uint256 permitAmount Amount for the permit signature
   *   uint256 deadline Deadline for the permit signature
   *   uint8 v param for the permit signature
   *   bytes32 r param for the permit signature
   *   bytes32 s param for the permit signature
   * @param useEthPath true if the swap needs to occur using ETH in the routing, false otherwise
   */
  function swapAndDeposit(
    address[] calldata assetToSwapFromList,
    address[] calldata assetToSwapToList,
    uint256[] calldata amountToSwapList,
    uint256[] calldata minAmountsToReceive,
    PermitSignature[] calldata permitParams,
    bool[] calldata useEthPath
  ) external {
    require(
      assetToSwapFromList.length == assetToSwapToList.length &&
        assetToSwapFromList.length == amountToSwapList.length &&
        assetToSwapFromList.length == minAmountsToReceive.length &&
        assetToSwapFromList.length == permitParams.length,
      'INCONSISTENT_PARAMS'
    );

    SwapAndDepositLocalVars memory vars;

    for (vars.i = 0; vars.i < assetToSwapFromList.length; vars.i++) {
      vars.aToken = _getReserveData(assetToSwapFromList[vars.i]).aTokenAddress;

      vars.aTokenInitiatorBalance = IERC20(vars.aToken).balanceOf(msg.sender);
      vars.amountToSwap = amountToSwapList[vars.i] > vars.aTokenInitiatorBalance
        ? vars.aTokenInitiatorBalance
        : amountToSwapList[vars.i];

      _pullAToken(
        assetToSwapFromList[vars.i],
        vars.aToken,
        msg.sender,
        vars.amountToSwap,
        permitParams[vars.i]
      );

      vars.receivedAmount = _swapExactTokensForTokens(
        assetToSwapFromList[vars.i],
        assetToSwapToList[vars.i],
        vars.amountToSwap,
        minAmountsToReceive[vars.i],
        useEthPath[vars.i]
      );

      // Deposit new reserve
      IERC20(assetToSwapToList[vars.i]).safeApprove(address(LENDING_POOL), 0);
      IERC20(assetToSwapToList[vars.i]).safeApprove(address(LENDING_POOL), vars.receivedAmount);
      LENDING_POOL.deposit(assetToSwapToList[vars.i], vars.receivedAmount, msg.sender, 0);
    }
  }

  /**
   * @dev Swaps an `amountToSwap` of an asset to another and deposits the funds on behalf of the initiator.
   * @param assetFrom Address of the underlying asset to be swap from
   * @param assetTo Address of the underlying asset to be swap to and deposited
   * @param amount Amount from flash loan
   * @param premium Premium of the flash loan
   * @param minAmountToReceive Min amount to be received from the swap
   * @param swapAllBalance Flag indicating if all the user balance should be swapped
   * @param permitSignature List of struct containing the permit signature
   * @param useEthPath true if the swap needs to occur using ETH in the routing, false otherwise
   */
   
  struct SwapLiquidityLocalVars {
   address aToken;
   uint256 aTokenInitiatorBalance;
   uint256 amountToSwap;
   uint256 receivedAmount;
   uint256 flashLoanDebt;
   uint256 amountToPull;
  }
  
  function _swapLiquidity(
    address assetFrom,
    address assetTo,
    uint256 amount,
    uint256 premium,
    address initiator,
    uint256 minAmountToReceive,
    bool swapAllBalance,
    PermitSignature memory permitSignature,
    bool useEthPath
  ) internal {
    
    SwapLiquidityLocalVars memory vars;
    
    vars.aToken = _getReserveData(assetFrom).aTokenAddress;

    vars.aTokenInitiatorBalance = IERC20(vars.aToken).balanceOf(initiator);
    vars.amountToSwap =
      swapAllBalance && vars.aTokenInitiatorBalance.sub(premium) <= amount
        ? vars.aTokenInitiatorBalance.sub(premium)
        : amount;

    vars.receivedAmount =
      _swapExactTokensForTokens(assetFrom, assetTo, vars.amountToSwap, minAmountToReceive, useEthPath);

    // Deposit new reserve
    IERC20(assetTo).safeApprove(address(LENDING_POOL), 0);
    IERC20(assetTo).safeApprove(address(LENDING_POOL), vars.receivedAmount);
    LENDING_POOL.deposit(assetTo, vars.receivedAmount, initiator, 0);

    vars.flashLoanDebt = amount.add(premium);
    vars.amountToPull = vars.amountToSwap.add(premium);

    _pullAToken(assetFrom, vars.aToken, initiator, vars.amountToPull, permitSignature);

    // Repay flash loan
    IERC20(assetFrom).safeApprove(address(LENDING_POOL), 0);
    IERC20(assetFrom).safeApprove(address(LENDING_POOL), vars.flashLoanDebt);
  }

  /**
   * @dev Decodes the information encoded in the flash loan params
   * @param params Additional variadic field to include extra params. Expected parameters:
   *   address[] assetToSwapToList List of the addresses of the reserve to be swapped to and deposited
   *   uint256[] minAmountsToReceive List of min amounts to be received from the swap
   *   bool[] swapAllBalance Flag indicating if all the user balance should be swapped
   *   uint256[] permitAmount List of amounts for the permit signature
   *   uint256[] deadline List of deadlines for the permit signature
   *   uint8[] v List of v param for the permit signature
   *   bytes32[] r List of r param for the permit signature
   *   bytes32[] s List of s param for the permit signature
   *   bool[] useEthPath true if the swap needs to occur using ETH in the routing, false otherwise
   * @return SwapParams struct containing decoded params
   */
  function _decodeParams(bytes memory params) internal pure returns (SwapParams memory) {
    (
      address[] memory assetToSwapToList,
      uint256[] memory minAmountsToReceive,
      bool[] memory swapAllBalance,
      uint256[] memory permitAmount,
      uint256[] memory deadline,
      uint8[] memory v,
      bytes32[] memory r,
      bytes32[] memory s,
      bool[] memory useEthPath
    ) =
      abi.decode(
        params,
        (address[], uint256[], bool[], uint256[], uint256[], uint8[], bytes32[], bytes32[], bool[])
      );

    return
      SwapParams(
        assetToSwapToList,
        minAmountsToReceive,
        swapAllBalance,
        PermitParams(permitAmount, deadline, v, r, s),
        useEthPath
      );
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ILendingPoolAddressesProvider","name":"addressesProvider","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"uniswapRouter","type":"address"},{"internalType":"address","name":"wethAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"fromAsset","type":"address"},{"indexed":false,"internalType":"address","name":"toAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"}],"name":"Swapped","type":"event"},{"inputs":[],"name":"ADDRESSES_PROVIDER","outputs":[{"internalType":"contract ILendingPoolAddressesProvider","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FLASHLOAN_PREMIUM_TOTAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LENDING_POOL","outputs":[{"internalType":"contract ILendingPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SLIPPAGE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORACLE","outputs":[{"internalType":"contract IPriceOracleGetter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNISWAP_ROUTER","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USD_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"reserveIn","type":"address"},{"internalType":"address","name":"reserveOut","type":"address"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"reserveIn","type":"address"},{"internalType":"address","name":"reserveOut","type":"address"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assetToSwapFromList","type":"address[]"},{"internalType":"address[]","name":"assetToSwapToList","type":"address[]"},{"internalType":"uint256[]","name":"amountToSwapList","type":"uint256[]"},{"internalType":"uint256[]","name":"minAmountsToReceive","type":"uint256[]"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct IBaseUniswapAdapter.PermitSignature[]","name":"permitParams","type":"tuple[]"},{"internalType":"bool[]","name":"useEthPath","type":"bool[]"}],"name":"swapAndDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040523480156200001257600080fd5b5060405162003723380380620037238339810160408190526200003591620001fd565b82828282806001600160a01b03166080816001600160a01b031660601b81525050806001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200009057600080fd5b505afa158015620000a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000cb9190620001d7565b60601b6001600160601b03191660a052506000620000e8620001d3565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350826001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156200016c57600080fd5b505afa15801562000181573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a79190620001d7565b6001600160601b0319606091821b811660e05292811b8316610100521b1660c052506200026992505050565b3390565b600060208284031215620001e9578081fd5b8151620001f68162000250565b9392505050565b60008060006060848603121562000212578182fd5b83516200021f8162000250565b6020850151909350620002328162000250565b6040850151909250620002458162000250565b809150509250925092565b6001600160a01b03811681146200026657600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6133e96200033a60003980610b60528061114f528061124352806117f4528061182952806119bd5280611f6a528061205b5250806103a252806121a452508061034f5280611029528061106652806110d052806118a75280611e445280611e815280611eeb52508061045f52806107355280610a075280610a615280610a975280610dbb5280610df75280610e385280610ef25280610f2e528061157552806116ba52508061037352506133e96000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063920f5c8411610097578063cdf58cd611610066578063cdf58cd6146101c8578063d51c9ed7146101db578063d8264920146101ee578063f2fde38b146101f6576100ff565b8063920f5c84146101745780639d1211bf14610194578063b4dcfc771461019c578063baf7fa99146101a4576100ff565b806332e4b286116100d357806332e4b2861461015457806338013f021461015c578063715018a6146101645780638da5cb5b1461016c576100ff565b8062ae3bf814610104578063040141e5146101195780630542975c14610137578063074b2e431461013f575b600080fd5b610117610112366004612844565b610209565b005b61012161034d565b60405161012e9190612e7e565b60405180910390f35b610121610371565b610147610395565b60405161012e9190613279565b61014761039a565b6101216103a0565b6101176103c4565b610121610443565b610187610182366004612996565b610452565b60405161012e9190612fa3565b61012161071b565b610121610733565b6101b76101b2366004612dc2565b610757565b60405161012e9594939291906132d7565b6101b76101d6366004612dc2565b61079d565b6101176101e9366004612860565b6107b8565b610121610b5e565b610117610204366004612844565b610b82565b610211610c38565b6000546001600160a01b039081169116146102475760405162461bcd60e51b815260040161023e90613140565b60405180910390fd5b806001600160a01b031663a9059cbb61025e610443565b6040516370a0823160e01b81526001600160a01b038516906370a082319061028a903090600401612e7e565b60206040518083038186803b1580156102a257600080fd5b505afa1580156102b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102da9190612daa565b6040518363ffffffff1660e01b81526004016102f7929190612f3a565b602060405180830381600087803b15801561031157600080fd5b505af1158015610325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103499190612c3a565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600981565b610bb881565b7f000000000000000000000000000000000000000000000000000000000000000081565b6103cc610c38565b6000546001600160a01b039081169116146103f95760405162461bcd60e51b815260040161023e90613140565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461049c5760405162461bcd60e51b815260040161023e90612fe1565b6104a461241f565b6104e384848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c3c92505050565b8051519091508a1480156104fb57506020810151518a145b801561050b57506040810151518a145b801561051c5750606081015151518a145b80156105305750606081015160200151518a145b80156105445750606081015160400151518a145b801561055757506060808201510151518a145b801561056b5750606081015160800151518a145b801561057b57506080810151518a145b6105975760405162461bcd60e51b815260040161023e90613175565b60005b8a811015610709576107018c8c838181106105b157fe5b90506020020160208101906105c69190612844565b83518051849081106105d457fe5b60200260200101518c8c858181106105e857fe5b905060200201358b8b868181106105fb57fe5b905060200201358a8760200151878151811061061357fe5b60200260200101518860400151888151811061062b57fe5b60200260200101516040518060a001604052808b60600151600001518b8151811061065257fe5b602002602001015181526020018b60600151602001518b8151811061067357fe5b602002602001015181526020018b60600151604001518b8151811061069457fe5b602002602001015160ff1681526020018b60600151606001518b815181106106b857fe5b602002602001015181526020018b60600151608001518b815181106106d957fe5b60200260200101518152508a608001518a815181106106f457fe5b6020026020010151610cc5565b60010161059a565b5060019b9a5050505050505050505050565b7310f7fc1f91ba351f9c629c5947ad69bd03c05b9681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000806060610767612454565b61077288888b610f5f565b8051602082015160408301516060840151608090940151929d919c509a509198509650945050505050565b60008060008060606107ad612454565b61077288888b611452565b8a891480156107c657508a87145b80156107d157508a85145b80156107dc57508a83145b6107f85760405162461bcd60e51b815260040161023e90613175565b610800612483565b600081525b80518c1115610b4f5761083b8d8d836000015181811061082157fe5b90506020020160208101906108369190612844565b611556565b60e001516001600160a01b0316608082018190526040516370a0823160e01b81526370a0823190610870903390600401612e7e565b60206040518083038186803b15801561088857600080fd5b505afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190612daa565b6020820181905281518a908a908181106108d657fe5b90506020020135116108fe57888882600001518181106108f257fe5b90506020020135610904565b80602001515b60408201528051610967908e908e9081811061091c57fe5b90506020020160208101906109319190612844565b82608001513384604001518989876000015181811061094c57fe5b905060a002018036038101906109629190612c56565b611601565b6109fa8d8d836000015181811061097a57fe5b905060200201602081019061098f9190612844565b8c8c846000015181811061099f57fe5b90506020020160208101906109b49190612844565b83604001518a8a86600001518181106109c957fe5b90506020020135878787600001518181106109e057fe5b90506020020160208101906109f59190612c1e565b61174d565b60608201528051610a5c907f0000000000000000000000000000000000000000000000000000000000000000906000908e908e90818110610a3757fe5b9050602002016020810190610a4c9190612844565b6001600160a01b03169190611ae4565b610a957f000000000000000000000000000000000000000000000000000000000000000082606001518d8d8560000151818110610a3757fe5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e8eda9df8c8c8460000151818110610ad457fe5b9050602002016020810190610ae99190612844565b83606001513360006040518563ffffffff1660e01b8152600401610b109493929190612f76565b600060405180830381600087803b158015610b2a57600080fd5b505af1158015610b3e573d6000803e3d6000fd5b505082516001018352506108059050565b50505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610b8a610c38565b6000546001600160a01b03908116911614610bb75760405162461bcd60e51b815260040161023e90613140565b6001600160a01b038116610bdd5760405162461bcd60e51b815260040161023e90613018565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b610c4461241f565b60608060608060608060608060608a806020019051810190610c669190612a92565b6040805160a080820183529a815260208082019a909a52808201989098528051998a018152958952968801939093529286015260608086019290925260808086019190915290820193909352918201529b9a5050505050505050505050565b610ccd6124bb565b610cd68a611556565b60e001516001600160a01b03168082526040516370a0823160e01b81526370a0823190610d07908990600401612e7e565b60206040518083038186803b158015610d1f57600080fd5b505afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d579190612daa565b6020820152838015610d78575060208101518890610d759089611be3565b11155b610d825787610d91565b6020810151610d919088611be3565b60408201819052610da7908b908b90888661174d565b6060820152610de16001600160a01b038a167f00000000000000000000000000000000000000000000000000000000000000006000611ae4565b6060810151610e1c906001600160a01b038b16907f000000000000000000000000000000000000000000000000000000000000000090611ae4565b606081015160405163e8eda9df60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163e8eda9df91610e72918d918b90600090600401612f76565b600060405180830381600087803b158015610e8c57600080fd5b505af1158015610ea0573d6000803e3d6000fd5b50505050610eb78789611c2c90919063ffffffff16565b60808201526040810151610ecb9088611c2c565b60a082018190528151610ee3918c9190899087611601565b610f186001600160a01b038b167f00000000000000000000000000000000000000000000000000000000000000006000611ae4565b6080810151610f53906001600160a01b038c16907f000000000000000000000000000000000000000000000000000000000000000090611ae4565b50505050505050505050565b610f67612454565b6000610f8a610f83612710610f7d866009611c51565b90611c8b565b8490611be3565b6040805160028082526060808301845293945090916020830190803683370190505090508581600081518110610fbc57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110610fea57fe5b6001600160a01b0392909216602092830291909101820152604080516003808252608082019092526060928392839291820183803683370190505090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b03161415801561109b57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316886001600160a01b031614155b156112075788816000815181106110ae57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106110fc57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050878160028151811061112a57fe5b6001600160a01b03928316602091820292909201015260405163d06ca61f60e01b81527f00000000000000000000000000000000000000000000000000000000000000009091169063d06ca61f906111889088908590600401613282565b60006040518083038186803b1580156111a057600080fd5b505afa9250505080156111d557506040513d6000823e601f3d908101601f191682016040526111d29190810190612bec565b60015b6111ff57604080516003808252608082019092529060208201606080368337019050509150611202565b91505b611229565b6040805160038082526080820190925290602082016060803683370190505091505b60405163d06ca61f60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d06ca61f9061127a9089908990600401613282565b60006040518083038186803b15801561129257600080fd5b505afa9250505080156112c757506040513d6000823e601f3d908101601f191682016040526112c49190810190612bec565b60015b611307576040805160028082526060820183529091602083019080368337019050509350826002815181106112f857fe5b6020026020010151905061136d565b8094508460018151811061131757fe5b60200260200101518460028151811061132c57fe5b602002602001015111611353578460018151811061134657fe5b6020026020010151611369565b8360028151811061136057fe5b60200260200101515b9150505b60006113788b611ccd565b905060006113858b611ccd565b905060006113ba61139a85600a86900a611c51565b610f7d600a85900a6113b48d670de0b6b3a7640000611c51565b90611c51565b90506040518060a001604052808581526020018281526020016113de8f8e87611d49565b81526020016113ee8e8786611d49565b81526020018515611421578860018151811061140657fe5b6020026020010151861461141a578661141c565b895b61143f565b60408051600280825260608201835290916020830190803683375050505b90529d9c50505050505050505050505050565b61145a612454565b606080611468868686611da2565b9150915060006114c261149f612710610f7d60098760008151811061148957fe5b6020026020010151611c5190919063ffffffff16565b846000815181106114ac57fe5b6020026020010151611c2c90919063ffffffff16565b905060006114cf88611ccd565b905060006114dc88611ccd565b9050600061150b6114f185600a85900a611c51565b610f7d600a86900a6113b48c670de0b6b3a7640000611c51565b90506040518060a0016040528085815260200182815260200161152f8c8787611d49565b815260200161153f8b8b86611d49565b815260200195909552509298975050505050505050565b61155e6124fa565b6040516335ea6a7560e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906335ea6a75906115aa908590600401612e7e565b6101806040518083038186803b1580156115c357600080fd5b505afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb9190612caf565b92915050565b61160a8161213e565b1561168e57836001600160a01b031663d505accf8430846000015185602001518660400151876060015188608001516040518863ffffffff1660e01b815260040161165b9796959493929190612ef9565b600060405180830381600087803b15801561167557600080fd5b505af1158015611689573d6000803e3d6000fd5b505050505b6116a36001600160a01b038516843085612163565b604051631a4ca37b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906369328dec906116f390889086903090600401612f53565b602060405180830381600087803b15801561170d57600080fd5b505af1158015611721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117459190612daa565b505050505050565b60008061175987611ccd565b9050600061176687611ccd565b905060006117738961218a565b905060006117808961218a565b905060006117c4611795612710610bb8611be3565b6117be6117a685600a8a900a611c51565b610f7d6117b788600a8b900a611c51565b8e90611c51565b90612229565b90508781106117e55760405162461bcd60e51b815260040161023e906130ca565b61181a6001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000006000611ae4565b61184e6001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000008b611ae4565b60608715611926576040805160038082526080820190925290602082016060803683370190505090508b8160008151811061188557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106118d357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508a8160028151811061190157fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506119a3565b60408051600280825260608201835290916020830190803683370190505090508b8160008151811061195457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508a8160018151811061198257fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6040516338ed173960e01b81526060906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906338ed1739906119fa908e908e9087903090429060040161329b565b600060405180830381600087803b158015611a1457600080fd5b505af1158015611a28573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a509190810190612bec565b90507fa078c4190abe07940190effc1846be0ccf03ad6007bc9e93f9697d0b460befbb8d8d83600081518110611a8257fe5b602002602001015184600186510381518110611a9a57fe5b6020026020010151604051611ab29493929190612ed0565b60405180910390a180600182510381518110611aca57fe5b602002602001015197505050505050505095945050505050565b801580611b6c5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611b1a9030908690600401612e92565b60206040518083038186803b158015611b3257600080fd5b505afa158015611b46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6a9190612daa565b155b611b885760405162461bcd60e51b815260040161023e906131ec565b611bde8363095ea7b360e01b8484604051602401611ba7929190612f3a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261229b565b505050565b6000611c2583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612380565b9392505050565b600082820183811015611c255760405162461bcd60e51b815260040161023e9061305e565b600082611c60575060006115fb565b82820282848281611c6d57fe5b0414611c255760405162461bcd60e51b815260040161023e906130ff565b6000611c2583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506123ac565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611d0857600080fd5b505afa158015611d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d409190612e03565b60ff1692915050565b600080611d697310f7fc1f91ba351f9c629c5947ad69bd03c05b9661218a565b90506000611d768661218a565b9050611d98670de0b6b3a7640000610f7d846113b4600a89900a838b88611c51565b9695505050505050565b6040805160028082526060828101909352829182918160200160208202803683370190505090508581600081518110611dd757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110611e0557fe5b6001600160a01b0392909216602092830291909101820152604080516003808252608082019092526060928392839291820183803683370190505090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b031614158015611eb657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316886001600160a01b031614155b15612022578881600081518110611ec957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110611f1757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508781600281518110611f4557fe5b6001600160a01b0392831660209182029290920101526040516307c0329d60e21b81527f000000000000000000000000000000000000000000000000000000000000000090911690631f00ca7490611fa3908a908590600401613282565b60006040518083038186803b158015611fbb57600080fd5b505afa925050508015611ff057506040513d6000823e601f3d908101601f19168201604052611fed9190810190612bec565b60015b61201a5760408051600380825260808201909252906020820160608036833701905050915061201d565b91505b612044565b6040805160038082526080820190925290602082016060803683370190505091505b6040516307c0329d60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631f00ca7490612092908a908890600401613282565b60006040518083038186803b1580156120aa57600080fd5b505afa9250505080156120df57506040513d6000823e601f3d908101601f191682016040526120dc9190810190612bec565b60015b6120f0579094509250612136915050565b8093508360018151811061210057fe5b60200260200101518360028151811061211557fe5b60200260200101511161212957838561212c565b82825b9650965050505050505b935093915050565b6000816040015160ff16826020015114801561215c57506020820151155b1592915050565b612184846323b872dd60e01b858585604051602401611ba793929190612eac565b50505050565b60405163b3596f0760e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3596f07906121d9908590600401612e7e565b60206040518083038186803b1580156121f157600080fd5b505afa158015612205573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb9190612daa565b6000821580612236575081155b15612243575060006115fb565b81611388198161224f57fe5b0483111560405180604001604052806002815260200161068760f31b8152509061228c5760405162461bcd60e51b815260040161023e9190612fae565b50506127109102611388010490565b6122ad826001600160a01b03166123e3565b6122c95760405162461bcd60e51b815260040161023e90613242565b60006060836001600160a01b0316836040516122e59190612e62565b6000604051808303816000865af19150503d8060008114612322576040519150601f19603f3d011682016040523d82523d6000602084013e612327565b606091505b5091509150816123495760405162461bcd60e51b815260040161023e90613095565b80511561218457808060200190518101906123649190612c3a565b6121845760405162461bcd60e51b815260040161023e906131a2565b600081848411156123a45760405162461bcd60e51b815260040161023e9190612fae565b505050900390565b600081836123cd5760405162461bcd60e51b815260040161023e9190612fae565b5060008385816123d957fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061241757508115155b949350505050565b6040518060a00160405280606081526020016060815260200160608152602001612447612565565b8152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001606081525090565b6040518060a001604052806000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b6040518060c0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180610180016040528061250e612594565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e082018190526101008201819052610120820181905261014082018190526101609091015290565b6040518060a0016040528060608152602001606081526020016060815260200160608152602001606081525090565b6040518060200160405280600081525090565b80516115fb8161337e565b60008083601f8401126125c3578182fd5b5081356001600160401b038111156125d9578182fd5b60208301915083602080830285010111156125f357600080fd5b9250929050565b600082601f83011261260a578081fd5b815161261d61261882613333565b61330d565b81815291506020808301908481018184028601820187101561263e57600080fd5b60005b848110156126665781516126548161337e565b84529282019290820190600101612641565b505050505092915050565b600082601f830112612681578081fd5b815161268f61261882613333565b8181529150602080830190848101818402860182018710156126b057600080fd5b60005b848110156126665781516126c681613396565b845292820192908201906001016126b3565b600082601f8301126126e8578081fd5b81516126f661261882613333565b81815291506020808301908481018184028601820187101561271757600080fd5b60005b848110156126665781518452928201929082019060010161271a565b60008083601f840112612747578182fd5b5081356001600160401b0381111561275d578182fd5b60208301915083602060a0830285010111156125f357600080fd5b600082601f830112612788578081fd5b815161279661261882613333565b8181529150602080830190848101818402860182018710156127b757600080fd5b60005b848110156126665781516127cd816133a4565b845292820192908201906001016127ba565b6000602082840312156127f0578081fd5b6127fa602061330d565b9151825250919050565b80516fffffffffffffffffffffffffffffffff811681146115fb57600080fd5b805164ffffffffff811681146115fb57600080fd5b80516115fb816133a4565b600060208284031215612855578081fd5b8135611c258161337e565b60008060008060008060008060008060008060c08d8f031215612881578788fd5b6001600160401b038d351115612895578788fd5b6128a28e8e358f016125b2565b909c509a506001600160401b0360208e013511156128be578788fd5b6128ce8e60208f01358f016125b2565b909a5098506001600160401b0360408e013511156128ea578788fd5b6128fa8e60408f01358f016125b2565b90985096506001600160401b0360608e01351115612916578586fd5b6129268e60608f01358f016125b2565b90965094506001600160401b0360808e01351115612942578384fd5b6129528e60808f01358f01612736565b90945092506001600160401b0360a08e0135111561296e578081fd5b61297e8e60a08f01358f016125b2565b81935080925050509295989b509295989b509295989b565b600080600080600080600080600060a08a8c0312156129b3578283fd5b89356001600160401b03808211156129c9578485fd5b6129d58d838e016125b2565b909b50995060208c01359150808211156129ed578485fd5b6129f98d838e016125b2565b909950975060408c0135915080821115612a11578485fd5b612a1d8d838e016125b2565b909750955060608c01359150612a328261337e565b90935060808b01359080821115612a47578384fd5b818c0191508c601f830112612a5a578384fd5b813581811115612a68578485fd5b8d6020828501011115612a79578485fd5b6020830194508093505050509295985092959850929598565b60008060008060008060008060006101208a8c031215612ab0578283fd5b89516001600160401b0380821115612ac6578485fd5b612ad28d838e016125fa565b9a5060208c0151915080821115612ae7578485fd5b612af38d838e016126d8565b995060408c0151915080821115612b08578485fd5b612b148d838e01612671565b985060608c0151915080821115612b29578485fd5b612b358d838e016126d8565b975060808c0151915080821115612b4a578485fd5b612b568d838e016126d8565b965060a08c0151915080821115612b6b578485fd5b612b778d838e01612778565b955060c08c0151915080821115612b8c578485fd5b612b988d838e016126d8565b945060e08c0151915080821115612bad578384fd5b612bb98d838e016126d8565b93506101008c0151915080821115612bcf578283fd5b50612bdc8c828d01612671565b9150509295985092959850929598565b600060208284031215612bfd578081fd5b81516001600160401b03811115612c12578182fd5b612417848285016126d8565b600060208284031215612c2f578081fd5b8135611c2581613396565b600060208284031215612c4b578081fd5b8151611c2581613396565b600060a08284031215612c67578081fd5b612c7160a061330d565b82358152602083013560208201526040830135612c8d816133a4565b6040820152606083810135908201526080928301359281019290925250919050565b6000610180808385031215612cc2578182fd5b612ccb8161330d565b9050612cd784846127df565b8152612ce68460208501612804565b6020820152612cf88460408501612804565b6040820152612d0a8460608501612804565b6060820152612d1c8460808501612804565b6080820152612d2e8460a08501612804565b60a0820152612d408460c08501612824565b60c0820152612d528460e085016125a7565b60e0820152610100612d66858286016125a7565b90820152610120612d79858583016125a7565b90820152610140612d8c858583016125a7565b90820152610160612d9f85858301612839565b908201529392505050565b600060208284031215612dbb578081fd5b5051919050565b600080600060608486031215612dd6578081fd5b833592506020840135612de88161337e565b91506040840135612df88161337e565b809150509250925092565b600060208284031215612e14578081fd5b8151611c25816133a4565b6000815180845260208085019450808401835b83811015612e575781516001600160a01b031687529582019590820190600101612e32565b509495945050505050565b60008251612e74818460208701613352565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b03948516815260208101939093529216604082015261ffff909116606082015260800190565b901515815260200190565b6000602082528251806020840152612fcd816040850160208701613352565b601f01601f19169190910160400192915050565b6020808252601b908201527f43414c4c45525f4d5553545f42455f4c454e44494e475f504f4f4c0000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b6020808252818101527f6d696e416d6f756e744f757420657863656564206d617820736c697070616765604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260139082015272494e434f4e53495354454e545f504152414d5360681b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b90815260200190565b6000838252604060208301526124176040830184612e1f565b600086825285602083015260a060408301526132ba60a0830186612e1f565b6001600160a01b0394909416606083015250608001529392505050565b600086825285602083015284604083015283606083015260a0608083015261330260a0830184612e1f565b979650505050505050565b6040518181016001600160401b038111828210171561332b57600080fd5b604052919050565b60006001600160401b03821115613348578081fd5b5060209081020190565b60005b8381101561336d578181015183820152602001613355565b838111156121845750506000910152565b6001600160a01b038116811461339357600080fd5b50565b801515811461339357600080fd5b60ff8116811461339357600080fdfea264697066735822122080cad6a54c68674af22c75c77e83e8ae223eea1d85063da19d0bd04c4e729e4764736f6c634300060c0033000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c50000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063920f5c8411610097578063cdf58cd611610066578063cdf58cd6146101c8578063d51c9ed7146101db578063d8264920146101ee578063f2fde38b146101f6576100ff565b8063920f5c84146101745780639d1211bf14610194578063b4dcfc771461019c578063baf7fa99146101a4576100ff565b806332e4b286116100d357806332e4b2861461015457806338013f021461015c578063715018a6146101645780638da5cb5b1461016c576100ff565b8062ae3bf814610104578063040141e5146101195780630542975c14610137578063074b2e431461013f575b600080fd5b610117610112366004612844565b610209565b005b61012161034d565b60405161012e9190612e7e565b60405180910390f35b610121610371565b610147610395565b60405161012e9190613279565b61014761039a565b6101216103a0565b6101176103c4565b610121610443565b610187610182366004612996565b610452565b60405161012e9190612fa3565b61012161071b565b610121610733565b6101b76101b2366004612dc2565b610757565b60405161012e9594939291906132d7565b6101b76101d6366004612dc2565b61079d565b6101176101e9366004612860565b6107b8565b610121610b5e565b610117610204366004612844565b610b82565b610211610c38565b6000546001600160a01b039081169116146102475760405162461bcd60e51b815260040161023e90613140565b60405180910390fd5b806001600160a01b031663a9059cbb61025e610443565b6040516370a0823160e01b81526001600160a01b038516906370a082319061028a903090600401612e7e565b60206040518083038186803b1580156102a257600080fd5b505afa1580156102b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102da9190612daa565b6040518363ffffffff1660e01b81526004016102f7929190612f3a565b602060405180830381600087803b15801561031157600080fd5b505af1158015610325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103499190612c3a565b5050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b7f000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c581565b600981565b610bb881565b7f000000000000000000000000a50ba011c48153de246e5192c8f9258a2ba79ca981565b6103cc610c38565b6000546001600160a01b039081169116146103f95760405162461bcd60e51b815260040161023e90613140565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000336001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9161461049c5760405162461bcd60e51b815260040161023e90612fe1565b6104a461241f565b6104e384848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c3c92505050565b8051519091508a1480156104fb57506020810151518a145b801561050b57506040810151518a145b801561051c5750606081015151518a145b80156105305750606081015160200151518a145b80156105445750606081015160400151518a145b801561055757506060808201510151518a145b801561056b5750606081015160800151518a145b801561057b57506080810151518a145b6105975760405162461bcd60e51b815260040161023e90613175565b60005b8a811015610709576107018c8c838181106105b157fe5b90506020020160208101906105c69190612844565b83518051849081106105d457fe5b60200260200101518c8c858181106105e857fe5b905060200201358b8b868181106105fb57fe5b905060200201358a8760200151878151811061061357fe5b60200260200101518860400151888151811061062b57fe5b60200260200101516040518060a001604052808b60600151600001518b8151811061065257fe5b602002602001015181526020018b60600151602001518b8151811061067357fe5b602002602001015181526020018b60600151604001518b8151811061069457fe5b602002602001015160ff1681526020018b60600151606001518b815181106106b857fe5b602002602001015181526020018b60600151608001518b815181106106d957fe5b60200260200101518152508a608001518a815181106106f457fe5b6020026020010151610cc5565b60010161059a565b5060019b9a5050505050505050505050565b7310f7fc1f91ba351f9c629c5947ad69bd03c05b9681565b7f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a981565b6000806000806060610767612454565b61077288888b610f5f565b8051602082015160408301516060840151608090940151929d919c509a509198509650945050505050565b60008060008060606107ad612454565b61077288888b611452565b8a891480156107c657508a87145b80156107d157508a85145b80156107dc57508a83145b6107f85760405162461bcd60e51b815260040161023e90613175565b610800612483565b600081525b80518c1115610b4f5761083b8d8d836000015181811061082157fe5b90506020020160208101906108369190612844565b611556565b60e001516001600160a01b0316608082018190526040516370a0823160e01b81526370a0823190610870903390600401612e7e565b60206040518083038186803b15801561088857600080fd5b505afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190612daa565b6020820181905281518a908a908181106108d657fe5b90506020020135116108fe57888882600001518181106108f257fe5b90506020020135610904565b80602001515b60408201528051610967908e908e9081811061091c57fe5b90506020020160208101906109319190612844565b82608001513384604001518989876000015181811061094c57fe5b905060a002018036038101906109629190612c56565b611601565b6109fa8d8d836000015181811061097a57fe5b905060200201602081019061098f9190612844565b8c8c846000015181811061099f57fe5b90506020020160208101906109b49190612844565b83604001518a8a86600001518181106109c957fe5b90506020020135878787600001518181106109e057fe5b90506020020160208101906109f59190612c1e565b61174d565b60608201528051610a5c907f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9906000908e908e90818110610a3757fe5b9050602002016020810190610a4c9190612844565b6001600160a01b03169190611ae4565b610a957f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a982606001518d8d8560000151818110610a3757fe5b7f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a96001600160a01b031663e8eda9df8c8c8460000151818110610ad457fe5b9050602002016020810190610ae99190612844565b83606001513360006040518563ffffffff1660e01b8152600401610b109493929190612f76565b600060405180830381600087803b158015610b2a57600080fd5b505af1158015610b3e573d6000803e3d6000fd5b505082516001018352506108059050565b50505050505050505050505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b610b8a610c38565b6000546001600160a01b03908116911614610bb75760405162461bcd60e51b815260040161023e90613140565b6001600160a01b038116610bdd5760405162461bcd60e51b815260040161023e90613018565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b610c4461241f565b60608060608060608060608060608a806020019051810190610c669190612a92565b6040805160a080820183529a815260208082019a909a52808201989098528051998a018152958952968801939093529286015260608086019290925260808086019190915290820193909352918201529b9a5050505050505050505050565b610ccd6124bb565b610cd68a611556565b60e001516001600160a01b03168082526040516370a0823160e01b81526370a0823190610d07908990600401612e7e565b60206040518083038186803b158015610d1f57600080fd5b505afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d579190612daa565b6020820152838015610d78575060208101518890610d759089611be3565b11155b610d825787610d91565b6020810151610d919088611be3565b60408201819052610da7908b908b90888661174d565b6060820152610de16001600160a01b038a167f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a96000611ae4565b6060810151610e1c906001600160a01b038b16907f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a990611ae4565b606081015160405163e8eda9df60e01b81526001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9169163e8eda9df91610e72918d918b90600090600401612f76565b600060405180830381600087803b158015610e8c57600080fd5b505af1158015610ea0573d6000803e3d6000fd5b50505050610eb78789611c2c90919063ffffffff16565b60808201526040810151610ecb9088611c2c565b60a082018190528151610ee3918c9190899087611601565b610f186001600160a01b038b167f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a96000611ae4565b6080810151610f53906001600160a01b038c16907f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a990611ae4565b50505050505050505050565b610f67612454565b6000610f8a610f83612710610f7d866009611c51565b90611c8b565b8490611be3565b6040805160028082526060808301845293945090916020830190803683370190505090508581600081518110610fbc57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110610fea57fe5b6001600160a01b0392909216602092830291909101820152604080516003808252608082019092526060928392839291820183803683370190505090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316896001600160a01b03161415801561109b57507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316886001600160a01b031614155b156112075788816000815181106110ae57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106110fc57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050878160028151811061112a57fe5b6001600160a01b03928316602091820292909201015260405163d06ca61f60e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063d06ca61f906111889088908590600401613282565b60006040518083038186803b1580156111a057600080fd5b505afa9250505080156111d557506040513d6000823e601f3d908101601f191682016040526111d29190810190612bec565b60015b6111ff57604080516003808252608082019092529060208201606080368337019050509150611202565b91505b611229565b6040805160038082526080820190925290602082016060803683370190505091505b60405163d06ca61f60e01b81526000906001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063d06ca61f9061127a9089908990600401613282565b60006040518083038186803b15801561129257600080fd5b505afa9250505080156112c757506040513d6000823e601f3d908101601f191682016040526112c49190810190612bec565b60015b611307576040805160028082526060820183529091602083019080368337019050509350826002815181106112f857fe5b6020026020010151905061136d565b8094508460018151811061131757fe5b60200260200101518460028151811061132c57fe5b602002602001015111611353578460018151811061134657fe5b6020026020010151611369565b8360028151811061136057fe5b60200260200101515b9150505b60006113788b611ccd565b905060006113858b611ccd565b905060006113ba61139a85600a86900a611c51565b610f7d600a85900a6113b48d670de0b6b3a7640000611c51565b90611c51565b90506040518060a001604052808581526020018281526020016113de8f8e87611d49565b81526020016113ee8e8786611d49565b81526020018515611421578860018151811061140657fe5b6020026020010151861461141a578661141c565b895b61143f565b60408051600280825260608201835290916020830190803683375050505b90529d9c50505050505050505050505050565b61145a612454565b606080611468868686611da2565b9150915060006114c261149f612710610f7d60098760008151811061148957fe5b6020026020010151611c5190919063ffffffff16565b846000815181106114ac57fe5b6020026020010151611c2c90919063ffffffff16565b905060006114cf88611ccd565b905060006114dc88611ccd565b9050600061150b6114f185600a85900a611c51565b610f7d600a86900a6113b48c670de0b6b3a7640000611c51565b90506040518060a0016040528085815260200182815260200161152f8c8787611d49565b815260200161153f8b8b86611d49565b815260200195909552509298975050505050505050565b61155e6124fa565b6040516335ea6a7560e01b81526001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a916906335ea6a75906115aa908590600401612e7e565b6101806040518083038186803b1580156115c357600080fd5b505afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb9190612caf565b92915050565b61160a8161213e565b1561168e57836001600160a01b031663d505accf8430846000015185602001518660400151876060015188608001516040518863ffffffff1660e01b815260040161165b9796959493929190612ef9565b600060405180830381600087803b15801561167557600080fd5b505af1158015611689573d6000803e3d6000fd5b505050505b6116a36001600160a01b038516843085612163565b604051631a4ca37b60e21b81526001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a916906369328dec906116f390889086903090600401612f53565b602060405180830381600087803b15801561170d57600080fd5b505af1158015611721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117459190612daa565b505050505050565b60008061175987611ccd565b9050600061176687611ccd565b905060006117738961218a565b905060006117808961218a565b905060006117c4611795612710610bb8611be3565b6117be6117a685600a8a900a611c51565b610f7d6117b788600a8b900a611c51565b8e90611c51565b90612229565b90508781106117e55760405162461bcd60e51b815260040161023e906130ca565b61181a6001600160a01b038c167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6000611ae4565b61184e6001600160a01b038c167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8b611ae4565b60608715611926576040805160038082526080820190925290602082016060803683370190505090508b8160008151811061188557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106118d357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508a8160028151811061190157fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506119a3565b60408051600280825260608201835290916020830190803683370190505090508b8160008151811061195457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508a8160018151811061198257fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6040516338ed173960e01b81526060906001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d16906338ed1739906119fa908e908e9087903090429060040161329b565b600060405180830381600087803b158015611a1457600080fd5b505af1158015611a28573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a509190810190612bec565b90507fa078c4190abe07940190effc1846be0ccf03ad6007bc9e93f9697d0b460befbb8d8d83600081518110611a8257fe5b602002602001015184600186510381518110611a9a57fe5b6020026020010151604051611ab29493929190612ed0565b60405180910390a180600182510381518110611aca57fe5b602002602001015197505050505050505095945050505050565b801580611b6c5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611b1a9030908690600401612e92565b60206040518083038186803b158015611b3257600080fd5b505afa158015611b46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6a9190612daa565b155b611b885760405162461bcd60e51b815260040161023e906131ec565b611bde8363095ea7b360e01b8484604051602401611ba7929190612f3a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261229b565b505050565b6000611c2583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612380565b9392505050565b600082820183811015611c255760405162461bcd60e51b815260040161023e9061305e565b600082611c60575060006115fb565b82820282848281611c6d57fe5b0414611c255760405162461bcd60e51b815260040161023e906130ff565b6000611c2583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506123ac565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611d0857600080fd5b505afa158015611d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d409190612e03565b60ff1692915050565b600080611d697310f7fc1f91ba351f9c629c5947ad69bd03c05b9661218a565b90506000611d768661218a565b9050611d98670de0b6b3a7640000610f7d846113b4600a89900a838b88611c51565b9695505050505050565b6040805160028082526060828101909352829182918160200160208202803683370190505090508581600081518110611dd757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110611e0557fe5b6001600160a01b0392909216602092830291909101820152604080516003808252608082019092526060928392839291820183803683370190505090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316896001600160a01b031614158015611eb657507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316886001600160a01b031614155b15612022578881600081518110611ec957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611f1757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508781600281518110611f4557fe5b6001600160a01b0392831660209182029290920101526040516307c0329d60e21b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90911690631f00ca7490611fa3908a908590600401613282565b60006040518083038186803b158015611fbb57600080fd5b505afa925050508015611ff057506040513d6000823e601f3d908101601f19168201604052611fed9190810190612bec565b60015b61201a5760408051600380825260808201909252906020820160608036833701905050915061201d565b91505b612044565b6040805160038082526080820190925290602082016060803683370190505091505b6040516307c0329d60e21b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1690631f00ca7490612092908a908890600401613282565b60006040518083038186803b1580156120aa57600080fd5b505afa9250505080156120df57506040513d6000823e601f3d908101601f191682016040526120dc9190810190612bec565b60015b6120f0579094509250612136915050565b8093508360018151811061210057fe5b60200260200101518360028151811061211557fe5b60200260200101511161212957838561212c565b82825b9650965050505050505b935093915050565b6000816040015160ff16826020015114801561215c57506020820151155b1592915050565b612184846323b872dd60e01b858585604051602401611ba793929190612eac565b50505050565b60405163b3596f0760e01b81526000906001600160a01b037f000000000000000000000000a50ba011c48153de246e5192c8f9258a2ba79ca9169063b3596f07906121d9908590600401612e7e565b60206040518083038186803b1580156121f157600080fd5b505afa158015612205573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb9190612daa565b6000821580612236575081155b15612243575060006115fb565b81611388198161224f57fe5b0483111560405180604001604052806002815260200161068760f31b8152509061228c5760405162461bcd60e51b815260040161023e9190612fae565b50506127109102611388010490565b6122ad826001600160a01b03166123e3565b6122c95760405162461bcd60e51b815260040161023e90613242565b60006060836001600160a01b0316836040516122e59190612e62565b6000604051808303816000865af19150503d8060008114612322576040519150601f19603f3d011682016040523d82523d6000602084013e612327565b606091505b5091509150816123495760405162461bcd60e51b815260040161023e90613095565b80511561218457808060200190518101906123649190612c3a565b6121845760405162461bcd60e51b815260040161023e906131a2565b600081848411156123a45760405162461bcd60e51b815260040161023e9190612fae565b505050900390565b600081836123cd5760405162461bcd60e51b815260040161023e9190612fae565b5060008385816123d957fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061241757508115155b949350505050565b6040518060a00160405280606081526020016060815260200160608152602001612447612565565b8152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001606081525090565b6040518060a001604052806000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b6040518060c0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180610180016040528061250e612594565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e082018190526101008201819052610120820181905261014082018190526101609091015290565b6040518060a0016040528060608152602001606081526020016060815260200160608152602001606081525090565b6040518060200160405280600081525090565b80516115fb8161337e565b60008083601f8401126125c3578182fd5b5081356001600160401b038111156125d9578182fd5b60208301915083602080830285010111156125f357600080fd5b9250929050565b600082601f83011261260a578081fd5b815161261d61261882613333565b61330d565b81815291506020808301908481018184028601820187101561263e57600080fd5b60005b848110156126665781516126548161337e565b84529282019290820190600101612641565b505050505092915050565b600082601f830112612681578081fd5b815161268f61261882613333565b8181529150602080830190848101818402860182018710156126b057600080fd5b60005b848110156126665781516126c681613396565b845292820192908201906001016126b3565b600082601f8301126126e8578081fd5b81516126f661261882613333565b81815291506020808301908481018184028601820187101561271757600080fd5b60005b848110156126665781518452928201929082019060010161271a565b60008083601f840112612747578182fd5b5081356001600160401b0381111561275d578182fd5b60208301915083602060a0830285010111156125f357600080fd5b600082601f830112612788578081fd5b815161279661261882613333565b8181529150602080830190848101818402860182018710156127b757600080fd5b60005b848110156126665781516127cd816133a4565b845292820192908201906001016127ba565b6000602082840312156127f0578081fd5b6127fa602061330d565b9151825250919050565b80516fffffffffffffffffffffffffffffffff811681146115fb57600080fd5b805164ffffffffff811681146115fb57600080fd5b80516115fb816133a4565b600060208284031215612855578081fd5b8135611c258161337e565b60008060008060008060008060008060008060c08d8f031215612881578788fd5b6001600160401b038d351115612895578788fd5b6128a28e8e358f016125b2565b909c509a506001600160401b0360208e013511156128be578788fd5b6128ce8e60208f01358f016125b2565b909a5098506001600160401b0360408e013511156128ea578788fd5b6128fa8e60408f01358f016125b2565b90985096506001600160401b0360608e01351115612916578586fd5b6129268e60608f01358f016125b2565b90965094506001600160401b0360808e01351115612942578384fd5b6129528e60808f01358f01612736565b90945092506001600160401b0360a08e0135111561296e578081fd5b61297e8e60a08f01358f016125b2565b81935080925050509295989b509295989b509295989b565b600080600080600080600080600060a08a8c0312156129b3578283fd5b89356001600160401b03808211156129c9578485fd5b6129d58d838e016125b2565b909b50995060208c01359150808211156129ed578485fd5b6129f98d838e016125b2565b909950975060408c0135915080821115612a11578485fd5b612a1d8d838e016125b2565b909750955060608c01359150612a328261337e565b90935060808b01359080821115612a47578384fd5b818c0191508c601f830112612a5a578384fd5b813581811115612a68578485fd5b8d6020828501011115612a79578485fd5b6020830194508093505050509295985092959850929598565b60008060008060008060008060006101208a8c031215612ab0578283fd5b89516001600160401b0380821115612ac6578485fd5b612ad28d838e016125fa565b9a5060208c0151915080821115612ae7578485fd5b612af38d838e016126d8565b995060408c0151915080821115612b08578485fd5b612b148d838e01612671565b985060608c0151915080821115612b29578485fd5b612b358d838e016126d8565b975060808c0151915080821115612b4a578485fd5b612b568d838e016126d8565b965060a08c0151915080821115612b6b578485fd5b612b778d838e01612778565b955060c08c0151915080821115612b8c578485fd5b612b988d838e016126d8565b945060e08c0151915080821115612bad578384fd5b612bb98d838e016126d8565b93506101008c0151915080821115612bcf578283fd5b50612bdc8c828d01612671565b9150509295985092959850929598565b600060208284031215612bfd578081fd5b81516001600160401b03811115612c12578182fd5b612417848285016126d8565b600060208284031215612c2f578081fd5b8135611c2581613396565b600060208284031215612c4b578081fd5b8151611c2581613396565b600060a08284031215612c67578081fd5b612c7160a061330d565b82358152602083013560208201526040830135612c8d816133a4565b6040820152606083810135908201526080928301359281019290925250919050565b6000610180808385031215612cc2578182fd5b612ccb8161330d565b9050612cd784846127df565b8152612ce68460208501612804565b6020820152612cf88460408501612804565b6040820152612d0a8460608501612804565b6060820152612d1c8460808501612804565b6080820152612d2e8460a08501612804565b60a0820152612d408460c08501612824565b60c0820152612d528460e085016125a7565b60e0820152610100612d66858286016125a7565b90820152610120612d79858583016125a7565b90820152610140612d8c858583016125a7565b90820152610160612d9f85858301612839565b908201529392505050565b600060208284031215612dbb578081fd5b5051919050565b600080600060608486031215612dd6578081fd5b833592506020840135612de88161337e565b91506040840135612df88161337e565b809150509250925092565b600060208284031215612e14578081fd5b8151611c25816133a4565b6000815180845260208085019450808401835b83811015612e575781516001600160a01b031687529582019590820190600101612e32565b509495945050505050565b60008251612e74818460208701613352565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b03948516815260208101939093529216604082015261ffff909116606082015260800190565b901515815260200190565b6000602082528251806020840152612fcd816040850160208701613352565b601f01601f19169190910160400192915050565b6020808252601b908201527f43414c4c45525f4d5553545f42455f4c454e44494e475f504f4f4c0000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b6020808252818101527f6d696e416d6f756e744f757420657863656564206d617820736c697070616765604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260139082015272494e434f4e53495354454e545f504152414d5360681b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b90815260200190565b6000838252604060208301526124176040830184612e1f565b600086825285602083015260a060408301526132ba60a0830186612e1f565b6001600160a01b0394909416606083015250608001529392505050565b600086825285602083015284604083015283606083015260a0608083015261330260a0830184612e1f565b979650505050505050565b6040518181016001600160401b038111828210171561332b57600080fd5b604052919050565b60006001600160401b03821115613348578081fd5b5060209081020190565b60005b8381101561336d578181015183820152602001613355565b838111156121845750506000910152565b6001600160a01b038116811461339357600080fd5b50565b801515811461339357600080fd5b60ff8116811461339357600080fdfea264697066735822122080cad6a54c68674af22c75c77e83e8ae223eea1d85063da19d0bd04c4e729e4764736f6c634300060c0033

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

000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c50000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : addressesProvider (address): 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5
Arg [1] : uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : wethAddress (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c5
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


Deployed Bytecode Sourcemap

70201:10726:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69954:123;;;;;;:::i;:::-;;:::i;:::-;;53085:46;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3432:74;;;:::i;52697:60::-;;;:::i;:::-;;;;;;;:::i;52584:::-;;;:::i;53136:51::-;;;:::i;10897:138::-;;;:::i;10295:73::-;;;:::i;72048:1653::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;52793:89::-;;;:::i;3511:51::-;;;:::i;54194:507::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;55310:::-;;;;;;:::i;:::-;;:::i;75155:1763::-;;;;;;:::i;:::-;;:::i;53192:59::-;;;:::i;11180:230::-;;;;;;:::i;:::-;;:::i;69954:123::-;10499:12;:10;:12::i;:::-;10489:6;;-1:-1:-1;;;;;10489:6:0;;;:22;;;10481:67;;;;-1:-1:-1;;;10481:67:0;;;;;;;:::i;:::-;;;;;;;;;70016:5:::1;-1:-1:-1::0;;;;;70016:14:0::1;;70031:7;:5;:7::i;:::-;70040:30;::::0;-1:-1:-1;;;70040:30:0;;-1:-1:-1;;;;;70040:15:0;::::1;::::0;::::1;::::0;:30:::1;::::0;70064:4:::1;::::0;70040:30:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;70016:55;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;69954:123:::0;:::o;53085:46::-;;;:::o;3432:74::-;;;:::o;52697:60::-;52756:1;52697:60;:::o;52584:::-;52640:4;52584:60;:::o;53136:51::-;;;:::o;10897:138::-;10499:12;:10;:12::i;:::-;10489:6;;-1:-1:-1;;;;;10489:6:0;;;:22;;;10481:67;;;;-1:-1:-1;;;10481:67:0;;;;;;;:::i;:::-;11000:1:::1;10984:6:::0;;10963:40:::1;::::0;-1:-1:-1;;;;;10984:6:0;;::::1;::::0;10963:40:::1;::::0;11000:1;;10963:40:::1;11027:1;11010:19:::0;;-1:-1:-1;;;;;;11010:19:0::1;::::0;;10897:138::o;10295:73::-;10333:7;10356:6;-1:-1:-1;;;;;10356:6:0;10295:73;:::o;72048:1653::-;72257:4;72278:10;-1:-1:-1;;;;;72300:12:0;72278:35;;72270:75;;;;-1:-1:-1;;;72270:75:0;;;;;;;:::i;:::-;72354:31;;:::i;:::-;72388:21;72402:6;;72388:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72388:13:0;;-1:-1:-1;;;72388:21:0:i;:::-;72451:31;;:38;72354:55;;-1:-1:-1;72434:55:0;;:125;;;;-1:-1:-1;72519:33:0;;;;:40;72502:57;;72434:125;:190;;;;-1:-1:-1;72589:28:0;;;;:35;72572:52;;72434:190;:260;;;;-1:-1:-1;72654:26:0;;;;:33;:40;72637:57;;72434:260;:332;;;;-1:-1:-1;72724:26:0;;;;:35;;;:42;72707:59;;72434:332;:397;;;;-1:-1:-1;72796:26:0;;;;:28;;;:35;72779:52;;72434:397;:462;;;;-1:-1:-1;72861:26:0;;;;;:28;;:35;72844:52;;72434:462;:527;;;;-1:-1:-1;72926:26:0;;;;:28;;;:35;72909:52;;72434:527;:588;;;;-1:-1:-1;72991:24:0;;;;:31;72974:48;;72434:588;72418:641;;;;-1:-1:-1;;;72418:641:0;;;;;;;:::i;:::-;73073:9;73068:608;73088:17;;;73068:608;;;73121:547;73146:6;;73153:1;73146:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;73166:31;;:34;;73198:1;;73166:34;;;;;;;;;;;;73211:7;;73219:1;73211:10;;;;;;;;;;;;;73232:8;;73241:1;73232:11;;;;;;;;;;;;;73254:9;73274:13;:33;;;73308:1;73274:36;;;;;;;;;;;;;;73321:13;:28;;;73350:1;73321:31;;;;;;;;;;;;;;73363:258;;;;;;;;73391:13;:26;;;:33;;;73425:1;73391:36;;;;;;;;;;;;;;73363:258;;;;73440:13;:26;;;:35;;;73476:1;73440:38;;;;;;;;;;;;;;73363:258;;;;73491:13;:26;;;:28;;;73520:1;73491:31;;;;;;;;;;;;;;73363:258;;;;;;73535:13;:26;;;:28;;;73564:1;73535:31;;;;;;;;;;;;;;73363:258;;;;73579:13;:26;;;:28;;;73608:1;73579:31;;;;;;;;;;;;;;73363:258;;;73632:13;:24;;;73657:1;73632:27;;;;;;;;;;;;;;73121:14;:547::i;:::-;73107:3;;73068:608;;;-1:-1:-1;73691:4:0;;72048:1653;-1:-1:-1;;;;;;;;;;;72048:1653:0:o;52793:89::-;52840:42;52793:89;:::o;3511:51::-;;;:::o;54194:507::-;54354:7;54370;54386;54402;54418:16;54452:25;;:::i;:::-;54480:51;54499:9;54510:10;54522:8;54480:18;:51::i;:::-;54556:24;;54589:21;;;;54619:19;;;;54647:20;;;;54676:12;;;;;54556:24;;54589:21;;-1:-1:-1;54619:19:0;-1:-1:-1;54647:20:0;;-1:-1:-1;54676:12:0;-1:-1:-1;54194:507:0;-1:-1:-1;;;;;54194:507:0:o;55310:::-;55470:7;55486;55502;55518;55534:16;55568:25;;:::i;:::-;55596:51;55614:9;55625:10;55637:9;55596:17;:51::i;75155:1763::-;75470:54;;;:120;;;;-1:-1:-1;75537:53:0;;;75470:120;:189;;;;-1:-1:-1;75603:56:0;;;75470:189;:251;;;;-1:-1:-1;75672:49:0;;;75470:251;75454:304;;;;-1:-1:-1;;;75454:304:0;;;;;;;:::i;:::-;75767:35;;:::i;:::-;75825:1;75816:10;;75811:1102;75828:6;;:35;-1:-1:-1;75811:1102:0;;;75898:44;75914:19;;75934:4;:6;;;75914:27;;;;;;;;;;;;;;;;;;;;:::i;:::-;75898:15;:44::i;:::-;:58;;;-1:-1:-1;;;;;75884:72:0;:11;;;:72;;;75997:41;;-1:-1:-1;;;75997:41:0;;:29;;:41;;76027:10;;75997:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75967:27;;;:71;;;76084:6;;76067:16;;;;:24;;;;;;;;;;;;;:54;:129;;76172:16;;76189:4;:6;;;76172:24;;;;;;;;;;;;;76067:129;;;76133:4;:27;;;76067:129;76047:17;;;:149;76249:6;;76207:160;;76229:19;;;;:27;;;;;;;;;;;;;;;;;;;;:::i;:::-;76267:4;:11;;;76289:10;76310:4;:17;;;76338:12;;76351:4;:6;;;76338:20;;;;;;;;;;;;76207:160;;;;;;;;;;:::i;:::-;:11;:160::i;:::-;76400:203;76436:19;;76456:4;:6;;;76436:27;;;;;;;;;;;;;;;;;;;;:::i;:::-;76474:17;;76492:4;:6;;;76474:25;;;;;;;;;;;;;;;;;;;;:::i;:::-;76510:4;:17;;;76538:19;;76558:4;:6;;;76538:27;;;;;;;;;;;;;76576:10;;76587:4;:6;;;76576:18;;;;;;;;;;;;;;;;;;;;:::i;:::-;76400:25;:203::i;:::-;76378:19;;;:225;76669:6;;76644:71;;76698:12;;76713:1;;76651:17;;;;:25;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;76644:45:0;;:71;:45;:71::i;:::-;76724:89;76778:12;76793:4;:19;;;76731:17;;76749:4;:6;;;76731:25;;;;;;76724:89;76822:12;-1:-1:-1;;;;;76822:20:0;;76843:17;;76861:4;:6;;;76843:25;;;;;;;;;;;;;;;;;;;;:::i;:::-;76870:4;:19;;;76891:10;76903:1;76822:83;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75865:8:0;;;;;;-1:-1:-1;75811:1102:0;;-1:-1:-1;75811:1102:0;;75155:1763;;;;;;;;;;;;;:::o;53192:59::-;;;:::o;11180:230::-;10499:12;:10;:12::i;:::-;10489:6;;-1:-1:-1;;;;;10489:6:0;;;:22;;;10481:67;;;;-1:-1:-1;;;10481:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;11265:22:0;::::1;11257:73;;;;-1:-1:-1::0;;;11257:73:0::1;;;;;;;:::i;:::-;11363:6;::::0;;11342:38:::1;::::0;-1:-1:-1;;;;;11342:38:0;;::::1;::::0;11363:6;::::1;::::0;11342:38:::1;::::0;::::1;11387:6;:17:::0;;-1:-1:-1;;;;;;11387:17:0::1;-1:-1:-1::0;;;;;11387:17:0;;;::::1;::::0;;;::::1;::::0;;11180:230::o;8984:100::-;9068:10;8984:100;:::o;80159:765::-;80226:17;;:::i;:::-;80261:34;80304:36;80349:28;80386:29;80424:25;80458:16;80483:18;80510;80537:24;80599:6;80578:138;;;;;;;;;;;;:::i;:::-;80739:179;;;;;;;;;;;;;;;;;;;;;;;;;;;80843:45;;;;;;;;;;;;;;;;;;;;;80739:179;80843:45;;;;;;;;;;;;;;;80739:179;;;;;;;;;;;;80159:765;-1:-1:-1;;;;;;;;;;;80159:765:0:o;77833:1386::-;78123:34;;:::i;:::-;78184:26;78200:9;78184:15;:26::i;:::-;:40;;;-1:-1:-1;;;;;78170:54:0;;;;78263:40;;-1:-1:-1;;;78263:40:0;;:29;;:40;;78293:9;;78263:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78233:27;;;:70;78337:14;:68;;;;-1:-1:-1;78355:27:0;;;;78399:6;;78355:40;;78387:7;78355:31;:40::i;:::-;:50;;78337:68;:138;;78469:6;78337:138;;;78417:27;;;;:40;;78449:7;78417:31;:40::i;:::-;78310:17;;;:165;;;78513:96;;78539:9;;78550:7;;78578:18;78598:10;78513:25;:96::i;:::-;78484:19;;;:125;78646:53;-1:-1:-1;;;;;78646:27:0;;78682:12;78697:1;78646:27;:53::i;:::-;78757:19;;;;78706:71;;-1:-1:-1;;;;;78706:27:0;;;78742:12;;78706:27;:71::i;:::-;78814:19;;;;78784:64;;-1:-1:-1;;;78784:64:0;;-1:-1:-1;;;;;78784:12:0;:20;;;;:64;;78805:7;;78835:9;;78846:1;;78784:64;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78878:19;78889:7;78878:6;:10;;:19;;;;:::i;:::-;78857:18;;;:40;78924:17;;;;:30;;78946:7;78924:21;:30::i;:::-;78904:17;;;:50;;;78986:11;;78963:82;;78975:9;;78986:11;78999:9;;79029:15;78963:11;:82::i;:::-;79079:55;-1:-1:-1;;;;;79079:29:0;;79117:12;79132:1;79079:29;:55::i;:::-;79194:18;;;;79141:72;;-1:-1:-1;;;;;79141:29:0;;;79179:12;;79141:29;:72::i;:::-;77833:1386;;;;;;;;;;:::o;63521:2116::-;63649:17;;:::i;:::-;63707:21;63731:62;63744:48;63786:5;63744:37;:8;52756:1;63744:12;:37::i;:::-;:41;;:48::i;:::-;63731:8;;:12;:62::i;:::-;63832:16;;;63846:1;63832:16;;;63802:27;63832:16;;;;;63707:86;;-1:-1:-1;63832:16:0;;;;;;;;;;;;-1:-1:-1;63832:16:0;63802:46;;63871:9;63855:10;63866:1;63855:13;;;;;;;;;;;;;:25;-1:-1:-1;;;;;63855:25:0;;;-1:-1:-1;;;;;63855:25:0;;;;;63903:10;63887;63898:1;63887:13;;;;;;;;-1:-1:-1;;;;;63887:26:0;;;;:13;;;;;;;;;;:26;64037:16;;;64051:1;64037:16;;;;;;;;;63922:35;;;;;;64037:16;;;63922:35;;64037:16;;;;;-1:-1:-1;64037:16:0;64005:48;;64077:12;-1:-1:-1;;;;;64064:25:0;:9;-1:-1:-1;;;;;64064:25:0;;;:55;;;;;64107:12;-1:-1:-1;;;;;64093:26:0;:10;-1:-1:-1;;;;;64093:26:0;;;64064:55;64060:487;;;64148:9;64130:12;64143:1;64130:15;;;;;;;;;;;;;:27;-1:-1:-1;;;;;64130:27:0;;;-1:-1:-1;;;;;64130:27:0;;;;;64184:12;64166;64179:1;64166:15;;;;;;;;;;;;;:30;-1:-1:-1;;;;;64166:30:0;;;-1:-1:-1;;;;;64166:30:0;;;;;64223:10;64205:12;64218:1;64205:15;;;;;;;;-1:-1:-1;;;;;64205:28:0;;;:15;;;;;;;;;:28;64248:57;;-1:-1:-1;;;64248:57:0;;:14;:28;;;;;;:57;;64277:13;;64292:12;;64248:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64248:57:0;;;;;;;;;;;;:::i;:::-;;;64244:239;;64457:16;;;64471:1;64457:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64457:16:0;64439:34;;64244:239;;;64396:15;-1:-1:-1;64244:239:0;64060:487;;;64523:16;;;64537:1;64523:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64523:16:0;64505:34;;64060:487;64587:55;;-1:-1:-1;;;64587:55:0;;64555:21;;-1:-1:-1;;;;;64587:14:0;:28;;;;:55;;64616:13;;64631:10;;64587:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64587:55:0;;;;;;;;;;;;:::i;:::-;;;64583:404;;64920:16;;;64934:1;64920:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64920:16:0;64899:37;;64961:15;64977:1;64961:18;;;;;;;;;;;;;;64945:34;;64583:404;;;64728:13;64707:34;;64790:18;64809:1;64790:21;;;;;;;;;;;;;;64769:15;64785:1;64769:18;;;;;;;;;;;;;;:42;64768:107;;64854:18;64873:1;64854:21;;;;;;;;;;;;;;64768:107;;;64824:15;64840:1;64824:18;;;;;;;;;;;;;;64768:107;64752:123;;64643:240;64583:404;64995:25;65023:23;65036:9;65023:12;:23::i;:::-;64995:51;;65053:26;65082:24;65095:10;65082:12;:24::i;:::-;65053:53;-1:-1:-1;65115:21:0;65146:117;65214:40;:13;65232:2;:21;;;65214:17;:40::i;:::-;65146:53;65176:2;:22;;;65146:25;:13;65164:6;65146:17;:25::i;:::-;:29;;:53::i;:117::-;65115:148;;65286:345;;;;;;;;65307:13;65286:345;;;;65331:13;65286:345;;;;65355:53;65369:9;65380:8;65390:17;65355:13;:53::i;:::-;65286:345;;;;65419:60;65433:10;65445:13;65460:18;65419:13;:60::i;:::-;65286:345;;;;65491:18;;65490:132;;65550:18;65569:1;65550:21;;;;;;;;;;;;;;65533:13;:38;65532:90;;65610:12;65532:90;;;65586:10;65532:90;65490:132;;;65513:16;;;65527:1;65513:16;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65490:132:0;65286:345;;65272:359;63521:2116;-1:-1:-1;;;;;;;;;;;;;63521:2116:0:o;66266:913::-;66394:17;;:::i;:::-;66421:24;66447:21;66479:54;66500:9;66511:10;66523:9;66479:20;:54::i;:::-;66420:113;;;;66569:21;66593:66;66608:50;66652:5;66608:39;52756:1;66608:7;66616:1;66608:10;;;;;;;;;;;;;;:14;;:39;;;;:::i;:50::-;66593:7;66601:1;66593:10;;;;;;;;;;;;;;:14;;:66;;;;:::i;:::-;66569:90;;66668:25;66696:23;66709:9;66696:12;:23::i;:::-;66668:51;;66726:26;66755:24;66768:10;66755:12;:24::i;:::-;66726:53;-1:-1:-1;66788:21:0;66819:113;66882:41;:13;66900:2;:22;;;66882:17;:41::i;:::-;66819:48;66845:2;:21;;;66819;:9;66833:6;66819:13;:21::i;:113::-;66788:144;;66955:218;;;;;;;;66976:13;66955:218;;;;67000:13;66955:218;;;;67024:58;67038:9;67049:13;67064:17;67024:13;:58::i;:::-;66955:218;;;;67093:56;67107:10;67119:9;67130:18;67093:13;:56::i;:::-;66955:218;;;;;;;;-1:-1:-1;66941:232:0;;66266:913;-1:-1:-1;;;;;;;;66266:913:0:o;60673:147::-;60736:28;;:::i;:::-;60780:34;;-1:-1:-1;;;60780:34:0;;-1:-1:-1;;;;;60780:12:0;:27;;;;:34;;60808:5;;60780:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60773:41;60673:147;-1:-1:-1;;60673:147:0:o;61146:671::-;61327:27;61338:15;61327:10;:27::i;:::-;61323:288;;;61382:13;-1:-1:-1;;;;;61365:38:0;;61414:4;61437;61453:15;:22;;;61486:15;:24;;;61521:15;:17;;;61549:15;:17;;;61577:15;:17;;;61365:238;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61323:288;61657:67;-1:-1:-1;;;;;61657:38:0;;61696:4;61710;61717:6;61657:38;:67::i;:::-;61758:53;;-1:-1:-1;;;61758:53:0;;-1:-1:-1;;;;;61758:12:0;:21;;;;:53;;61780:7;;61789:6;;61805:4;;61758:53;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;61146:671;;;;;:::o;56199:1713::-;56391:7;56407:25;56435:29;56448:15;56435:12;:29::i;:::-;56407:57;;56471:23;56497:27;56510:13;56497:12;:27::i;:::-;56471:53;;56533:22;56558:26;56568:15;56558:9;:26::i;:::-;56533:51;;56591:20;56614:24;56624:13;56614:9;:24::i;:::-;56591:47;-1:-1:-1;56647:28:0;56685:203;56829:58;50835:3;52640:4;56829:36;:58::i;:::-;56685:122;56767:39;:12;56784:2;:21;;;56767:16;:39::i;:::-;56685:67;56712:39;:14;56731:2;:19;;;56712:18;:39::i;:::-;56685:12;;:26;:67::i;:122::-;:143;;:203::i;:::-;56647:241;;56928:12;56905:20;:35;56897:80;;;;-1:-1:-1;;;56897:80:0;;;;;;;:::i;:::-;57124:63;-1:-1:-1;;;;;57124:35:0;;57168:14;57185:1;57124:35;:63::i;:::-;57194:74;-1:-1:-1;;;;;57194:35:0;;57238:14;57255:12;57194:35;:74::i;:::-;57277:21;57309:10;57305:265;;;57337:16;;;57351:1;57337:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57337:16:0;57330:23;;57372:15;57362:4;57367:1;57362:7;;;;;;;;;;;;;:25;-1:-1:-1;;;;;57362:25:0;;;-1:-1:-1;;;;;57362:25:0;;;;;57406:12;57396:4;57401:1;57396:7;;;;;;;;;;;;;:22;-1:-1:-1;;;;;57396:22:0;;;-1:-1:-1;;;;;57396:22:0;;;;;57437:13;57427:4;57432:1;57427:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;57427:23:0;;;-1:-1:-1;;;;;57427:23:0;;;;;57305:265;;;57480:16;;;57494:1;57480:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57480:16:0;57473:23;;57515:15;57505:4;57510:1;57505:7;;;;;;;;;;;;;:25;-1:-1:-1;;;;;57505:25:0;;;-1:-1:-1;;;;;57505:25:0;;;;;57549:13;57539:4;57544:1;57539:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;57539:23:0;;;-1:-1:-1;;;;;57539:23:0;;;;;57305:265;57610:159;;-1:-1:-1;;;57610:159:0;;57576:24;;-1:-1:-1;;;;;57610:14:0;:39;;;;:159;;57660:12;;57683;;57706:4;;57729;;57745:15;;57610:159;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;57610:159:0;;;;;;;;;;;;:::i;:::-;57576:193;;57783:80;57791:15;57808:13;57823:7;57831:1;57823:10;;;;;;;;;;;;;;57835:7;57860:1;57843:7;:14;:18;57835:27;;;;;;;;;;;;;;57783:80;;;;;;;;;:::i;:::-;;;;;;;;57879:7;57904:1;57887:7;:14;:18;57879:27;;;;;;;;;;;;;;57872:34;;;;;;;;;56199:1713;;;;;;;:::o;14926:355::-;15046:10;;;15045:62;;-1:-1:-1;15062:39:0;;-1:-1:-1;;;15062:39:0;;-1:-1:-1;;;;;15062:15:0;;;;;:39;;15086:4;;15093:7;;15062:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;15045:62;15029:150;;;;-1:-1:-1;;;15029:150:0;;;;;;;:::i;:::-;15186:89;15205:5;15235:22;;;15259:7;15268:5;15212:62;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;15212:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;15212:62:0;-1:-1:-1;;;;;;15212:62:0;;;;;;;;;;15186:18;:89::i;:::-;14926:355;;;:::o;20139:130::-;20197:7;20220:43;20224:1;20227;20220:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;20213:50;20139:130;-1:-1:-1;;;20139:130:0:o;19717:167::-;19775:7;19803:5;;;19823:6;;;;19815:46;;;;-1:-1:-1;;;19815:46:0;;;;;;;:::i;20973:431::-;21031:7;21260:6;21256:37;;-1:-1:-1;21284:1:0;21277:8;;21256:37;21313:5;;;21317:1;21313;:5;:1;21333:5;;;;;:10;21325:56;;;;-1:-1:-1;;;21325:56:0;;;;;;;:::i;21848:126::-;21906:7;21929:39;21933:1;21936;21929:39;;;;;;;;;;;;;;;;;:3;:39::i;60446:121::-;60506:7;60544:5;-1:-1:-1;;;;;60529:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60522:39;;;60446:121;-1:-1:-1;;60446:121:0:o;62577:318::-;62694:7;62710:19;62732:22;52840:42;62732:9;:22::i;:::-;62710:44;;62761:20;62784:18;62794:7;62784:9;:18::i;:::-;62761:41;-1:-1:-1;62818:71:0;62882:6;62818:59;62865:11;62818:42;62847:2;:12;;;62818:59;:6;62761:41;62818:10;:24::i;:71::-;62811:78;62577:318;-1:-1:-1;;;;;;62577:318:0:o;67540:1312::-;67744:16;;;67758:1;67744:16;;;67671;67744;;;;;;67671;;;;67744;;;;;;;;;;;;-1:-1:-1;67744:16:0;67714:46;;67783:9;67767:10;67778:1;67767:13;;;;;;;;;;;;;:25;-1:-1:-1;;;;;67767:25:0;;;-1:-1:-1;;;;;67767:25:0;;;;;67815:10;67799;67810:1;67799:13;;;;;;;;-1:-1:-1;;;;;67799:26:0;;;;:13;;;;;;;;;;:26;67947:16;;;67961:1;67947:16;;;;;;;;;67834:35;;;;;;67947:16;;;67834:35;;67947:16;;;;;-1:-1:-1;67947:16:0;67915:48;;67989:12;-1:-1:-1;;;;;67976:25:0;:9;-1:-1:-1;;;;;67976:25:0;;;:55;;;;;68019:12;-1:-1:-1;;;;;68005:26:0;:10;-1:-1:-1;;;;;68005:26:0;;;67976:55;67972:482;;;68060:9;68042:12;68055:1;68042:15;;;;;;;;;;;;;:27;-1:-1:-1;;;;;68042:27:0;;;-1:-1:-1;;;;;68042:27:0;;;;;68096:12;68078;68091:1;68078:15;;;;;;;;;;;;;:30;-1:-1:-1;;;;;68078:30:0;;;-1:-1:-1;;;;;68078:30:0;;;;;68135:10;68117:12;68130:1;68117:15;;;;;;;;-1:-1:-1;;;;;68117:28:0;;;:15;;;;;;;;;:28;68160:52;;-1:-1:-1;;;68160:52:0;;:14;:27;;;;;;:52;;68188:9;;68199:12;;68160:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68160:52:0;;;;;;;;;;;;:::i;:::-;;;68156:234;;68364:16;;;68378:1;68364:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68364:16:0;68346:34;;68156:234;;;68303:15;-1:-1:-1;68156:234:0;67972:482;;;68430:16;;;68444:1;68430:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68430:16:0;68412:34;;67972:482;68466:50;;-1:-1:-1;;;68466:50:0;;-1:-1:-1;;;;;68466:14:0;:27;;;;:50;;68494:9;;68505:10;;68466:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68466:50:0;;;;;;;;;;;;:::i;:::-;;;68462:385;;68809:15;;-1:-1:-1;68826:12:0;-1:-1:-1;68801:38:0;;-1:-1:-1;;68801:38:0;68462:385;68602:13;68581:34;;68664:18;68683:1;68664:21;;;;;;;;;;;;;;68643:15;68659:1;68643:18;;;;;;;;;;;;;;:42;68642:135;;68746:18;68766:10;68642:135;;;68701:15;68718:12;68642:135;68626:151;;;;;;;;;67540:1312;;;;;;;:::o;62121:200::-;62198:4;62266:9;:11;;;62258:20;;62235:9;:18;;;62227:51;:87;;;;-1:-1:-1;62290:18:0;;;;62282:32;62227:87;62225:90;;62121:200;-1:-1:-1;;62121:200:0:o;14697:223::-;14819:95;14838:5;14868:27;;;14897:4;14903:2;14907:5;14845:68;;;;;;;;;;:::i;14819:95::-;14697:223;;;;:::o;60227:113::-;60307:27;;-1:-1:-1;;;60307:27:0;;60284:7;;-1:-1:-1;;;;;60307:6:0;:20;;;;:27;;60328:5;;60307:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;51180:362::-;51258:7;51278:10;;;:29;;-1:-1:-1;51292:15:0;;51278:29;51274:60;;;-1:-1:-1;51325:1:0;51318:8;;51274:60;51404:10;-1:-1:-1;;51404:10:0;51367:47;;;;;51358:5;:56;;51423:35;;;;;;;;;;;;;-1:-1:-1;;;51423:35:0;;;51342:123;;;;;-1:-1:-1;;;51342:123:0;;;;;;;;:::i;:::-;-1:-1:-1;;50835:3:0;51482:18;;50906:21;51482:33;51481:55;;51180:362::o;15287:567::-;15371:27;15379:5;-1:-1:-1;;;;;15371:25:0;;:27::i;:::-;15363:71;;;;-1:-1:-1;;;15363:71:0;;;;;;;:::i;:::-;15500:12;15514:23;15549:5;-1:-1:-1;;;;;15541:19:0;15561:4;15541:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15499:67;;;;15581:7;15573:52;;;;-1:-1:-1;;;15573:52:0;;;;;;;:::i;:::-;15638:17;;:21;15634:215;;15775:10;15764:30;;;;;;;;;;;;:::i;:::-;15756:85;;;;-1:-1:-1;;;15756:85:0;;;;;;;:::i;20544:198::-;20650:7;20682:12;20674:6;;;;20666:29;;;;-1:-1:-1;;;20666:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;20714:5:0;;;20544:198::o;22438:343::-;22544:7;22638:12;22631:5;22623:28;;;;-1:-1:-1;;;22623:28:0;;;;;;;;:::i;:::-;;22658:9;22674:1;22670;:5;;;;;;;22438:343;-1:-1:-1;;;;;22438:343:0:o;12062:597::-;12122:4;12569:20;;12413:66;12610:23;;;;;;:42;;-1:-1:-1;12637:15:0;;;12610:42;12602:51;12062:597;-1:-1:-1;;;;12062:597:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;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;;-1:-1;;;;;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;679:722::-;;807:3;800:4;792:6;788:17;784:27;774:2;;-1:-1;;815:12;774:2;855:6;849:13;877:80;892:64;949:6;892:64;:::i;:::-;877:80;:::i;:::-;985:21;;;868:89;-1:-1;1029:4;1042:14;;;;1017:17;;;1131;;;1122:27;;;;1119:36;-1:-1;1116:2;;;1168:1;;1158:12;1116:2;1193:1;1178:217;1203:6;1200:1;1197:13;1178:217;;;226:6;220:13;238:33;265:5;238:33;:::i;:::-;1271:61;;1346:14;;;;1374;;;;1225:1;1218:9;1178:217;;;1182:14;;;;;767:634;;;;:::o;1796:713::-;;1921:3;1914:4;1906:6;1902:17;1898:27;1888:2;;-1:-1;;1929:12;1888:2;1969:6;1963:13;1991:77;2006:61;2060:6;2006:61;:::i;1991:77::-;2096:21;;;1982:86;-1:-1;2140:4;2153:14;;;;2128:17;;;2242;;;2233:27;;;;2230:36;-1:-1;2227:2;;;2279:1;;2269:12;2227:2;2304:1;2289:214;2314:6;2311:1;2308:13;2289:214;;;5789:6;5783:13;5801:30;5825:5;5801:30;:::i;:::-;2382:58;;2454:14;;;;2482;;;;2336:1;2329:9;2289:214;;2535:722;;2663:3;2656:4;2648:6;2644:17;2640:27;2630:2;;-1:-1;;2671:12;2630:2;2711:6;2705:13;2733:80;2748:64;2805:6;2748:64;:::i;2733:80::-;2841:21;;;2724:89;-1:-1;2885:4;2898:14;;;;2873:17;;;2987;;;2978:27;;;;2975:36;-1:-1;2972:2;;;3024:1;;3014:12;2972:2;3049:1;3034:217;3059:6;3056:1;3053:13;3034:217;;;6058:13;;3127:61;;3202:14;;;;3230;;;;3081:1;3074:9;3034:217;;3318:385;;;3481:3;3474:4;3466:6;3462:17;3458:27;3448:2;;-1:-1;;3489:12;3448:2;-1:-1;3519:20;;-1:-1;;;;;3548:30;;3545:2;;;-1:-1;;3581:12;3545:2;3625:4;3617:6;3613:17;3601:29;;3676:3;3625:4;3668;3660:6;3656:17;3617:6;3642:32;;3639:41;3636:2;;;3693:1;;3683:12;4853:716;;4979:3;4972:4;4964:6;4960:17;4956:27;4946:2;;-1:-1;;4987:12;4946:2;5027:6;5021:13;5049:78;5064:62;5119:6;5064:62;:::i;5049:78::-;5155:21;;;5040:87;-1:-1;5199:4;5212:14;;;;5187:17;;;5301;;;5292:27;;;;5289:36;-1:-1;5286:2;;;5338:1;;5328:12;5286:2;5363:1;5348:215;5373:6;5370:1;5367:13;5348:215;;;11113:6;11107:13;11125:31;11150:5;11125:31;:::i;:::-;5441:59;;5514:14;;;;5542;;;;5395:1;5388:9;5348:215;;7648:360;;7788:4;7776:9;7771:3;7767:19;7763:30;7760:2;;;-1:-1;;7796:12;7760:2;7824:20;7788:4;7824:20;:::i;:::-;10696:13;;7901:86;;-1:-1;7815:29;7754:254;-1:-1;7754:254::o;10340:134::-;10418:13;;44378:34;44367:46;;47669:35;;47659:2;;47718:1;;47708:12;10759:132;10836:13;;44795:12;44784:24;;47916:34;;47906:2;;47964:1;;47954:12;11031:130;11107:13;;11125:31;11107:13;11125:31;:::i;11168:241::-;;11272:2;11260:9;11251:7;11247:23;11243:32;11240:2;;;-1:-1;;11278:12;11240:2;85:6;72:20;97:33;124:5;97:33;:::i;11416:1869::-;;;;;;;;;;;;;11847:3;11835:9;11826:7;11822:23;11818:33;11815:2;;;-1:-1;;11854:12;11815:2;-1:-1;;;;;11912:17;11899:31;11939:30;11936:2;;;-1:-1;;11972:12;11936:2;12010:80;12082:7;11912:17;11899:31;12062:9;12058:22;12010:80;:::i;:::-;11992:98;;-1:-1;11992:98;-1:-1;;;;;;12155:2;12140:18;;12127:32;12168:30;12165:2;;;-1:-1;;12201:12;12165:2;12239:80;12311:7;12155:2;12144:9;12140:18;12127:32;12291:9;12287:22;12239:80;:::i;:::-;12221:98;;-1:-1;12221:98;-1:-1;;;;;;12384:2;12369:18;;12356:32;12397:30;12394:2;;;-1:-1;;12430:12;12394:2;12468:80;12540:7;12384:2;12373:9;12369:18;12356:32;12520:9;12516:22;12468:80;:::i;:::-;12450:98;;-1:-1;12450:98;-1:-1;;;;;;12613:2;12598:18;;12585:32;12626:30;12623:2;;;-1:-1;;12659:12;12623:2;12697:80;12769:7;12613:2;12602:9;12598:18;12585:32;12749:9;12745:22;12697:80;:::i;:::-;12679:98;;-1:-1;12679:98;-1:-1;;;;;;12842:3;12827:19;;12814:33;12856:30;12853:2;;;-1:-1;;12889:12;12853:2;12927:113;13032:7;12842:3;12831:9;12827:19;12814:33;13012:9;13008:22;12927:113;:::i;:::-;12909:131;;-1:-1;12909:131;-1:-1;;;;;;13105:3;13090:19;;13077:33;13119:30;13116:2;;;-1:-1;;13152:12;13116:2;13192:77;13261:7;13105:3;13094:9;13090:19;13077:33;13241:9;13237:22;13192:77;:::i;:::-;13172:97;;;;;;;;11809:1476;;;;;;;;;;;;;;:::o;13292:1335::-;;;;;;;;;;13588:3;13576:9;13567:7;13563:23;13559:33;13556:2;;;-1:-1;;13595:12;13556:2;13653:17;13640:31;-1:-1;;;;;13691:18;13683:6;13680:30;13677:2;;;-1:-1;;13713:12;13677:2;13751:80;13823:7;13814:6;13803:9;13799:22;13751:80;:::i;:::-;13733:98;;-1:-1;13733:98;-1:-1;13896:2;13881:18;;13868:32;;-1:-1;13909:30;;;13906:2;;;-1:-1;;13942:12;13906:2;13980:80;14052:7;14043:6;14032:9;14028:22;13980:80;:::i;:::-;13962:98;;-1:-1;13962:98;-1:-1;14125:2;14110:18;;14097:32;;-1:-1;14138:30;;;14135:2;;;-1:-1;;14171:12;14135:2;14209:80;14281:7;14272:6;14261:9;14257:22;14209:80;:::i;:::-;14191:98;;-1:-1;14191:98;-1:-1;14326:2;14365:22;;72:20;;-1:-1;97:33;72:20;97:33;:::i;:::-;14334:63;;-1:-1;14462:3;14447:19;;14434:33;;14476:30;;;14473:2;;;-1:-1;;14509:12;14473:2;14594:6;14583:9;14579:22;;;6249:3;6242:4;6234:6;6230:17;6226:27;6216:2;;-1:-1;;6257:12;6216:2;6300:6;6287:20;13691:18;6319:6;6316:30;6313:2;;;-1:-1;;6349:12;6313:2;6444:3;13896:2;6424:17;6385:6;6410:32;;6407:41;6404:2;;;-1:-1;;6451:12;6404:2;13896;6385:6;6381:17;14529:82;;;;;;;;13550:1077;;;;;;;;;;;:::o;14634:2502::-;;;;;;;;;;15102:3;15090:9;15081:7;15077:23;15073:33;15070:2;;;-1:-1;;15109:12;15070:2;15160:17;15154:24;-1:-1;;;;;15198:18;15190:6;15187:30;15184:2;;;-1:-1;;15220:12;15184:2;15250:89;15331:7;15322:6;15311:9;15307:22;15250:89;:::i;:::-;15240:99;;15397:2;15386:9;15382:18;15376:25;15362:39;;15198:18;15413:6;15410:30;15407:2;;;-1:-1;;15443:12;15407:2;15473:89;15554:7;15545:6;15534:9;15530:22;15473:89;:::i;:::-;15463:99;;15620:2;15609:9;15605:18;15599:25;15585:39;;15198:18;15636:6;15633:30;15630:2;;;-1:-1;;15666:12;15630:2;15696:86;15774:7;15765:6;15754:9;15750:22;15696:86;:::i;:::-;15686:96;;15840:2;15829:9;15825:18;15819:25;15805:39;;15198:18;15856:6;15853:30;15850:2;;;-1:-1;;15886:12;15850:2;15916:89;15997:7;15988:6;15977:9;15973:22;15916:89;:::i;:::-;15906:99;;16063:3;16052:9;16048:19;16042:26;16028:40;;15198:18;16080:6;16077:30;16074:2;;;-1:-1;;16110:12;16074:2;16140:89;16221:7;16212:6;16201:9;16197:22;16140:89;:::i;:::-;16130:99;;16287:3;16276:9;16272:19;16266:26;16252:40;;15198:18;16304:6;16301:30;16298:2;;;-1:-1;;16334:12;16298:2;16364:87;16443:7;16434:6;16423:9;16419:22;16364:87;:::i;:::-;16354:97;;16509:3;16498:9;16494:19;16488:26;16474:40;;15198:18;16526:6;16523:30;16520:2;;;-1:-1;;16556:12;16520:2;16586:89;16667:7;16658:6;16647:9;16643:22;16586:89;:::i;:::-;16576:99;;16733:3;16722:9;16718:19;16712:26;16698:40;;15198:18;16750:6;16747:30;16744:2;;;-1:-1;;16780:12;16744:2;16810:89;16891:7;16882:6;16871:9;16867:22;16810:89;:::i;:::-;16800:99;;16957:3;16946:9;16942:19;16936:26;16922:40;;15198:18;16974:6;16971:30;16968:2;;;-1:-1;;17004:12;16968:2;;17034:86;17112:7;17103:6;17092:9;17088:22;17034:86;:::i;:::-;17024:96;;;15064:2072;;;;;;;;;;;:::o;17143:392::-;;17283:2;17271:9;17262:7;17258:23;17254:32;17251:2;;;-1:-1;;17289:12;17251:2;17340:17;17334:24;-1:-1;;;;;17370:6;17367:30;17364:2;;;-1:-1;;17400:12;17364:2;17430:89;17511:7;17502:6;17491:9;17487:22;17430:89;:::i;17542:235::-;;17643:2;17631:9;17622:7;17618:23;17614:32;17611:2;;;-1:-1;;17649:12;17611:2;5654:6;5641:20;5666:30;5690:5;5666:30;:::i;17784:257::-;;17896:2;17884:9;17875:7;17871:23;17867:32;17864:2;;;-1:-1;;17902:12;17864:2;5789:6;5783:13;5801:30;5825:5;5801:30;:::i;18324:304::-;;18459:3;18447:9;18438:7;18434:23;18430:33;18427:2;;;-1:-1;;18466:12;18427:2;6849:20;18459:3;6849:20;:::i;:::-;10561:6;10548:20;6935:16;6928:75;7068:2;7126:9;7122:22;10548:20;7068:2;7087:5;7083:16;7076:75;7209:2;7265:9;7261:22;10963:20;10988:31;11013:5;10988:31;:::i;:::-;7209:2;7224:16;;7217:73;7348:2;7402:22;;;5910:20;7363:16;;;7356:75;7489:3;7544:22;;;5910:20;7505:16;;;7498:75;;;;-1:-1;7228:5;18421:207;-1:-1;18421:207::o;18635:320::-;;18778:3;;18766:9;18757:7;18753:23;18749:33;18746:2;;;-1:-1;;18785:12;18746:2;8216:22;18778:3;8216:22;:::i;:::-;8207:31;;8329:100;8425:3;8401:22;8329:100;:::i;:::-;8311:16;8304:126;8534:60;8590:3;8501:2;8570:9;8566:22;8534:60;:::i;:::-;8501:2;8520:5;8516:16;8509:86;8704:60;8760:3;8671:2;8740:9;8736:22;8704:60;:::i;:::-;8671:2;8690:5;8686:16;8679:86;8875:60;8931:3;8842:2;8911:9;8907:22;8875:60;:::i;:::-;8842:2;8861:5;8857:16;8850:86;9052:60;9108:3;9018;9088:9;9084:22;9052:60;:::i;:::-;9018:3;9038:5;9034:16;9027:86;9227:60;9283:3;9193;9263:9;9259:22;9227:60;:::i;:::-;9193:3;9213:5;9209:16;9202:86;9398:59;9453:3;9364;9433:9;9429:22;9398:59;:::i;:::-;9364:3;9384:5;9380:16;9373:85;9562:60;9618:3;9528;9598:9;9594:22;9562:60;:::i;:::-;9528:3;9548:5;9544:16;9537:86;9702:3;9738:60;9794:3;9702;9774:9;9770:22;9738:60;:::i;:::-;9718:18;;;9711:88;9880:3;9916:60;9972:3;9948:22;;;9916:60;:::i;:::-;9896:18;;;9889:88;10061:3;10097:60;10153:3;10129:22;;;10097:60;:::i;:::-;10077:18;;;10070:88;10217:3;10253:58;10307:3;10283:22;;;10253:58;:::i;:::-;10233:18;;;10226:86;10237:5;18740:215;-1:-1;;;18740:215::o;18962:263::-;;19077:2;19065:9;19056:7;19052:23;19048:32;19045:2;;;-1:-1;;19083:12;19045:2;-1:-1;10696:13;;19039:186;-1:-1;19039:186::o;19232:491::-;;;;19370:2;19358:9;19349:7;19345:23;19341:32;19338:2;;;-1:-1;;19376:12;19338:2;10561:6;10548:20;19428:63;;19528:2;19571:9;19567:22;72:20;97:33;124:5;97:33;:::i;:::-;19536:63;-1:-1;19636:2;19675:22;;72:20;97:33;72:20;97:33;:::i;:::-;19644:63;;;;19332:391;;;;;:::o;19730:259::-;;19843:2;19831:9;19822:7;19818:23;19814:32;19811:2;;;-1:-1;;19849:12;19811:2;11113:6;11107:13;11125:31;11150:5;11125:31;:::i;20588:690::-;;20781:5;42999:12;43543:6;43538:3;43531:19;43580:4;;43575:3;43571:14;20793:93;;43580:4;20957:5;42853:14;-1:-1;20996:260;21021:6;21018:1;21015:13;20996:260;;;21082:13;;-1:-1;;;;;44578:54;20388:37;;20150:14;;;;43386;;;;509:18;21036:9;20996:260;;;-1:-1;21262:10;;20712:566;-1:-1;;;;;20712:566::o;27281:271::-;;21677:5;42999:12;21788:52;21833:6;21828:3;21821:4;21814:5;21810:16;21788:52;:::i;:::-;21852:16;;;;;27415:137;-1:-1;;27415:137::o;27559:222::-;-1:-1;;;;;44578:54;;;;20388:37;;27686:2;27671:18;;27657:124::o;28033:333::-;-1:-1;;;;;44578:54;;;20388:37;;44578:54;;28352:2;28337:18;;20388:37;28188:2;28173:18;;28159:207::o;28373:444::-;-1:-1;;;;;44578:54;;;20388:37;;44578:54;;;;28720:2;28705:18;;20388:37;28803:2;28788:18;;21468:37;;;;28556:2;28541:18;;28527:290::o;28824:556::-;-1:-1;;;;;44578:54;;;20388:37;;44578:54;;;;29200:2;29185:18;;20388:37;29283:2;29268:18;;21468:37;29366:2;29351:18;;21468:37;;;;29035:3;29020:19;;29006:374::o;29387:884::-;-1:-1;;;;;44578:54;;;20388:37;;44578:54;;;;29843:2;29828:18;;20388:37;29926:2;29911:18;;21468:37;;;;30009:2;29994:18;;21468:37;;;;44891:4;44880:16;30088:3;30073:19;;27234:35;44589:42;30157:19;;21468:37;30256:3;30241:19;;21468:37;;;;29678:3;29663:19;;29649:622::o;30278:333::-;-1:-1;;;;;44578:54;;;;20388:37;;30597:2;30582:18;;21468:37;30433:2;30418:18;;30404:207::o;30618:444::-;-1:-1;;;;;44578:54;;;20388:37;;30965:2;30950:18;;21468:37;;;;44578:54;;;31048:2;31033:18;;20388:37;30801:2;30786:18;;30772:290::o;31069:586::-;-1:-1;;;;;44578:54;;;20388:37;;31460:2;31445:18;;21468:37;;;;44578:54;;31551:2;31536:18;;20257:58;44497:6;44486:18;;;31641:2;31626:18;;22710:57;31295:3;31280:19;;31266:389::o;32239:210::-;44088:13;;44081:21;21351:34;;32360:2;32345:18;;32331:118::o;33592:310::-;;33739:2;33760:17;33753:47;22924:5;42999:12;43543:6;33739:2;33728:9;33724:18;43531:19;23018:52;23063:6;43571:14;33728:9;43571:14;33739:2;23044:5;23040:16;23018:52;:::i;:::-;47071:7;47055:14;-1:-1;;47051:28;23082:39;;;;43571:14;23082:39;;33710:192;-1:-1;;33710:192::o;33909:416::-;34109:2;34123:47;;;23358:2;34094:18;;;43531:19;23394:29;43571:14;;;23374:50;23443:12;;;34080:245::o;34332:416::-;34532:2;34546:47;;;23694:2;34517:18;;;43531:19;23730:34;43571:14;;;23710:55;-1:-1;;;23785:12;;;23778:30;23827:12;;;34503:245::o;34755:416::-;34955:2;34969:47;;;24078:2;34940:18;;;43531:19;24114:29;43571:14;;;24094:50;24163:12;;;34926:245::o;35178:416::-;35378:2;35392:47;;;35363:18;;;43531:19;24450:34;43571:14;;;24430:55;24504:12;;;35349:245::o;35601:416::-;35801:2;35815:47;;;35786:18;;;43531:19;24791:34;43571:14;;;24771:55;24845:12;;;35772:245::o;36024:416::-;36224:2;36238:47;;;25096:2;36209:18;;;43531:19;25132:34;43571:14;;;25112:55;-1:-1;;;25187:12;;;25180:25;25224:12;;;36195:245::o;36447:416::-;36647:2;36661:47;;;36632:18;;;43531:19;25511:34;43571:14;;;25491:55;25565:12;;;36618:245::o;36870:416::-;37070:2;37084:47;;;25816:2;37055:18;;;43531:19;-1:-1;;;43571:14;;;25832:42;25893:12;;;37041:245::o;37293:416::-;37493:2;37507:47;;;26144:2;37478:18;;;43531:19;26180:34;43571:14;;;26160:55;-1:-1;;;26235:12;;;26228:34;26281:12;;;37464:245::o;37716:416::-;37916:2;37930:47;;;26532:2;37901:18;;;43531:19;26568:34;43571:14;;;26548:55;-1:-1;;;26623:12;;;26616:46;26681:12;;;37887:245::o;38139:416::-;38339:2;38353:47;;;26932:2;38324:18;;;43531:19;26968:33;43571:14;;;26948:54;27021:12;;;38310:245::o;38562:222::-;21468:37;;;38689:2;38674:18;;38660:124::o;38791:481::-;;21498:5;21475:3;21468:37;38996:2;39114;39103:9;39099:18;39092:48;39154:108;38996:2;38985:9;38981:18;39248:6;39154:108;:::i;39279:816::-;;21498:5;21475:3;21468:37;21498:5;39733:2;39722:9;39718:18;21468:37;39568:3;39770:2;39759:9;39755:18;39748:48;39810:108;39568:3;39557:9;39553:19;39904:6;39810:108;:::i;:::-;-1:-1;;;;;44578:54;;;;39997:2;39982:18;;20388:37;-1:-1;40080:3;40065:19;21468:37;39802:116;39539:556;-1:-1;;;39539:556::o;40102:816::-;;21498:5;21475:3;21468:37;21498:5;40556:2;40545:9;40541:18;21468:37;21498:5;40639:2;40628:9;40624:18;21468:37;21498:5;40722:2;40711:9;40707:18;21468:37;40391:3;40759;40748:9;40744:19;40737:49;40800:108;40391:3;40380:9;40376:19;40894:6;40800:108;:::i;:::-;40792:116;40362:556;-1:-1;;;;;;;40362:556::o;40925:256::-;40987:2;40981:9;41013:17;;;-1:-1;;;;;41073:34;;41109:22;;;41070:62;41067:2;;;41145:1;;41135:12;41067:2;40987;41154:22;40965:216;;-1:-1;40965:216::o;41188:304::-;;-1:-1;;;;;41339:6;41336:30;41333:2;;;-1:-1;;41369:12;41333:2;-1:-1;41414:4;41402:17;;;41467:15;;41270:222::o;46711:268::-;46776:1;46783:101;46797:6;46794:1;46791:13;46783:101;;;46864:11;;;46858:18;46845:11;;;46838:39;46819:2;46812:10;46783:101;;;46899:6;46896:1;46893:13;46890:2;;;-1:-1;;46776:1;46946:16;;46939:27;46760:219::o;47092:117::-;-1:-1;;;;;44578:54;;47151:35;;47141:2;;47200:1;;47190:12;47141:2;47135:74;:::o;47216:111::-;47297:5;44088:13;44081:21;47275:5;47272:32;47262:2;;47318:1;;47308:12;47980:113;44891:4;48063:5;44880:16;48040:5;48037:33;48027:2;;48084:1;;48074:12

Swarm Source

ipfs://80cad6a54c68674af22c75c77e83e8ae223eea1d85063da19d0bd04c4e729e47

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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