ETH Price: $3,682.16 (+0.95%)
Gas: 6.41 Gwei
 
Transaction Hash
Method
Block
From
To
Swap ETH For Tok...173316872023-05-24 21:22:35593 days ago1684963355IN
0x51dE2038...c0876f849
0.25 ETH0.0131595564.50985102
Swap ETH For Tok...173316862023-05-24 21:22:23593 days ago1684963343IN
0x51dE2038...c0876f849
0.25 ETH0.0129207863.3393491
Swap ETH For Tok...172534782023-05-13 20:41:23604 days ago1684010483IN
0x51dE2038...c0876f849
0.16 ETH0.0065368134.82901049
Swap ETH For Tok...172531012023-05-13 19:23:59604 days ago1684005839IN
0x51dE2038...c0876f849
0.45 ETH0.0083706240.87556348
Swap ETH For Tok...172528482023-05-13 18:32:23604 days ago1684002743IN
0x51dE2038...c0876f849
0.012 ETH0.0073691942.46393269
Swap ETH For Tok...172513442023-05-13 13:26:47604 days ago1683984407IN
0x51dE2038...c0876f849
0.05099999 ETH0.0204416140.90605266
Swap ETH For Tok...172510672023-05-13 12:30:59604 days ago1683981059IN
0x51dE2038...c0876f849
0.55874476 ETH0.0208081340.269257
Swap ETH For Tok...172510332023-05-13 12:23:59604 days ago1683980639IN
0x51dE2038...c0876f849
0.2 ETH0.0189295137.88745284
Swap Token For E...172508132023-05-13 11:39:35604 days ago1683977975IN
0x51dE2038...c0876f849
0 ETH0.0164291639.47193962
Swap ETH For Tok...172493802023-05-13 6:47:47604 days ago1683960467IN
0x51dE2038...c0876f849
0.02 ETH0.0075905839.11564819
Swap Token For E...172489372023-05-13 5:17:35604 days ago1683955055IN
0x51dE2038...c0876f849
0 ETH0.0203185841.40532253
Swap ETH For Tok...172486532023-05-13 4:19:35604 days ago1683951575IN
0x51dE2038...c0876f849
1.65753265 ETH0.0211863540.99455966
Swap Token For E...172483952023-05-13 3:27:35604 days ago1683948455IN
0x51dE2038...c0876f849
0 ETH0.013765158.096036
Swap ETH For Tok...172483032023-05-13 3:09:11604 days ago1683947351IN
0x51dE2038...c0876f849
0.34999999 ETH0.008571844.13929349
Swap ETH For Tok...172483022023-05-13 3:08:59604 days ago1683947339IN
0x51dE2038...c0876f849
0.03538584 ETH0.0145352541.44380986
Swap ETH For Tok...172472082023-05-12 23:26:47605 days ago1683934007IN
0x51dE2038...c0876f849
0.22 ETH0.0210369742.1055195
Swap ETH For Tok...172470372023-05-12 22:52:11605 days ago1683931931IN
0x51dE2038...c0876f849
0.1 ETH0.0243819248.79108186
Swap ETH For Tok...172461282023-05-12 19:46:23605 days ago1683920783IN
0x51dE2038...c0876f849
0.027 ETH0.0160754576.95693637
Swap ETH For Tok...172459922023-05-12 19:17:47605 days ago1683919067IN
0x51dE2038...c0876f849
0.25101855 ETH0.0148309255.61507836
Swap ETH For Tok...172456392023-05-12 17:46:35605 days ago1683913595IN
0x51dE2038...c0876f849
0.28 ETH0.0024669585.06754731
Swap ETH For Tok...172444822023-05-12 13:39:23605 days ago1683898763IN
0x51dE2038...c0876f849
0.21385723 ETH0.0303982960.84222983
Swap ETH For Tok...172441942023-05-12 12:41:23605 days ago1683895283IN
0x51dE2038...c0876f849
0.29999999 ETH0.0345270569.10594465
Swap ETH For Tok...172428772023-05-12 8:14:11605 days ago1683879251IN
0x51dE2038...c0876f849
0.05 ETH0.0069570353.67832352
Swap ETH For Tok...172428462023-05-12 8:07:47605 days ago1683878867IN
0x51dE2038...c0876f849
0.05 ETH0.007608458.70407464
Swap Token For E...172427962023-05-12 7:57:47605 days ago1683878267IN
0x51dE2038...c0876f849
0 ETH0.0260898952.05985002
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
173316872023-05-24 21:22:35593 days ago1684963355
0x51dE2038...c0876f849
0.24875 ETH
173316862023-05-24 21:22:23593 days ago1684963343
0x51dE2038...c0876f849
0.24875 ETH
172534782023-05-13 20:41:23604 days ago1684010483
0x51dE2038...c0876f849
0.0004 ETH
172534782023-05-13 20:41:23604 days ago1684010483
0x51dE2038...c0876f849
0.0004 ETH
172534782023-05-13 20:41:23604 days ago1684010483
0x51dE2038...c0876f849
0.1592 ETH
172531012023-05-13 19:23:59604 days ago1684005839
0x51dE2038...c0876f849
0.001125 ETH
172531012023-05-13 19:23:59604 days ago1684005839
0x51dE2038...c0876f849
0.001125 ETH
172531012023-05-13 19:23:59604 days ago1684005839
0x51dE2038...c0876f849
0.44775 ETH
172528482023-05-13 18:32:23604 days ago1684002743
0x51dE2038...c0876f849
0.00003 ETH
172528482023-05-13 18:32:23604 days ago1684002743
0x51dE2038...c0876f849
0.00003 ETH
172528482023-05-13 18:32:23604 days ago1684002743
0x51dE2038...c0876f849
0.01194 ETH
172513442023-05-13 13:26:47604 days ago1683984407
0x51dE2038...c0876f849
0.0001275 ETH
172513442023-05-13 13:26:47604 days ago1683984407
0x51dE2038...c0876f849
0.00012749 ETH
172513442023-05-13 13:26:47604 days ago1683984407
0x51dE2038...c0876f849
0.05074499 ETH
172510672023-05-13 12:30:59604 days ago1683981059
0x51dE2038...c0876f849
0.00139686 ETH
172510672023-05-13 12:30:59604 days ago1683981059
0x51dE2038...c0876f849
0.00139686 ETH
172510672023-05-13 12:30:59604 days ago1683981059
0x51dE2038...c0876f849
0.55595104 ETH
172510332023-05-13 12:23:59604 days ago1683980639
0x51dE2038...c0876f849
0.0005 ETH
172510332023-05-13 12:23:59604 days ago1683980639
0x51dE2038...c0876f849
0.0005 ETH
172510332023-05-13 12:23:59604 days ago1683980639
0x51dE2038...c0876f849
0.199 ETH
172493802023-05-13 6:47:47604 days ago1683960467
0x51dE2038...c0876f849
0.00005 ETH
172493802023-05-13 6:47:47604 days ago1683960467
0x51dE2038...c0876f849
0.00005 ETH
172493802023-05-13 6:47:47604 days ago1683960467
0x51dE2038...c0876f849
0.0199 ETH
172486532023-05-13 4:19:35604 days ago1683951575
0x51dE2038...c0876f849
0.00414383 ETH
172486532023-05-13 4:19:35604 days ago1683951575
0x51dE2038...c0876f849
0.00414383 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SwapTokenETH

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 18 : SwapTokenETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "../SwapTokenBase.sol";

contract SwapTokenETH is SwapTokenBase {
    constructor(uint256 _fee, address _addr) SwapTokenBase(_fee, _addr) {}

    function UNISWAP_V2_ROUTER() internal pure override returns (IUniswapV2Router02) {
        return IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    }

    function UNISWAP_FACTORY() internal pure override returns (IUniswapV2Factory) {
        return IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);
    }
}

File 2 of 18 : SwapTokenBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "./interfaces/IWETH.sol";
import "./interfaces/IBeneficiaryBase.sol";

abstract contract SwapTokenBase is AccessControl {
    using SafeERC20 for IERC20;
    bytes32 public constant DEVELOPER = keccak256("DEVELOPER");
    bytes32 public constant ADMIN = keccak256("ADMIN");
    address internal constant deadAddress = 0x000000000000000000000000000000000000dEaD;
    address internal immutable WETH;
    address public immutable wallet;
    uint256 public immutable fee;

    modifier validate(address[] memory path) {
        require(path.length >= 2, "INVALID_PATH");
        _;
    }

    constructor(uint256 _fee, address _addr) {
        WETH = UNISWAP_V2_ROUTER().WETH();
        fee = _fee;
        wallet = _addr;
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN, msg.sender);
        _grantRole(DEVELOPER, msg.sender);
    }

    function VOLT() public pure virtual returns (address) {
        return 0x7db5af2B9624e1b3B4Bb69D6DeBd9aD1016A58Ac;
    }

    function UNISWAP_V2_ROUTER() internal pure virtual returns (IUniswapV2Router02);

    function UNISWAP_FACTORY() internal pure virtual returns (IUniswapV2Factory);

    function burn(uint256 _feeAmount, address[] memory _path) internal {
        address tokenIn = _path[0];
        address tokenOut = _path[_path.length - 1];
        bool whitelistIn = tokenIn == WETH ? true : IBeneficiaryBase(wallet).tokenWhitelist(tokenIn);
        bool whitelistOut = tokenOut == WETH ? true : IBeneficiaryBase(wallet).tokenWhitelist(tokenOut);
        if (whitelistIn && whitelistOut) {
            if (tokenIn == WETH) {
                _safeTransfer(wallet, _feeAmount);
            } else {
                address[] memory wethPath = _getWETHPath(_path);
                if (wethPath.length >= 2) {
                    // buy ETH and send to beneficiary to buy-back and burn 0.5% VOLT
                    UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens(
                        _feeAmount,
                        0,
                        wethPath,
                        wallet,
                        block.timestamp
                    );
                } else {
                    IERC20(tokenIn).safeTransfer(wallet, _feeAmount);
                }
            }
        } else if (whitelistOut) {
            if (tokenIn == VOLT()) {
                IERC20(tokenIn).safeTransfer(deadAddress, _feeAmount);
            } else {
                uint256 _firstFeeAmount = _feeAmount / 2;
                // burn 0.25% of input token
                IERC20(tokenIn).safeTransfer(deadAddress, _firstFeeAmount);
                uint256 _secondFeeAmount = _feeAmount - _firstFeeAmount;
                address[] memory wethPath = _getWETHPath(_path);
                if (wethPath.length >= 2) {
                    // buy ETH and send to beneficiary to buy-back and burn 0.25% VOLT
                    UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens(
                        _secondFeeAmount,
                        0,
                        wethPath,
                        wallet,
                        block.timestamp
                    );
                } else {
                    IERC20(tokenIn).safeTransfer(wallet, _secondFeeAmount);
                }
            }
        } else {
            uint256 _firstFeeAmount = _feeAmount / 2;
            uint256 _secondFeeAmount = _feeAmount - _firstFeeAmount;

            // buy 0.25% of output token and burn
            if (tokenIn == WETH) {
                UNISWAP_V2_ROUTER().swapExactETHForTokensSupportingFeeOnTransferTokens{value: _firstFeeAmount}(
                    0,
                    _path,
                    deadAddress,
                    block.timestamp
                );
                _safeTransfer(wallet, _secondFeeAmount);
            } else {
                UNISWAP_V2_ROUTER().swapExactTokensForTokensSupportingFeeOnTransferTokens(
                    _firstFeeAmount,
                    0,
                    _path,
                    deadAddress,
                    block.timestamp
                );
                address[] memory wethPath = _getWETHPath(_path);
                if (wethPath.length >= 2) {
                    // buy ETH and send to beneficiary to buy-back and burn 0.25% VOLT
                    UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens(
                        _secondFeeAmount,
                        0,
                        wethPath,
                        wallet,
                        block.timestamp
                    );
                } else {
                    IERC20(tokenIn).safeTransfer(wallet, _secondFeeAmount);
                }
            }
        }
    }

    function swapTokenForToken(
        uint256 _amountIn,
        uint256 _amountOutMin,
        address[] memory _path
    ) public validate(_path) {
        address tokenIn = _path[0];

        IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), _amountIn);
        uint256 _realAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens

        _approve(tokenIn, _realAmountIn);

        uint256 feeAmount = (_realAmountIn * fee) / 10000;
        uint256 amountInSub = _realAmountIn - feeAmount;
        UNISWAP_V2_ROUTER().swapExactTokensForTokensSupportingFeeOnTransferTokens(
            amountInSub,
            _amountOutMin,
            _path,
            msg.sender,
            block.timestamp
        );
        burn(feeAmount, _path);
    }

    function swapTokenForExactToken(
        uint256 _amountOut,
        uint256 _amountInMax,
        address[] memory _path
    ) public validate(_path) {
        address tokenIn = _path[0];

        IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), _amountInMax);
        uint256 adjustedAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens
        _approve(tokenIn, adjustedAmountIn);
        uint256 adjustedFee = (adjustedAmountIn * fee) / 10000;
        uint256[] memory amounts = UNISWAP_V2_ROUTER().swapTokensForExactTokens(
            _amountOut,
            adjustedAmountIn - adjustedFee,
            _path,
            msg.sender,
            block.timestamp
        );

        uint256 realAmountIn = amounts[0];
        uint256 feeAmount = (realAmountIn * fee) / 10000;
        uint256 refundAmount = adjustedAmountIn - realAmountIn - feeAmount;
        if (refundAmount > 0) {
            IERC20(tokenIn).safeTransfer(msg.sender, refundAmount);
        }
        burn(feeAmount, _path);
    }

    function swapTokenForETH(
        uint256 _amountIn,
        uint256 _amountOutMin,
        address[] memory _path
    ) public validate(_path) {
        address tokenIn = _path[0];

        IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), _amountIn);
        uint256 adjustedAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens

        if (tokenIn == WETH) {
            IWETH(WETH).withdraw(adjustedAmountIn);
            _safeTransfer(msg.sender, adjustedAmountIn);
        } else {
            _approve(tokenIn, adjustedAmountIn);
            uint256 feeAmount = (adjustedAmountIn * fee) / 10000;
            uint256 amountInSub = adjustedAmountIn - feeAmount;
            UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens(
                amountInSub,
                _amountOutMin,
                _path,
                msg.sender,
                block.timestamp
            );
            burn(feeAmount, _path);
        }
    }

    function swapTokenForExactETH(
        uint256 _amountOut,
        uint256 _amountInMax,
        address[] memory _path
    ) public validate(_path) {
        address tokenIn = _path[0];
        IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), _amountInMax);
        uint256 adjustedAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens

        if (tokenIn == WETH) {
            IWETH(WETH).withdraw(adjustedAmountIn);
            _safeTransfer(msg.sender, adjustedAmountIn);
        } else {
            _approve(tokenIn, adjustedAmountIn);
            uint256 adjustedFee = (adjustedAmountIn * fee) / 10000;
            uint256[] memory amounts = UNISWAP_V2_ROUTER().swapTokensForExactETH(
                _amountOut,
                adjustedAmountIn - adjustedFee,
                _path,
                msg.sender,
                block.timestamp
            );
            uint256 realAmountIn = amounts[0];
            uint256 feeAmount = (realAmountIn * fee) / 10000;
            uint256 refundAmount = adjustedAmountIn - realAmountIn - feeAmount;
            if (refundAmount > 0) {
                IERC20(tokenIn).safeTransfer(msg.sender, refundAmount);
            }
            burn(feeAmount, _path);
        }
    }

    function swapETHForToken(uint256 _amountOutMin, address[] memory _path) public payable validate(_path) {
        address tokenOut = _path[_path.length - 1];
        uint256 amountIn = msg.value;

        if (tokenOut == WETH) {
            IWETH(WETH).deposit{value: amountIn}();
            IERC20(WETH).safeTransfer(msg.sender, amountIn);
        } else {
            uint256 feeAmount = (amountIn * fee) / 10000;
            uint256 amountInSub = amountIn - feeAmount;
            UNISWAP_V2_ROUTER().swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountInSub}(
                _amountOutMin,
                _path,
                msg.sender,
                block.timestamp
            );
            burn(feeAmount, _path);
        }
    }

    function swapETHforExactToken(uint256 _amountOut, address[] memory _path) public payable validate(_path) {
        address tokenOut = _path[_path.length - 1];
        uint256 amountIn = msg.value;

        if (tokenOut == WETH) {
            IWETH(WETH).deposit{value: amountIn}();
            IERC20(WETH).safeTransfer(msg.sender, amountIn);
        } else {
            uint256 feeAmount = (amountIn * fee) / 10000;
            uint256 amountInSub = amountIn - feeAmount;
            uint256[] memory amounts = UNISWAP_V2_ROUTER().swapETHForExactTokens{value: amountInSub}(
                _amountOut,
                _path,
                msg.sender,
                block.timestamp
            );
            uint256 refund = amountInSub - amounts[0];
            if (refund > 0) {
                _safeTransfer(msg.sender, refund);
            }
            burn(feeAmount, _path);
        }
    }

    function getPair(address _tokenIn, address _tokenOut) external view returns (address) {
        return UNISWAP_FACTORY().getPair(_tokenIn, _tokenOut);
    }

    function getAmountIn(uint256 _amountOut, address[] memory _path) public view returns (uint256) {
        uint256[] memory amountsIn = UNISWAP_V2_ROUTER().getAmountsIn(_amountOut, _path);
        return amountsIn[0];
    }

    function getAmountOutMinWithFees(uint256 _amountIn, address[] memory _path) public view returns (uint256) {
        uint256 feeAmount = (_amountIn * fee) / 10000;
        uint256 amountInSub = _amountIn - feeAmount;

        uint256[] memory amountOutMins = UNISWAP_V2_ROUTER().getAmountsOut(amountInSub, _path);
        return amountOutMins[amountOutMins.length - 1];
    }

    function _getWETHPath(address[] memory _path) internal view returns (address[] memory wethPath) {
        uint256 index = 0;
        for (uint256 i = 0; i < _path.length; i++) {
            if (_path[i] == WETH) {
                index = i + 1;
                break;
            }
        }
        wethPath = new address[](index);
        for (uint256 i = 0; i < index; i++) {
            wethPath[i] = _path[i];
        }
    }

    function _safeTransfer(address _to, uint256 _amount) internal {
        (bool sent, ) = _to.call{value: _amount}("");
        require(sent, "Failed to send Ether");
    }

    function getTokenDecimals(address _addr) public view returns (uint8) {
        return IERC20Metadata(_addr).decimals();
    }

    /// @dev USDTs token implementation does not conform to the ERC20 standard
    /// first of all it requires an allowance to be set to zero before it can be set to a new value, therefore we set the allowance to zero here first
    /// secondly the return type does not conform to the ERC20 standard, therefore we ignore the return value
    function _approve(address token, uint256 amount) internal {
        (bool success, ) = token.call(
            abi.encodeWithSignature("approve(address,uint256)", address(UNISWAP_V2_ROUTER()), 0)
        );
        require(success, "Approval to zero failed");
        (success, ) = token.call(
            abi.encodeWithSignature("approve(address,uint256)", address(UNISWAP_V2_ROUTER()), amount)
        );
        require(success, "Approval failed");
    }

    receive() external payable {}
}

File 3 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 5 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 6 of 18 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 7 of 18 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 8 of 18 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 9 of 18 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256) external;
}

File 10 of 18 : IBeneficiaryBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface IBeneficiaryBase {
    function burn(uint256 _amountOutMin) external;

    function rescue(address _token) external;

    function tokenWhitelist(address _addr) external view returns (bool);
}

File 11 of 18 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 12 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 13 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 14 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 16 of 18 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 17 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 18 of 18 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEVELOPER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VOLT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"getAmountOutMinWithFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapETHForToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapETHforExactToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"uint256","name":"_amountInMax","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForExactETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"uint256","name":"_amountInMax","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForExactToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b50604051620031ad380380620031ad833981016040819052620000349162000204565b8181737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200008457600080fd5b505afa15801562000099573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000bf919062000233565b6001600160a01b0390811660805260c0839052811660a052620000e460003362000146565b620001107fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec423362000146565b6200013c7f2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d3362000146565b5050505062000258565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001e3576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b80516001600160a01b0381168114620001ff57600080fd5b919050565b600080604083850312156200021857600080fd5b825191506200022a60208401620001e7565b90509250929050565b6000602082840312156200024657600080fd5b6200025182620001e7565b9392505050565b60805160a05160c051612e4c620003616000396000818161045e015281816107350152818161080601528181610ae201528181610cc701528181610f860152818161107f015281816113c0015261161401526000818161031401528181611a4901528181611b2701528181611bf901528181611c6a01528181611cda01528181611dc501528181611e3501528181611f320152818161201c015261208c01526000818161065f015281816106ad01528181610bd501528181610c0f01528181610c8d015281816113230152818161135d0152818161157b015281816115c9015281816119f301528181611ad101528181611bbc01528181611e81015261231a0152612e4c6000f3fe6080604052600436106101795760003560e01c8063785c7cf6116100cb578063d547741f1161007f578063ea5360d511610059578063ea5360d5146104a0578063ed5fe921146104b3578063f205a042146104da57600080fd5b8063d547741f1461042c578063ddca3f431461044c578063e6a439051461048057600080fd5b80639bed9f10116100b05780639bed9f10146103d7578063a217fddf146103f7578063d263ed741461040c57600080fd5b8063785c7cf61461036157806391d148541461039357600080fd5b80632f2ff15d1161012d5780634d13ab90116101075780634d13ab90146102e2578063521eb273146103025780635b1f29421461034e57600080fd5b80632f2ff15d1461026e57806336568abe1461028e5780633c934ab3146102ae57600080fd5b806312b83f051161015e57806312b83f05146101dc578063248a9ca31461020a5780632a0acc6a1461023a57600080fd5b806301ffc9a714610185578063075f8cf7146101ba57600080fd5b3661018057005b600080fd5b34801561019157600080fd5b506101a56101a0366004612834565b6104fa565b60405190151581526020015b60405180910390f35b3480156101c657600080fd5b506101da6101d5366004612952565b610563565b005b3480156101e857600080fd5b506101fc6101f73660046129a2565b6107fb565b6040519081526020016101b1565b34801561021657600080fd5b506101fc6102253660046129e9565b60009081526020819052604090206001015490565b34801561024657600080fd5b506101fc7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b34801561027a57600080fd5b506101da610289366004612a02565b610923565b34801561029a57600080fd5b506101da6102a9366004612a02565b61094d565b3480156102ba57600080fd5b506101fc7f2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d81565b3480156102ee57600080fd5b506101da6102fd366004612952565b6109d9565b34801561030e57600080fd5b506103367f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b1565b6101da61035c3660046129a2565b610b61565b34801561036d57600080fd5b5061038161037c366004612a32565b610e0a565b60405160ff90911681526020016101b1565b34801561039f57600080fd5b506101a56103ae366004612a02565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156103e357600080fd5b506101da6103f2366004612952565b610e7d565b34801561040357600080fd5b506101fc600081565b34801561041857600080fd5b506101fc6104273660046129a2565b6110ff565b34801561043857600080fd5b506101da610447366004612a02565b6111d0565b34801561045857600080fd5b506101fc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561048c57600080fd5b5061033661049b366004612a4f565b6111f5565b6101da6104ae3660046129a2565b6112af565b3480156104bf57600080fd5b50737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac610336565b3480156104e657600080fd5b506101da6104f5366004612952565b611484565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061055d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b806002815110156105aa5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064015b60405180910390fd5b6000826000815181106105bf576105bf612a7d565b602090810291909101015190506105e16001600160a01b03821633308861166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561062357600080fd5b505afa158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b9190612a93565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561072157604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d906024015b600060405180830381600087803b1580156106fa57600080fd5b505af115801561070e573d6000803e3d6000fd5b5050505061071c33826116f6565b6107f3565b61072b8282611799565b600061271061075a7f000000000000000000000000000000000000000000000000000000000000000084612ac2565b6107649190612ae1565b905060006107728284612b03565b60405163791ac94760e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906107b49084908b908b9033904290600401612b5e565b600060405180830381600087803b1580156107ce57600080fd5b505af11580156107e2573d6000803e3d6000fd5b505050506107f082876119a5565b50505b505050505050565b60008061271061082b7f000000000000000000000000000000000000000000000000000000000000000086612ac2565b6108359190612ae1565b905060006108438286612b03565b6040517fd06ca61f000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063d06ca61f9061089b9085908990600401612b9a565b60006040518083038186803b1580156108b357600080fd5b505afa1580156108c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108ef9190810190612bb3565b905080600182516109009190612b03565b8151811061091057610910612a7d565b6020026020010151935050505092915050565b60008281526020819052604090206001015461093e816120b1565b61094883836120be565b505050565b6001600160a01b03811633146109cb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105a1565b6109d5828261215c565b5050565b80600281511015610a1b5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610a3057610a30612a7d565b60209081029190910101519050610a526001600160a01b03821633308861166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610a9457600080fd5b505afa158015610aa8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acc9190612a93565b9050610ad88282611799565b6000612710610b077f000000000000000000000000000000000000000000000000000000000000000084612ac2565b610b119190612ae1565b90506000610b1f8284612b03565b604051635c11d79560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d795906107b49084908b908b9033904290600401612b5e565b80600281511015610ba35760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b60008260018451610bb49190612b03565b81518110610bc457610bc4612a7d565b6020026020010151905060003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415610cbd577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c6857600080fd5b505af1158015610c7c573d6000803e3d6000fd5b50610cb89350506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169150339050836121db565b610e03565b6000612710610cec7f000000000000000000000000000000000000000000000000000000000000000084612ac2565b610cf69190612ae1565b90506000610d048284612b03565b6040517ffb3bdb41000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063fb3bdb41908490610d62908c908c9033904290600401612c39565b6000604051808303818588803b158015610d7b57600080fd5b505af1158015610d8f573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610db89190810190612bb3565b9050600081600081518110610dcf57610dcf612a7d565b602002602001015183610de29190612b03565b90508015610df457610df433826116f6565b610dfe84896119a5565b505050505b5050505050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610e4557600080fd5b505afa158015610e59573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d9190612c6e565b80600281511015610ebf5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610ed457610ed4612a7d565b60209081029190910101519050610ef66001600160a01b03821633308761166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610f3857600080fd5b505afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f709190612a93565b9050610f7c8282611799565b6000612710610fab7f000000000000000000000000000000000000000000000000000000000000000084612ac2565b610fb59190612ae1565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d638803dbee89610fde8587612b03565b8933426040518663ffffffff1660e01b8152600401611001959493929190612b5e565b600060405180830381600087803b15801561101b57600080fd5b505af115801561102f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110579190810190612bb3565b905060008160008151811061106e5761106e612a7d565b6020026020010151905060006127107f0000000000000000000000000000000000000000000000000000000000000000836110a99190612ac2565b6110b39190612ae1565b90506000816110c28488612b03565b6110cc9190612b03565b905080156110e8576110e86001600160a01b03881633836121db565b6110f2828a6119a5565b5050505050505050505050565b6040517f1f00ca740000000000000000000000000000000000000000000000000000000081526000908190737a250d5630b4cf539739df2c5dacb4c659f2488d90631f00ca74906111569087908790600401612b9a565b60006040518083038186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111aa9190810190612bb3565b9050806000815181106111bf576111bf612a7d565b602002602001015191505092915050565b6000828152602081905260409020600101546111eb816120b1565b610948838361215c565b6000735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152919091169063e6a439059060440160206040518083038186803b15801561127057600080fd5b505afa158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a89190612c91565b9392505050565b806002815110156112f15760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600184516113029190612b03565b8151811061131257611312612a7d565b6020026020010151905060003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156113b6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c6857600080fd5b60006127106113e57f000000000000000000000000000000000000000000000000000000000000000084612ac2565b6113ef9190612ae1565b905060006113fd8284612b03565b60405163b6f9de9560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de9590839061143f908b908b9033904290600401612c39565b6000604051808303818588803b15801561145857600080fd5b505af115801561146c573d6000803e3d6000fd5b505050505061147b82876119a5565b50505050505050565b806002815110156114c65760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b6000826000815181106114db576114db612a7d565b602090810291909101015190506114fd6001600160a01b03821633308761166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561153f57600080fd5b505afa158015611553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115779190612a93565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561160057604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d906024016106e0565b61160a8282611799565b60006127106116397f000000000000000000000000000000000000000000000000000000000000000084612ac2565b6116439190612ae1565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d634a25d94a89610fde8587612b03565b6040516001600160a01b03808516602483015283166044820152606481018290526116f09085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612224565b50505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611743576040519150601f19603f3d011682016040523d82523d6000602084013e611748565b606091505b50509050806109485760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016105a1565b60006001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526000604482015260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b1790525161180c9190612cda565b6000604051808303816000865af19150503d8060008114611849576040519150601f19603f3d011682016040523d82523d6000602084013e61184e565b606091505b505090508061189f5760405162461bcd60e51b815260206004820152601760248201527f417070726f76616c20746f207a65726f206661696c656400000000000000000060448201526064016105a1565b6001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526044810184905260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516119109190612cda565b6000604051808303816000865af19150503d806000811461194d576040519150601f19603f3d011682016040523d82523d6000602084013e611952565b606091505b505080915050806109485760405162461bcd60e51b815260206004820152600f60248201527f417070726f76616c206661696c6564000000000000000000000000000000000060448201526064016105a1565b6000816000815181106119ba576119ba612a7d565b60200260200101519050600082600184516119d59190612b03565b815181106119e5576119e5612a7d565b6020026020010151905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614611ac85760405163753d756360e01b81526001600160a01b0384811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063753d75639060240160206040518083038186803b158015611a8b57600080fd5b505afa158015611a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac39190612cf6565b611acb565b60015b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614611ba65760405163753d756360e01b81526001600160a01b0384811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063753d75639060240160206040518083038186803b158015611b6957600080fd5b505afa158015611b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba19190612cf6565b611ba9565b60015b9050818015611bb55750805b15611d05577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161415611c1e5761071c7f0000000000000000000000000000000000000000000000000000000000000000876116f6565b6000611c2986612309565b90506002815110611ccb5760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611c94908a9060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401612b5e565b600060405180830381600087803b158015611cae57600080fd5b505af1158015611cc2573d6000803e3d6000fd5b50505050611cff565b611cff6001600160a01b0386167f0000000000000000000000000000000000000000000000000000000000000000896121db565b506107f3565b8015611e62576001600160a01b038416737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac1415611d465761071c6001600160a01b03851661dead886121db565b6000611d53600288612ae1565b9050611d6b6001600160a01b03861661dead836121db565b6000611d778289612b03565b90506000611d8488612309565b90506002815110611e265760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611def90859060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401612b5e565b600060405180830381600087803b158015611e0957600080fd5b505af1158015611e1d573d6000803e3d6000fd5b50505050611e5a565b611e5a6001600160a01b0388167f0000000000000000000000000000000000000000000000000000000000000000846121db565b5050506107f3565b6000611e6f600288612ae1565b90506000611e7d8289612b03565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161415611f5c5760405163b6f9de9560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de95908490611efb906000908c9061dead904290600401612c39565b6000604051808303818588803b158015611f1457600080fd5b505af1158015611f28573d6000803e3d6000fd5b5050505050611f577f0000000000000000000000000000000000000000000000000000000000000000826116f6565b6107f0565b604051635c11d79560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d79590611f9e9085906000908c9061dead904290600401612b5e565b600060405180830381600087803b158015611fb857600080fd5b505af1158015611fcc573d6000803e3d6000fd5b505050506000611fdb88612309565b9050600281511061207d5760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac9479061204690859060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401612b5e565b600060405180830381600087803b15801561206057600080fd5b505af1158015612074573d6000803e3d6000fd5b50505050610dfe565b610dfe6001600160a01b0388167f0000000000000000000000000000000000000000000000000000000000000000846121db565b6120bb813361243d565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166109d5576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556121183390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156109d5576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0383166024820152604481018290526109489084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016116b9565b6000612279826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124bb9092919063ffffffff16565b80519091501561094857808060200190518101906122979190612cf6565b6109485760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105a1565b60606000805b835181101561238f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031684828151811061235457612354612a7d565b60200260200101516001600160a01b0316141561237d57612376816001612d18565b915061238f565b8061238781612d30565b91505061230f565b508067ffffffffffffffff8111156123a9576123a961285e565b6040519080825280602002602001820160405280156123d2578160200160208202803683370190505b50915060005b81811015612436578381815181106123f2576123f2612a7d565b602002602001015183828151811061240c5761240c612a7d565b6001600160a01b03909216602092830291909101909101528061242e81612d30565b9150506123d8565b5050919050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166109d557612479816001600160a01b031660146124d2565b6124848360206124d2565b604051602001612495929190612d4b565b60408051601f198184030181529082905262461bcd60e51b82526105a191600401612dcc565b60606124ca84846000856126b3565b949350505050565b606060006124e1836002612ac2565b6124ec906002612d18565b67ffffffffffffffff8111156125045761250461285e565b6040519080825280601f01601f19166020018201604052801561252e576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061256557612565612a7d565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106125b0576125b0612a7d565b60200101906001600160f81b031916908160001a90535060006125d4846002612ac2565b6125df906001612d18565b90505b6001811115612664577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061262057612620612a7d565b1a60f81b82828151811061263657612636612a7d565b60200101906001600160f81b031916908160001a90535060049490941c9361265d81612dff565b90506125e2565b5083156112a85760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105a1565b60608247101561272b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105a1565b6001600160a01b0385163b6127825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105a1565b600080866001600160a01b0316858760405161279e9190612cda565b60006040518083038185875af1925050503d80600081146127db576040519150601f19603f3d011682016040523d82523d6000602084013e6127e0565b606091505b50915091506127f08282866127fb565b979650505050505050565b6060831561280a5750816112a8565b82511561281a5782518084602001fd5b8160405162461bcd60e51b81526004016105a19190612dcc565b60006020828403121561284657600080fd5b81356001600160e01b0319811681146112a857600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561289d5761289d61285e565b604052919050565b600067ffffffffffffffff8211156128bf576128bf61285e565b5060051b60200190565b6001600160a01b03811681146120bb57600080fd5b600082601f8301126128ef57600080fd5b813560206129046128ff836128a5565b612874565b82815260059290921b8401810191818101908684111561292357600080fd5b8286015b8481101561294757803561293a816128c9565b8352918301918301612927565b509695505050505050565b60008060006060848603121561296757600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561298c57600080fd5b612998868287016128de565b9150509250925092565b600080604083850312156129b557600080fd5b82359150602083013567ffffffffffffffff8111156129d357600080fd5b6129df858286016128de565b9150509250929050565b6000602082840312156129fb57600080fd5b5035919050565b60008060408385031215612a1557600080fd5b823591506020830135612a27816128c9565b809150509250929050565b600060208284031215612a4457600080fd5b81356112a8816128c9565b60008060408385031215612a6257600080fd5b8235612a6d816128c9565b91506020830135612a27816128c9565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612aa557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612adc57612adc612aac565b500290565b600082612afe57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612b1557612b15612aac565b500390565b600081518084526020808501945080840160005b83811015612b535781516001600160a01b031687529582019590820190600101612b2e565b509495945050505050565b85815284602082015260a060408201526000612b7d60a0830186612b1a565b6001600160a01b0394909416606083015250608001529392505050565b8281526040602082015260006124ca6040830184612b1a565b60006020808385031215612bc657600080fd5b825167ffffffffffffffff811115612bdd57600080fd5b8301601f81018513612bee57600080fd5b8051612bfc6128ff826128a5565b81815260059190911b82018301908381019087831115612c1b57600080fd5b928401925b828410156127f057835182529284019290840190612c20565b848152608060208201526000612c526080830186612b1a565b6001600160a01b03949094166040830152506060015292915050565b600060208284031215612c8057600080fd5b815160ff811681146112a857600080fd5b600060208284031215612ca357600080fd5b81516112a8816128c9565b60005b83811015612cc9578181015183820152602001612cb1565b838111156116f05750506000910152565b60008251612cec818460208701612cae565b9190910192915050565b600060208284031215612d0857600080fd5b815180151581146112a857600080fd5b60008219821115612d2b57612d2b612aac565b500190565b6000600019821415612d4457612d44612aac565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612d83816017850160208801612cae565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612dc0816028840160208801612cae565b01602801949350505050565b6020815260008251806020840152612deb816040850160208701612cae565b601f01601f19169190910160400192915050565b600081612e0e57612e0e612aac565b50600019019056fea2646970667358221220d19178c56cfd76f4ec14577276b95a63a9c124d1ca5b80caa55176c1dd4ede1d64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000003200000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d

Deployed Bytecode

0x6080604052600436106101795760003560e01c8063785c7cf6116100cb578063d547741f1161007f578063ea5360d511610059578063ea5360d5146104a0578063ed5fe921146104b3578063f205a042146104da57600080fd5b8063d547741f1461042c578063ddca3f431461044c578063e6a439051461048057600080fd5b80639bed9f10116100b05780639bed9f10146103d7578063a217fddf146103f7578063d263ed741461040c57600080fd5b8063785c7cf61461036157806391d148541461039357600080fd5b80632f2ff15d1161012d5780634d13ab90116101075780634d13ab90146102e2578063521eb273146103025780635b1f29421461034e57600080fd5b80632f2ff15d1461026e57806336568abe1461028e5780633c934ab3146102ae57600080fd5b806312b83f051161015e57806312b83f05146101dc578063248a9ca31461020a5780632a0acc6a1461023a57600080fd5b806301ffc9a714610185578063075f8cf7146101ba57600080fd5b3661018057005b600080fd5b34801561019157600080fd5b506101a56101a0366004612834565b6104fa565b60405190151581526020015b60405180910390f35b3480156101c657600080fd5b506101da6101d5366004612952565b610563565b005b3480156101e857600080fd5b506101fc6101f73660046129a2565b6107fb565b6040519081526020016101b1565b34801561021657600080fd5b506101fc6102253660046129e9565b60009081526020819052604090206001015490565b34801561024657600080fd5b506101fc7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b34801561027a57600080fd5b506101da610289366004612a02565b610923565b34801561029a57600080fd5b506101da6102a9366004612a02565b61094d565b3480156102ba57600080fd5b506101fc7f2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d81565b3480156102ee57600080fd5b506101da6102fd366004612952565b6109d9565b34801561030e57600080fd5b506103367f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d81565b6040516001600160a01b0390911681526020016101b1565b6101da61035c3660046129a2565b610b61565b34801561036d57600080fd5b5061038161037c366004612a32565b610e0a565b60405160ff90911681526020016101b1565b34801561039f57600080fd5b506101a56103ae366004612a02565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156103e357600080fd5b506101da6103f2366004612952565b610e7d565b34801561040357600080fd5b506101fc600081565b34801561041857600080fd5b506101fc6104273660046129a2565b6110ff565b34801561043857600080fd5b506101da610447366004612a02565b6111d0565b34801561045857600080fd5b506101fc7f000000000000000000000000000000000000000000000000000000000000003281565b34801561048c57600080fd5b5061033661049b366004612a4f565b6111f5565b6101da6104ae3660046129a2565b6112af565b3480156104bf57600080fd5b50737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac610336565b3480156104e657600080fd5b506101da6104f5366004612952565b611484565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061055d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b806002815110156105aa5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064015b60405180910390fd5b6000826000815181106105bf576105bf612a7d565b602090810291909101015190506105e16001600160a01b03821633308861166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561062357600080fd5b505afa158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b9190612a93565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141561072157604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d906024015b600060405180830381600087803b1580156106fa57600080fd5b505af115801561070e573d6000803e3d6000fd5b5050505061071c33826116f6565b6107f3565b61072b8282611799565b600061271061075a7f000000000000000000000000000000000000000000000000000000000000003284612ac2565b6107649190612ae1565b905060006107728284612b03565b60405163791ac94760e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906107b49084908b908b9033904290600401612b5e565b600060405180830381600087803b1580156107ce57600080fd5b505af11580156107e2573d6000803e3d6000fd5b505050506107f082876119a5565b50505b505050505050565b60008061271061082b7f000000000000000000000000000000000000000000000000000000000000003286612ac2565b6108359190612ae1565b905060006108438286612b03565b6040517fd06ca61f000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063d06ca61f9061089b9085908990600401612b9a565b60006040518083038186803b1580156108b357600080fd5b505afa1580156108c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108ef9190810190612bb3565b905080600182516109009190612b03565b8151811061091057610910612a7d565b6020026020010151935050505092915050565b60008281526020819052604090206001015461093e816120b1565b61094883836120be565b505050565b6001600160a01b03811633146109cb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105a1565b6109d5828261215c565b5050565b80600281511015610a1b5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610a3057610a30612a7d565b60209081029190910101519050610a526001600160a01b03821633308861166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610a9457600080fd5b505afa158015610aa8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acc9190612a93565b9050610ad88282611799565b6000612710610b077f000000000000000000000000000000000000000000000000000000000000003284612ac2565b610b119190612ae1565b90506000610b1f8284612b03565b604051635c11d79560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d795906107b49084908b908b9033904290600401612b5e565b80600281511015610ba35760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b60008260018451610bb49190612b03565b81518110610bc457610bc4612a7d565b6020026020010151905060003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b03161415610cbd577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c6857600080fd5b505af1158015610c7c573d6000803e3d6000fd5b50610cb89350506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2169150339050836121db565b610e03565b6000612710610cec7f000000000000000000000000000000000000000000000000000000000000003284612ac2565b610cf69190612ae1565b90506000610d048284612b03565b6040517ffb3bdb41000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063fb3bdb41908490610d62908c908c9033904290600401612c39565b6000604051808303818588803b158015610d7b57600080fd5b505af1158015610d8f573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610db89190810190612bb3565b9050600081600081518110610dcf57610dcf612a7d565b602002602001015183610de29190612b03565b90508015610df457610df433826116f6565b610dfe84896119a5565b505050505b5050505050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610e4557600080fd5b505afa158015610e59573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d9190612c6e565b80600281511015610ebf5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610ed457610ed4612a7d565b60209081029190910101519050610ef66001600160a01b03821633308761166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610f3857600080fd5b505afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f709190612a93565b9050610f7c8282611799565b6000612710610fab7f000000000000000000000000000000000000000000000000000000000000003284612ac2565b610fb59190612ae1565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d638803dbee89610fde8587612b03565b8933426040518663ffffffff1660e01b8152600401611001959493929190612b5e565b600060405180830381600087803b15801561101b57600080fd5b505af115801561102f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110579190810190612bb3565b905060008160008151811061106e5761106e612a7d565b6020026020010151905060006127107f0000000000000000000000000000000000000000000000000000000000000032836110a99190612ac2565b6110b39190612ae1565b90506000816110c28488612b03565b6110cc9190612b03565b905080156110e8576110e86001600160a01b03881633836121db565b6110f2828a6119a5565b5050505050505050505050565b6040517f1f00ca740000000000000000000000000000000000000000000000000000000081526000908190737a250d5630b4cf539739df2c5dacb4c659f2488d90631f00ca74906111569087908790600401612b9a565b60006040518083038186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111aa9190810190612bb3565b9050806000815181106111bf576111bf612a7d565b602002602001015191505092915050565b6000828152602081905260409020600101546111eb816120b1565b610948838361215c565b6000735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152919091169063e6a439059060440160206040518083038186803b15801561127057600080fd5b505afa158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a89190612c91565b9392505050565b806002815110156112f15760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600184516113029190612b03565b8151811061131257611312612a7d565b6020026020010151905060003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b031614156113b6577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c6857600080fd5b60006127106113e57f000000000000000000000000000000000000000000000000000000000000003284612ac2565b6113ef9190612ae1565b905060006113fd8284612b03565b60405163b6f9de9560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de9590839061143f908b908b9033904290600401612c39565b6000604051808303818588803b15801561145857600080fd5b505af115801561146c573d6000803e3d6000fd5b505050505061147b82876119a5565b50505050505050565b806002815110156114c65760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b6000826000815181106114db576114db612a7d565b602090810291909101015190506114fd6001600160a01b03821633308761166c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561153f57600080fd5b505afa158015611553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115779190612a93565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141561160057604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d906024016106e0565b61160a8282611799565b60006127106116397f000000000000000000000000000000000000000000000000000000000000003284612ac2565b6116439190612ae1565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d634a25d94a89610fde8587612b03565b6040516001600160a01b03808516602483015283166044820152606481018290526116f09085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612224565b50505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611743576040519150601f19603f3d011682016040523d82523d6000602084013e611748565b606091505b50509050806109485760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016105a1565b60006001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526000604482015260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b1790525161180c9190612cda565b6000604051808303816000865af19150503d8060008114611849576040519150601f19603f3d011682016040523d82523d6000602084013e61184e565b606091505b505090508061189f5760405162461bcd60e51b815260206004820152601760248201527f417070726f76616c20746f207a65726f206661696c656400000000000000000060448201526064016105a1565b6001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526044810184905260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516119109190612cda565b6000604051808303816000865af19150503d806000811461194d576040519150601f19603f3d011682016040523d82523d6000602084013e611952565b606091505b505080915050806109485760405162461bcd60e51b815260206004820152600f60248201527f417070726f76616c206661696c6564000000000000000000000000000000000060448201526064016105a1565b6000816000815181106119ba576119ba612a7d565b60200260200101519050600082600184516119d59190612b03565b815181106119e5576119e5612a7d565b6020026020010151905060007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031614611ac85760405163753d756360e01b81526001600160a01b0384811660048301527f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d169063753d75639060240160206040518083038186803b158015611a8b57600080fd5b505afa158015611a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac39190612cf6565b611acb565b60015b905060007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031614611ba65760405163753d756360e01b81526001600160a01b0384811660048301527f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d169063753d75639060240160206040518083038186803b158015611b6957600080fd5b505afa158015611b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba19190612cf6565b611ba9565b60015b9050818015611bb55750805b15611d05577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316846001600160a01b03161415611c1e5761071c7f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d876116f6565b6000611c2986612309565b90506002815110611ccb5760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611c94908a9060009086907f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d904290600401612b5e565b600060405180830381600087803b158015611cae57600080fd5b505af1158015611cc2573d6000803e3d6000fd5b50505050611cff565b611cff6001600160a01b0386167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d896121db565b506107f3565b8015611e62576001600160a01b038416737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac1415611d465761071c6001600160a01b03851661dead886121db565b6000611d53600288612ae1565b9050611d6b6001600160a01b03861661dead836121db565b6000611d778289612b03565b90506000611d8488612309565b90506002815110611e265760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611def90859060009086907f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d904290600401612b5e565b600060405180830381600087803b158015611e0957600080fd5b505af1158015611e1d573d6000803e3d6000fd5b50505050611e5a565b611e5a6001600160a01b0388167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d846121db565b5050506107f3565b6000611e6f600288612ae1565b90506000611e7d8289612b03565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316866001600160a01b03161415611f5c5760405163b6f9de9560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de95908490611efb906000908c9061dead904290600401612c39565b6000604051808303818588803b158015611f1457600080fd5b505af1158015611f28573d6000803e3d6000fd5b5050505050611f577f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d826116f6565b6107f0565b604051635c11d79560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d79590611f9e9085906000908c9061dead904290600401612b5e565b600060405180830381600087803b158015611fb857600080fd5b505af1158015611fcc573d6000803e3d6000fd5b505050506000611fdb88612309565b9050600281511061207d5760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac9479061204690859060009086907f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d904290600401612b5e565b600060405180830381600087803b15801561206057600080fd5b505af1158015612074573d6000803e3d6000fd5b50505050610dfe565b610dfe6001600160a01b0388167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d846121db565b6120bb813361243d565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166109d5576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556121183390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156109d5576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0383166024820152604481018290526109489084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016116b9565b6000612279826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124bb9092919063ffffffff16565b80519091501561094857808060200190518101906122979190612cf6565b6109485760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105a1565b60606000805b835181101561238f577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031684828151811061235457612354612a7d565b60200260200101516001600160a01b0316141561237d57612376816001612d18565b915061238f565b8061238781612d30565b91505061230f565b508067ffffffffffffffff8111156123a9576123a961285e565b6040519080825280602002602001820160405280156123d2578160200160208202803683370190505b50915060005b81811015612436578381815181106123f2576123f2612a7d565b602002602001015183828151811061240c5761240c612a7d565b6001600160a01b03909216602092830291909101909101528061242e81612d30565b9150506123d8565b5050919050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166109d557612479816001600160a01b031660146124d2565b6124848360206124d2565b604051602001612495929190612d4b565b60408051601f198184030181529082905262461bcd60e51b82526105a191600401612dcc565b60606124ca84846000856126b3565b949350505050565b606060006124e1836002612ac2565b6124ec906002612d18565b67ffffffffffffffff8111156125045761250461285e565b6040519080825280601f01601f19166020018201604052801561252e576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061256557612565612a7d565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106125b0576125b0612a7d565b60200101906001600160f81b031916908160001a90535060006125d4846002612ac2565b6125df906001612d18565b90505b6001811115612664577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061262057612620612a7d565b1a60f81b82828151811061263657612636612a7d565b60200101906001600160f81b031916908160001a90535060049490941c9361265d81612dff565b90506125e2565b5083156112a85760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105a1565b60608247101561272b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105a1565b6001600160a01b0385163b6127825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105a1565b600080866001600160a01b0316858760405161279e9190612cda565b60006040518083038185875af1925050503d80600081146127db576040519150601f19603f3d011682016040523d82523d6000602084013e6127e0565b606091505b50915091506127f08282866127fb565b979650505050505050565b6060831561280a5750816112a8565b82511561281a5782518084602001fd5b8160405162461bcd60e51b81526004016105a19190612dcc565b60006020828403121561284657600080fd5b81356001600160e01b0319811681146112a857600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561289d5761289d61285e565b604052919050565b600067ffffffffffffffff8211156128bf576128bf61285e565b5060051b60200190565b6001600160a01b03811681146120bb57600080fd5b600082601f8301126128ef57600080fd5b813560206129046128ff836128a5565b612874565b82815260059290921b8401810191818101908684111561292357600080fd5b8286015b8481101561294757803561293a816128c9565b8352918301918301612927565b509695505050505050565b60008060006060848603121561296757600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561298c57600080fd5b612998868287016128de565b9150509250925092565b600080604083850312156129b557600080fd5b82359150602083013567ffffffffffffffff8111156129d357600080fd5b6129df858286016128de565b9150509250929050565b6000602082840312156129fb57600080fd5b5035919050565b60008060408385031215612a1557600080fd5b823591506020830135612a27816128c9565b809150509250929050565b600060208284031215612a4457600080fd5b81356112a8816128c9565b60008060408385031215612a6257600080fd5b8235612a6d816128c9565b91506020830135612a27816128c9565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612aa557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612adc57612adc612aac565b500290565b600082612afe57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612b1557612b15612aac565b500390565b600081518084526020808501945080840160005b83811015612b535781516001600160a01b031687529582019590820190600101612b2e565b509495945050505050565b85815284602082015260a060408201526000612b7d60a0830186612b1a565b6001600160a01b0394909416606083015250608001529392505050565b8281526040602082015260006124ca6040830184612b1a565b60006020808385031215612bc657600080fd5b825167ffffffffffffffff811115612bdd57600080fd5b8301601f81018513612bee57600080fd5b8051612bfc6128ff826128a5565b81815260059190911b82018301908381019087831115612c1b57600080fd5b928401925b828410156127f057835182529284019290840190612c20565b848152608060208201526000612c526080830186612b1a565b6001600160a01b03949094166040830152506060015292915050565b600060208284031215612c8057600080fd5b815160ff811681146112a857600080fd5b600060208284031215612ca357600080fd5b81516112a8816128c9565b60005b83811015612cc9578181015183820152602001612cb1565b838111156116f05750506000910152565b60008251612cec818460208701612cae565b9190910192915050565b600060208284031215612d0857600080fd5b815180151581146112a857600080fd5b60008219821115612d2b57612d2b612aac565b500190565b6000600019821415612d4457612d44612aac565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612d83816017850160208801612cae565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612dc0816028840160208801612cae565b01602801949350505050565b6020815260008251806020840152612deb816040850160208701612cae565b601f01601f19169190910160400192915050565b600081612e0e57612e0e612aac565b50600019019056fea2646970667358221220d19178c56cfd76f4ec14577276b95a63a9c124d1ca5b80caa55176c1dd4ede1d64736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000003200000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d

-----Decoded View---------------
Arg [0] : _fee (uint256): 50
Arg [1] : _addr (address): 0x33771dF3Ca1ca26D7eff1D0B927de09903046A5d

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [1] : 00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d


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.