ETH Price: $2,512.20 (-0.50%)

Contract

0x94527EFF3F276B5ACF5AD4b3AbD42A3B0b27f11f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Initialize138279192021-12-18 7:58:53987 days ago1639814333IN
0x94527EFF...B0b27f11f
0 ETH0.0030937545

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
138279012021-12-18 7:55:48987 days ago1639814148  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniV2ExcessWethCrossPair

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 12 : UniV2ExcessWethCrossPair.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

import "./UniV2AdapterCore.sol";

contract UniV2ExcessWethCrossPair is UniV2AdapterCore {
  function tokenToTokenOutputAmount(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenInAmount
  ) public view override returns (uint tokenOutAmount) {
    IERC20 wethToken = IERC20(address(weth));
    uint wethOut = _amountOut(tokenIn, wethToken, tokenInAmount);
    tokenOutAmount = _amountOut(wethToken, tokenOut, wethOut);
  }

  function tokenToTokenInputAmount(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenOutAmount
  ) public view override returns (uint tokenInAmount) {
    IERC20 wethToken = IERC20(address(weth));
    uint wethIn = _amountIn(wethToken, tokenOut, tokenOutAmount);
    tokenInAmount = _amountIn(tokenIn, wethToken, wethIn);
  }

  function tokenToTokenExcess(IERC20 tokenIn, IERC20 tokenOut, uint tokenInAmount, uint tokenOutAmount)
    external view override
    returns (address[] memory excessTokens, int[] memory excessAmounts)
  {
    uint wethOut = _amountOut(tokenIn, IERC20(address(weth)), tokenInAmount);
    uint wethIn = _amountIn(IERC20(address(weth)), tokenOut, tokenOutAmount);
    excessTokens = new address[](1);
    excessTokens[0] = address(0);
    excessAmounts = new int[](1);
    excessAmounts[0] = int(wethOut - wethIn);
  }

  function ethToTokenExcess(IERC20 token, uint ethAmount, uint tokenAmount)
    external view override
    returns (address[] memory excessTokens, int[] memory excessAmounts)
  {
    excessTokens = new address[](1);
    excessTokens[0] = address(0);
    excessAmounts = new int[](1);
    excessAmounts[0] = int(ethAmount - _amountIn(IERC20(address(weth)), token, tokenAmount));
  }

  function tokenToEthExcess(IERC20 token, uint tokenAmount, uint ethAmount)
    external view override
    returns (address[] memory excessTokens, int[] memory excessAmounts)
  {
    excessTokens = new address[](1);
    excessTokens[0] = address(0);
    excessAmounts = new int[](1);
    excessAmounts[0] = int(_amountOut(token, IERC20(address(weth)), tokenAmount) - ethAmount);
  }

  function tokenToToken(IERC20 tokenIn, IERC20 tokenOut, uint tokenInAmount, uint tokenOutAmount, address account) external override {
    IERC20 wethToken = IERC20(address(weth));
    uint wethOut = _amountOut(tokenIn, wethToken, tokenInAmount);
    uint wethIn = _amountIn(wethToken, tokenOut, tokenOutAmount);
    require(wethOut >= wethIn, 'UniV2ExcessWethCrossPair: tokenToToken INSUFFICIENT_INPUT_AMOUNT');
    _transferInputToPair(tokenIn, wethToken, tokenInAmount);
    _singlePairSwap(tokenIn, wethToken, tokenInAmount, wethOut, address(this));
    _transferInputToPair(wethToken, tokenOut, wethIn);
    _singlePairSwap(wethToken, tokenOut, wethIn, tokenOutAmount, account);
  }

  function ethToToken(IERC20 token, uint tokenAmount, address account) external payable override {
    IERC20 tokenIn = IERC20(address(weth));
    IERC20 tokenOut = token;
    uint swapInput = _amountIn(tokenIn, tokenOut, tokenAmount);
    require(msg.value >= swapInput, 'UniV2ExcessWethCrossPair: ethToToken INSUFFICIENT_INPUT_AMOUNT');
    weth.deposit{value: swapInput}();
    _transferInputToPair(tokenIn, tokenOut, swapInput);
    _singlePairSwap(tokenIn, tokenOut, swapInput, tokenAmount, account);
  }

  function tokenToEth(IERC20 token, uint tokenAmount, uint ethAmount, address account) external override {
    IERC20 tokenIn = token;
    IERC20 tokenOut = IERC20(address(weth));
    uint swapOutput = _amountOut(tokenIn, tokenOut, tokenAmount);
    require(swapOutput >= ethAmount, 'UniV2ExcessWethCrossPair: tokenToEth INSUFFICIENT_OUTPUT_AMOUNT');
    _transferInputToPair(tokenIn, tokenOut, tokenAmount);
    _singlePairSwap(tokenIn, tokenOut, tokenAmount, swapOutput, address(this));
    weth.withdraw(swapOutput);
    TransferHelper.safeTransferETH(account, ethAmount);
  }

  receive() external payable {}
}

File 2 of 12 : UniV2AdapterCore.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

import '../../Libraries/TransferHelper.sol';
import "../Withdrawable.sol";
import "../ISwapAdapter.sol";
import "../IWETH.sol";
import "./UniswapV2Library.sol";

abstract contract UniV2AdapterCore is ISwapAdapter, Withdrawable {
  IWETH public weth;
  address public factory;
  bool public initialized;

  function initialize (IWETH _weth, address _factory) external onlyOwner {
    require(!initialized, 'INITIALIZED');
    initialized = true;
    weth = _weth;
    factory = _factory;
  }

  function tokenToTokenOutputAmount(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenInAmount
  ) public view override virtual returns (uint tokenOutAmount) {
    tokenOutAmount = _amountOut(tokenIn, tokenOut, tokenInAmount);
  }

  function tokenToTokenInputAmount(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenOutAmount
  ) public view override virtual returns (uint tokenInAmount) {
    tokenInAmount = _amountIn(tokenIn, tokenOut, tokenOutAmount);
  }

  function ethToTokenOutputAmount(
    IERC20 token,
    uint ethInAmount
  ) public view override virtual returns (uint tokenOutAmount) {
    tokenOutAmount = _amountOut(IERC20(address(weth)), token, ethInAmount);
  }

  function ethToTokenInputAmount(
    IERC20 token,
    uint tokenOutAmount
  ) public view override virtual returns (uint ethInAmount) {
    ethInAmount = _amountIn(IERC20(address(weth)), token, tokenOutAmount);
  }

  function tokenToEthOutputAmount(
    IERC20 token,
    uint tokenInAmount
  ) public view override virtual returns (uint ethOutAmount) {
    ethOutAmount = _amountOut(token, IERC20(address(weth)), tokenInAmount);
  }

  function tokenToEthInputAmount(
    IERC20 token,
    uint ethOutAmount
  ) public view override virtual returns (uint tokenInAmount) {
    tokenInAmount = _amountIn(token, IERC20(address(weth)), ethOutAmount);
  }

  function _singlePairSwap(IERC20 tokenIn, IERC20 tokenOut, uint tokenInAmount, uint tokenOutAmount, address to)
   internal
  {
    _swap(_amounts(tokenInAmount, tokenOutAmount), _path(tokenIn, tokenOut), to);
  }

  // requires the initial amount to have already been sent to the first pair
  function _swap(uint[] memory amounts, address[] memory path, address _to) internal {
    for (uint i; i < path.length - 1; i++) {
      (address input, address output) = (path[i], path[i + 1]);
      (address token0,) = UniswapV2Library.sortTokens(input, output);
      uint amountOut = amounts[i + 1];
      (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0));
      address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
      IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output)).swap(
        amount0Out, amount1Out, to, new bytes(0)
      );
    }
  }

  function _transferInputToPair(IERC20 tokenIn, IERC20 tokenOut, uint tokenInAmount) internal {
    TransferHelper.safeTransfer(
      address(tokenIn),
      UniswapV2Library.pairFor(factory, address(tokenIn), address(tokenOut)),
      tokenInAmount
    );
  }

  function _amountOut(IERC20 tokenIn, IERC20 tokenOut, uint tokenInAmount)
    internal view
    returns (uint tokenOutAmount)
  {
    address[] memory path = _path(tokenIn, tokenOut);
    tokenOutAmount = UniswapV2Library.getAmountsOut(factory, tokenInAmount, path)[1];
  }

  function _amountIn(IERC20 tokenIn, IERC20 tokenOut, uint tokenOutAmount)
    internal view
    returns (uint tokenInAmount)
  {
    address[] memory path = _path(tokenIn, tokenOut);
    tokenInAmount = UniswapV2Library.getAmountsIn(factory, tokenOutAmount, path)[0];
  }

  function _path (IERC20 tokenIn, IERC20 tokenOut)
    internal pure
    returns (address[] memory path)
  {
    path = new address[](2);
    path[0] = address(tokenIn);
    path[1] = address(tokenOut);
  }

  function _amounts (uint amountIn, uint amountOut)
    internal pure
    returns (uint[] memory amounts)
  {
    amounts = new uint[](2);
    amounts[0] = amountIn;
    amounts[1] = amountOut;
  }

}

File 3 of 12 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
  function safeApprove(
    address token,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('approve(address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
  }

  function safeTransfer(
    address token,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('transfer(address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
  }

  function safeTransferFrom(
    address token,
    address from,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
  }

  function safeTransferETH(address to, uint256 value) internal {
    (bool success, ) = to.call{value: value}(new bytes(0));
    require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
  }
}

File 4 of 12 : Withdrawable.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

import "../OpenZeppelin/Ownable.sol";
import "../OpenZeppelin/IERC20.sol";
import '../Libraries/TransferHelper.sol';

contract Withdrawable is Ownable {
  constructor () {
    transferOwnership(0x71795b2d53Ffbe5b1805FE725538E4f8fBD29e26);
  }

  function withdrawToken(IERC20 token, uint amount, address to) external onlyOwner {
    TransferHelper.safeTransfer(address(token), to, amount);
  }

  function withdrawEth(uint amount, address payable to) external onlyOwner {
    (bool success, ) = to.call{value: amount}("");
    require(success, "Withdrawable: withdrawEth call failed");
  }
}

File 5 of 12 : ISwapAdapter.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

import "../OpenZeppelin/IERC20.sol";

interface ISwapAdapter {
  function tokenToTokenExcess(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenInAmount,
    uint tokenOutAmount
  ) external view returns (address[] memory excessTokens, int[] memory excessAmounts);

  function ethToTokenExcess(
    IERC20 token,
    uint ethAmount,
    uint tokenAmount
  ) external view returns (address[] memory excessTokens, int[] memory excessAmounts);

  function tokenToEthExcess(
    IERC20 token,
    uint tokenAmount,
    uint ethAmount
  ) external view returns (address[] memory excessTokens, int[] memory excessAmounts);

  function tokenToTokenOutputAmount(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenInAmount
  ) external view returns (uint tokenOutAmount);

  function tokenToTokenInputAmount(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenOutAmount
  ) external view returns (uint tokenInAmount);

  function ethToTokenOutputAmount(
    IERC20 token,
    uint ethInAmount
  ) external view returns (uint tokenOutAmount);

  function ethToTokenInputAmount(
    IERC20 token,
    uint tokenOutAmount
  ) external view returns (uint ethInAmount);

  function tokenToEthOutputAmount(
    IERC20 token,
    uint tokenInAmount
  ) external view returns (uint ethOutAmount);

  function tokenToEthInputAmount(
    IERC20 token,
    uint ethOutAmount
  ) external view returns (uint tokenInAmount);

  function tokenToToken(
    IERC20 tokenIn,
    IERC20 tokenOut,
    uint tokenInAmount,
    uint tokenOutAmount,
    address account
  ) external;

  function ethToToken(
    IERC20 token,
    uint tokenAmount,
    address account
  ) external payable;

  function tokenToEth(
    IERC20 token,
    uint tokenAmount,
    uint ethAmount,
    address account
  ) external;
}

File 6 of 12 : IWETH.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

interface IWETH {
  function deposit() external payable;
  function transfer(address to, uint value) external returns (bool);
  function withdraw(uint) external;
}

File 7 of 12 : UniswapV2Library.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

import "../../OpenZeppelin/SafeMath.sol";
import "./IUniswapV2Pair.sol";

library UniswapV2Library {
  using SafeMath for uint;

  // returns sorted token addresses, used to handle return values from pairs sorted in this order
  function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
    require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
    (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
    require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
  }

  // calculates the CREATE2 address for a pair without making any external calls
  function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
    (address token0, address token1) = sortTokens(tokenA, tokenB);
    pair = address(uint(keccak256(abi.encodePacked(
      hex'ff',
      factory,
      keccak256(abi.encodePacked(token0, token1)),
      hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
    ))));
  }

  // fetches and sorts the reserves for a pair
  function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
    (address token0,) = sortTokens(tokenA, tokenB);
    (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
    (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
  }

  // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
  function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
    require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
    require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
    amountB = amountA.mul(reserveB) / reserveA;
  }

  // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
  function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
    require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
    require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
    uint amountInWithFee = amountIn.mul(997);
    uint numerator = amountInWithFee.mul(reserveOut);
    uint denominator = reserveIn.mul(1000).add(amountInWithFee);
    amountOut = numerator / denominator;
  }

  // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
  function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
    require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
    require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
    uint numerator = reserveIn.mul(amountOut).mul(1000);
    uint denominator = reserveOut.sub(amountOut).mul(997);
    amountIn = (numerator / denominator).add(1);
  }

  // performs chained getAmountOut calculations on any number of pairs
  function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
    require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
    amounts = new uint[](path.length);
    amounts[0] = amountIn;
    for (uint i; i < path.length - 1; i++) {
      (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
      amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
    }
  }

  // performs chained getAmountIn calculations on any number of pairs
  function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
    require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
    amounts = new uint[](path.length);
    amounts[amounts.length - 1] = amountOut;
    for (uint i = path.length - 1; i > 0; i--) {
      (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
      amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
    }
  }
}

File 8 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

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

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

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

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

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

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

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

File 9 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

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

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

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

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

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

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

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

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

File 10 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

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

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

File 11 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 12 of 12 : IUniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

interface IUniswapV2Pair {
  event Approval(address indexed owner, address indexed spender, uint value);
  event Transfer(address indexed from, address indexed to, uint value);

  function name() external pure returns (string memory);
  function symbol() external pure returns (string memory);
  function decimals() external pure returns (uint8);
  function totalSupply() external view returns (uint);
  function balanceOf(address owner) external view returns (uint);
  function allowance(address owner, address spender) external view returns (uint);

  function approve(address spender, uint value) external returns (bool);
  function transfer(address to, uint value) external returns (bool);
  function transferFrom(address from, address to, uint value) external returns (bool);

  function DOMAIN_SEPARATOR() external view returns (bytes32);
  function PERMIT_TYPEHASH() external pure returns (bytes32);
  function nonces(address owner) external view returns (uint);

  function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

  event Mint(address indexed sender, uint amount0, uint amount1);
  event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
  event Swap(
    address indexed sender,
    uint amount0In,
    uint amount1In,
    uint amount0Out,
    uint amount1Out,
    address indexed to
  );
  event Sync(uint112 reserve0, uint112 reserve1);

  function MINIMUM_LIQUIDITY() external pure returns (uint);
  function factory() external view returns (address);
  function token0() external view returns (address);
  function token1() external view returns (address);
  function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
  function price0CumulativeLast() external view returns (uint);
  function price1CumulativeLast() external view returns (uint);
  function kLast() external view returns (uint);

  function mint(address to) external returns (uint liquidity);
  function burn(address to) external returns (uint amount0, uint amount1);
  function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
  function skim(address to) external;
  function sync() external;

  function initialize(address, address) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"ethToToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"ethAmount","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"ethToTokenExcess","outputs":[{"internalType":"address[]","name":"excessTokens","type":"address[]"},{"internalType":"int256[]","name":"excessAmounts","type":"int256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenOutAmount","type":"uint256"}],"name":"ethToTokenInputAmount","outputs":[{"internalType":"uint256","name":"ethInAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"ethInAmount","type":"uint256"}],"name":"ethToTokenOutputAmount","outputs":[{"internalType":"uint256","name":"tokenOutAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IWETH","name":"_weth","type":"address"},{"internalType":"address","name":"_factory","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"ethAmount","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"tokenToEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"tokenToEthExcess","outputs":[{"internalType":"address[]","name":"excessTokens","type":"address[]"},{"internalType":"int256[]","name":"excessAmounts","type":"int256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"ethOutAmount","type":"uint256"}],"name":"tokenToEthInputAmount","outputs":[{"internalType":"uint256","name":"tokenInAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenInAmount","type":"uint256"}],"name":"tokenToEthOutputAmount","outputs":[{"internalType":"uint256","name":"ethOutAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenIn","type":"address"},{"internalType":"contract IERC20","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"tokenInAmount","type":"uint256"},{"internalType":"uint256","name":"tokenOutAmount","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"tokenToToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenIn","type":"address"},{"internalType":"contract IERC20","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"tokenInAmount","type":"uint256"},{"internalType":"uint256","name":"tokenOutAmount","type":"uint256"}],"name":"tokenToTokenExcess","outputs":[{"internalType":"address[]","name":"excessTokens","type":"address[]"},{"internalType":"int256[]","name":"excessAmounts","type":"int256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenIn","type":"address"},{"internalType":"contract IERC20","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"tokenOutAmount","type":"uint256"}],"name":"tokenToTokenInputAmount","outputs":[{"internalType":"uint256","name":"tokenInAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenIn","type":"address"},{"internalType":"contract IERC20","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"tokenInAmount","type":"uint256"}],"name":"tokenToTokenOutputAmount","outputs":[{"internalType":"uint256","name":"tokenOutAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060006200001e6200007c565b600080546001600160a01b0319166001600160a01b038316908117825560405192935091600080516020620022be833981519152908290a350620000767371795b2d53ffbe5b1805fe725538e4f8fbd29e2662000080565b6200017e565b3390565b6200008a6200007c565b6000546001600160a01b03908116911614620000ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620001345760405162461bcd60e51b8152600401808060200182810382526026815260200180620022986026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020620022be83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61210a806200018e6000396000f3fe60806040526004361061016e5760003560e01c80635686472f116100cb5780637b9096c31161007f578063c3551e9211610059578063c3551e9214610628578063c45a015514610661578063f2fde38b1461067657610175565b80637b9096c3146105a15780638da5cb5b146105da578063a158657c146105ef57610175565b8063673c5697116100b0578063673c569714610500578063695fd99614610543578063715018a61461058c57610175565b80635686472f1461048057806360b84fba146104c757610175565b80633ccdbb28116101225780633fc8cef3116101075780633fc8cef3146103c35780634098c377146103f4578063485cc9551461044557610175565b80633ccdbb28146103415780633f934c5a1461038457610175565b80631ac8a87e116101535780631ac8a87e146101f85780631e1a7a0b14610230578063349e27971461030857610175565b80630cf5b7531461017a578063158ef93e146101cf57610175565b3661017557005b600080fd5b34801561018657600080fd5b506101bd6004803603606081101561019d57600080fd5b506001600160a01b038135811691602081013590911690604001356106a9565b60408051918252519081900360200190f35b3480156101db57600080fd5b506101e46106db565b604080519115158252519081900360200190f35b61022e6004803603606081101561020e57600080fd5b506001600160a01b038135811691602081013591604090910135166106eb565b005b34801561023c57600080fd5b5061026f6004803603606081101561025357600080fd5b506001600160a01b0381351690602081013590604001356107cf565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156102b357818101518382015260200161029b565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156102f25781810151838201526020016102da565b5050505090500194505050505060405180910390f35b34801561031457600080fd5b506101bd6004803603604081101561032b57600080fd5b506001600160a01b038135169060200135610875565b34801561034d57600080fd5b5061022e6004803603606081101561036457600080fd5b506001600160a01b03813581169160208101359160409091013516610897565b34801561039057600080fd5b5061026f600480360360608110156103a757600080fd5b506001600160a01b038135169060208101359060400135610911565b3480156103cf57600080fd5b506103d86109a2565b604080516001600160a01b039092168252519081900360200190f35b34801561040057600080fd5b5061022e600480360360a081101561041757600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608090910135166109b1565b34801561045157600080fd5b5061022e6004803603604081101561046857600080fd5b506001600160a01b0381358116916020013516610a54565b34801561048c57600080fd5b5061022e600480360360808110156104a357600080fd5b506001600160a01b0381358116916020810135916040820135916060013516610b84565b3480156104d357600080fd5b506101bd600480360360408110156104ea57600080fd5b506001600160a01b038135169060200135610c70565b34801561050c57600080fd5b506101bd6004803603606081101561052357600080fd5b506001600160a01b03813581169160208101359091169060400135610c8b565b34801561054f57600080fd5b5061026f6004803603608081101561056657600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135610cb3565b34801561059857600080fd5b5061022e610d7e565b3480156105ad57600080fd5b506101bd600480360360408110156105c457600080fd5b506001600160a01b038135169060200135610e3f565b3480156105e657600080fd5b506103d8610e59565b3480156105fb57600080fd5b5061022e6004803603604081101561061257600080fd5b50803590602001356001600160a01b0316610e68565b34801561063457600080fd5b506101bd6004803603604081101561064b57600080fd5b506001600160a01b038135169060200135610f62565b34801561066d57600080fd5b506103d8610f7c565b34801561068257600080fd5b5061022e6004803603602081101561069957600080fd5b50356001600160a01b0316610f8b565b6001546000906001600160a01b0316816106c48286866110a2565b90506106d18683836110a2565b9695505050505050565b600254600160a01b900460ff1681565b6001546001600160a01b03168360006107058383876110a2565b9050803410156107465760405162461bcd60e51b815260040180806020018281038252603e815260200180611f85603e913960400191505060405180910390fd5b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b50505050506107ba8383836110e7565b6107c7838383888861110a565b505050505050565b6040805160018082528183019092526060918291906020808301908036833701905050915060008260008151811061080357fe5b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833750506001549192508491610853915087906001600160a01b03168761112e565b038160008151811061086157fe5b602002602001018181525050935093915050565b6001546000906108909084906001600160a01b0316846110a2565b9392505050565b61089f611161565b6000546001600160a01b03908116911614610901576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61090c838284611165565b505050565b6040805160018082528183019092526060918291906020808301908036833701905050915060008260008151811061094557fe5b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050600154909150610993906001600160a01b031686856110a2565b84038160008151811061086157fe5b6001546001600160a01b031681565b6001546001600160a01b031660006109ca87838761112e565b905060006109d98388876110a2565b905080821015610a1a5760405162461bcd60e51b8152600401808060200182810382526040815260200180611feb6040913960400191505060405180910390fd5b610a258884886110e7565b610a32888488853061110a565b610a3d8388836110e7565b610a4a838883888861110a565b5050505050505050565b610a5c611161565b6000546001600160a01b03908116911614610abe576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254600160a01b900460ff1615610b1d576040805162461bcd60e51b815260206004820152600b60248201527f494e495449414c495a4544000000000000000000000000000000000000000000604482015290519081900360640190fd5b600280546001805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b0396871617909155600160a01b7fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091171691909216179055565b60015484906001600160a01b03166000610b9f83838861112e565b905084811015610be05760405162461bcd60e51b815260040180806020018281038252603f81526020018061204c603f913960400191505060405180910390fd5b610beb8383886110e7565b610bf8838388843061110a565b60015460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015610c4557600080fd5b505af1158015610c59573d6000803e3d6000fd5b50505050610c6784866112dc565b50505050505050565b6001546000906108909084906001600160a01b03168461112e565b6001546000906001600160a01b031681610ca686838661112e565b90506106d182868361112e565b6001546060908190600090610cd39088906001600160a01b03168761112e565b600154909150600090610cf0906001600160a01b031688876110a2565b60408051600180825281830190925291925060208083019080368337019050509350600084600081518110610d2157fe5b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050925080820383600081518110610d6757fe5b602002602001018181525050505094509492505050565b610d86611161565b6000546001600160a01b03908116911614610de8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600154600090610890906001600160a01b0316848461112e565b6000546001600160a01b031690565b610e70611161565b6000546001600160a01b03908116911614610ed2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6040516000906001600160a01b0383169084908381818185875af1925050503d8060008114610f1d576040519150601f19603f3d011682016040523d82523d6000602084013e610f22565b606091505b505090508061090c5760405162461bcd60e51b81526004018080602001828103825260258152602001806120d96025913960400191505060405180910390fd5b600154600090610890906001600160a01b031684846110a2565b6002546001600160a01b031681565b610f93611161565b6000546001600160a01b03908116911614610ff5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661103a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f0e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000806110af85856113cf565b6002549091506110c9906001600160a01b03168483611451565b6000815181106110d557fe5b60200260200101519150509392505050565b60025461090c908490611104906001600160a01b0316828661159e565b83611165565b6111276111178484611676565b61112187876113cf565b836116d0565b5050505050565b60008061113b85856113cf565b600254909150611155906001600160a01b031684836118ef565b6001815181106110d557fe5b3390565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1781529251825160009485949389169392918291908083835b602083106111f65780518252601f1990920191602091820191016111d7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611258576040519150601f19603f3d011682016040523d82523d6000602084013e61125d565b606091505b509150915081801561128b57508051158061128b575080806020019051602081101561128857600080fd5b50515b611127576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106113285780518252601f199092019160209182019101611309565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461138a576040519150601f19603f3d011682016040523d82523d6000602084013e61138f565b606091505b505090508061090c5760405162461bcd60e51b815260040180806020018281038252602381526020018061208b6023913960400191505060405180910390fd5b604080516002808252606080830184529260208301908036833701905050905082816000815181106113fd57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050818160018151811061142b57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505092915050565b60606002825110156114aa576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff811180156114c257600080fd5b506040519080825280602002602001820160405280156114ec578160200160208202803683370190505b509050828160018351038151811061150057fe5b60209081029190910101528151600019015b80156115965760008061154f8786600186038151811061152e57fe5b602002602001015187868151811061154257fe5b6020026020010151611a26565b9150915061157184848151811061156257fe5b60200260200101518383611af4565b84600185038151811061158057fe5b6020908102919091010152505060001901611512565b509392505050565b60008060006115ad8585611bc2565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501207fff0000000000000000000000000000000000000000000000000000000000000060688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516002808252606080830184529260208301908036833701905050905082816000815181106116a457fe5b60200260200101818152505081816001815181106116be57fe5b60200260200101818152505092915050565b60005b60018351038110156118e9576000808483815181106116ee57fe5b602002602001015185846001018151811061170557fe5b602002602001015191509150600061171d8383611bc2565b509050600087856001018151811061173157fe5b60200260200101519050600080836001600160a01b0316866001600160a01b03161461175f57826000611763565b6000835b91509150600060028a5103881061177a57886117b0565b6117b0600260009054906101000a90046001600160a01b0316878c8b600201815181106117a357fe5b602002602001015161159e565b6002549091506117ca906001600160a01b0316888861159e565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015611807576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561186f578181015183820152602001611857565b50505050905090810190601f16801561189c5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156118be57600080fd5b505af11580156118d2573d6000803e3d6000fd5b5050600190990198506116d3975050505050505050565b50505050565b6060600282511015611948576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561196057600080fd5b5060405190808252806020026020018201604052801561198a578160200160208202803683370190505b509050828160008151811061199b57fe5b60200260200101818152505060005b6001835103811015611596576000806119e0878685815181106119c957fe5b602002602001015187866001018151811061154257fe5b91509150611a028484815181106119f357fe5b60200260200101518383611ca0565b848460010181518110611a1157fe5b602090810291909101015250506001016119aa565b6000806000611a358585611bc2565b509050600080611a4688888861159e565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611a7e57600080fd5b505afa158015611a92573d6000803e3d6000fd5b505050506040513d6060811015611aa857600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614611ae2578082611ae5565b81815b90999098509650505050505050565b6000808411611b345760405162461bcd60e51b815260040180806020018281038252602c815260200180611f34602c913960400191505060405180910390fd5b600083118015611b445750600082115b611b7f5760405162461bcd60e51b8152600401808060200182810382526028815260200180611fc36028913960400191505060405180910390fd5b6000611b976103e8611b918688611d78565b90611d78565b90506000611bab6103e5611b918689611dda565b90506106d16001828481611bbb57fe5b0490611e1c565b600080826001600160a01b0316846001600160a01b03161415611c165760405162461bcd60e51b8152600401808060200182810382526025815260200180611f606025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611c36578284611c39565b83835b90925090506001600160a01b038216611c99576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000808411611ce05760405162461bcd60e51b815260040180806020018281038252602b8152602001806120ae602b913960400191505060405180910390fd5b600083118015611cf05750600082115b611d2b5760405162461bcd60e51b8152600401808060200182810382526028815260200180611fc36028913960400191505060405180910390fd5b6000611d39856103e5611d78565b90506000611d478285611d78565b90506000611d6183611d5b886103e8611d78565b90611e1c565b9050808281611d6c57fe5b04979650505050505050565b600082611d8757506000611dd4565b82820282848281611d9457fe5b0414611dd15760405162461bcd60e51b815260040180806020018281038252602181526020018061202b6021913960400191505060405180910390fd5b90505b92915050565b600061089083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e76565b600082820183811015611dd1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115611f055760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611eca578181015183820152602001611eb2565b50505050905090810190601f168015611ef75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e6956324578636573735765746843726f7373506169723a20657468546f546f6b656e20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e6956324578636573735765746843726f7373506169723a20746f6b656e546f546f6b656e20494e53554646494349454e545f494e5055545f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e6956324578636573735765746843726f7373506169723a20746f6b656e546f45746820494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54576974686472617761626c653a2077697468647261774574682063616c6c206661696c6564a164736f6c6343000706000a4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573738be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0

Deployed Bytecode

0x60806040526004361061016e5760003560e01c80635686472f116100cb5780637b9096c31161007f578063c3551e9211610059578063c3551e9214610628578063c45a015514610661578063f2fde38b1461067657610175565b80637b9096c3146105a15780638da5cb5b146105da578063a158657c146105ef57610175565b8063673c5697116100b0578063673c569714610500578063695fd99614610543578063715018a61461058c57610175565b80635686472f1461048057806360b84fba146104c757610175565b80633ccdbb28116101225780633fc8cef3116101075780633fc8cef3146103c35780634098c377146103f4578063485cc9551461044557610175565b80633ccdbb28146103415780633f934c5a1461038457610175565b80631ac8a87e116101535780631ac8a87e146101f85780631e1a7a0b14610230578063349e27971461030857610175565b80630cf5b7531461017a578063158ef93e146101cf57610175565b3661017557005b600080fd5b34801561018657600080fd5b506101bd6004803603606081101561019d57600080fd5b506001600160a01b038135811691602081013590911690604001356106a9565b60408051918252519081900360200190f35b3480156101db57600080fd5b506101e46106db565b604080519115158252519081900360200190f35b61022e6004803603606081101561020e57600080fd5b506001600160a01b038135811691602081013591604090910135166106eb565b005b34801561023c57600080fd5b5061026f6004803603606081101561025357600080fd5b506001600160a01b0381351690602081013590604001356107cf565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156102b357818101518382015260200161029b565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156102f25781810151838201526020016102da565b5050505090500194505050505060405180910390f35b34801561031457600080fd5b506101bd6004803603604081101561032b57600080fd5b506001600160a01b038135169060200135610875565b34801561034d57600080fd5b5061022e6004803603606081101561036457600080fd5b506001600160a01b03813581169160208101359160409091013516610897565b34801561039057600080fd5b5061026f600480360360608110156103a757600080fd5b506001600160a01b038135169060208101359060400135610911565b3480156103cf57600080fd5b506103d86109a2565b604080516001600160a01b039092168252519081900360200190f35b34801561040057600080fd5b5061022e600480360360a081101561041757600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608090910135166109b1565b34801561045157600080fd5b5061022e6004803603604081101561046857600080fd5b506001600160a01b0381358116916020013516610a54565b34801561048c57600080fd5b5061022e600480360360808110156104a357600080fd5b506001600160a01b0381358116916020810135916040820135916060013516610b84565b3480156104d357600080fd5b506101bd600480360360408110156104ea57600080fd5b506001600160a01b038135169060200135610c70565b34801561050c57600080fd5b506101bd6004803603606081101561052357600080fd5b506001600160a01b03813581169160208101359091169060400135610c8b565b34801561054f57600080fd5b5061026f6004803603608081101561056657600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135610cb3565b34801561059857600080fd5b5061022e610d7e565b3480156105ad57600080fd5b506101bd600480360360408110156105c457600080fd5b506001600160a01b038135169060200135610e3f565b3480156105e657600080fd5b506103d8610e59565b3480156105fb57600080fd5b5061022e6004803603604081101561061257600080fd5b50803590602001356001600160a01b0316610e68565b34801561063457600080fd5b506101bd6004803603604081101561064b57600080fd5b506001600160a01b038135169060200135610f62565b34801561066d57600080fd5b506103d8610f7c565b34801561068257600080fd5b5061022e6004803603602081101561069957600080fd5b50356001600160a01b0316610f8b565b6001546000906001600160a01b0316816106c48286866110a2565b90506106d18683836110a2565b9695505050505050565b600254600160a01b900460ff1681565b6001546001600160a01b03168360006107058383876110a2565b9050803410156107465760405162461bcd60e51b815260040180806020018281038252603e815260200180611f85603e913960400191505060405180910390fd5b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b50505050506107ba8383836110e7565b6107c7838383888861110a565b505050505050565b6040805160018082528183019092526060918291906020808301908036833701905050915060008260008151811061080357fe5b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833750506001549192508491610853915087906001600160a01b03168761112e565b038160008151811061086157fe5b602002602001018181525050935093915050565b6001546000906108909084906001600160a01b0316846110a2565b9392505050565b61089f611161565b6000546001600160a01b03908116911614610901576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61090c838284611165565b505050565b6040805160018082528183019092526060918291906020808301908036833701905050915060008260008151811061094557fe5b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050600154909150610993906001600160a01b031686856110a2565b84038160008151811061086157fe5b6001546001600160a01b031681565b6001546001600160a01b031660006109ca87838761112e565b905060006109d98388876110a2565b905080821015610a1a5760405162461bcd60e51b8152600401808060200182810382526040815260200180611feb6040913960400191505060405180910390fd5b610a258884886110e7565b610a32888488853061110a565b610a3d8388836110e7565b610a4a838883888861110a565b5050505050505050565b610a5c611161565b6000546001600160a01b03908116911614610abe576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254600160a01b900460ff1615610b1d576040805162461bcd60e51b815260206004820152600b60248201527f494e495449414c495a4544000000000000000000000000000000000000000000604482015290519081900360640190fd5b600280546001805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b0396871617909155600160a01b7fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091171691909216179055565b60015484906001600160a01b03166000610b9f83838861112e565b905084811015610be05760405162461bcd60e51b815260040180806020018281038252603f81526020018061204c603f913960400191505060405180910390fd5b610beb8383886110e7565b610bf8838388843061110a565b60015460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015610c4557600080fd5b505af1158015610c59573d6000803e3d6000fd5b50505050610c6784866112dc565b50505050505050565b6001546000906108909084906001600160a01b03168461112e565b6001546000906001600160a01b031681610ca686838661112e565b90506106d182868361112e565b6001546060908190600090610cd39088906001600160a01b03168761112e565b600154909150600090610cf0906001600160a01b031688876110a2565b60408051600180825281830190925291925060208083019080368337019050509350600084600081518110610d2157fe5b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050925080820383600081518110610d6757fe5b602002602001018181525050505094509492505050565b610d86611161565b6000546001600160a01b03908116911614610de8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600154600090610890906001600160a01b0316848461112e565b6000546001600160a01b031690565b610e70611161565b6000546001600160a01b03908116911614610ed2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6040516000906001600160a01b0383169084908381818185875af1925050503d8060008114610f1d576040519150601f19603f3d011682016040523d82523d6000602084013e610f22565b606091505b505090508061090c5760405162461bcd60e51b81526004018080602001828103825260258152602001806120d96025913960400191505060405180910390fd5b600154600090610890906001600160a01b031684846110a2565b6002546001600160a01b031681565b610f93611161565b6000546001600160a01b03908116911614610ff5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661103a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f0e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000806110af85856113cf565b6002549091506110c9906001600160a01b03168483611451565b6000815181106110d557fe5b60200260200101519150509392505050565b60025461090c908490611104906001600160a01b0316828661159e565b83611165565b6111276111178484611676565b61112187876113cf565b836116d0565b5050505050565b60008061113b85856113cf565b600254909150611155906001600160a01b031684836118ef565b6001815181106110d557fe5b3390565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1781529251825160009485949389169392918291908083835b602083106111f65780518252601f1990920191602091820191016111d7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611258576040519150601f19603f3d011682016040523d82523d6000602084013e61125d565b606091505b509150915081801561128b57508051158061128b575080806020019051602081101561128857600080fd5b50515b611127576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106113285780518252601f199092019160209182019101611309565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461138a576040519150601f19603f3d011682016040523d82523d6000602084013e61138f565b606091505b505090508061090c5760405162461bcd60e51b815260040180806020018281038252602381526020018061208b6023913960400191505060405180910390fd5b604080516002808252606080830184529260208301908036833701905050905082816000815181106113fd57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050818160018151811061142b57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505092915050565b60606002825110156114aa576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff811180156114c257600080fd5b506040519080825280602002602001820160405280156114ec578160200160208202803683370190505b509050828160018351038151811061150057fe5b60209081029190910101528151600019015b80156115965760008061154f8786600186038151811061152e57fe5b602002602001015187868151811061154257fe5b6020026020010151611a26565b9150915061157184848151811061156257fe5b60200260200101518383611af4565b84600185038151811061158057fe5b6020908102919091010152505060001901611512565b509392505050565b60008060006115ad8585611bc2565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501207fff0000000000000000000000000000000000000000000000000000000000000060688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516002808252606080830184529260208301908036833701905050905082816000815181106116a457fe5b60200260200101818152505081816001815181106116be57fe5b60200260200101818152505092915050565b60005b60018351038110156118e9576000808483815181106116ee57fe5b602002602001015185846001018151811061170557fe5b602002602001015191509150600061171d8383611bc2565b509050600087856001018151811061173157fe5b60200260200101519050600080836001600160a01b0316866001600160a01b03161461175f57826000611763565b6000835b91509150600060028a5103881061177a57886117b0565b6117b0600260009054906101000a90046001600160a01b0316878c8b600201815181106117a357fe5b602002602001015161159e565b6002549091506117ca906001600160a01b0316888861159e565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015611807576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561186f578181015183820152602001611857565b50505050905090810190601f16801561189c5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156118be57600080fd5b505af11580156118d2573d6000803e3d6000fd5b5050600190990198506116d3975050505050505050565b50505050565b6060600282511015611948576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561196057600080fd5b5060405190808252806020026020018201604052801561198a578160200160208202803683370190505b509050828160008151811061199b57fe5b60200260200101818152505060005b6001835103811015611596576000806119e0878685815181106119c957fe5b602002602001015187866001018151811061154257fe5b91509150611a028484815181106119f357fe5b60200260200101518383611ca0565b848460010181518110611a1157fe5b602090810291909101015250506001016119aa565b6000806000611a358585611bc2565b509050600080611a4688888861159e565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611a7e57600080fd5b505afa158015611a92573d6000803e3d6000fd5b505050506040513d6060811015611aa857600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614611ae2578082611ae5565b81815b90999098509650505050505050565b6000808411611b345760405162461bcd60e51b815260040180806020018281038252602c815260200180611f34602c913960400191505060405180910390fd5b600083118015611b445750600082115b611b7f5760405162461bcd60e51b8152600401808060200182810382526028815260200180611fc36028913960400191505060405180910390fd5b6000611b976103e8611b918688611d78565b90611d78565b90506000611bab6103e5611b918689611dda565b90506106d16001828481611bbb57fe5b0490611e1c565b600080826001600160a01b0316846001600160a01b03161415611c165760405162461bcd60e51b8152600401808060200182810382526025815260200180611f606025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611c36578284611c39565b83835b90925090506001600160a01b038216611c99576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000808411611ce05760405162461bcd60e51b815260040180806020018281038252602b8152602001806120ae602b913960400191505060405180910390fd5b600083118015611cf05750600082115b611d2b5760405162461bcd60e51b8152600401808060200182810382526028815260200180611fc36028913960400191505060405180910390fd5b6000611d39856103e5611d78565b90506000611d478285611d78565b90506000611d6183611d5b886103e8611d78565b90611e1c565b9050808281611d6c57fe5b04979650505050505050565b600082611d8757506000611dd4565b82820282848281611d9457fe5b0414611dd15760405162461bcd60e51b815260040180806020018281038252602181526020018061202b6021913960400191505060405180910390fd5b90505b92915050565b600061089083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e76565b600082820183811015611dd1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115611f055760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611eca578181015183820152602001611eb2565b50505050905090810190601f168015611ef75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e6956324578636573735765746843726f7373506169723a20657468546f546f6b656e20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e6956324578636573735765746843726f7373506169723a20746f6b656e546f546f6b656e20494e53554646494349454e545f494e5055545f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e6956324578636573735765746843726f7373506169723a20746f6b656e546f45746820494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54576974686472617761626c653a2077697468647261774574682063616c6c206661696c6564a164736f6c6343000706000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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