FTM Price: $1.00 (-2.14%)
Gas: 48 GWei

Contract

0xA2D7357c069b0cBC0F2B75487fa4045208b6F919
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040233229522021-11-27 22:29:20852 days ago1638052160IN
 Create: AToken
0 FTM0.3739435157.2307

Latest 1 internal transaction

Parent Txn Hash Block From To Value
233229522021-11-27 22:29:20852 days ago1638052160  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AToken

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at ftmscan.com on 2021-11-27
*/

// SPDX-License-Identifier: agpl-3.0

pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;



// Part: Address

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

// Part: Context

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

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

// Part: Errors

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

// Part: IAaveIncentivesController

interface IAaveIncentivesController {
  event RewardsAccrued(address indexed user, uint256 amount);

  event RewardsClaimed(address indexed user, address indexed to, uint256 amount);

  event RewardsClaimed(
    address indexed user,
    address indexed to,
    address indexed claimer,
    uint256 amount
  );

  event ClaimerSet(address indexed user, address indexed claimer);

  /*
   * @dev Returns the configuration of the distribution for a certain asset
   * @param asset The address of the reference asset of the distribution
   * @return The asset index, the emission per second and the last updated timestamp
   **/
  function getAssetData(address asset)
    external
    view
    returns (
      uint256,
      uint256,
      uint256
    );

  /**
   * @dev Whitelists an address to claim the rewards on behalf of another address
   * @param user The address of the user
   * @param claimer The address of the claimer
   */
  function setClaimer(address user, address claimer) external;

  /**
   * @dev Returns the whitelisted claimer for a certain address (0x0 if not set)
   * @param user The address of the user
   * @return The claimer address
   */
  function getClaimer(address user) external view returns (address);

  /**
   * @dev Configure assets for a certain rewards emission
   * @param assets The assets to incentivize
   * @param emissionsPerSecond The emission for each asset
   */
  function configureAssets(address[] calldata assets, uint256[] calldata emissionsPerSecond)
    external;

  /**
   * @dev Called by the corresponding asset on any update that affects the rewards distribution
   * @param user The address of the user
   * @param userBalance The balance of the user of the asset in the lending pool
   * @param totalSupply The total supply of the asset in the lending pool
   **/
  function handleAction(
    address user,
    uint256 userBalance,
    uint256 totalSupply
  ) external;

  /**
   * @dev Returns the total of rewards of an user, already accrued + not yet accrued
   * @param user The address of the user
   * @return The rewards
   **/
  function getRewardsBalance(address[] calldata assets, address user)
    external
    view
    returns (uint256);

  /**
   * @dev Claims reward for an user, on all the assets of the lending pool, accumulating the pending rewards
   * @param amount Amount of rewards to claim
   * @param to Address that will be receiving the rewards
   * @return Rewards claimed
   **/
  function claimRewards(
    address[] calldata assets,
    uint256 amount,
    address to
  ) external returns (uint256);

  /**
   * @dev Claims reward for an user on behalf, on all the assets of the lending pool, accumulating the pending rewards. The caller must
   * be whitelisted via "allowClaimOnBehalf" function by the RewardsAdmin role manager
   * @param amount Amount of rewards to claim
   * @param user Address to check and claim rewards
   * @param to Address that will be receiving the rewards
   * @return Rewards claimed
   **/
  function claimRewardsOnBehalf(
    address[] calldata assets,
    uint256 amount,
    address user,
    address to
  ) external returns (uint256);

  /**
   * @dev returns the unclaimed rewards of the user
   * @param user the address of the user
   * @return the unclaimed user rewards
   */
  function getUserUnclaimedRewards(address user) external view returns (uint256);

  /**
   * @dev returns the unclaimed rewards of the user
   * @param user the address of the user
   * @param asset The asset to incentivize
   * @return the user index for the asset
   */
  function getUserAssetData(address user, address asset) external view returns (uint256);

  /**
   * @dev for backward compatibility with previous implementation of the Incentives controller
   */
  function REWARD_TOKEN() external view returns (address);

  /**
   * @dev for backward compatibility with previous implementation of the Incentives controller
   */
  function PRECISION() external view returns (uint8);

  /**
   * @dev Gets the distribution end timestamp of the emissions
   */
  function DISTRIBUTION_END() external view returns (uint256);
}

// Part: IERC20

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

// Part: ILendingPoolAddressesProvider

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

// Part: IPriceOracle

/************
@title IPriceOracle interface
@notice Interface for the Aave price oracle.*/
interface IPriceOracle {
  /***********
    @dev returns the asset price in ETH
     */
  function getAssetPrice(address asset) external view returns (uint256);

  /***********
    @dev sets the asset price, in wei
     */
  function setAssetPrice(address asset, uint256 price) external;
}

// Part: IScaledBalanceToken

interface IScaledBalanceToken {
  /**
   * @dev Returns the scaled balance of the user. The scaled balance is the sum of all the
   * updated stored balance divided by the reserve's liquidity index at the moment of the update
   * @param user The user whose balance is calculated
   * @return The scaled balance of the user
   **/
  function scaledBalanceOf(address user) external view returns (uint256);

  /**
   * @dev Returns the scaled balance of the user and the scaled total supply.
   * @param user The address of the user
   * @return The scaled balance of the user
   * @return The scaled balance and the scaled total supply
   **/
  function getScaledUserBalanceAndSupply(address user) external view returns (uint256, uint256);

  /**
   * @dev Returns the scaled total supply of the variable debt token. Represents sum(debt/index)
   * @return The scaled total supply
   **/
  function scaledTotalSupply() external view returns (uint256);
}

// Part: SafeMath

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

// Part: VersionedInitializable

/**
 * @title VersionedInitializable
 *
 * @dev Helper contract to implement initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 *
 * @author Aave, inspired by the OpenZeppelin Initializable contract
 */
abstract contract VersionedInitializable {
  /**
   * @dev Indicates that the contract has been initialized.
   */
  uint256 private lastInitializedRevision = 0;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    uint256 revision = getRevision();
    require(
      initializing || isConstructor() || revision > lastInitializedRevision,
      'Contract instance has already been initialized'
    );

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      lastInitializedRevision = revision;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /**
   * @dev returns the revision number of the contract
   * Needs to be defined in the inherited class as a constant.
   **/
  function getRevision() internal pure virtual returns (uint256);

  /**
   * @dev Returns true if and only if the function is running in the constructor
   **/
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    uint256 cs;
    //solium-disable-next-line
    assembly {
      cs := extcodesize(address())
    }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

// Part: IERC20Detailed

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

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

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

// Part: ILendingPool

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

// Part: SafeERC20

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

// Part: WadRayMath

/**
 * @title WadRayMath library
 * @author Aave
 * @dev Provides mul and div function for wads (decimal numbers with 18 digits precision) and rays (decimals with 27 digits)
 **/

library WadRayMath {
  uint256 internal constant WAD = 1e18;
  uint256 internal constant halfWAD = WAD / 2;

  uint256 internal constant RAY = 1e27;
  uint256 internal constant halfRAY = RAY / 2;

  uint256 internal constant WAD_RAY_RATIO = 1e9;

  /**
   * @return One ray, 1e27
   **/
  function ray() internal pure returns (uint256) {
    return RAY;
  }

  /**
   * @return One wad, 1e18
   **/

  function wad() internal pure returns (uint256) {
    return WAD;
  }

  /**
   * @return Half ray, 1e27/2
   **/
  function halfRay() internal pure returns (uint256) {
    return halfRAY;
  }

  /**
   * @return Half ray, 1e18/2
   **/
  function halfWad() internal pure returns (uint256) {
    return halfWAD;
  }

  /**
   * @dev Multiplies two wad, rounding half up to the nearest wad
   * @param a Wad
   * @param b Wad
   * @return The result of a*b, in wad
   **/
  function wadMul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0 || b == 0) {
      return 0;
    }

    require(a <= (type(uint256).max - halfWAD) / b, Errors.MATH_MULTIPLICATION_OVERFLOW);

    return (a * b + halfWAD) / WAD;
  }

  /**
   * @dev Divides two wad, rounding half up to the nearest wad
   * @param a Wad
   * @param b Wad
   * @return The result of a/b, in wad
   **/
  function wadDiv(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0, Errors.MATH_DIVISION_BY_ZERO);
    uint256 halfB = b / 2;

    require(a <= (type(uint256).max - halfB) / WAD, Errors.MATH_MULTIPLICATION_OVERFLOW);

    return (a * WAD + halfB) / b;
  }

  /**
   * @dev Multiplies two ray, rounding half up to the nearest ray
   * @param a Ray
   * @param b Ray
   * @return The result of a*b, in ray
   **/
  function rayMul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0 || b == 0) {
      return 0;
    }

    require(a <= (type(uint256).max - halfRAY) / b, Errors.MATH_MULTIPLICATION_OVERFLOW);

    return (a * b + halfRAY) / RAY;
  }

  /**
   * @dev Divides two ray, rounding half up to the nearest ray
   * @param a Ray
   * @param b Ray
   * @return The result of a/b, in ray
   **/
  function rayDiv(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0, Errors.MATH_DIVISION_BY_ZERO);
    uint256 halfB = b / 2;

    require(a <= (type(uint256).max - halfB) / RAY, Errors.MATH_MULTIPLICATION_OVERFLOW);

    return (a * RAY + halfB) / b;
  }

  /**
   * @dev Casts ray down to wad
   * @param a Ray
   * @return a casted to wad, rounded half up to the nearest wad
   **/
  function rayToWad(uint256 a) internal pure returns (uint256) {
    uint256 halfRatio = WAD_RAY_RATIO / 2;
    uint256 result = halfRatio + a;
    require(result >= halfRatio, Errors.MATH_ADDITION_OVERFLOW);

    return result / WAD_RAY_RATIO;
  }

  /**
   * @dev Converts wad up to ray
   * @param a Wad
   * @return a converted in ray
   **/
  function wadToRay(uint256 a) internal pure returns (uint256) {
    uint256 result = a * WAD_RAY_RATIO;
    require(result / WAD_RAY_RATIO == a, Errors.MATH_MULTIPLICATION_OVERFLOW);
    return result;
  }
}

// Part: IInitializableAToken

/**
 * @title IInitializableAToken
 * @notice Interface for the initialize function on AToken
 * @author Aave
 **/
interface IInitializableAToken {
  /**
   * @dev Emitted when an aToken is initialized
   * @param underlyingAsset The address of the underlying asset
   * @param pool The address of the associated lending pool
   * @param treasury The address of the treasury
   * @param incentivesController The address of the incentives controller for this aToken
   * @param aTokenDecimals the decimals of the underlying
   * @param aTokenName the name of the aToken
   * @param aTokenSymbol the symbol of the aToken
   * @param params A set of encoded parameters for additional initialization
   **/
  event Initialized(
    address indexed underlyingAsset,
    address indexed pool,
    address treasury,
    address incentivesController,
    uint8 aTokenDecimals,
    string aTokenName,
    string aTokenSymbol,
    bytes params
  );

  /**
   * @dev Initializes the aToken
   * @param pool The address of the lending pool where this aToken will be used
   * @param treasury The address of the Aave treasury, receiving the fees on this aToken
   * @param underlyingAsset The address of the underlying asset of this aToken (E.g. WETH for aWETH)
   * @param incentivesController The smart contract managing potential incentives distribution
   * @param aTokenDecimals The decimals of the aToken, same as the underlying asset's
   * @param aTokenName The name of the aToken
   * @param aTokenSymbol The symbol of the aToken
   */
  function initialize(
    ILendingPool pool,
    address treasury,
    address underlyingAsset,
    IAaveIncentivesController incentivesController,
    uint8 aTokenDecimals,
    string calldata aTokenName,
    string calldata aTokenSymbol,
    bytes calldata params
  ) external;
}

// Part: IncentivizedERC20

/**
 * @title ERC20
 * @notice Basic ERC20 implementation
 * @author Aave, inspired by the Openzeppelin ERC20 implementation
 **/
abstract contract IncentivizedERC20 is Context, IERC20, IERC20Detailed {
  using SafeMath for uint256;

  mapping(address => uint256) internal _balances;

  mapping(address => mapping(address => uint256)) private _allowances;
  uint256 internal _totalSupply;
  string private _name;
  string private _symbol;
  uint8 private _decimals;

  ILendingPool internal _pool;
  address internal _underlyingAsset;

  constructor(
    string memory name,
    string memory symbol,
    uint8 decimals
  ) {
    _name = name;
    _symbol = symbol;
    _decimals = decimals;
  }

  /**
   * @return The name of the token
   **/
  function name() public view override returns (string memory) {
    return _name;
  }

  /**
   * @return The symbol of the token
   **/
  function symbol() public view override returns (string memory) {
    return _symbol;
  }

  /**
   * @return The decimals of the token
   **/
  function decimals() public view override returns (uint8) {
    return _decimals;
  }

  /**
   * @return The total supply of the token
   **/
  function totalSupply() public view virtual override returns (uint256) {
    return _totalSupply;
  }

  /**
   * @return The balance of the token
   **/
  function balanceOf(address account) public view virtual override returns (uint256) {
    return _balances[account];
  }

  /**
   * @return Abstract function implemented by the child aToken/debtToken.
   * Done this way in order to not break compatibility with previous versions of aTokens/debtTokens
   **/
  function _getIncentivesController() internal view virtual returns(IAaveIncentivesController);

  /**
   * @dev Executes a transfer of tokens from _msgSender() to recipient
   * @param recipient The recipient of the tokens
   * @param amount The amount of tokens being transferred
   * @return `true` if the transfer succeeds, `false` otherwise
   **/
  function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
    _transfer(_msgSender(), recipient, amount);
    emit Transfer(_msgSender(), recipient, amount);
    return true;
  }

  /**
   * @dev Returns the allowance of spender on the tokens owned by owner
   * @param owner The owner of the tokens
   * @param spender The user allowed to spend the owner's tokens
   * @return The amount of owner's tokens spender is allowed to spend
   **/
  function allowance(address owner, address spender)
    public
    view
    virtual
    override
    returns (uint256)
  {
    return _allowances[owner][spender];
  }

  /**
   * @dev Allows `spender` to spend the tokens owned by _msgSender()
   * @param spender The user allowed to spend _msgSender() tokens
   * @return `true`
   **/
  function approve(address spender, uint256 amount) public virtual override returns (bool) {
    _approve(_msgSender(), spender, amount);
    return true;
  }

  /**
   * @dev Executes a transfer of token from sender to recipient, if _msgSender() is allowed to do so
   * @param sender The owner of the tokens
   * @param recipient The recipient of the tokens
   * @param amount The amount of tokens being transferred
   * @return `true` if the transfer succeeds, `false` otherwise
   **/
  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) public virtual override returns (bool) {
    _transfer(sender, recipient, amount);
    _approve(
      sender,
      _msgSender(),
      _allowances[sender][_msgSender()].sub(amount, 'ERC20: transfer amount exceeds allowance')
    );
    emit Transfer(sender, recipient, amount);
    return true;
  }

  /**
   * @dev Increases the allowance of spender to spend _msgSender() tokens
   * @param spender The user allowed to spend on behalf of _msgSender()
   * @param addedValue The amount being added to the allowance
   * @return `true`
   **/
  function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
    _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
    return true;
  }

  /**
   * @dev Decreases the allowance of spender to spend _msgSender() tokens
   * @param spender The user allowed to spend on behalf of _msgSender()
   * @param subtractedValue The amount being subtracted to the allowance
   * @return `true`
   **/
  function decreaseAllowance(address spender, uint256 subtractedValue)
    public
    virtual
    returns (bool)
  {
    _approve(
      _msgSender(),
      spender,
      _allowances[_msgSender()][spender].sub(
        subtractedValue,
        'ERC20: decreased allowance below zero'
      )
    );
    return true;
  }

  function _transfer(
    address sender,
    address recipient,
    uint256 amount
  ) internal virtual {
    require(sender != address(0), 'ERC20: transfer from the zero address');
    require(recipient != address(0), 'ERC20: transfer to the zero address');

    _beforeTokenTransfer(sender, recipient, amount);

    uint256 senderBalance = _balances[sender].sub(amount, 'ERC20: transfer amount exceeds balance');
    _balances[sender] = senderBalance;
    uint256 recipientBalance = _balances[recipient].add(amount);
    _balances[recipient] = recipientBalance;

    if (address(_getIncentivesController()) != address(0)) {
      uint256 currentTotalSupply = _totalSupply;
      _getIncentivesController().handleAction(sender, senderBalance, currentTotalSupply);
      if (sender != recipient) {
        _getIncentivesController().handleAction(recipient, recipientBalance, currentTotalSupply);
      }
    }
  }

  function _mint(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: mint to the zero address');

    _beforeTokenTransfer(address(0), account, amount);

    uint256 currentTotalSupply = _totalSupply.add(amount);
    _totalSupply = currentTotalSupply;

    uint256 accountBalance = _balances[account].add(amount);
    _balances[account] = accountBalance;

    if (address(_getIncentivesController()) != address(0)) {
      _getIncentivesController().handleAction(account, accountBalance, currentTotalSupply);
    }
  }

  function _burn(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: burn from the zero address');

    _beforeTokenTransfer(account, address(0), amount);

    uint256 currentTotalSupply = _totalSupply.sub(amount);
    _totalSupply = currentTotalSupply;

    uint256 accountBalance = _balances[account].sub(amount, 'ERC20: burn amount exceeds balance');
    _balances[account] = accountBalance;

    if (address(_getIncentivesController()) != address(0)) {
      _getIncentivesController().handleAction(account, accountBalance, currentTotalSupply);
    }
  }

  function _approve(
    address owner,
    address spender,
    uint256 amount
  ) internal virtual {
    require(owner != address(0), 'ERC20: approve from the zero address');
    require(spender != address(0), 'ERC20: approve to the zero address');

    _allowances[owner][spender] = amount;
    emit Approval(owner, spender, amount);
  }

  function _setName(string memory newName) internal {
    _name = newName;
  }

  function _setSymbol(string memory newSymbol) internal {
    _symbol = newSymbol;
  }

  function _setDecimals(uint8 newDecimals) internal {
    _decimals = newDecimals;
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {}

  function getAssetPrice() external view returns (uint256) {
      ILendingPoolAddressesProvider provider = _pool.getAddressesProvider();
      address oracle = provider.getPriceOracle();
      return IPriceOracle(oracle).getAssetPrice(_underlyingAsset);
  }
}

// Part: IAToken

interface IAToken is IERC20, IScaledBalanceToken, IInitializableAToken {
  /**
   * @dev Emitted after the mint action
   * @param from The address performing the mint
   * @param value The amount being
   * @param index The new liquidity index of the reserve
   **/
  event Mint(address indexed from, uint256 value, uint256 index);

  /**
   * @dev Mints `amount` aTokens to `user`
   * @param user The address receiving the minted tokens
   * @param amount The amount of tokens getting minted
   * @param index The new liquidity index of the reserve
   * @return `true` if the the previous balance of the user was 0
   */
  function mint(
    address user,
    uint256 amount,
    uint256 index
  ) external returns (bool);

  /**
   * @dev Emitted after aTokens are burned
   * @param from The owner of the aTokens, getting them burned
   * @param target The address that will receive the underlying
   * @param value The amount being burned
   * @param index The new liquidity index of the reserve
   **/
  event Burn(address indexed from, address indexed target, uint256 value, uint256 index);

  /**
   * @dev Emitted during the transfer action
   * @param from The user whose tokens are being transferred
   * @param to The recipient
   * @param value The amount being transferred
   * @param index The new liquidity index of the reserve
   **/
  event BalanceTransfer(address indexed from, address indexed to, uint256 value, uint256 index);

  /**
   * @dev Burns aTokens from `user` and sends the equivalent amount of underlying to `receiverOfUnderlying`
   * @param user The owner of the aTokens, getting them burned
   * @param receiverOfUnderlying The address that will receive the underlying
   * @param amount The amount being burned
   * @param index The new liquidity index of the reserve
   **/
  function burn(
    address user,
    address receiverOfUnderlying,
    uint256 amount,
    uint256 index
  ) external;

  /**
   * @dev Mints aTokens to the reserve treasury
   * @param amount The amount of tokens getting minted
   * @param index The new liquidity index of the reserve
   */
  function mintToTreasury(uint256 amount, uint256 index) external;

  /**
   * @dev Transfers aTokens in the event of a borrow being liquidated, in case the liquidators reclaims the aToken
   * @param from The address getting liquidated, current owner of the aTokens
   * @param to The recipient
   * @param value The amount of tokens getting transferred
   **/
  function transferOnLiquidation(
    address from,
    address to,
    uint256 value
  ) external;

  /**
   * @dev Transfers the underlying asset to `target`. Used by the LendingPool to transfer
   * assets in borrow(), withdraw() and flashLoan()
   * @param user The recipient of the underlying
   * @param amount The amount getting transferred
   * @return The amount transferred
   **/
  function transferUnderlyingTo(address user, uint256 amount) external returns (uint256);

  /**
   * @dev Invoked to execute actions on the aToken side after a repayment.
   * @param user The user executing the repayment
   * @param amount The amount getting repaid
   **/
  function handleRepayment(address user, uint256 amount) external;

  /**
   * @dev Returns the address of the incentives controller contract
   **/
  function getIncentivesController() external view returns (IAaveIncentivesController);

  /**
   * @dev Returns the address of the underlying asset of this aToken (E.g. WETH for aWETH)
   **/
  function UNDERLYING_ASSET_ADDRESS() external view returns (address);
}

// File: AToken.sol

/**
 * @title Aave ERC20 AToken
 * @dev Implementation of the interest bearing token for the Aave protocol
 * @author Aave
 */
contract AToken is
  VersionedInitializable,
  IncentivizedERC20('ATOKEN_IMPL', 'ATOKEN_IMPL', 0),
  IAToken
{
  using WadRayMath for uint256;
  using SafeERC20 for IERC20;
  using SafeMath for uint256;

  bytes public constant EIP712_REVISION = bytes('1');
  bytes32 internal constant EIP712_DOMAIN =
    keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)');
  bytes32 public constant PERMIT_TYPEHASH =
    keccak256('Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)');

  uint256 public constant ATOKEN_REVISION = 0x3;

  /// @dev owner => next valid nonce to submit with permit()
  mapping(address => uint256) public _nonces;

  bytes32 public DOMAIN_SEPARATOR;

  address internal _treasury;
  IAaveIncentivesController internal _incentivesController;

  modifier onlyLendingPool {
    require(_msgSender() == address(_pool), Errors.CT_CALLER_MUST_BE_LENDING_POOL);
    _;
  }

  function getRevision() internal pure virtual override returns (uint256) {
    return ATOKEN_REVISION;
  }

  /**
   * @dev Initializes the aToken
   * @param pool The address of the lending pool where this aToken will be used
   * @param treasury The address of the Aave treasury, receiving the fees on this aToken
   * @param underlyingAsset The address of the underlying asset of this aToken (E.g. WETH for aWETH)
   * @param incentivesController The smart contract managing potential incentives distribution
   * @param aTokenDecimals The decimals of the aToken, same as the underlying asset's
   * @param aTokenName The name of the aToken
   * @param aTokenSymbol The symbol of the aToken
   */
  function initialize(
    ILendingPool pool,
    address treasury,
    address underlyingAsset,
    IAaveIncentivesController incentivesController,
    uint8 aTokenDecimals,
    string calldata aTokenName,
    string calldata aTokenSymbol,
    bytes calldata params
  ) external override initializer {
    uint256 chainId;

    //solium-disable-next-line
    assembly {
      chainId := chainid()
    }

    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        EIP712_DOMAIN,
        keccak256(bytes(aTokenName)),
        keccak256(EIP712_REVISION),
        chainId,
        address(this)
      )
    );

    _setName(aTokenName);
    _setSymbol(aTokenSymbol);
    _setDecimals(aTokenDecimals);

    _pool = pool;
    _treasury = treasury;
    _underlyingAsset = underlyingAsset;
    _incentivesController = incentivesController;

    emit Initialized(
      underlyingAsset,
      address(pool),
      treasury,
      address(incentivesController),
      aTokenDecimals,
      aTokenName,
      aTokenSymbol,
      params
    );
  }

  /**
   * @dev Burns aTokens from `user` and sends the equivalent amount of underlying to `receiverOfUnderlying`
   * - Only callable by the LendingPool, as extra state updates there need to be managed
   * @param user The owner of the aTokens, getting them burned
   * @param receiverOfUnderlying The address that will receive the underlying
   * @param amount The amount being burned
   * @param index The new liquidity index of the reserve
   **/
  function burn(
    address user,
    address receiverOfUnderlying,
    uint256 amount,
    uint256 index
  ) external override onlyLendingPool {
    uint256 amountScaled = amount.rayDiv(index);
    require(amountScaled != 0, Errors.CT_INVALID_BURN_AMOUNT);
    _burn(user, amountScaled);

    IERC20(_underlyingAsset).safeTransfer(receiverOfUnderlying, amount);

    emit Transfer(user, address(0), amount);
    emit Burn(user, receiverOfUnderlying, amount, index);
  }

  /**
   * @dev Mints `amount` aTokens to `user`
   * - Only callable by the LendingPool, as extra state updates there need to be managed
   * @param user The address receiving the minted tokens
   * @param amount The amount of tokens getting minted
   * @param index The new liquidity index of the reserve
   * @return `true` if the the previous balance of the user was 0
   */
  function mint(
    address user,
    uint256 amount,
    uint256 index
  ) external override onlyLendingPool returns (bool) {
    uint256 previousBalance = super.balanceOf(user);

    uint256 amountScaled = amount.rayDiv(index);
    require(amountScaled != 0, Errors.CT_INVALID_MINT_AMOUNT);
    _mint(user, amountScaled);

    emit Transfer(address(0), user, amount);
    emit Mint(user, amount, index);

    return previousBalance == 0;
  }

  /**
   * @dev Mints aTokens to the reserve treasury
   * - Only callable by the LendingPool
   * @param amount The amount of tokens getting minted
   * @param index The new liquidity index of the reserve
   */
  function mintToTreasury(uint256 amount, uint256 index) external override onlyLendingPool {
    if (amount == 0) {
      return;
    }

    address treasury = _treasury;

    // Compared to the normal mint, we don't check for rounding errors.
    // The amount to mint can easily be very small since it is a fraction of the interest ccrued.
    // In that case, the treasury will experience a (very small) loss, but it
    // wont cause potentially valid transactions to fail.
    _mint(treasury, amount.rayDiv(index));

    emit Transfer(address(0), treasury, amount);
    emit Mint(treasury, amount, index);
  }

  /**
   * @dev Transfers aTokens in the event of a borrow being liquidated, in case the liquidators reclaims the aToken
   * - Only callable by the LendingPool
   * @param from The address getting liquidated, current owner of the aTokens
   * @param to The recipient
   * @param value The amount of tokens getting transferred
   **/
  function transferOnLiquidation(
    address from,
    address to,
    uint256 value
  ) external override onlyLendingPool {
    // Being a normal transfer, the Transfer() and BalanceTransfer() are emitted
    // so no need to emit a specific event here
    _transfer(from, to, value, false);

    emit Transfer(from, to, value);
  }

  /**
   * @dev Calculates the balance of the user: principal balance + interest generated by the principal
   * @param user The user whose balance is calculated
   * @return The balance of the user
   **/
  function balanceOf(address user)
    public
    view
    override(IncentivizedERC20, IERC20)
    returns (uint256)
  {
    return super.balanceOf(user).rayMul(_pool.getReserveNormalizedIncome(_underlyingAsset));
  }

  /**
   * @dev Returns the scaled balance of the user. The scaled balance is the sum of all the
   * updated stored balance divided by the reserve's liquidity index at the moment of the update
   * @param user The user whose balance is calculated
   * @return The scaled balance of the user
   **/
  function scaledBalanceOf(address user) external view override returns (uint256) {
    return super.balanceOf(user);
  }

  /**
   * @dev Returns the scaled balance of the user and the scaled total supply.
   * @param user The address of the user
   * @return The scaled balance of the user
   * @return The scaled balance and the scaled total supply
   **/
  function getScaledUserBalanceAndSupply(address user)
    external
    view
    override
    returns (uint256, uint256)
  {
    return (super.balanceOf(user), super.totalSupply());
  }

  /**
   * @dev calculates the total supply of the specific aToken
   * since the balance of every single user increases over time, the total supply
   * does that too.
   * @return the current total supply
   **/
  function totalSupply() public view override(IncentivizedERC20, IERC20) returns (uint256) {
    uint256 currentSupplyScaled = super.totalSupply();

    if (currentSupplyScaled == 0) {
      return 0;
    }

    return currentSupplyScaled.rayMul(_pool.getReserveNormalizedIncome(_underlyingAsset));
  }

  /**
   * @dev Returns the scaled total supply of the variable debt token. Represents sum(debt/index)
   * @return the scaled total supply
   **/
  function scaledTotalSupply() public view virtual override returns (uint256) {
    return super.totalSupply();
  }

  /**
   * @dev Returns the address of the Aave treasury, receiving the fees on this aToken
   **/
  function RESERVE_TREASURY_ADDRESS() public view returns (address) {
    return _treasury;
  }

  /**
   * @dev Returns the address of the underlying asset of this aToken (E.g. WETH for aWETH)
   **/
  function UNDERLYING_ASSET_ADDRESS() public override view returns (address) {
    return _underlyingAsset;
  }

  /**
   * @dev Returns the address of the lending pool where this aToken is used
   **/
  function POOL() public view returns (ILendingPool) {
    return _pool;
  }

  /**
   * @dev For internal usage in the logic of the parent contract IncentivizedERC20
   **/
  function _getIncentivesController() internal view override returns (IAaveIncentivesController) {
    return _incentivesController;
  }

  /**
   * @dev Returns the address of the incentives controller contract
   **/
  function getIncentivesController() external view override returns (IAaveIncentivesController) {
    return _getIncentivesController();
  }

  /**
   * @dev Transfers the underlying asset to `target`. Used by the LendingPool to transfer
   * assets in borrow(), withdraw() and flashLoan()
   * @param target The recipient of the aTokens
   * @param amount The amount getting transferred
   * @return The amount transferred
   **/
  function transferUnderlyingTo(address target, uint256 amount)
    external
    override
    onlyLendingPool
    returns (uint256)
  {
    IERC20(_underlyingAsset).safeTransfer(target, amount);
    return amount;
  }

  /**
   * @dev Invoked to execute actions on the aToken side after a repayment.
   * @param user The user executing the repayment
   * @param amount The amount getting repaid
   **/
  function handleRepayment(address user, uint256 amount) external override onlyLendingPool {}

  /**
   * @dev implements the permit function as for
   * https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md
   * @param owner The owner of the funds
   * @param spender The spender
   * @param value The amount
   * @param deadline The deadline timestamp, type(uint256).max for max deadline
   * @param v Signature param
   * @param s Signature param
   * @param r Signature param
   */
  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external {
    require(owner != address(0), 'INVALID_OWNER');
    //solium-disable-next-line
    require(block.timestamp <= deadline, 'INVALID_EXPIRATION');
    uint256 currentValidNonce = _nonces[owner];
    bytes32 digest =
      keccak256(
        abi.encodePacked(
          '\x19\x01',
          DOMAIN_SEPARATOR,
          keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, currentValidNonce, deadline))
        )
      );
    require(owner == ecrecover(digest, v, r, s), 'INVALID_SIGNATURE');
    _nonces[owner] = currentValidNonce.add(1);
    _approve(owner, spender, value);
  }

  /**
   * @dev Transfers the aTokens between two users. Validates the transfer
   * (ie checks for valid HF after the transfer) if required
   * @param from The source address
   * @param to The destination address
   * @param amount The amount getting transferred
   * @param validate `true` if the transfer needs to be validated
   **/
  function _transfer(
    address from,
    address to,
    uint256 amount,
    bool validate
  ) internal {
    address underlyingAsset = _underlyingAsset;
    ILendingPool pool = _pool;

    uint256 index = pool.getReserveNormalizedIncome(underlyingAsset);

    uint256 fromBalanceBefore = super.balanceOf(from).rayMul(index);
    uint256 toBalanceBefore = super.balanceOf(to).rayMul(index);

    super._transfer(from, to, amount.rayDiv(index));

    if (validate) {
      pool.finalizeTransfer(underlyingAsset, from, to, amount, fromBalanceBefore, toBalanceBefore);
    }

    emit BalanceTransfer(from, to, amount, index);
  }

  /**
   * @dev Overrides the parent _transfer to force validated transfer() and transferFrom()
   * @param from The source address
   * @param to The destination address
   * @param amount The amount getting transferred
   **/
  function _transfer(
    address from,
    address to,
    uint256 amount
  ) internal override {
    _transfer(from, to, amount, true);
  }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"BalanceTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"underlyingAsset","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"address","name":"incentivesController","type":"address"},{"indexed":false,"internalType":"uint8","name":"aTokenDecimals","type":"uint8"},{"indexed":false,"internalType":"string","name":"aTokenName","type":"string"},{"indexed":false,"internalType":"string","name":"aTokenSymbol","type":"string"},{"indexed":false,"internalType":"bytes","name":"params","type":"bytes"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ATOKEN_REVISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_REVISION","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL","outputs":[{"internalType":"contract ILendingPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_TREASURY_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNDERLYING_ASSET_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"receiverOfUnderlying","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAssetPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIncentivesController","outputs":[{"internalType":"contract IAaveIncentivesController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getScaledUserBalanceAndSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"handleRepayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ILendingPool","name":"pool","type":"address"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"address","name":"underlyingAsset","type":"address"},{"internalType":"contract IAaveIncentivesController","name":"incentivesController","type":"address"},{"internalType":"uint8","name":"aTokenDecimals","type":"uint8"},{"internalType":"string","name":"aTokenName","type":"string"},{"internalType":"string","name":"aTokenSymbol","type":"string"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"mintToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","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"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"scaledBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scaledTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferOnLiquidation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferUnderlyingTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

6080604052600080553480156200001557600080fd5b50604080518082018252600b8082526a105513d2d15397d253541360aa1b60208084018281528551808701909652928552840152815191929160009162000060916037919062000094565b5081516200007690603890602085019062000094565b506039805460ff191660ff9290921691909117905550620001409050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620000cc576000855562000117565b82601f10620000e757805160ff191683800117855562000117565b8280016001018555821562000117579182015b8281111562000117578251825591602001919060010190620000fa565b506200012592915062000129565b5090565b5b808211156200012557600081556001016200012a565b6128bc80620001506000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806375d264131161010f578063b16a19de116100a2578063d7020d0a11610071578063d7020d0a146103d4578063dd62ed3e146103e7578063e54f0880146103fa578063f866c31914610402576101f0565b8063b16a19de1461039e578063b1bf962d146103a6578063b9844d8d146103ae578063d505accf146103c1576101f0565b806395d89b41116100de57806395d89b4114610368578063a457c2d714610370578063a9059cbb14610383578063ae16733514610396576101f0565b806375d2641314610332578063781603761461033a5780637df5bd3b1461034257806388dd91a114610355576101f0565b806323b872dd11610187578063395093511161015657806339509351146102e45780634efecaa5146102f757806370a082311461030a5780637535d2461461031d576101f0565b806323b872dd146102ac57806330adf81f146102bf578063313ce567146102c75780633644e515146102dc576101f0565b8063156e29f6116101c3578063156e29f61461026957806318160ddd1461027c578063183fb413146102845780631da24f3e14610299576101f0565b806306fdde03146101f5578063095ea7b3146102135780630afbcdc9146102335780630bd7ad3b14610254575b600080fd5b6101fd610415565b60405161020a919061241f565b60405180910390f35b610226610221366004612053565b6104ac565b60405161020a919061238d565b610246610241366004611ef1565b6104ca565b60405161020a929190612771565b61025c6104e7565b60405161020a9190612398565b61022661027736600461207e565b6104ec565b61025c61063a565b6102976102923660046120d2565b6106f1565b005b61025c6102a7366004611ef1565b610991565b6102266102ba366004611f61565b6109a4565b61025c610a64565b6102cf610a88565b60405161020a919061277f565b61025c610a91565b6102266102f2366004612053565b610a97565b61025c610305366004612053565b610ae5565b61025c610318366004611ef1565b610b62565b610325610c00565b60405161020a9190612298565b610325610c14565b6101fd610c23565b6102976103503660046121da565b610c40565b610297610363366004612053565b610d49565b6101fd610daa565b61022661037e366004612053565b610e0b565b610226610391366004612053565b610e73565b610325610ed0565b610325610edf565b61025c610eee565b61025c6103bc366004611ef1565b610ef8565b6102976103cf366004611fe6565b610f0a565b6102976103e2366004611fa1565b6110a2565b61025c6103f5366004611f29565b6111f5565b61025c611220565b610297610410366004611f61565b6113a8565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104a15780601f10610476576101008083540402835291602001916104a1565b820191906000526020600020905b81548152906001019060200180831161048457829003601f168201915b505050505090505b90565b60006104c06104b9611450565b8484611454565b5060015b92915050565b6000806104d6836114fb565b6104de611516565b91509150915091565b600381565b60395460009061010090046001600160a01b0316610508611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b815250906105545760405162461bcd60e51b815260040161054b919061241f565b60405180910390fd5b506000610560856114fb565b9050600061056e858561151c565b6040805180820190915260028152611a9b60f11b6020820152909150816105a85760405162461bcd60e51b815260040161054b919061241f565b506105b386826115c7565b856001600160a01b031660006001600160a01b0316600080516020612842833981519152876040516105e59190612398565b60405180910390a3856001600160a01b03167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f8686604051610628929190612771565b60405180910390a25015949350505050565b600080610645611516565b9050806106565760009150506104a9565b603954603a5460405163d15e005360e01b81526106eb9261010090046001600160a01b039081169263d15e0053926106949290911690600401612298565b60206040518083038186803b1580156106ac57600080fd5b505afa1580156106c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e491906121c2565b82906116d9565b91505090565b60006106fb611769565b60015490915060ff1680610712575061071261176e565b8061071e575060005481115b61073a5760405162461bcd60e51b815260040161054b9061254e565b60015460ff16158015610759576001805460ff19168117905560008290555b60405146907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9061078d908b908b90612251565b60408051918290038220828201825260018352603160f81b60209384015290516107de93927fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69186913091016123d5565b60408051601f198184030181528282528051602091820120603c55601f8b0181900481028301810190915289825261083191908b908b908190840183828082843760009201919091525061177492505050565b61087087878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061178792505050565b6108798a61179a565b8d603960016101000a8154816001600160a01b0302191690836001600160a01b031602179055508c603d60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b603a60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a603e60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508d6001600160a01b03168c6001600160a01b03167fb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b8f8e8e8e8e8e8e8e8e604051610968999897969594939291906122e5565b60405180910390a3508015610982576001805460ff191690555b50505050505050505050505050565b600061099c826114fb565b90505b919050565b60006109b18484846117b0565b610a21846109bd611450565b610a1c8560405180606001604052806028815260200161281a602891396001600160a01b038a166000908152603560205260408120906109fb611450565b6001600160a01b0316815260208101919091526040016000205491906117bd565b611454565b826001600160a01b0316846001600160a01b031660008051602061284283398151915284604051610a529190612398565b60405180910390a35060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60395460ff1690565b603c5481565b60006104c0610aa4611450565b84610a1c8560356000610ab5611450565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906117e9565b60395460009061010090046001600160a01b0316610b01611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b81525090610b445760405162461bcd60e51b815260040161054b919061241f565b50603a54610b5c906001600160a01b03168484611815565b50919050565b603954603a5460405163d15e005360e01b815260009261099c926001600160a01b0361010090920482169263d15e005392610ba1921690600401612298565b60206040518083038186803b158015610bb957600080fd5b505afa158015610bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf191906121c2565b610bfa846114fb565b906116d9565b60395461010090046001600160a01b031690565b6000610c1e61186b565b905090565b604051806040016040528060018152602001603160f81b81525081565b60395461010090046001600160a01b0316610c59611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b81525090610c9c5760405162461bcd60e51b815260040161054b919061241f565b5081610ca757610d45565b603d546001600160a01b0316610cc681610cc1858561151c565b6115c7565b806001600160a01b031660006001600160a01b031660008051602061284283398151915285604051610cf89190612398565b60405180910390a3806001600160a01b03167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f8484604051610d3b929190612771565b60405180910390a2505b5050565b60395461010090046001600160a01b0316610d62611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b81525090610da55760405162461bcd60e51b815260040161054b919061241f565b505050565b60388054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104a15780601f10610476576101008083540402835291602001916104a1565b60006104c0610e18611450565b84610a1c856040518060600160405280602581526020016128626025913960356000610e42611450565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906117bd565b6000610e87610e80611450565b84846117b0565b826001600160a01b0316610e99611450565b6001600160a01b031660008051602061284283398151915284604051610ebf9190612398565b60405180910390a350600192915050565b603d546001600160a01b031690565b603a546001600160a01b031690565b6000610c1e611516565b603b6020526000908152604090205481565b6001600160a01b038716610f305760405162461bcd60e51b815260040161054b906125c8565b83421115610f505760405162461bcd60e51b815260040161054b9061259c565b6001600160a01b0387166000908152603b6020908152604080832054603c549151909392610faa917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918d918d918d9189918e91016123a1565b60405160208183030381529060405280519060200120604051602001610fd192919061227d565b6040516020818303038152906040528051906020012090506001818686866040516000815260200160405260405161100c9493929190612401565b6020604051602081039080840390855afa15801561102e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b0316146110685760405162461bcd60e51b815260040161054b90612523565b6110738260016117e9565b6001600160a01b038a166000908152603b6020526040902055611097898989611454565b505050505050505050565b60395461010090046001600160a01b03166110bb611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b815250906110fe5760405162461bcd60e51b815260040161054b919061241f565b50600061110b838361151c565b60408051808201909152600281526106a760f31b6020820152909150816111455760405162461bcd60e51b815260040161054b919061241f565b50611150858261187a565b603a54611167906001600160a01b03168585611815565b60006001600160a01b0316856001600160a01b0316600080516020612842833981519152856040516111999190612398565b60405180910390a3836001600160a01b0316856001600160a01b03167f5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa285856040516111e6929190612771565b60405180910390a35050505050565b6001600160a01b03918216600090815260356020908152604080832093909416825291909152205490565b600080603960019054906101000a90046001600160a01b03166001600160a01b031663fe65acfe6040518163ffffffff1660e01b815260040160206040518083038186803b15801561127157600080fd5b505afa158015611285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a99190611f0d565b90506000816001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156112e657600080fd5b505afa1580156112fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131e9190611f0d565b603a5460405163b3596f0760e01b81529192506001600160a01b038084169263b3596f0792611351921690600401612298565b60206040518083038186803b15801561136957600080fd5b505afa15801561137d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a191906121c2565b9250505090565b60395461010090046001600160a01b03166113c1611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b815250906114045760405162461bcd60e51b815260040161054b919061241f565b506114128383836000611904565b816001600160a01b0316836001600160a01b0316600080516020612842833981519152836040516114439190612398565b60405180910390a3505050565b3390565b6001600160a01b03831661147a5760405162461bcd60e51b815260040161054b90612675565b6001600160a01b0382166114a05760405162461bcd60e51b815260040161054b90612475565b6001600160a01b0380841660008181526035602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611443908590612398565b6001600160a01b031660009081526034602052604090205490565b60365490565b604080518082019091526002815261035360f41b6020820152600090826115565760405162461bcd60e51b815260040161054b919061241f565b5060408051808201909152600280825261068760f31b60208301528304906b033b2e3c9fd0803ce80000008219048511156115a45760405162461bcd60e51b815260040161054b919061241f565b5082816b033b2e3c9fd0803ce8000000860201816115be57fe5b04949350505050565b6001600160a01b0382166115ed5760405162461bcd60e51b815260040161054b9061273a565b6115f960008383610da5565b60365460009061160990836117e9565b60368190556001600160a01b0384166000908152603460205260408120549192509061163590846117e9565b6001600160a01b038516600090815260346020526040812082905590915061165b61186b565b6001600160a01b0316146116d35761167161186b565b6001600160a01b03166331873e2e8583856040518463ffffffff1660e01b81526004016116a09392919061236c565b600060405180830381600087803b1580156116ba57600080fd5b505af11580156116ce573d6000803e3d6000fd5b505050505b50505050565b60008215806116e6575081155b156116f3575060006104c4565b816b019d971e4fe8401e74000000198161170957fe5b0483111560405180604001604052806002815260200161068760f31b815250906117465760405162461bcd60e51b815260040161054b919061241f565b50506b033b2e3c9fd0803ce800000091026b019d971e4fe8401e74000000010490565b600390565b303b1590565b8051610d45906037906020840190611ded565b8051610d45906038906020840190611ded565b6039805460ff191660ff92909216919091179055565b610da58383836001611904565b600081848411156117e15760405162461bcd60e51b815260040161054b919061241f565b505050900390565b60008282018381101561180e5760405162461bcd60e51b815260040161054b906124b7565b9392505050565b610da58363a9059cbb60e01b8484604051602401611834929190612353565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a95565b603e546001600160a01b031690565b6001600160a01b0382166118a05760405162461bcd60e51b815260040161054b906125ef565b6118ac82600083610da5565b6036546000906118bc9083611b79565b9050806036819055506000611635836040518060600160405280602281526020016127d2602291396001600160a01b03871660009081526034602052604090205491906117bd565b603a5460395460405163d15e005360e01b81526001600160a01b039283169261010090920490911690600090829063d15e005390611946908690600401612298565b60206040518083038186803b15801561195e57600080fd5b505afa158015611972573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199691906121c2565b905060006119a782610bfa8a6114fb565b905060006119b883610bfa8a6114fb565b90506119ce89896119c98a8761151c565b611bbb565b8515611a3d5760405163d5ed393360e01b81526001600160a01b0385169063d5ed393390611a0a9088908d908d908d90899089906004016122ac565b600060405180830381600087803b158015611a2457600080fd5b505af1158015611a38573d6000803e3d6000fd5b505050505b876001600160a01b0316896001600160a01b03167f4beccb90f994c31aced7a23b5611020728a23d8ec5cddd1a3e9d97b96fda86668986604051611a82929190612771565b60405180910390a3505050505050505050565b611aa7826001600160a01b0316611db1565b611ac35760405162461bcd60e51b815260040161054b90612703565b600080836001600160a01b031683604051611ade9190612261565b6000604051808303816000865af19150503d8060008114611b1b576040519150601f19603f3d011682016040523d82523d6000602084013e611b20565b606091505b509150915081611b425760405162461bcd60e51b815260040161054b906124ee565b8051156116d35780806020019051810190611b5d91906120b2565b6116d35760405162461bcd60e51b815260040161054b906126b9565b600061180e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117bd565b6001600160a01b038316611be15760405162461bcd60e51b815260040161054b90612630565b6001600160a01b038216611c075760405162461bcd60e51b815260040161054b90612432565b611c12838383610da5565b6000611c51826040518060600160405280602681526020016127f4602691396001600160a01b03871660009081526034602052604090205491906117bd565b6001600160a01b0380861660009081526034602052604080822084905591861681529081205491925090611c8590846117e9565b6001600160a01b0385166000908152603460205260408120829055909150611cab61186b565b6001600160a01b031614611daa57603654611cc461186b565b6001600160a01b03166331873e2e8785846040518463ffffffff1660e01b8152600401611cf39392919061236c565b600060405180830381600087803b158015611d0d57600080fd5b505af1158015611d21573d6000803e3d6000fd5b50505050846001600160a01b0316866001600160a01b031614611da857611d4661186b565b6001600160a01b03166331873e2e8684846040518463ffffffff1660e01b8152600401611d759392919061236c565b600060405180830381600087803b158015611d8f57600080fd5b505af1158015611da3573d6000803e3d6000fd5b505050505b505b5050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611de557508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611e235760008555611e69565b82601f10611e3c57805160ff1916838001178555611e69565b82800160010185558215611e69579182015b82811115611e69578251825591602001919060010190611e4e565b50611e75929150611e79565b5090565b5b80821115611e755760008155600101611e7a565b803561099f816127b9565b60008083601f840112611eaa578182fd5b50813567ffffffffffffffff811115611ec1578182fd5b602083019150836020828501011115611ed957600080fd5b9250929050565b803560ff8116811461099f57600080fd5b600060208284031215611f02578081fd5b813561180e816127b9565b600060208284031215611f1e578081fd5b815161180e816127b9565b60008060408385031215611f3b578081fd5b8235611f46816127b9565b91506020830135611f56816127b9565b809150509250929050565b600080600060608486031215611f75578081fd5b8335611f80816127b9565b92506020840135611f90816127b9565b929592945050506040919091013590565b60008060008060808587031215611fb6578081fd5b8435611fc1816127b9565b93506020850135611fd1816127b9565b93969395505050506040820135916060013590565b600080600080600080600060e0888a031215612000578283fd5b873561200b816127b9565b9650602088013561201b816127b9565b9550604088013594506060880135935061203760808901611ee0565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215612065578182fd5b8235612070816127b9565b946020939093013593505050565b600080600060608486031215612092578283fd5b833561209d816127b9565b95602085013595506040909401359392505050565b6000602082840312156120c3578081fd5b8151801515811461180e578182fd5b60008060008060008060008060008060006101008c8e0312156120f3578485fd5b6120fc8c611e8e565b9a5061210a60208d01611e8e565b995061211860408d01611e8e565b985061212660608d01611e8e565b975061213460808d01611ee0565b965067ffffffffffffffff8060a08e0135111561214f578586fd5b61215f8e60a08f01358f01611e99565b909750955060c08d0135811015612174578485fd5b6121848e60c08f01358f01611e99565b909550935060e08d0135811015612199578283fd5b506121aa8d60e08e01358e01611e99565b81935080925050509295989b509295989b9093969950565b6000602082840312156121d3578081fd5b5051919050565b600080604083850312156121ec578182fd5b50508035926020909101359150565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6000815180845261223d81602086016020860161278d565b601f01601f19169290920160200192915050565b6000828483379101908152919050565b6000825161227381846020870161278d565b9190910192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03968716815294861660208601529290941660408401526060830152608082019290925260a081019190915260c00190565b6001600160a01b038a811682528916602082015260ff8816604082015260c06060820181905260009061231b908301888a6121fb565b828103608084015261232e8187896121fb565b905082810360a08401526123438185876121fb565b9c9b505050505050505050505050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b60006020825261180e6020830184612225565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b602080825260119082015270494e56414c49445f5349474e415455524560781b604082015260600190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526012908201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604082015260600190565b6020808252600d908201526c24a72b20a624a22fa7aba722a960991b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b60ff91909116815260200190565b60005b838110156127a8578181015183820152602001612790565b838111156116d35750506000910152565b6001600160a01b03811681146127ce57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203aa2913194723eb09fb9a7b626c98e9933ebee341b876581d78f6142b72bbefa64736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806375d264131161010f578063b16a19de116100a2578063d7020d0a11610071578063d7020d0a146103d4578063dd62ed3e146103e7578063e54f0880146103fa578063f866c31914610402576101f0565b8063b16a19de1461039e578063b1bf962d146103a6578063b9844d8d146103ae578063d505accf146103c1576101f0565b806395d89b41116100de57806395d89b4114610368578063a457c2d714610370578063a9059cbb14610383578063ae16733514610396576101f0565b806375d2641314610332578063781603761461033a5780637df5bd3b1461034257806388dd91a114610355576101f0565b806323b872dd11610187578063395093511161015657806339509351146102e45780634efecaa5146102f757806370a082311461030a5780637535d2461461031d576101f0565b806323b872dd146102ac57806330adf81f146102bf578063313ce567146102c75780633644e515146102dc576101f0565b8063156e29f6116101c3578063156e29f61461026957806318160ddd1461027c578063183fb413146102845780631da24f3e14610299576101f0565b806306fdde03146101f5578063095ea7b3146102135780630afbcdc9146102335780630bd7ad3b14610254575b600080fd5b6101fd610415565b60405161020a919061241f565b60405180910390f35b610226610221366004612053565b6104ac565b60405161020a919061238d565b610246610241366004611ef1565b6104ca565b60405161020a929190612771565b61025c6104e7565b60405161020a9190612398565b61022661027736600461207e565b6104ec565b61025c61063a565b6102976102923660046120d2565b6106f1565b005b61025c6102a7366004611ef1565b610991565b6102266102ba366004611f61565b6109a4565b61025c610a64565b6102cf610a88565b60405161020a919061277f565b61025c610a91565b6102266102f2366004612053565b610a97565b61025c610305366004612053565b610ae5565b61025c610318366004611ef1565b610b62565b610325610c00565b60405161020a9190612298565b610325610c14565b6101fd610c23565b6102976103503660046121da565b610c40565b610297610363366004612053565b610d49565b6101fd610daa565b61022661037e366004612053565b610e0b565b610226610391366004612053565b610e73565b610325610ed0565b610325610edf565b61025c610eee565b61025c6103bc366004611ef1565b610ef8565b6102976103cf366004611fe6565b610f0a565b6102976103e2366004611fa1565b6110a2565b61025c6103f5366004611f29565b6111f5565b61025c611220565b610297610410366004611f61565b6113a8565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104a15780601f10610476576101008083540402835291602001916104a1565b820191906000526020600020905b81548152906001019060200180831161048457829003601f168201915b505050505090505b90565b60006104c06104b9611450565b8484611454565b5060015b92915050565b6000806104d6836114fb565b6104de611516565b91509150915091565b600381565b60395460009061010090046001600160a01b0316610508611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b815250906105545760405162461bcd60e51b815260040161054b919061241f565b60405180910390fd5b506000610560856114fb565b9050600061056e858561151c565b6040805180820190915260028152611a9b60f11b6020820152909150816105a85760405162461bcd60e51b815260040161054b919061241f565b506105b386826115c7565b856001600160a01b031660006001600160a01b0316600080516020612842833981519152876040516105e59190612398565b60405180910390a3856001600160a01b03167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f8686604051610628929190612771565b60405180910390a25015949350505050565b600080610645611516565b9050806106565760009150506104a9565b603954603a5460405163d15e005360e01b81526106eb9261010090046001600160a01b039081169263d15e0053926106949290911690600401612298565b60206040518083038186803b1580156106ac57600080fd5b505afa1580156106c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e491906121c2565b82906116d9565b91505090565b60006106fb611769565b60015490915060ff1680610712575061071261176e565b8061071e575060005481115b61073a5760405162461bcd60e51b815260040161054b9061254e565b60015460ff16158015610759576001805460ff19168117905560008290555b60405146907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9061078d908b908b90612251565b60408051918290038220828201825260018352603160f81b60209384015290516107de93927fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69186913091016123d5565b60408051601f198184030181528282528051602091820120603c55601f8b0181900481028301810190915289825261083191908b908b908190840183828082843760009201919091525061177492505050565b61087087878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061178792505050565b6108798a61179a565b8d603960016101000a8154816001600160a01b0302191690836001600160a01b031602179055508c603d60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b603a60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a603e60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508d6001600160a01b03168c6001600160a01b03167fb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b8f8e8e8e8e8e8e8e8e604051610968999897969594939291906122e5565b60405180910390a3508015610982576001805460ff191690555b50505050505050505050505050565b600061099c826114fb565b90505b919050565b60006109b18484846117b0565b610a21846109bd611450565b610a1c8560405180606001604052806028815260200161281a602891396001600160a01b038a166000908152603560205260408120906109fb611450565b6001600160a01b0316815260208101919091526040016000205491906117bd565b611454565b826001600160a01b0316846001600160a01b031660008051602061284283398151915284604051610a529190612398565b60405180910390a35060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60395460ff1690565b603c5481565b60006104c0610aa4611450565b84610a1c8560356000610ab5611450565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906117e9565b60395460009061010090046001600160a01b0316610b01611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b81525090610b445760405162461bcd60e51b815260040161054b919061241f565b50603a54610b5c906001600160a01b03168484611815565b50919050565b603954603a5460405163d15e005360e01b815260009261099c926001600160a01b0361010090920482169263d15e005392610ba1921690600401612298565b60206040518083038186803b158015610bb957600080fd5b505afa158015610bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf191906121c2565b610bfa846114fb565b906116d9565b60395461010090046001600160a01b031690565b6000610c1e61186b565b905090565b604051806040016040528060018152602001603160f81b81525081565b60395461010090046001600160a01b0316610c59611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b81525090610c9c5760405162461bcd60e51b815260040161054b919061241f565b5081610ca757610d45565b603d546001600160a01b0316610cc681610cc1858561151c565b6115c7565b806001600160a01b031660006001600160a01b031660008051602061284283398151915285604051610cf89190612398565b60405180910390a3806001600160a01b03167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f8484604051610d3b929190612771565b60405180910390a2505b5050565b60395461010090046001600160a01b0316610d62611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b81525090610da55760405162461bcd60e51b815260040161054b919061241f565b505050565b60388054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104a15780601f10610476576101008083540402835291602001916104a1565b60006104c0610e18611450565b84610a1c856040518060600160405280602581526020016128626025913960356000610e42611450565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906117bd565b6000610e87610e80611450565b84846117b0565b826001600160a01b0316610e99611450565b6001600160a01b031660008051602061284283398151915284604051610ebf9190612398565b60405180910390a350600192915050565b603d546001600160a01b031690565b603a546001600160a01b031690565b6000610c1e611516565b603b6020526000908152604090205481565b6001600160a01b038716610f305760405162461bcd60e51b815260040161054b906125c8565b83421115610f505760405162461bcd60e51b815260040161054b9061259c565b6001600160a01b0387166000908152603b6020908152604080832054603c549151909392610faa917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918d918d918d9189918e91016123a1565b60405160208183030381529060405280519060200120604051602001610fd192919061227d565b6040516020818303038152906040528051906020012090506001818686866040516000815260200160405260405161100c9493929190612401565b6020604051602081039080840390855afa15801561102e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b0316146110685760405162461bcd60e51b815260040161054b90612523565b6110738260016117e9565b6001600160a01b038a166000908152603b6020526040902055611097898989611454565b505050505050505050565b60395461010090046001600160a01b03166110bb611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b815250906110fe5760405162461bcd60e51b815260040161054b919061241f565b50600061110b838361151c565b60408051808201909152600281526106a760f31b6020820152909150816111455760405162461bcd60e51b815260040161054b919061241f565b50611150858261187a565b603a54611167906001600160a01b03168585611815565b60006001600160a01b0316856001600160a01b0316600080516020612842833981519152856040516111999190612398565b60405180910390a3836001600160a01b0316856001600160a01b03167f5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa285856040516111e6929190612771565b60405180910390a35050505050565b6001600160a01b03918216600090815260356020908152604080832093909416825291909152205490565b600080603960019054906101000a90046001600160a01b03166001600160a01b031663fe65acfe6040518163ffffffff1660e01b815260040160206040518083038186803b15801561127157600080fd5b505afa158015611285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a99190611f0d565b90506000816001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156112e657600080fd5b505afa1580156112fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131e9190611f0d565b603a5460405163b3596f0760e01b81529192506001600160a01b038084169263b3596f0792611351921690600401612298565b60206040518083038186803b15801561136957600080fd5b505afa15801561137d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a191906121c2565b9250505090565b60395461010090046001600160a01b03166113c1611450565b6001600160a01b03161460405180604001604052806002815260200161323960f01b815250906114045760405162461bcd60e51b815260040161054b919061241f565b506114128383836000611904565b816001600160a01b0316836001600160a01b0316600080516020612842833981519152836040516114439190612398565b60405180910390a3505050565b3390565b6001600160a01b03831661147a5760405162461bcd60e51b815260040161054b90612675565b6001600160a01b0382166114a05760405162461bcd60e51b815260040161054b90612475565b6001600160a01b0380841660008181526035602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611443908590612398565b6001600160a01b031660009081526034602052604090205490565b60365490565b604080518082019091526002815261035360f41b6020820152600090826115565760405162461bcd60e51b815260040161054b919061241f565b5060408051808201909152600280825261068760f31b60208301528304906b033b2e3c9fd0803ce80000008219048511156115a45760405162461bcd60e51b815260040161054b919061241f565b5082816b033b2e3c9fd0803ce8000000860201816115be57fe5b04949350505050565b6001600160a01b0382166115ed5760405162461bcd60e51b815260040161054b9061273a565b6115f960008383610da5565b60365460009061160990836117e9565b60368190556001600160a01b0384166000908152603460205260408120549192509061163590846117e9565b6001600160a01b038516600090815260346020526040812082905590915061165b61186b565b6001600160a01b0316146116d35761167161186b565b6001600160a01b03166331873e2e8583856040518463ffffffff1660e01b81526004016116a09392919061236c565b600060405180830381600087803b1580156116ba57600080fd5b505af11580156116ce573d6000803e3d6000fd5b505050505b50505050565b60008215806116e6575081155b156116f3575060006104c4565b816b019d971e4fe8401e74000000198161170957fe5b0483111560405180604001604052806002815260200161068760f31b815250906117465760405162461bcd60e51b815260040161054b919061241f565b50506b033b2e3c9fd0803ce800000091026b019d971e4fe8401e74000000010490565b600390565b303b1590565b8051610d45906037906020840190611ded565b8051610d45906038906020840190611ded565b6039805460ff191660ff92909216919091179055565b610da58383836001611904565b600081848411156117e15760405162461bcd60e51b815260040161054b919061241f565b505050900390565b60008282018381101561180e5760405162461bcd60e51b815260040161054b906124b7565b9392505050565b610da58363a9059cbb60e01b8484604051602401611834929190612353565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a95565b603e546001600160a01b031690565b6001600160a01b0382166118a05760405162461bcd60e51b815260040161054b906125ef565b6118ac82600083610da5565b6036546000906118bc9083611b79565b9050806036819055506000611635836040518060600160405280602281526020016127d2602291396001600160a01b03871660009081526034602052604090205491906117bd565b603a5460395460405163d15e005360e01b81526001600160a01b039283169261010090920490911690600090829063d15e005390611946908690600401612298565b60206040518083038186803b15801561195e57600080fd5b505afa158015611972573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199691906121c2565b905060006119a782610bfa8a6114fb565b905060006119b883610bfa8a6114fb565b90506119ce89896119c98a8761151c565b611bbb565b8515611a3d5760405163d5ed393360e01b81526001600160a01b0385169063d5ed393390611a0a9088908d908d908d90899089906004016122ac565b600060405180830381600087803b158015611a2457600080fd5b505af1158015611a38573d6000803e3d6000fd5b505050505b876001600160a01b0316896001600160a01b03167f4beccb90f994c31aced7a23b5611020728a23d8ec5cddd1a3e9d97b96fda86668986604051611a82929190612771565b60405180910390a3505050505050505050565b611aa7826001600160a01b0316611db1565b611ac35760405162461bcd60e51b815260040161054b90612703565b600080836001600160a01b031683604051611ade9190612261565b6000604051808303816000865af19150503d8060008114611b1b576040519150601f19603f3d011682016040523d82523d6000602084013e611b20565b606091505b509150915081611b425760405162461bcd60e51b815260040161054b906124ee565b8051156116d35780806020019051810190611b5d91906120b2565b6116d35760405162461bcd60e51b815260040161054b906126b9565b600061180e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117bd565b6001600160a01b038316611be15760405162461bcd60e51b815260040161054b90612630565b6001600160a01b038216611c075760405162461bcd60e51b815260040161054b90612432565b611c12838383610da5565b6000611c51826040518060600160405280602681526020016127f4602691396001600160a01b03871660009081526034602052604090205491906117bd565b6001600160a01b0380861660009081526034602052604080822084905591861681529081205491925090611c8590846117e9565b6001600160a01b0385166000908152603460205260408120829055909150611cab61186b565b6001600160a01b031614611daa57603654611cc461186b565b6001600160a01b03166331873e2e8785846040518463ffffffff1660e01b8152600401611cf39392919061236c565b600060405180830381600087803b158015611d0d57600080fd5b505af1158015611d21573d6000803e3d6000fd5b50505050846001600160a01b0316866001600160a01b031614611da857611d4661186b565b6001600160a01b03166331873e2e8684846040518463ffffffff1660e01b8152600401611d759392919061236c565b600060405180830381600087803b158015611d8f57600080fd5b505af1158015611da3573d6000803e3d6000fd5b505050505b505b5050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611de557508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611e235760008555611e69565b82601f10611e3c57805160ff1916838001178555611e69565b82800160010185558215611e69579182015b82811115611e69578251825591602001919060010190611e4e565b50611e75929150611e79565b5090565b5b80821115611e755760008155600101611e7a565b803561099f816127b9565b60008083601f840112611eaa578182fd5b50813567ffffffffffffffff811115611ec1578182fd5b602083019150836020828501011115611ed957600080fd5b9250929050565b803560ff8116811461099f57600080fd5b600060208284031215611f02578081fd5b813561180e816127b9565b600060208284031215611f1e578081fd5b815161180e816127b9565b60008060408385031215611f3b578081fd5b8235611f46816127b9565b91506020830135611f56816127b9565b809150509250929050565b600080600060608486031215611f75578081fd5b8335611f80816127b9565b92506020840135611f90816127b9565b929592945050506040919091013590565b60008060008060808587031215611fb6578081fd5b8435611fc1816127b9565b93506020850135611fd1816127b9565b93969395505050506040820135916060013590565b600080600080600080600060e0888a031215612000578283fd5b873561200b816127b9565b9650602088013561201b816127b9565b9550604088013594506060880135935061203760808901611ee0565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215612065578182fd5b8235612070816127b9565b946020939093013593505050565b600080600060608486031215612092578283fd5b833561209d816127b9565b95602085013595506040909401359392505050565b6000602082840312156120c3578081fd5b8151801515811461180e578182fd5b60008060008060008060008060008060006101008c8e0312156120f3578485fd5b6120fc8c611e8e565b9a5061210a60208d01611e8e565b995061211860408d01611e8e565b985061212660608d01611e8e565b975061213460808d01611ee0565b965067ffffffffffffffff8060a08e0135111561214f578586fd5b61215f8e60a08f01358f01611e99565b909750955060c08d0135811015612174578485fd5b6121848e60c08f01358f01611e99565b909550935060e08d0135811015612199578283fd5b506121aa8d60e08e01358e01611e99565b81935080925050509295989b509295989b9093969950565b6000602082840312156121d3578081fd5b5051919050565b600080604083850312156121ec578182fd5b50508035926020909101359150565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6000815180845261223d81602086016020860161278d565b601f01601f19169290920160200192915050565b6000828483379101908152919050565b6000825161227381846020870161278d565b9190910192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03968716815294861660208601529290941660408401526060830152608082019290925260a081019190915260c00190565b6001600160a01b038a811682528916602082015260ff8816604082015260c06060820181905260009061231b908301888a6121fb565b828103608084015261232e8187896121fb565b905082810360a08401526123438185876121fb565b9c9b505050505050505050505050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b60006020825261180e6020830184612225565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b602080825260119082015270494e56414c49445f5349474e415455524560781b604082015260600190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526012908201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604082015260600190565b6020808252600d908201526c24a72b20a624a22fa7aba722a960991b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b60ff91909116815260200190565b60005b838110156127a8578181015183820152602001612790565b838111156116d35750506000910152565b6001600160a01b03811681146127ce57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203aa2913194723eb09fb9a7b626c98e9933ebee341b876581d78f6142b72bbefa64736f6c63430007060033

Deployed Bytecode Sourcemap

67754:12727:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56687:86;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;58819:159;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;74998:190::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;68320:45::-;;;:::i;:::-;;;;;;;:::i;71882:457::-;;;;;;:::i;:::-;;:::i;75414:308::-;;;:::i;69460:1081::-;;;;;;:::i;:::-;;:::i;:::-;;74629:121;;;;;;:::i;:::-;;:::i;59320:402::-;;;;;;:::i;:::-;;:::i;68171:142::-;;;:::i;56983:86::-;;;:::i;:::-;;;;;;;:::i;68483:31::-;;;:::i;59976:208::-;;;;;;:::i;:::-;;:::i;77368:223::-;;;;;;:::i;:::-;;:::i;74096:222::-;;;;;;:::i;:::-;;:::i;76519:76::-;;;:::i;:::-;;;;;;;:::i;76926:140::-;;;:::i;67969:50::-;;;:::i;72563:627::-;;;;;;:::i;:::-;;:::i;77785:91::-;;;;;;:::i;:::-;;:::i;56832:90::-;;;:::i;60448:332::-;;;;;;:::i;:::-;;:::i;57975:218::-;;;;;;:::i;:::-;;:::i;76102:95::-;;;:::i;76310:111::-;;;:::i;75879:115::-;;;:::i;68434:42::-;;;;;;:::i;:::-;;:::i;78326:765::-;;;;;;:::i;:::-;;:::i;71006:483::-;;;;;;:::i;:::-;;:::i;58467:173::-;;;;;;:::i;:::-;;:::i;63663:260::-;;;:::i;73537:342::-;;;;;;:::i;:::-;;:::i;56687:86::-;56762:5;56755:12;;;;;;;;-1:-1:-1;;56755:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56733:13;;56755:12;;56762:5;;56755:12;;56762:5;56755:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56687:86;;:::o;58819:159::-;58902:4;58915:39;58924:12;:10;:12::i;:::-;58938:7;58947:6;58915:8;:39::i;:::-;-1:-1:-1;58968:4:0;58819:159;;;;;:::o;74998:190::-;75103:7;75112;75139:21;75155:4;75139:15;:21::i;:::-;75162:19;:17;:19::i;:::-;75131:51;;;;74998:190;;;:::o;68320:45::-;68362:3;68320:45;:::o;71882:457::-;68679:5;;72004:4;;68679:5;;;-1:-1:-1;;;;;68679:5:0;68655:12;:10;:12::i;:::-;-1:-1:-1;;;;;68655:30:0;;68687:37;;;;;;;;;;;;;-1:-1:-1;;;68687:37:0;;;68647:78;;;;;-1:-1:-1;;;68647:78:0;;;;;;;;:::i;:::-;;;;;;;;;;72017:23:::1;72043:21;72059:4;72043:15;:21::i;:::-;72017:47:::0;-1:-1:-1;72073:20:0::1;72096;:6:::0;72110:5;72096:13:::1;:20::i;:::-;72150:29;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;72150:29:0::1;::::0;::::1;::::0;72073:43;;-1:-1:-1;72131:17:0;72123:57:::1;;;;-1:-1:-1::0;;;72123:57:0::1;;;;;;;;:::i;:::-;;72187:25;72193:4;72199:12;72187:5;:25::i;:::-;72247:4;-1:-1:-1::0;;;;;72226:34:0::1;72243:1;-1:-1:-1::0;;;;;72226:34:0::1;-1:-1:-1::0;;;;;;;;;;;72253:6:0::1;72226:34;;;;;;:::i;:::-;;;;;;;;72277:4;-1:-1:-1::0;;;;;72272:25:0::1;;72283:6;72291:5;72272:25;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;72313:20:0;;71882:457;-1:-1:-1;;;;71882:457:0:o;75414:308::-;75494:7;75510:27;75540:19;:17;:19::i;:::-;75510:49;-1:-1:-1;75572:24:0;75568:55;;75614:1;75607:8;;;;;75568:55;75665:5;;75698:16;;75665:50;;-1:-1:-1;;;75665:50:0;;75638:78;;75665:5;;;-1:-1:-1;;;;;75665:5:0;;;;:32;;:50;;75698:16;;;;75665:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75638:19;;:26;:78::i;:::-;75631:85;;;75414:308;:::o;69460:1081::-;29472:16;29491:13;:11;:13::i;:::-;29527:12;;29472:32;;-1:-1:-1;29527:12:0;;;:31;;;29543:15;:13;:15::i;:::-;29527:69;;;;29573:23;;29562:8;:34;29527:69;29511:149;;;;-1:-1:-1;;;29511:149:0;;;;;;;:::i;:::-;29692:12;;;;29691:13;29711:99;;;;29755:4;29740:19;;-1:-1:-1;;29740:19:0;;;;;:12;29768:34;;;29711:99;69966:28:::1;::::0;69860:9:::1;::::0;68071:95:::1;::::0;69966:28:::1;::::0;69982:10;;;;69966:28:::1;:::i;:::-;;::::0;;;;;::::1;::::0;;68009:10;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;68009:10:0::1;::::0;;::::1;::::0;69921:161;;::::1;::::0;;70005:26;;70042:7;;70068:4:::1;::::0;69921:161:::1;;:::i;:::-;;::::0;;-1:-1:-1;;69921:161:0;;::::1;::::0;;;;;;69903:186;;69921:161:::1;69903:186:::0;;::::1;::::0;69884:16:::1;:205:::0;70098:20:::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;::::1;::::0;69921:161;70107:10;;;;;;70098:20;::::1;70107:10:::0;;;;70098:20;::::1;;::::0;::::1;::::0;;;;-1:-1:-1;70098:8:0::1;::::0;-1:-1:-1;;;70098:20:0:i:1;:::-;70125:24;70136:12;;70125:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;70125:10:0::1;::::0;-1:-1:-1;;;70125:24:0:i:1;:::-;70156:28;70169:14;70156:12;:28::i;:::-;70201:4;70193:5;;:12;;;;;-1:-1:-1::0;;;;;70193:12:0::1;;;;;-1:-1:-1::0;;;;;70193:12:0::1;;;;;;70224:8;70212:9;;:20;;;;;-1:-1:-1::0;;;;;70212:20:0::1;;;;;-1:-1:-1::0;;;;;70212:20:0::1;;;;;;70258:15;70239:16;;:34;;;;;-1:-1:-1::0;;;;;70239:34:0::1;;;;;-1:-1:-1::0;;;;;70239:34:0::1;;;;;;70304:20;70280:21;;:44;;;;;-1:-1:-1::0;;;;;70280:44:0::1;;;;;-1:-1:-1::0;;;;;70280:44:0::1;;;;;;70390:4;-1:-1:-1::0;;;;;70338:197:0::1;70358:15;-1:-1:-1::0;;;;;70338:197:0::1;;70404:8;70429:20;70459:14;70482:10;;70501:12;;70522:6;;70338:197;;;;;;;;;;;;;;:::i;:::-;;;;;;;;29818:1;29832:14:::0;29828:57;;;29857:12;:20;;-1:-1:-1;;29857:20:0;;;29828:57;69460:1081;;;;;;;;;;;;;:::o;74629:121::-;74700:7;74723:21;74739:4;74723:15;:21::i;:::-;74716:28;;74629:121;;;;:::o;59320:402::-;59446:4;59459:36;59469:6;59477:9;59488:6;59459:9;:36::i;:::-;59502:149;59519:6;59534:12;:10;:12::i;:::-;59555:89;59593:6;59555:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59555:19:0;;;;;;:11;:19;;;;;;59575:12;:10;:12::i;:::-;-1:-1:-1;;;;;59555:33:0;;;;;;;;;;;;-1:-1:-1;59555:33:0;;;:89;:37;:89::i;:::-;59502:8;:149::i;:::-;59680:9;-1:-1:-1;;;;;59663:35:0;59672:6;-1:-1:-1;;;;;59663:35:0;-1:-1:-1;;;;;;;;;;;59691:6:0;59663:35;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;59712:4:0;59320:402;;;;;:::o;68171:142::-;68218:95;68171:142;:::o;56983:86::-;57054:9;;;;56983:86;:::o;68483:31::-;;;;:::o;59976:208::-;60064:4;60077:83;60086:12;:10;:12::i;:::-;60100:7;60109:50;60148:10;60109:11;:25;60121:12;:10;:12::i;:::-;-1:-1:-1;;;;;60109:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;60109:25:0;;;:34;;;;;;;;;;;:38;:50::i;77368:223::-;68679:5;;77493:7;;68679:5;;;-1:-1:-1;;;;;68679:5:0;68655:12;:10;:12::i;:::-;-1:-1:-1;;;;;68655:30:0;;68687:37;;;;;;;;;;;;;-1:-1:-1;;;68687:37:0;;;68647:78;;;;;-1:-1:-1;;;68647:78:0;;;;;;;;:::i;:::-;-1:-1:-1;77519:16:0::1;::::0;77512:53:::1;::::0;-1:-1:-1;;;;;77519:16:0::1;77550:6:::0;77558;77512:37:::1;:53::i;:::-;-1:-1:-1::0;77579:6:0;77368:223;-1:-1:-1;77368:223:0:o;74096:222::-;74261:5;;74294:16;;74261:50;;-1:-1:-1;;;74261:50:0;;74206:7;;74232:80;;-1:-1:-1;;;;;74261:5:0;;;;;;;:32;;:50;;74294:16;;74261:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;74232:21;74248:4;74232:15;:21::i;:::-;:28;;:80::i;76519:76::-;76584:5;;;;;-1:-1:-1;;;;;76584:5:0;;76519:76::o;76926:140::-;76993:25;77034:26;:24;:26::i;:::-;77027:33;;76926:140;:::o;67969:50::-;68009:10;;;;;;;;;;;;;-1:-1:-1;;;68009:10:0;;;67969:50;:::o;72563:627::-;68679:5;;;;;-1:-1:-1;;;;;68679:5:0;68655:12;:10;:12::i;:::-;-1:-1:-1;;;;;68655:30:0;;68687:37;;;;;;;;;;;;;-1:-1:-1;;;68687:37:0;;;68647:78;;;;;-1:-1:-1;;;68647:78:0;;;;;;;;:::i;:::-;-1:-1:-1;72663:11:0;72659:40:::1;;72685:7;;72659:40;72726:9;::::0;-1:-1:-1;;;;;72726:9:0::1;73054:37;72726:9:::0;73070:20:::1;:6:::0;73084:5;73070:13:::1;:20::i;:::-;73054:5;:37::i;:::-;73126:8;-1:-1:-1::0;;;;;73105:38:0::1;73122:1;-1:-1:-1::0;;;;;73105:38:0::1;-1:-1:-1::0;;;;;;;;;;;73136:6:0::1;73105:38;;;;;;:::i;:::-;;;;;;;;73160:8;-1:-1:-1::0;;;;;73155:29:0::1;;73170:6;73178:5;73155:29;;;;;;;:::i;:::-;;;;;;;;68732:1;;72563:627:::0;;:::o;77785:91::-;68679:5;;;;;-1:-1:-1;;;;;68679:5:0;68655:12;:10;:12::i;:::-;-1:-1:-1;;;;;68655:30:0;;68687:37;;;;;;;;;;;;;-1:-1:-1;;;68687:37:0;;;68647:78;;;;;-1:-1:-1;;;68647:78:0;;;;;;;;:::i;:::-;;77785:91;;:::o;56832:90::-;56909:7;56902:14;;;;;;;;-1:-1:-1;;56902:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56880:13;;56902:14;;56909:7;;56902:14;;56909:7;56902:14;;;;;;;;;;;;;;;;;;;;;;;;60448:332;60556:4;60572:184;60589:12;:10;:12::i;:::-;60610:7;60626:123;60675:15;60626:123;;;;;;;;;;;;;;;;;:11;:25;60638:12;:10;:12::i;:::-;-1:-1:-1;;;;;60626:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;60626:25:0;;;:34;;;;;;;;;;;:123;:38;:123::i;57975:218::-;58061:4;58074:42;58084:12;:10;:12::i;:::-;58098:9;58109:6;58074:9;:42::i;:::-;58151:9;-1:-1:-1;;;;;58128:41:0;58137:12;:10;:12::i;:::-;-1:-1:-1;;;;;58128:41:0;-1:-1:-1;;;;;;;;;;;58162:6:0;58128:41;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;58183:4:0;57975:218;;;;:::o;76102:95::-;76182:9;;-1:-1:-1;;;;;76182:9:0;76102:95;:::o;76310:111::-;76399:16;;-1:-1:-1;;;;;76399:16:0;76310:111;:::o;75879:115::-;75946:7;75969:19;:17;:19::i;68434:42::-;;;;;;;;;;;;;:::o;78326:765::-;-1:-1:-1;;;;;78502:19:0;;78494:45;;;;-1:-1:-1;;;78494:45:0;;;;;;;:::i;:::-;78605:8;78586:15;:27;;78578:58;;;;-1:-1:-1;;;78578:58:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;78671:14:0;;78643:25;78671:14;;;:7;:14;;;;;;;;;78788:16;;78827:79;;78671:14;;78643:25;78827:79;;68218:95;;78679:5;;78862:7;;78871:5;;78671:14;;78897:8;;78827:79;;:::i;:::-;;;;;;;;;;;;;78817:90;;;;;;78736:182;;;;;;;;;:::i;:::-;;;;;;;;;;;;;78716:211;;;;;;78692:235;;78951:26;78961:6;78969:1;78972;78975;78951:26;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78942:35:0;:5;-1:-1:-1;;;;;78942:35:0;;78934:65;;;;-1:-1:-1;;;78934:65:0;;;;;;;:::i;:::-;79023:24;:17;79045:1;79023:21;:24::i;:::-;-1:-1:-1;;;;;79006:14:0;;;;;;:7;:14;;;;;:41;79054:31;79014:5;79070:7;79079:5;79054:8;:31::i;:::-;78326:765;;;;;;;;;:::o;71006:483::-;68679:5;;;;;-1:-1:-1;;;;;68679:5:0;68655:12;:10;:12::i;:::-;-1:-1:-1;;;;;68655:30:0;;68687:37;;;;;;;;;;;;;-1:-1:-1;;;68687:37:0;;;68647:78;;;;;-1:-1:-1;;;68647:78:0;;;;;;;;:::i;:::-;-1:-1:-1;71161:20:0::1;71184;:6:::0;71198:5;71184:13:::1;:20::i;:::-;71238:29;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;71238:29:0::1;::::0;::::1;::::0;71161:43;;-1:-1:-1;71219:17:0;71211:57:::1;;;;-1:-1:-1::0;;;71211:57:0::1;;;;;;;;:::i;:::-;;71275:25;71281:4;71287:12;71275:5;:25::i;:::-;71316:16;::::0;71309:67:::1;::::0;-1:-1:-1;;;;;71316:16:0::1;71347:20:::0;71369:6;71309:37:::1;:67::i;:::-;71413:1;-1:-1:-1::0;;;;;71390:34:0::1;71399:4;-1:-1:-1::0;;;;;71390:34:0::1;-1:-1:-1::0;;;;;;;;;;;71417:6:0::1;71390:34;;;;;;:::i;:::-;;;;;;;;71447:20;-1:-1:-1::0;;;;;71436:47:0::1;71441:4;-1:-1:-1::0;;;;;71436:47:0::1;;71469:6;71477:5;71436:47;;;;;;;:::i;:::-;;;;;;;;68732:1;71006:483:::0;;;;:::o;58467:173::-;-1:-1:-1;;;;;58607:18:0;;;58581:7;58607:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;58467:173::o;63663:260::-;63711:7;63729:38;63770:5;;;;;;;;;-1:-1:-1;;;;;63770:5:0;-1:-1:-1;;;;;63770:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63729:69;;63807:14;63824:8;-1:-1:-1;;;;;63824:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63900:16;;63865:52;;-1:-1:-1;;;63865:52:0;;63807:42;;-1:-1:-1;;;;;;63865:34:0;;;;;;:52;;63900:16;;63865:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63858:59;;;;63663:260;:::o;73537:342::-;68679:5;;;;;-1:-1:-1;;;;;68679:5:0;68655:12;:10;:12::i;:::-;-1:-1:-1;;;;;68655:30:0;;68687:37;;;;;;;;;;;;;-1:-1:-1;;;68687:37:0;;;68647:78;;;;;-1:-1:-1;;;68647:78:0;;;;;;;;:::i;:::-;;73801:33:::1;73811:4;73817:2;73821:5;73828;73801:9;:33::i;:::-;73863:2;-1:-1:-1::0;;;;;73848:25:0::1;73857:4;-1:-1:-1::0;;;;;73848:25:0::1;-1:-1:-1::0;;;;;;;;;;;73867:5:0::1;73848:25;;;;;;:::i;:::-;;;;;;;;73537:342:::0;;;:::o;3213:100::-;3297:10;3213:100;:::o;62924:348::-;-1:-1:-1;;;;;63042:19:0;;63034:68;;;;-1:-1:-1;;;63034:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63117:21:0;;63109:68;;;;-1:-1:-1;;;63109:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63186:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;63234:32;;;;;63216:6;;63234:32;:::i;57296:121::-;-1:-1:-1;;;;;57393:18:0;57370:7;57393:18;;;:9;:18;;;;;;;57296:121::o;57134:102::-;57218:12;;57134:102;:::o;52980:286::-;53073:28;;;;;;;;;;;;-1:-1:-1;;;53073:28:0;;;;53041:7;;53065:6;53057:45;;;;-1:-1:-1;;;53057:45:0;;;;;;;;:::i;:::-;-1:-1:-1;53187:35:0;;;;;;;;;53129:1;53187:35;;;-1:-1:-1;;;53187:35:0;;;;53125:5;;;50909:4;53153:25;;53152:33;53147:38;;;53139:84;;;;-1:-1:-1;;;53139:84:0;;;;;;;;:::i;:::-;;53259:1;53250:5;50909:4;53240:1;:7;:15;53239:21;;;;;;;52980:286;-1:-1:-1;;;;52980:286:0:o;61726:573::-;-1:-1:-1;;;;;61806:21:0;;61798:65;;;;-1:-1:-1;;;61798:65:0;;;;;;;:::i;:::-;61872:49;61901:1;61905:7;61914:6;61872:20;:49::i;:::-;61959:12;;61930:26;;61959:24;;61976:6;61959:16;:24::i;:::-;61990:12;:33;;;-1:-1:-1;;;;;62057:18:0;;62032:22;62057:18;;;:9;:18;;;;;;61930:53;;-1:-1:-1;62032:22:0;62057:30;;62080:6;62057:22;:30::i;:::-;-1:-1:-1;;;;;62094:18:0;;;;;;:9;:18;;;;;:35;;;62032:55;;-1:-1:-1;62150:26:0;:24;:26::i;:::-;-1:-1:-1;;;;;62142:49:0;;62138:156;;62202:26;:24;:26::i;:::-;-1:-1:-1;;;;;62202:39:0;;62242:7;62251:14;62267:18;62202:84;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62138:156;61726:573;;;;:::o;52556:261::-;52617:7;52637:6;;;:16;;-1:-1:-1;52647:6:0;;52637:16;52633:47;;;-1:-1:-1;52671:1:0;52664:8;;52633:47;52733:1;-1:-1:-1;;52733:1:0;52701:33;;;;;52696:1;:38;;52736:35;;;;;;;;;;;;;-1:-1:-1;;;52736:35:0;;;52688:84;;;;;-1:-1:-1;;;52688:84:0;;;;;;;;:::i;:::-;-1:-1:-1;;50909:4:0;52789:5;;50954:7;52789:15;52788:23;;52556:261::o;68745:107::-;68362:3;68745:107;:::o;30196:522::-;30675:9;30663:22;30705:7;30196:522;:::o;63278:78::-;63335:15;;;;:5;;:15;;;;;:::i;63362:86::-;63423:19;;;;:7;;:19;;;;;:::i;63454:86::-;63511:9;:23;;-1:-1:-1;;63511:23:0;;;;;;;;;;;;63454:86::o;80333:145::-;80439:33;80449:4;80455:2;80459:6;80467:4;80439:9;:33::i;24878:198::-;24984:7;25016:12;25008:6;;;;25000:29;;;;-1:-1:-1;;;25000:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;25048:5:0;;;24878:198::o;24051:167::-;24109:7;24137:5;;;24157:6;;;;24149:46;;;;-1:-1:-1;;;24149:46:0;;;;;;;:::i;:::-;24211:1;24051:167;-1:-1:-1;;;24051:167:0:o;49193:190::-;49292:85;49311:5;49341:23;;;49366:2;49370:5;49318:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;49318:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;49318:58:0;-1:-1:-1;;;;;;49318:58:0;;;;;;;;;;49292:18;:85::i;76700:136::-;76809:21;;-1:-1:-1;;;;;76809:21:0;76700:136;:::o;62305:613::-;-1:-1:-1;;;;;62385:21:0;;62377:67;;;;-1:-1:-1;;;62377:67:0;;;;;;;:::i;:::-;62453:49;62474:7;62491:1;62495:6;62453:20;:49::i;:::-;62540:12;;62511:26;;62540:24;;62557:6;62540:16;:24::i;:::-;62511:53;;62586:18;62571:12;:33;;;;62613:22;62638:68;62661:6;62638:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;62638:18:0;;;;;;:9;:18;;;;;;;:68;:22;:68::i;79444:649::-;79587:16;;79630:5;;79660:48;;-1:-1:-1;;;79660:48:0;;-1:-1:-1;;;;;79587:16:0;;;;;79630:5;;;;;;;79561:23;;79630:5;;79660:31;;:48;;79587:16;;79660:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79644:64;;79717:25;79745:35;79774:5;79745:21;79761:4;79745:15;:21::i;:35::-;79717:63;;79787:23;79813:33;79840:5;79813:19;79829:2;79813:15;:19::i;:33::-;79787:59;-1:-1:-1;79855:47:0;79871:4;79877:2;79881:20;:6;79895:5;79881:13;:20::i;:::-;79855:15;:47::i;:::-;79915:8;79911:123;;;79934:92;;-1:-1:-1;;;79934:92:0;;-1:-1:-1;;;;;79934:21:0;;;;;:92;;79956:15;;79973:4;;79979:2;;79983:6;;79991:17;;80010:15;;79934:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79911:123;80069:2;-1:-1:-1;;;;;80047:40:0;80063:4;-1:-1:-1;;;;;80047:40:0;;80073:6;80081:5;80047:40;;;;;;;:::i;:::-;;;;;;;;79444:649;;;;;;;;;:::o;49979:567::-;50063:27;50071:5;-1:-1:-1;;;;;50063:25:0;;:27::i;:::-;50055:71;;;;-1:-1:-1;;;50055:71:0;;;;;;;:::i;:::-;50192:12;50206:23;50241:5;-1:-1:-1;;;;;50233:19:0;50253:4;50233:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50191:67;;;;50273:7;50265:52;;;;-1:-1:-1;;;50265:52:0;;;;;;;:::i;:::-;50330:17;;:21;50326:215;;50467:10;50456:30;;;;;;;;;;;;:::i;:::-;50448:85;;;;-1:-1:-1;;;50448:85:0;;;;;;;:::i;24473:130::-;24531:7;24554:43;24558:1;24561;24554:43;;;;;;;;;;;;;;;;;:3;:43::i;60786:934::-;-1:-1:-1;;;;;60908:20:0;;60900:70;;;;-1:-1:-1;;;60900:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;60985:23:0;;60977:71;;;;-1:-1:-1;;;60977:71:0;;;;;;;:::i;:::-;61057:47;61078:6;61086:9;61097:6;61057:20;:47::i;:::-;61113:21;61137:71;61159:6;61137:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;61137:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;61215:17:0;;;;;;;:9;:17;;;;;;:33;;;61282:20;;;;;;;;;61113:95;;-1:-1:-1;61215:17:0;61282:32;;61307:6;61282:24;:32::i;:::-;-1:-1:-1;;;;;61321:20:0;;;;;;:9;:20;;;;;:39;;;61255:59;;-1:-1:-1;61381:26:0;:24;:26::i;:::-;-1:-1:-1;;;;;61373:49:0;;61369:346;;61462:12;;61483:26;:24;:26::i;:::-;-1:-1:-1;;;;;61483:39:0;;61523:6;61531:13;61546:18;61483:82;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61588:9;-1:-1:-1;;;;;61578:19:0;:6;-1:-1:-1;;;;;61578:19:0;;61574:134;;61610:26;:24;:26::i;:::-;-1:-1:-1;;;;;61610:39:0;;61650:9;61661:16;61679:18;61610:88;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61574:134;61369:346;;60786:934;;;;;:::o;770:597::-;830:4;1277:20;;1121:66;1318:23;;;;;;:42;;-1:-1:-1;1345:15:0;;;1318:42;1310:51;770:597;-1:-1:-1;;;;770:597:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:138:1;84:20;;113:33;84:20;113:33;:::i;157:377::-;;;274:3;267:4;259:6;255:17;251:27;241:2;;299:8;289;282:26;241:2;-1:-1:-1;329:20:1;;372:18;361:30;;358:2;;;411:8;401;394:26;358:2;455:4;447:6;443:17;431:29;;507:3;500:4;491:6;483;479:19;475:30;472:39;469:2;;;524:1;521;514:12;469:2;231:303;;;;;:::o;539:158::-;607:20;;667:4;656:16;;646:27;;636:2;;687:1;684;677:12;702:259;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;879:9;866:23;898:33;925:5;898:33;:::i;966:263::-;;1089:2;1077:9;1068:7;1064:23;1060:32;1057:2;;;1110:6;1102;1095:22;1057:2;1147:9;1141:16;1166:33;1193:5;1166:33;:::i;1234:402::-;;;1363:2;1351:9;1342:7;1338:23;1334:32;1331:2;;;1384:6;1376;1369:22;1331:2;1428:9;1415:23;1447:33;1474:5;1447:33;:::i;:::-;1499:5;-1:-1:-1;1556:2:1;1541:18;;1528:32;1569:35;1528:32;1569:35;:::i;:::-;1623:7;1613:17;;;1321:315;;;;;:::o;1641:470::-;;;;1787:2;1775:9;1766:7;1762:23;1758:32;1755:2;;;1808:6;1800;1793:22;1755:2;1852:9;1839:23;1871:33;1898:5;1871:33;:::i;:::-;1923:5;-1:-1:-1;1980:2:1;1965:18;;1952:32;1993:35;1952:32;1993:35;:::i;:::-;1745:366;;2047:7;;-1:-1:-1;;;2101:2:1;2086:18;;;;2073:32;;1745:366::o;2116:539::-;;;;;2279:3;2267:9;2258:7;2254:23;2250:33;2247:2;;;2301:6;2293;2286:22;2247:2;2345:9;2332:23;2364:33;2391:5;2364:33;:::i;:::-;2416:5;-1:-1:-1;2473:2:1;2458:18;;2445:32;2486:35;2445:32;2486:35;:::i;:::-;2237:418;;2540:7;;-1:-1:-1;;;;2594:2:1;2579:18;;2566:32;;2645:2;2630:18;2617:32;;2237:418::o;2660:750::-;;;;;;;;2872:3;2860:9;2851:7;2847:23;2843:33;2840:2;;;2894:6;2886;2879:22;2840:2;2938:9;2925:23;2957:33;2984:5;2957:33;:::i;:::-;3009:5;-1:-1:-1;3066:2:1;3051:18;;3038:32;3079:35;3038:32;3079:35;:::i;:::-;3133:7;-1:-1:-1;3187:2:1;3172:18;;3159:32;;-1:-1:-1;3238:2:1;3223:18;;3210:32;;-1:-1:-1;3261:39:1;3295:3;3280:19;;3261:39;:::i;:::-;3251:49;;3347:3;3336:9;3332:19;3319:33;3309:43;;3399:3;3388:9;3384:19;3371:33;3361:43;;2830:580;;;;;;;;;;:::o;3415:327::-;;;3544:2;3532:9;3523:7;3519:23;3515:32;3512:2;;;3565:6;3557;3550:22;3512:2;3609:9;3596:23;3628:33;3655:5;3628:33;:::i;:::-;3680:5;3732:2;3717:18;;;;3704:32;;-1:-1:-1;;;3502:240:1:o;3747:395::-;;;;3893:2;3881:9;3872:7;3868:23;3864:32;3861:2;;;3914:6;3906;3899:22;3861:2;3958:9;3945:23;3977:33;4004:5;3977:33;:::i;:::-;4029:5;4081:2;4066:18;;4053:32;;-1:-1:-1;4132:2:1;4117:18;;;4104:32;;3851:291;-1:-1:-1;;;3851:291:1:o;4147:297::-;;4267:2;4255:9;4246:7;4242:23;4238:32;4235:2;;;4288:6;4280;4273:22;4235:2;4325:9;4319:16;4378:5;4371:13;4364:21;4357:5;4354:32;4344:2;;4405:6;4397;4390:22;4754:1473;;;;;;;;;;;;5097:3;5085:9;5076:7;5072:23;5068:33;5065:2;;;5119:6;5111;5104:22;5065:2;5147:31;5168:9;5147:31;:::i;:::-;5137:41;;5197:40;5233:2;5222:9;5218:18;5197:40;:::i;:::-;5187:50;;5256:40;5292:2;5281:9;5277:18;5256:40;:::i;:::-;5246:50;;5315:40;5351:2;5340:9;5336:18;5315:40;:::i;:::-;5305:50;;5374:39;5408:3;5397:9;5393:19;5374:39;:::i;:::-;5364:49;;5432:18;5500:2;5493:3;5482:9;5478:19;5465:33;5462:41;5459:2;;;5521:6;5513;5506:22;5459:2;5565:87;5644:7;5636:3;5625:9;5621:19;5608:33;5597:9;5593:49;5565:87;:::i;:::-;5671:8;;-1:-1:-1;5698:8:1;-1:-1:-1;5749:3:1;5734:19;;5721:33;5718:41;-1:-1:-1;5715:2:1;;;5777:6;5769;5762:22;5715:2;5821:87;5900:7;5892:3;5881:9;5877:19;5864:33;5853:9;5849:49;5821:87;:::i;:::-;5927:8;;-1:-1:-1;5954:8:1;-1:-1:-1;6005:3:1;5990:19;;5977:33;5974:41;-1:-1:-1;5971:2:1;;;6033:6;6025;6018:22;5971:2;;6078:87;6157:7;6149:3;6138:9;6134:19;6121:33;6110:9;6106:49;6078:87;:::i;:::-;6184:8;6174:18;;6212:9;6201:20;;;;5055:1172;;;;;;;;;;;;;;:::o;6232:194::-;;6355:2;6343:9;6334:7;6330:23;6326:32;6323:2;;;6376:6;6368;6361:22;6323:2;-1:-1:-1;6404:16:1;;6313:113;-1:-1:-1;6313:113:1:o;6431:258::-;;;6560:2;6548:9;6539:7;6535:23;6531:32;6528:2;;;6581:6;6573;6566:22;6528:2;-1:-1:-1;;6609:23:1;;;6679:2;6664:18;;;6651:32;;-1:-1:-1;6518:171:1:o;6694:270::-;;6784:6;6779:3;6772:19;6836:6;6829:5;6822:4;6817:3;6813:14;6800:43;6888:3;6881:4;6872:6;6867:3;6863:16;6859:27;6852:40;6953:4;6946:2;6942:7;6937:2;6929:6;6925:15;6921:29;6916:3;6912:39;6908:50;6901:57;;6762:202;;;;;:::o;6969:259::-;;7050:5;7044:12;7077:6;7072:3;7065:19;7093:63;7149:6;7142:4;7137:3;7133:14;7126:4;7119:5;7115:16;7093:63;:::i;:::-;7210:2;7189:15;-1:-1:-1;;7185:29:1;7176:39;;;;7217:4;7172:50;;7020:208;-1:-1:-1;;7020:208:1:o;7233:273::-;;7416:6;7408;7403:3;7390:33;7442:16;;7467:15;;;7442:16;7380:126;-1:-1:-1;7380:126:1:o;7511:274::-;;7678:6;7672:13;7694:53;7740:6;7735:3;7728:4;7720:6;7716:17;7694:53;:::i;:::-;7763:16;;;;;7648:137;-1:-1:-1;;7648:137:1:o;7790:392::-;-1:-1:-1;;;8048:27:1;;8100:1;8091:11;;8084:27;;;;8136:2;8127:12;;8120:28;8173:2;8164:12;;8038:144::o;8187:203::-;-1:-1:-1;;;;;8351:32:1;;;;8333:51;;8321:2;8306:18;;8288:102::o;8395:600::-;-1:-1:-1;;;;;8738:15:1;;;8720:34;;8790:15;;;8785:2;8770:18;;8763:43;8842:15;;;;8837:2;8822:18;;8815:43;8889:2;8874:18;;8867:34;8932:3;8917:19;;8910:35;;;;8700:3;8961:19;;8954:35;;;;8669:3;8654:19;;8636:359::o;9000:908::-;-1:-1:-1;;;;;9391:15:1;;;9373:34;;9443:15;;9438:2;9423:18;;9416:43;9507:4;9495:17;;9490:2;9475:18;;9468:45;9549:3;9544:2;9529:18;;9522:31;;;9000:908;;9576:64;;9620:19;;9612:6;9604;9576:64;:::i;:::-;9689:9;9681:6;9677:22;9671:3;9660:9;9656:19;9649:51;9723;9767:6;9759;9751;9723:51;:::i;:::-;9709:65;;9823:9;9815:6;9811:22;9805:3;9794:9;9790:19;9783:51;9851;9895:6;9887;9879;9851:51;:::i;:::-;9843:59;9325:583;-1:-1:-1;;;;;;;;;;;;9325:583:1:o;9913:274::-;-1:-1:-1;;;;;10105:32:1;;;;10087:51;;10169:2;10154:18;;10147:34;10075:2;10060:18;;10042:145::o;10192:345::-;-1:-1:-1;;;;;10412:32:1;;;;10394:51;;10476:2;10461:18;;10454:34;;;;10519:2;10504:18;;10497:34;10382:2;10367:18;;10349:188::o;10542:187::-;10707:14;;10700:22;10682:41;;10670:2;10655:18;;10637:92::o;10734:177::-;10880:25;;;10868:2;10853:18;;10835:76::o;10916:591::-;11203:25;;;-1:-1:-1;;;;;11302:15:1;;;11297:2;11282:18;;11275:43;11354:15;;;;11349:2;11334:18;;11327:43;11401:2;11386:18;;11379:34;11444:3;11429:19;;11422:35;;;;11255:3;11473:19;;11466:35;11190:3;11175:19;;11157:350::o;11512:489::-;11771:25;;;11827:2;11812:18;;11805:34;;;;11870:2;11855:18;;11848:34;;;;11913:2;11898:18;;11891:34;-1:-1:-1;;;;;11962:32:1;11956:3;11941:19;;11934:61;11758:3;11743:19;;11725:276::o;12006:398::-;12233:25;;;12306:4;12294:17;;;;12289:2;12274:18;;12267:45;12343:2;12328:18;;12321:34;12386:2;12371:18;;12364:34;12220:3;12205:19;;12187:217::o;12409:219::-;;12556:2;12545:9;12538:21;12576:46;12618:2;12607:9;12603:18;12595:6;12576:46;:::i;13329:399::-;13531:2;13513:21;;;13570:2;13550:18;;;13543:30;13609:34;13604:2;13589:18;;13582:62;-1:-1:-1;;;13675:2:1;13660:18;;13653:33;13718:3;13703:19;;13503:225::o;13733:398::-;13935:2;13917:21;;;13974:2;13954:18;;;13947:30;14013:34;14008:2;13993:18;;13986:62;-1:-1:-1;;;14079:2:1;14064:18;;14057:32;14121:3;14106:19;;13907:224::o;14136:351::-;14338:2;14320:21;;;14377:2;14357:18;;;14350:30;14416:29;14411:2;14396:18;;14389:57;14478:2;14463:18;;14310:177::o;14492:356::-;14694:2;14676:21;;;14713:18;;;14706:30;14772:34;14767:2;14752:18;;14745:62;14839:2;14824:18;;14666:182::o;14853:341::-;15055:2;15037:21;;;15094:2;15074:18;;;15067:30;-1:-1:-1;;;15128:2:1;15113:18;;15106:47;15185:2;15170:18;;15027:167::o;15199:410::-;15401:2;15383:21;;;15440:2;15420:18;;;15413:30;15479:34;15474:2;15459:18;;15452:62;-1:-1:-1;;;15545:2:1;15530:18;;15523:44;15599:3;15584:19;;15373:236::o;15614:342::-;15816:2;15798:21;;;15855:2;15835:18;;;15828:30;-1:-1:-1;;;15889:2:1;15874:18;;15867:48;15947:2;15932:18;;15788:168::o;15961:337::-;16163:2;16145:21;;;16202:2;16182:18;;;16175:30;-1:-1:-1;;;16236:2:1;16221:18;;16214:43;16289:2;16274:18;;16135:163::o;16303:397::-;16505:2;16487:21;;;16544:2;16524:18;;;16517:30;16583:34;16578:2;16563:18;;16556:62;-1:-1:-1;;;16649:2:1;16634:18;;16627:31;16690:3;16675:19;;16477:223::o;16705:401::-;16907:2;16889:21;;;16946:2;16926:18;;;16919:30;16985:34;16980:2;16965:18;;16958:62;-1:-1:-1;;;17051:2:1;17036:18;;17029:35;17096:3;17081:19;;16879:227::o;17111:400::-;17313:2;17295:21;;;17352:2;17332:18;;;17325:30;17391:34;17386:2;17371:18;;17364:62;-1:-1:-1;;;17457:2:1;17442:18;;17435:34;17501:3;17486:19;;17285:226::o;17516:406::-;17718:2;17700:21;;;17757:2;17737:18;;;17730:30;17796:34;17791:2;17776:18;;17769:62;-1:-1:-1;;;17862:2:1;17847:18;;17840:40;17912:3;17897:19;;17690:232::o;17927:355::-;18129:2;18111:21;;;18168:2;18148:18;;;18141:30;18207:33;18202:2;18187:18;;18180:61;18273:2;18258:18;;18101:181::o;18287:355::-;18489:2;18471:21;;;18528:2;18508:18;;;18501:30;18567:33;18562:2;18547:18;;18540:61;18633:2;18618:18;;18461:181::o;18829:248::-;19003:25;;;19059:2;19044:18;;19037:34;18991:2;18976:18;;18958:119::o;19082:184::-;19254:4;19242:17;;;;19224:36;;19212:2;19197:18;;19179:87::o;19271:258::-;19343:1;19353:113;19367:6;19364:1;19361:13;19353:113;;;19443:11;;;19437:18;19424:11;;;19417:39;19389:2;19382:10;19353:113;;;19484:6;19481:1;19478:13;19475:2;;;-1:-1:-1;;19519:1:1;19501:16;;19494:27;19324:205::o;19534:133::-;-1:-1:-1;;;;;19611:31:1;;19601:42;;19591:2;;19657:1;19654;19647:12;19591:2;19581:86;:::o

Swarm Source

ipfs://3aa2913194723eb09fb9a7b626c98e9933ebee341b876581d78f6142b72bbefa

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.