Contract 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5 11

 

Contract Overview

Balance:
0.016384000036008844 ETH

EtherValue:
$47.46 (@ $2,896.95/ETH)

Token:
Txn Hash Method
Block
From
To
Value
0x0a6fafda3eebf6227b5ab22ab66dbfdff09301fc66070dfa09d153d005e951a4External Swap122119502024-03-23 17:00:4726 days 9 hrs ago0x31313ea99ea1c45efbc3c08dd143d2499b1aa4a7 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.00018 ETH0.000020576330.145535704
0x29657d66f4da217ea5ed15e385eea3e1efd4d7eb04fb0daff328f822e068c6f5Swap117926762024-03-14 0:04:5936 days 2 hrs ago0x0a3aa4ad2f758d687ed105e8b8c20886c16d5e41 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001527217090.001000336
0x9196a6b113331d4bd157ad9eb3fc65dcbcb3dd198e98d6148eb9c615323b7ae9Swap117926752024-03-14 0:04:5736 days 2 hrs ago0xc186a2781ceabfc77218b525b3823de8aed15977 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.000153745080.001000336
0x23530e63fa41a344eb2c64b8fcc23b763ea9e9547133f4b7f60e0238bd5afe75Swap117926462024-03-14 0:03:5936 days 2 hrs ago0xf4dd1d405a28489bb371fe9a247b1a403b6cff72 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001453722170.001100328
0xa31defbca4ccae158f70e03027ff38b7b1fd520aaa720285db341345b90c63acSwap117925902024-03-14 0:02:0736 days 2 hrs ago0x8ac3adeef620665f9837604593e5d4903af078d9 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001276669080.001000318
0xbc444e4ed4eb2698ba55772a8faffd405acf1d1bbe3fc09152999427df8423bfSwap115993522024-03-09 12:40:5140 days 13 hrs ago0x5cfc00dafb73c79761b3dba2e637dc3b26b5e50e IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001407864890.001000284
0x99eea4a990154121d8a2659587f4bb6ff800b95c419a16b0f7b950523f860e80Swap115992752024-03-09 12:38:1740 days 13 hrs ago0xe3103aabf9324d83af4d262b4df77affe46cd5d4 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.000114226340.001000288
0xc07c97503ead61d3c5258457e5782e52e3343033545b7729da9a065c2c557ae1Swap115992542024-03-09 12:37:3540 days 13 hrs ago0x80fec54871b9f8cc58cc4d9604d4d8861963afd5 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001180841190.00100029
0x02dbfd86d8fccc23abea98c9ecab96bbe81bee3ab6339cfc81a68b997b08c9eaSwap115981172024-03-09 11:59:4140 days 14 hrs ago0xb0655ce6da0c16e8b70c66af69f19360cedc7811 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001061275430.001000308
0x59869aebe18fb6b7cd82d04c485692d15e28cc0e538907f0db3f7700c997c615Swap115980982024-03-09 11:59:0340 days 14 hrs ago0x75c5dc0347e74702e56fc63c325e4709bbccb8ef IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001126020490.001000301
0xdf0bc328e71dd18218fba814b5c7c87cbdb4b18ce3d00833aaf39bb5a0a1d32cSwap115980152024-03-09 11:56:1740 days 14 hrs ago0x58358616e89f6a789c112e4e2e5505344e08437d IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001200409420.001000297
0x7d428bb4f52facdccefed9c27deb9228078a81ac81b761aa0d950fdf7db546f3Swap115076992024-03-07 9:45:4542 days 16 hrs ago0xc6641f18435bf0bcf6eb1e2622c75ca07777f166 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001872120128645 ETH0.0001436385170.001000329
0x86e3d5e48536186060421e7972948a89c72a7b6b71fd44b3e2507aeba621674aSwap115065842024-03-07 9:08:3542 days 17 hrs ago0x88d1b270b543e446934c7175cc86f7c6b5952f15 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001414541254069 ETH0.0001349581470.001000289
0x425df7d95db9b83678695d0dd4f47ae4aef270354bd03ac47ba90fcae2e683ffSwap114316712024-03-05 15:31:2944 days 11 hrs ago0x5a5b858ae79fdfdeee108d42373b58d49e5f3276 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.000344 ETH0.0003378122750.001000383
0x4ac34ed9f7b65a4fd11fabeacb8282a10d5ecc2c60a1110dcfc8b546c5abf9efSwap114295052024-03-05 14:19:1744 days 12 hrs ago0xd0853b6be2577577041a6dbb879fc3fb16a54c0b IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001872735680.005803682
0x46e436bc528a15eb038023827199dd989798b7234c34010e20c9965471640f72Swap114294272024-03-05 14:16:4144 days 12 hrs ago0xd0853b6be2577577041a6dbb879fc3fb16a54c0b IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001699392 ETH0.0002282788420.005092244
0x3e2f3483d167b7899963d6b3c22ac9e364e9004603a23456db004ec8747aed08Swap114293552024-03-05 14:14:1744 days 12 hrs ago0x82484820a254c8d88ea507d5f7263011572b2754 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0002031083280.005015166
0xecdc7410ba362a61b0a5a960844c9703144c9454eed73b4e35cbc5361925b2fbSwap114293052024-03-05 14:12:3744 days 12 hrs ago0x1ea8caf5524a299dfbe7ba0d62993f373ef62f89 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0002232007920.005447271
0xef21f4eea53d57fa517a29b851f432c9e40d69f579edd50fe11bc57367d4bb7dSwap114292672024-03-05 14:11:2144 days 12 hrs ago0x82484820a254c8d88ea507d5f7263011572b2754 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.00154725 ETH0.0002236484030.005079631
0xdac71a9bba8462ec5004d464349367738c90e8775cdcdf6d5dcc732232fa7befSwap114292322024-03-05 14:10:1144 days 12 hrs ago0x1ea8caf5524a299dfbe7ba0d62993f373ef62f89 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.0013510328 ETH0.0002290076720.005099507
0xea31e62b4921a2621da643c646278ffd1a7812fd284e1c592a26ed30f49e34b1Swap114290582024-03-05 14:04:2344 days 12 hrs ago0xf50e648424468d81d32a61e7971560174e308bb7 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0001946240540.005346103
0xbcde6d20b517f45ca3e621525193372d34289c0208135e5e4e0aa61d02df3bb6Swap114289862024-03-05 14:01:5944 days 12 hrs ago0xf50e648424468d81d32a61e7971560174e308bb7 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.00110268873182 ETH0.0001839685640.005248061
0x5034bfbe4af406bf5d08150e95b2c236036425f832b469ce1a8fc07de3bb95eeSwap114287752024-03-05 13:54:5744 days 12 hrs ago0x8cbb43151c915a2bb8019d93f410a5d308c630da IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0002037389710.005605211
0xd50aa2999238c0d6446bf949a0db265f98bca27e1f21469bc19241154fe1d3f7Swap114286912024-03-05 13:52:0944 days 12 hrs ago0x8cbb43151c915a2bb8019d93f410a5d308c630da IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.0014912456 ETH0.0001828458170.005628888
0x166701a805f0bc22aa41995e7336617addee076084a4175a72dab7c784432df2Swap114286262024-03-05 13:49:5944 days 12 hrs ago0xe2d2b5f2d57adde4b58920b2a3ac569c27e4e888 IN  0x27425e9fb6a9a625e8484cfd9620851d1fa322e50 ETH0.0002025389120.005980424
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x0a6fafda3eebf6227b5ab22ab66dbfdff09301fc66070dfa09d153d005e951a4122119502024-03-23 17:00:4726 days 9 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e51inch: Aggregation Router V50.00018 ETH
0x7d428bb4f52facdccefed9c27deb9228078a81ac81b761aa0d950fdf7db546f3115076992024-03-07 9:45:4542 days 16 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.001872120128645303 ETH
0x86e3d5e48536186060421e7972948a89c72a7b6b71fd44b3e2507aeba621674a115065842024-03-07 9:08:3542 days 17 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.001414541254069235 ETH
0x425df7d95db9b83678695d0dd4f47ae4aef270354bd03ac47ba90fcae2e683ff114316712024-03-05 15:31:2944 days 11 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.000344 ETH
0x4ac34ed9f7b65a4fd11fabeacb8282a10d5ecc2c60a1110dcfc8b546c5abf9ef114295052024-03-05 14:19:1744 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50xd0853b6be2577577041a6dbb879fc3fb16a54c0b0.001697982664820221 ETH
0x4ac34ed9f7b65a4fd11fabeacb8282a10d5ecc2c60a1110dcfc8b546c5abf9ef114295052024-03-05 14:19:1744 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001697982664820221 ETH
0x46e436bc528a15eb038023827199dd989798b7234c34010e20c9965471640f72114294272024-03-05 14:16:4144 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.001699392 ETH
0x3e2f3483d167b7899963d6b3c22ac9e364e9004603a23456db004ec8747aed08114293552024-03-05 14:14:1744 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50x82484820a254c8d88ea507d5f7263011572b27540.001546116284768412 ETH
0x3e2f3483d167b7899963d6b3c22ac9e364e9004603a23456db004ec8747aed08114293552024-03-05 14:14:1744 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001546116284768412 ETH
0xecdc7410ba362a61b0a5a960844c9703144c9454eed73b4e35cbc5361925b2fb114293052024-03-05 14:12:3744 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50x1ea8caf5524a299dfbe7ba0d62993f373ef62f890.001351209286673788 ETH
0xecdc7410ba362a61b0a5a960844c9703144c9454eed73b4e35cbc5361925b2fb114293052024-03-05 14:12:3744 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001351209286673788 ETH
0xef21f4eea53d57fa517a29b851f432c9e40d69f579edd50fe11bc57367d4bb7d114292672024-03-05 14:11:2144 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.00154725 ETH
0xdac71a9bba8462ec5004d464349367738c90e8775cdcdf6d5dcc732232fa7bef114292322024-03-05 14:10:1144 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.0013510328 ETH
0xea31e62b4921a2621da643c646278ffd1a7812fd284e1c592a26ed30f49e34b1114290582024-03-05 14:04:2344 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50xf50e648424468d81d32a61e7971560174e308bb70.001097802166632727 ETH
0xea31e62b4921a2621da643c646278ffd1a7812fd284e1c592a26ed30f49e34b1114290582024-03-05 14:04:2344 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001097802166632727 ETH
0xbcde6d20b517f45ca3e621525193372d34289c0208135e5e4e0aa61d02df3bb6114289862024-03-05 14:01:5944 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.001102688731820968 ETH
0x5034bfbe4af406bf5d08150e95b2c236036425f832b469ce1a8fc07de3bb95ee114287752024-03-05 13:54:5744 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50x8cbb43151c915a2bb8019d93f410a5d308c630da0.00148828745964241 ETH
0x5034bfbe4af406bf5d08150e95b2c236036425f832b469ce1a8fc07de3bb95ee114287752024-03-05 13:54:5744 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.00148828745964241 ETH
0xd50aa2999238c0d6446bf949a0db265f98bca27e1f21469bc19241154fe1d3f7114286912024-03-05 13:52:0944 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.0014912456 ETH
0x166701a805f0bc22aa41995e7336617addee076084a4175a72dab7c784432df2114286262024-03-05 13:49:5944 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50xe2d2b5f2d57adde4b58920b2a3ac569c27e4e8880.001425244794529865 ETH
0x166701a805f0bc22aa41995e7336617addee076084a4175a72dab7c784432df2114286262024-03-05 13:49:5944 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001425244794529865 ETH
0x7e78d24b721f4d4049dd90438ef29316c6ccb327b41131d1c6adf30802f3d4e2114286212024-03-05 13:49:4944 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50x19c5acde5c33d31625f0a5f0489a290190f8a3a60.001653339619428321 ETH
0x7e78d24b721f4d4049dd90438ef29316c6ccb327b41131d1c6adf30802f3d4e2114286212024-03-05 13:49:4944 days 12 hrs ago Wrapped Ether 0x27425e9fb6a9a625e8484cfd9620851d1fa322e50.001653339619428321 ETH
0x691a6cd6a8f599c054d07aa735596c3a16c6e9e61bf38742a5ccaccf709db09b114285422024-03-05 13:47:1144 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.001659744 ETH
0x0d5be5b106253ea79fbccc4f2ef8b1e502240e9ea9faf5ad0bc2e69dd1a60bab114285422024-03-05 13:47:1144 days 12 hrs ago 0x27425e9fb6a9a625e8484cfd9620851d1fa322e5Wrapped Ether0.00142948 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WooRouterV2

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 3 of 12 : 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 4 of 12 : 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 5 of 12 : 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 6 of 12 : 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 7 of 12 : 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 8 of 12 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Wrapped ETH.
interface IWETH {
    /// @dev Deposit ETH into WETH
    function deposit() external payable;

    /// @dev Transfer WETH to receiver
    /// @param to address of WETH receiver
    /// @param value amount of WETH to transfer
    /// @return get true when succeed, else false
    function transfer(address to, uint256 value) external returns (bool);

    /// @dev Withdraw WETH to ETH
    function withdraw(uint256) external;
}

File 9 of 12 : IWooPPV2.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/// @title Woo private pool for swap.
/// @notice Use this contract to directly interfact with woo's synthetic proactive
///         marketing making pool.
/// @author woo.network
interface IWooPPV2 {
    /* ----- Events ----- */

    event Deposit(address indexed token, address indexed sender, uint256 amount);
    event Withdraw(address indexed token, address indexed receiver, uint256 amount);
    event Migrate(address indexed token, address indexed receiver, uint256 amount);
    event AdminUpdated(address indexed addr, bool flag);
    event FeeAddrUpdated(address indexed newFeeAddr);
    event WooracleUpdated(address indexed newWooracle);
    event WooSwap(
        address indexed fromToken,
        address indexed toToken,
        uint256 fromAmount,
        uint256 toAmount,
        address from,
        address indexed to,
        address rebateTo,
        uint256 swapVol,
        uint256 swapFee
    );

    /* ----- External Functions ----- */

    /// @notice The quote token address (immutable).
    /// @return address of quote token
    function quoteToken() external view returns (address);

    /// @notice Gets the pool size of the specified token (swap liquidity).
    /// @param token the token address
    /// @return the pool size
    function poolSize(address token) external view returns (uint256);

    /// @notice Query the amount to swap `fromToken` to `toToken`, without checking the pool reserve balance.
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of `fromToken` to swap
    /// @return toAmount the swapped amount of `toToken`
    function tryQuery(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view returns (uint256 toAmount);

    /// @notice Query the amount to swap `fromToken` to `toToken`, with checking the pool reserve balance.
    /// @dev tx reverts when 'toToken' balance is insufficient.
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of `fromToken` to swap
    /// @return toAmount the swapped amount of `toToken`
    function query(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view returns (uint256 toAmount);

    /// @notice Swap `fromToken` to `toToken`.
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of `fromToken` to swap
    /// @param minToAmount the minimum amount of `toToken` to receive
    /// @param to the destination address
    /// @param rebateTo the rebate address (optional, can be address ZERO)
    /// @return realToAmount the amount of toToken to receive
    function swap(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 minToAmount,
        address to,
        address rebateTo
    ) external returns (uint256 realToAmount);

    /// @notice Deposit the specified token into the liquidity pool of WooPPV2.
    /// @param token the token to deposit
    /// @param amount the deposit amount
    function deposit(address token, uint256 amount) external;
}

File 10 of 12 : IWooRouterV2.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

import "../interfaces/IWooPPV2.sol";

/// @title Woo router interface (version 2)
/// @notice functions to interface with WooFi swap
interface IWooRouterV2 {
    /* ----- Type declarations ----- */

    enum SwapType {
        WooSwap,
        DodoSwap
    }

    /* ----- Events ----- */

    event WooRouterSwap(
        SwapType swapType,
        address indexed fromToken,
        address indexed toToken,
        uint256 fromAmount,
        uint256 toAmount,
        address from,
        address indexed to,
        address rebateTo
    );

    event WooPoolChanged(address newPool);

    /* ----- Router properties ----- */

    function WETH() external view returns (address);

    function wooPool() external view returns (IWooPPV2);

    /* ----- Main query & swap APIs ----- */

    /// @notice query the amount to swap fromToken -> toToken
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of fromToken to swap
    /// @return toAmount the predicted amount to receive
    function querySwap(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view returns (uint256 toAmount);

    /// @notice query the amount to swap fromToken -> toToken,
    ///     WITHOUT checking the reserve balance; so it
    ///     always returns the quoted amount (for reference).
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of fromToken to swap
    /// @return toAmount the predicted amount to receive
    function tryQuerySwap(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view returns (uint256 toAmount);

    /// @notice Swap `fromToken` to `toToken`.
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of `fromToken` to swap
    /// @param minToAmount the minimum amount of `toToken` to receive
    /// @param to the destination address
    /// @param rebateTo the rebate address (optional, can be 0)
    /// @return realToAmount the amount of toToken to receive
    function swap(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 minToAmount,
        address payable to,
        address rebateTo
    ) external payable returns (uint256 realToAmount);

    /* ----- 3rd party DEX swap ----- */

    /// @notice swap fromToken -> toToken via an external 3rd swap
    /// @param approveTarget the contract address for token transfer approval
    /// @param swapTarget the contract address for swap
    /// @param fromToken the from token
    /// @param toToken the to token
    /// @param fromAmount the amount of fromToken to swap
    /// @param minToAmount the min amount of swapped toToken
    /// @param to the destination address
    /// @param data call data for external call
    function externalSwap(
        address approveTarget,
        address swapTarget,
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 minToAmount,
        address payable to,
        bytes calldata data
    ) external payable returns (uint256 realToAmount);
}

File 11 of 12 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

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

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

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

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

File 12 of 12 : WooRouterV2.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

import "./interfaces/IWooPPV2.sol";
import "./interfaces/IWETH.sol";
import "./interfaces/IWooRouterV2.sol";

import "./libraries/TransferHelper.sol";

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/// @title Woo Router V2 implementation.
/// @notice Router for stateless execution of swaps against Woo private pool.
contract WooRouterV2 is IWooRouterV2, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /* ----- Constant variables ----- */

    // Erc20 placeholder address for native tokens (e.g. eth, bnb, matic, etc)
    address constant ETH_PLACEHOLDER_ADDR = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    /* ----- State variables ----- */

    // Wrapper for native tokens (e.g. eth, bnb, matic, etc)
    // BSC WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
    address public immutable override WETH;

    IWooPPV2 public override wooPool;

    mapping(address => bool) public isWhitelisted;

    address public quoteToken;

    /* ----- Callback Function ----- */

    receive() external payable {
        // only accept ETH from WETH or whitelisted external swaps.
        assert(msg.sender == WETH || isWhitelisted[msg.sender]);
    }

    /* ----- Query & swap APIs ----- */

    constructor(address _weth, address _pool) {
        require(_weth != address(0), "WooRouter: weth_ZERO_ADDR");
        WETH = _weth;
        setPool(_pool);
    }

    /// @inheritdoc IWooRouterV2
    function querySwap(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view override returns (uint256 toAmount) {
        require(fromToken != address(0), "WooRouter: !fromToken");
        require(toToken != address(0), "WooRouter: !toToken");
        fromToken = (fromToken == ETH_PLACEHOLDER_ADDR) ? WETH : fromToken;
        toToken = (toToken == ETH_PLACEHOLDER_ADDR) ? WETH : toToken;
        toAmount = wooPool.query(fromToken, toToken, fromAmount);
    }

    function tryQuerySwap(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view override returns (uint256 toAmount) {
        if (fromToken == address(0) || toToken == address(0)) {
            return 0;
        }
        fromToken = (fromToken == ETH_PLACEHOLDER_ADDR) ? WETH : fromToken;
        toToken = (toToken == ETH_PLACEHOLDER_ADDR) ? WETH : toToken;
        toAmount = wooPool.tryQuery(fromToken, toToken, fromAmount);
    }

    /// @inheritdoc IWooRouterV2
    function swap(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 minToAmount,
        address payable to,
        address rebateTo
    ) external payable override nonReentrant returns (uint256 realToAmount) {
        require(fromToken != address(0), "WooRouter: !fromToken");
        require(toToken != address(0), "WooRouter: !toToken");
        require(to != address(0), "WooRouter: !to");

        bool isFromETH = fromToken == ETH_PLACEHOLDER_ADDR;
        bool isToETH = toToken == ETH_PLACEHOLDER_ADDR;
        fromToken = isFromETH ? WETH : fromToken;
        toToken = isToETH ? WETH : toToken;

        // Step 1: transfer the source tokens to WooRouter
        if (isFromETH) {
            require(fromAmount <= msg.value, "WooRouter: fromAmount_INVALID");
            IWETH(WETH).deposit{value: msg.value}();
            TransferHelper.safeTransfer(WETH, address(wooPool), fromAmount);
        } else {
            TransferHelper.safeTransferFrom(fromToken, msg.sender, address(wooPool), fromAmount);
        }

        // Step 2: swap and transfer
        if (isToETH) {
            realToAmount = wooPool.swap(fromToken, toToken, fromAmount, minToAmount, address(this), rebateTo);
            IWETH(WETH).withdraw(realToAmount);
            TransferHelper.safeTransferETH(to, realToAmount);
        } else {
            realToAmount = wooPool.swap(fromToken, toToken, fromAmount, minToAmount, to, rebateTo);
        }

        // Step 3: firing event
        emit WooRouterSwap(
            SwapType.WooSwap,
            isFromETH ? ETH_PLACEHOLDER_ADDR : fromToken,
            isToETH ? ETH_PLACEHOLDER_ADDR : toToken,
            fromAmount,
            realToAmount,
            msg.sender,
            to,
            rebateTo
        );
    }

    /// @inheritdoc IWooRouterV2
    function externalSwap(
        address approveTarget,
        address swapTarget,
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 minToAmount,
        address payable to,
        bytes calldata data
    ) external payable override nonReentrant returns (uint256 realToAmount) {
        require(approveTarget != address(0), "WooRouter: approveTarget_ADDR_ZERO");
        require(swapTarget != address(0), "WooRouter: swapTarget_ADDR_ZERO");
        require(fromToken != address(0), "WooRouter: fromToken_ADDR_ZERO");
        require(toToken != address(0), "WooRouter: toToken_ADDR_ZERO");
        require(to != address(0), "WooRouter: to_ADDR_ZERO");
        require(isWhitelisted[approveTarget], "WooRouter: APPROVE_TARGET_NOT_ALLOWED");
        require(isWhitelisted[swapTarget], "WooRouter: SWAP_TARGET_NOT_ALLOWED");

        uint256 preBalance = _generalBalanceOf(toToken, address(this));
        _internalFallbackSwap(approveTarget, swapTarget, fromToken, fromAmount, data);
        uint256 postBalance = _generalBalanceOf(toToken, address(this));

        require(preBalance <= postBalance, "WooRouter: balance_ERROR");
        realToAmount = postBalance - preBalance;
        require(realToAmount >= minToAmount && realToAmount > 0, "WooRouter: realToAmount_NOT_ENOUGH");
        _generalTransfer(toToken, to, realToAmount);

        emit WooRouterSwap(SwapType.DodoSwap, fromToken, toToken, fromAmount, realToAmount, msg.sender, to, address(0));
    }

    /* ----- Admin functions ----- */

    /// @dev Rescue the specified funds when stuck happen
    /// @param stuckToken the stuck token address
    function inCaseTokenGotStuck(address stuckToken) external onlyOwner {
        if (stuckToken == ETH_PLACEHOLDER_ADDR) {
            TransferHelper.safeTransferETH(msg.sender, address(this).balance);
        } else {
            uint256 amount = IERC20(stuckToken).balanceOf(address(this));
            TransferHelper.safeTransfer(stuckToken, msg.sender, amount);
        }
    }

    /// @dev Set wooPool from newPool
    /// @param newPool Wooracle address
    function setPool(address newPool) public onlyOwner {
        wooPool = IWooPPV2(newPool);
        quoteToken = wooPool.quoteToken();
        require(quoteToken != address(0), "WooRouter: quoteToken_ADDR_ZERO");
        emit WooPoolChanged(newPool);
    }

    /// @dev Add target address into whitelist
    /// @param target address that approved by WooRouter
    /// @param whitelisted approve to using WooRouter or not
    function setWhitelisted(address target, bool whitelisted) external onlyOwner {
        require(target != address(0), "WooRouter: target_ADDR_ZERO");
        isWhitelisted[target] = whitelisted;
    }

    /* ----- Private Function ----- */

    function _internalFallbackSwap(
        address approveTarget,
        address swapTarget,
        address fromToken,
        uint256 fromAmount,
        bytes calldata data
    ) private {
        require(isWhitelisted[approveTarget], "WooRouter: APPROVE_TARGET_NOT_ALLOWED");
        require(isWhitelisted[swapTarget], "WooRouter: SWAP_TARGET_NOT_ALLOWED");

        if (fromToken != ETH_PLACEHOLDER_ADDR) {
            TransferHelper.safeTransferFrom(fromToken, msg.sender, address(this), fromAmount);
            TransferHelper.safeApprove(fromToken, approveTarget, fromAmount);
        } else {
            require(fromAmount <= msg.value, "WooRouter: fromAmount_INVALID");
        }

        (bool success, ) = swapTarget.call{value: fromToken == ETH_PLACEHOLDER_ADDR ? fromAmount : 0}(data);
        require(success, "WooRouter: FALLBACK_SWAP_FAILED");
    }

    function _generalTransfer(
        address token,
        address payable to,
        uint256 amount
    ) private {
        if (amount > 0) {
            if (token == ETH_PLACEHOLDER_ADDR) {
                TransferHelper.safeTransferETH(to, amount);
            } else {
                TransferHelper.safeTransfer(token, to, amount);
            }
        }
    }

    function _generalBalanceOf(address token, address who) private view returns (uint256) {
        return token == ETH_PLACEHOLDER_ADDR ? who.balance : IERC20(token).balanceOf(who);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_pool","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newPool","type":"address"}],"name":"WooPoolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum IWooRouterV2.SwapType","name":"swapType","type":"uint8"},{"indexed":true,"internalType":"address","name":"fromToken","type":"address"},{"indexed":true,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"rebateTo","type":"address"}],"name":"WooRouterSwap","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"approveTarget","type":"address"},{"internalType":"address","name":"swapTarget","type":"address"},{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"minToAmount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"externalSwap","outputs":[{"internalType":"uint256","name":"realToAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"stuckToken","type":"address"}],"name":"inCaseTokenGotStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"}],"name":"querySwap","outputs":[{"internalType":"uint256","name":"toAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quoteToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPool","type":"address"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"minToAmount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"},{"internalType":"address","name":"rebateTo","type":"address"}],"name":"swap","outputs":[{"internalType":"uint256","name":"realToAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"}],"name":"tryQuerySwap","outputs":[{"internalType":"uint256","name":"toAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wooPool","outputs":[{"internalType":"contract IWooPPV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b5060405162002852380380620028528339810160408190526200003491620002c0565b6200003f33620000bf565b600180556001600160a01b0382166200009f5760405162461bcd60e51b815260206004820152601960248201527f576f6f526f757465723a20776574685f5a45524f5f414444520000000000000060448201526064015b60405180910390fd5b6001600160a01b038216608052620000b7816200010f565b50506200031d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200011962000245565b600280546001600160a01b0319166001600160a01b03831690811790915560408051630217a4b760e41b8152905163217a4b70916004808201926020929091908290030181865afa15801562000173573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001999190620002f8565b600480546001600160a01b0319166001600160a01b03929092169182179055620002065760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a2071756f7465546f6b656e5f414444525f5a45524f00604482015260640162000096565b6040516001600160a01b03821681527f4577a21bd8e55848c574b7582f8e6cc6a7cf1c1958f36a9751eab6329d656b1e9060200160405180910390a150565b6000546001600160a01b03163314620002a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000096565b565b80516001600160a01b0381168114620002bb57600080fd5b919050565b60008060408385031215620002d457600080fd5b620002df83620002a3565b9150620002ef60208401620002a3565b90509250929050565b6000602082840312156200030b57600080fd5b6200031682620002a3565b9392505050565b6080516124d46200037e6000396000818160fe015281816102f601528181610c4301528181610c7201528181610cec01528181610d7201528181610ecf015281816112230152818161127e01528181611543015261159e01526124d46000f3fe6080604052600436106100e15760003560e01c80639281aa0b1161007f578063ad5c464811610059578063ad5c4648146102e4578063e1a4e72a14610318578063e94803f414610338578063f2fde38b1461035857600080fd5b80639281aa0b146102775780639d82e12314610297578063a7394603146102b757600080fd5b80634437152a116100bb5780634437152a14610204578063715018a6146102245780637dc20382146102395780638da5cb5b1461024c57600080fd5b8063199b83fa1461014c578063217a4b70146101725780633af32abf146101c457600080fd5b36610147573373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148061013957503360009081526003602052604090205460ff165b61014557610145612104565b005b600080fd5b61015f61015a366004612155565b610378565b6040519081526020015b60405180910390f35b34801561017e57600080fd5b5060045461019f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610169565b3480156101d057600080fd5b506101f46101df366004612238565b60036020526000908152604090205460ff1681565b6040519015158152602001610169565b34801561021057600080fd5b5061014561021f366004612238565b6108cd565b34801561023057600080fd5b50610145610a6c565b61015f610247366004612255565b610a80565b34801561025857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661019f565b34801561028357600080fd5b506101456102923660046122d3565b6110e3565b3480156102a357600080fd5b5061015f6102b236600461230c565b6111a4565b3480156102c357600080fd5b5060025461019f9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102f057600080fd5b5061019f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561032457600080fd5b50610145610333366004612238565b61134e565b34801561034457600080fd5b5061015f61035336600461230c565b611442565b34801561036457600080fd5b50610145610373366004612238565b611627565b60006002600154036103d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015573ffffffffffffffffffffffffffffffffffffffff8a1661045f5760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a20617070726f76655461726765745f414444525f5a4560448201527f524f00000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff89166104c25760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a20737761705461726765745f414444525f5a45524f0060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff88166105255760405162461bcd60e51b815260206004820152601e60248201527f576f6f526f757465723a2066726f6d546f6b656e5f414444525f5a45524f000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff87166105885760405162461bcd60e51b815260206004820152601c60248201527f576f6f526f757465723a20746f546f6b656e5f414444525f5a45524f0000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff84166105eb5760405162461bcd60e51b815260206004820152601760248201527f576f6f526f757465723a20746f5f414444525f5a45524f00000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff8a1660009081526003602052604090205460ff166106865760405162461bcd60e51b815260206004820152602560248201527f576f6f526f757465723a20415050524f56455f5441524745545f4e4f545f414c60448201527f4c4f57454400000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff891660009081526003602052604090205460ff166107215760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a20535741505f5441524745545f4e4f545f414c4c4f5760448201527f454400000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b600061072d88306116c1565b905061073d8b8b8b8a88886117a6565b600061074989306116c1565b90508082111561079b5760405162461bcd60e51b815260206004820152601860248201527f576f6f526f757465723a2062616c616e63655f4552524f52000000000000000060448201526064016103c8565b6107a5828261234d565b92508683101580156107b75750600083115b6108295760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a207265616c546f416d6f756e745f4e4f545f454e4f5560448201527f474800000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b610834898785611a65565b8573ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167f27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c60018c883360006040516108b295949392919061238b565b60405180910390a45050600180559998505050505050505050565b6108d5611ac2565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604080517f217a4b70000000000000000000000000000000000000000000000000000000008152905163217a4b70916004808201926020929091908290030181865afa15801561096c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109909190612400565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169182179055610a205760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a2071756f7465546f6b656e5f414444525f5a45524f0060448201526064016103c8565b60405173ffffffffffffffffffffffffffffffffffffffff821681527f4577a21bd8e55848c574b7582f8e6cc6a7cf1c1958f36a9751eab6329d656b1e9060200160405180910390a150565b610a74611ac2565b610a7e6000611b29565b565b6000600260015403610ad45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c8565b600260015573ffffffffffffffffffffffffffffffffffffffff8716610b3c5760405162461bcd60e51b815260206004820152601560248201527f576f6f526f757465723a202166726f6d546f6b656e000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff8616610b9f5760405162461bcd60e51b815260206004820152601360248201527f576f6f526f757465723a2021746f546f6b656e0000000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff8316610c025760405162461bcd60e51b815260206004820152600e60248201527f576f6f526f757465723a2021746f00000000000000000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff87811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9081149188161481610c415788610c63565b7f00000000000000000000000000000000000000000000000000000000000000005b985080610c705787610c92565b7f00000000000000000000000000000000000000000000000000000000000000005b97508115610db65734871115610cea5760405162461bcd60e51b815260206004820152601d60248201527f576f6f526f757465723a2066726f6d416d6f756e745f494e56414c494400000060448201526064016103c8565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d5257600080fd5b505af1158015610d66573d6000803e3d6000fd5b5050600254610db193507f0000000000000000000000000000000000000000000000000000000000000000925073ffffffffffffffffffffffffffffffffffffffff16905089611b9e565b610ddd565b600254610ddd908a90339073ffffffffffffffffffffffffffffffffffffffff168a611d1a565b8015610f4f576002546040517f7dc2038200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b811660048301528a81166024830152604482018a90526064820189905230608483015286811660a483015290911690637dc203829060c4016020604051808303816000875af1158015610e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9d919061241d565b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290529093507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b158015610f2857600080fd5b505af1158015610f3c573d6000803e3d6000fd5b50505050610f4a8584611e9f565b61100e565b6002546040517f7dc2038200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b811660048301528a81166024830152604482018a905260648201899052878116608483015286811660a483015290911690637dc203829060c4016020604051808303816000875af1158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b919061241d565b92505b8473ffffffffffffffffffffffffffffffffffffffff16816110305788611046565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee5b73ffffffffffffffffffffffffffffffffffffffff1683611067578a61107d565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee5b73ffffffffffffffffffffffffffffffffffffffff167f27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c60008b88338b6040516110cb95949392919061238b565b60405180910390a45050600180559695505050505050565b6110eb611ac2565b73ffffffffffffffffffffffffffffffffffffffff821661114e5760405162461bcd60e51b815260206004820152601b60248201527f576f6f526f757465723a207461726765745f414444525f5a45524f000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600073ffffffffffffffffffffffffffffffffffffffff841615806111dd575073ffffffffffffffffffffffffffffffffffffffff8316155b156111ea57506000611347565b73ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146112215783611243565b7f00000000000000000000000000000000000000000000000000000000000000005b935073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461127c578261129e565b7f00000000000000000000000000000000000000000000000000000000000000005b6002546040517fce824f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015280841660248301526044820186905292955091169063ce824f19906064015b602060405180830381865afa158015611320573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611344919061241d565b90505b9392505050565b611356611ac2565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8216016113a05761139d3347611e9f565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa15801561140d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611431919061241d565b905061143e823383611b9e565b5050565b600073ffffffffffffffffffffffffffffffffffffffff84166114a75760405162461bcd60e51b815260206004820152601560248201527f576f6f526f757465723a202166726f6d546f6b656e000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff831661150a5760405162461bcd60e51b815260206004820152601360248201527f576f6f526f757465723a2021746f546f6b656e0000000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146115415783611563565b7f00000000000000000000000000000000000000000000000000000000000000005b935073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461159c57826115be565b7f00000000000000000000000000000000000000000000000000000000000000005b6002546040517ff58a435f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015280841660248301526044820186905292955091169063f58a435f90606401611303565b61162f611ac2565b73ffffffffffffffffffffffffffffffffffffffff81166116b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c8565b61139d81611b29565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611789576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa158015611760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611784919061241d565b611347565b5073ffffffffffffffffffffffffffffffffffffffff1631919050565b73ffffffffffffffffffffffffffffffffffffffff861660009081526003602052604090205460ff166118415760405162461bcd60e51b815260206004820152602560248201527f576f6f526f757465723a20415050524f56455f5441524745545f4e4f545f414c60448201527f4c4f57454400000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff851660009081526003602052604090205460ff166118dc5760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a20535741505f5441524745545f4e4f545f414c4c4f5760448201527f454400000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146119295761191984333086611d1a565b611924848785611f8f565b611979565b348311156119795760405162461bcd60e51b815260206004820152601d60248201527f576f6f526f757465723a2066726f6d416d6f756e745f494e56414c494400000060448201526064016103c8565b600073ffffffffffffffffffffffffffffffffffffffff80871690861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146119b75760006119b9565b845b84846040516119c9929190612436565b60006040518083038185875af1925050503d8060008114611a06576040519150601f19603f3d011682016040523d82523d6000602084013e611a0b565b606091505b5050905080611a5c5760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a2046414c4c4241434b5f535741505f4641494c45440060448201526064016103c8565b50505050505050565b8015611ab2577fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff841601611ab757611ab28282611e9f565b505050565b611ab2838383611b9e565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c8565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611c359190612446565b6000604051808303816000865af19150503d8060008114611c72576040519150601f19603f3d011682016040523d82523d6000602084013e611c77565b606091505b5091509150818015611ca1575080511580611ca1575080806020019051810190611ca19190612481565b611d135760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c65640000000000000000000000000000000000000060648201526084016103c8565b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691611db99190612446565b6000604051808303816000865af19150503d8060008114611df6576040519150601f19603f3d011682016040523d82523d6000602084013e611dfb565b606091505b5091509150818015611e25575080511580611e25575080806020019051810190611e259190612481565b611e975760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c656400000000000000000000000000000060648201526084016103c8565b505050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611ed69190612446565b60006040518083038185875af1925050503d8060008114611f13576040519150601f19603f3d011682016040523d82523d6000602084013e611f18565b606091505b5050905080611ab25760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c656400000000000000000000000060648201526084016103c8565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916120269190612446565b6000604051808303816000865af19150503d8060008114612063576040519150601f19603f3d011682016040523d82523d6000602084013e612068565b606091505b50915091508180156120925750805115806120925750808060200190518101906120929190612481565b611d135760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657248656c7065723a3a73616665417070726f76653a2061707060448201527f726f7665206661696c656400000000000000000000000000000000000000000060648201526084016103c8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461139d57600080fd5b60008060008060008060008060006101008a8c03121561217457600080fd5b893561217f81612133565b985060208a013561218f81612133565b975060408a013561219f81612133565b965060608a01356121af81612133565b955060808a0135945060a08a0135935060c08a01356121cd81612133565b925060e08a013567ffffffffffffffff808211156121ea57600080fd5b818c0191508c601f8301126121fe57600080fd5b81358181111561220d57600080fd5b8d602082850101111561221f57600080fd5b6020830194508093505050509295985092959850929598565b60006020828403121561224a57600080fd5b813561134781612133565b60008060008060008060c0878903121561226e57600080fd5b863561227981612133565b9550602087013561228981612133565b9450604087013593506060870135925060808701356122a781612133565b915060a08701356122b781612133565b809150509295509295509295565b801515811461139d57600080fd5b600080604083850312156122e657600080fd5b82356122f181612133565b91506020830135612301816122c5565b809150509250929050565b60008060006060848603121561232157600080fd5b833561232c81612133565b9250602084013561233c81612133565b929592945050506040919091013590565b600082821015612386577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500390565b60a08101600287106123c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9581526020810194909452604084019290925273ffffffffffffffffffffffffffffffffffffffff90811660608401521660809091015290565b60006020828403121561241257600080fd5b815161134781612133565b60006020828403121561242f57600080fd5b5051919050565b8183823760009101908152919050565b6000825160005b81811015612467576020818601810151858301520161244d565b81811115612476576000828501525b509190910192915050565b60006020828403121561249357600080fd5b8151611347816122c556fea26469706673582212201e880e9b0988b54f11a96ba96078032ae3ce16d239decda0aed683770f5357fe64736f6c634300080e00330000000000000000000000004200000000000000000000000000000000000006000000000000000000000000b130a49065178465931d4f887056328cea5d723f

Deployed Bytecode

0x6080604052600436106100e15760003560e01c80639281aa0b1161007f578063ad5c464811610059578063ad5c4648146102e4578063e1a4e72a14610318578063e94803f414610338578063f2fde38b1461035857600080fd5b80639281aa0b146102775780639d82e12314610297578063a7394603146102b757600080fd5b80634437152a116100bb5780634437152a14610204578063715018a6146102245780637dc20382146102395780638da5cb5b1461024c57600080fd5b8063199b83fa1461014c578063217a4b70146101725780633af32abf146101c457600080fd5b36610147573373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000420000000000000000000000000000000000000616148061013957503360009081526003602052604090205460ff165b61014557610145612104565b005b600080fd5b61015f61015a366004612155565b610378565b6040519081526020015b60405180910390f35b34801561017e57600080fd5b5060045461019f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610169565b3480156101d057600080fd5b506101f46101df366004612238565b60036020526000908152604090205460ff1681565b6040519015158152602001610169565b34801561021057600080fd5b5061014561021f366004612238565b6108cd565b34801561023057600080fd5b50610145610a6c565b61015f610247366004612255565b610a80565b34801561025857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661019f565b34801561028357600080fd5b506101456102923660046122d3565b6110e3565b3480156102a357600080fd5b5061015f6102b236600461230c565b6111a4565b3480156102c357600080fd5b5060025461019f9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102f057600080fd5b5061019f7f000000000000000000000000420000000000000000000000000000000000000681565b34801561032457600080fd5b50610145610333366004612238565b61134e565b34801561034457600080fd5b5061015f61035336600461230c565b611442565b34801561036457600080fd5b50610145610373366004612238565b611627565b60006002600154036103d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015573ffffffffffffffffffffffffffffffffffffffff8a1661045f5760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a20617070726f76655461726765745f414444525f5a4560448201527f524f00000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff89166104c25760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a20737761705461726765745f414444525f5a45524f0060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff88166105255760405162461bcd60e51b815260206004820152601e60248201527f576f6f526f757465723a2066726f6d546f6b656e5f414444525f5a45524f000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff87166105885760405162461bcd60e51b815260206004820152601c60248201527f576f6f526f757465723a20746f546f6b656e5f414444525f5a45524f0000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff84166105eb5760405162461bcd60e51b815260206004820152601760248201527f576f6f526f757465723a20746f5f414444525f5a45524f00000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff8a1660009081526003602052604090205460ff166106865760405162461bcd60e51b815260206004820152602560248201527f576f6f526f757465723a20415050524f56455f5441524745545f4e4f545f414c60448201527f4c4f57454400000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff891660009081526003602052604090205460ff166107215760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a20535741505f5441524745545f4e4f545f414c4c4f5760448201527f454400000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b600061072d88306116c1565b905061073d8b8b8b8a88886117a6565b600061074989306116c1565b90508082111561079b5760405162461bcd60e51b815260206004820152601860248201527f576f6f526f757465723a2062616c616e63655f4552524f52000000000000000060448201526064016103c8565b6107a5828261234d565b92508683101580156107b75750600083115b6108295760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a207265616c546f416d6f756e745f4e4f545f454e4f5560448201527f474800000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b610834898785611a65565b8573ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167f27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c60018c883360006040516108b295949392919061238b565b60405180910390a45050600180559998505050505050505050565b6108d5611ac2565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604080517f217a4b70000000000000000000000000000000000000000000000000000000008152905163217a4b70916004808201926020929091908290030181865afa15801561096c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109909190612400565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169182179055610a205760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a2071756f7465546f6b656e5f414444525f5a45524f0060448201526064016103c8565b60405173ffffffffffffffffffffffffffffffffffffffff821681527f4577a21bd8e55848c574b7582f8e6cc6a7cf1c1958f36a9751eab6329d656b1e9060200160405180910390a150565b610a74611ac2565b610a7e6000611b29565b565b6000600260015403610ad45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c8565b600260015573ffffffffffffffffffffffffffffffffffffffff8716610b3c5760405162461bcd60e51b815260206004820152601560248201527f576f6f526f757465723a202166726f6d546f6b656e000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff8616610b9f5760405162461bcd60e51b815260206004820152601360248201527f576f6f526f757465723a2021746f546f6b656e0000000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff8316610c025760405162461bcd60e51b815260206004820152600e60248201527f576f6f526f757465723a2021746f00000000000000000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff87811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9081149188161481610c415788610c63565b7f00000000000000000000000042000000000000000000000000000000000000065b985080610c705787610c92565b7f00000000000000000000000042000000000000000000000000000000000000065b97508115610db65734871115610cea5760405162461bcd60e51b815260206004820152601d60248201527f576f6f526f757465723a2066726f6d416d6f756e745f494e56414c494400000060448201526064016103c8565b7f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d5257600080fd5b505af1158015610d66573d6000803e3d6000fd5b5050600254610db193507f0000000000000000000000004200000000000000000000000000000000000006925073ffffffffffffffffffffffffffffffffffffffff16905089611b9e565b610ddd565b600254610ddd908a90339073ffffffffffffffffffffffffffffffffffffffff168a611d1a565b8015610f4f576002546040517f7dc2038200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b811660048301528a81166024830152604482018a90526064820189905230608483015286811660a483015290911690637dc203829060c4016020604051808303816000875af1158015610e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9d919061241d565b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290529093507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b158015610f2857600080fd5b505af1158015610f3c573d6000803e3d6000fd5b50505050610f4a8584611e9f565b61100e565b6002546040517f7dc2038200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b811660048301528a81166024830152604482018a905260648201899052878116608483015286811660a483015290911690637dc203829060c4016020604051808303816000875af1158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b919061241d565b92505b8473ffffffffffffffffffffffffffffffffffffffff16816110305788611046565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee5b73ffffffffffffffffffffffffffffffffffffffff1683611067578a61107d565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee5b73ffffffffffffffffffffffffffffffffffffffff167f27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c60008b88338b6040516110cb95949392919061238b565b60405180910390a45050600180559695505050505050565b6110eb611ac2565b73ffffffffffffffffffffffffffffffffffffffff821661114e5760405162461bcd60e51b815260206004820152601b60248201527f576f6f526f757465723a207461726765745f414444525f5a45524f000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600073ffffffffffffffffffffffffffffffffffffffff841615806111dd575073ffffffffffffffffffffffffffffffffffffffff8316155b156111ea57506000611347565b73ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146112215783611243565b7f00000000000000000000000042000000000000000000000000000000000000065b935073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461127c578261129e565b7f00000000000000000000000042000000000000000000000000000000000000065b6002546040517fce824f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015280841660248301526044820186905292955091169063ce824f19906064015b602060405180830381865afa158015611320573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611344919061241d565b90505b9392505050565b611356611ac2565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8216016113a05761139d3347611e9f565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa15801561140d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611431919061241d565b905061143e823383611b9e565b5050565b600073ffffffffffffffffffffffffffffffffffffffff84166114a75760405162461bcd60e51b815260206004820152601560248201527f576f6f526f757465723a202166726f6d546f6b656e000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff831661150a5760405162461bcd60e51b815260206004820152601360248201527f576f6f526f757465723a2021746f546f6b656e0000000000000000000000000060448201526064016103c8565b73ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146115415783611563565b7f00000000000000000000000042000000000000000000000000000000000000065b935073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461159c57826115be565b7f00000000000000000000000042000000000000000000000000000000000000065b6002546040517ff58a435f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015280841660248301526044820186905292955091169063f58a435f90606401611303565b61162f611ac2565b73ffffffffffffffffffffffffffffffffffffffff81166116b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c8565b61139d81611b29565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611789576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa158015611760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611784919061241d565b611347565b5073ffffffffffffffffffffffffffffffffffffffff1631919050565b73ffffffffffffffffffffffffffffffffffffffff861660009081526003602052604090205460ff166118415760405162461bcd60e51b815260206004820152602560248201527f576f6f526f757465723a20415050524f56455f5441524745545f4e4f545f414c60448201527f4c4f57454400000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff851660009081526003602052604090205460ff166118dc5760405162461bcd60e51b815260206004820152602260248201527f576f6f526f757465723a20535741505f5441524745545f4e4f545f414c4c4f5760448201527f454400000000000000000000000000000000000000000000000000000000000060648201526084016103c8565b73ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146119295761191984333086611d1a565b611924848785611f8f565b611979565b348311156119795760405162461bcd60e51b815260206004820152601d60248201527f576f6f526f757465723a2066726f6d416d6f756e745f494e56414c494400000060448201526064016103c8565b600073ffffffffffffffffffffffffffffffffffffffff80871690861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146119b75760006119b9565b845b84846040516119c9929190612436565b60006040518083038185875af1925050503d8060008114611a06576040519150601f19603f3d011682016040523d82523d6000602084013e611a0b565b606091505b5050905080611a5c5760405162461bcd60e51b815260206004820152601f60248201527f576f6f526f757465723a2046414c4c4241434b5f535741505f4641494c45440060448201526064016103c8565b50505050505050565b8015611ab2577fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff841601611ab757611ab28282611e9f565b505050565b611ab2838383611b9e565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c8565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611c359190612446565b6000604051808303816000865af19150503d8060008114611c72576040519150601f19603f3d011682016040523d82523d6000602084013e611c77565b606091505b5091509150818015611ca1575080511580611ca1575080806020019051810190611ca19190612481565b611d135760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c65640000000000000000000000000000000000000060648201526084016103c8565b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691611db99190612446565b6000604051808303816000865af19150503d8060008114611df6576040519150601f19603f3d011682016040523d82523d6000602084013e611dfb565b606091505b5091509150818015611e25575080511580611e25575080806020019051810190611e259190612481565b611e975760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c656400000000000000000000000000000060648201526084016103c8565b505050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611ed69190612446565b60006040518083038185875af1925050503d8060008114611f13576040519150601f19603f3d011682016040523d82523d6000602084013e611f18565b606091505b5050905080611ab25760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c656400000000000000000000000060648201526084016103c8565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916120269190612446565b6000604051808303816000865af19150503d8060008114612063576040519150601f19603f3d011682016040523d82523d6000602084013e612068565b606091505b50915091508180156120925750805115806120925750808060200190518101906120929190612481565b611d135760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657248656c7065723a3a73616665417070726f76653a2061707060448201527f726f7665206661696c656400000000000000000000000000000000000000000060648201526084016103c8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461139d57600080fd5b60008060008060008060008060006101008a8c03121561217457600080fd5b893561217f81612133565b985060208a013561218f81612133565b975060408a013561219f81612133565b965060608a01356121af81612133565b955060808a0135945060a08a0135935060c08a01356121cd81612133565b925060e08a013567ffffffffffffffff808211156121ea57600080fd5b818c0191508c601f8301126121fe57600080fd5b81358181111561220d57600080fd5b8d602082850101111561221f57600080fd5b6020830194508093505050509295985092959850929598565b60006020828403121561224a57600080fd5b813561134781612133565b60008060008060008060c0878903121561226e57600080fd5b863561227981612133565b9550602087013561228981612133565b9450604087013593506060870135925060808701356122a781612133565b915060a08701356122b781612133565b809150509295509295509295565b801515811461139d57600080fd5b600080604083850312156122e657600080fd5b82356122f181612133565b91506020830135612301816122c5565b809150509250929050565b60008060006060848603121561232157600080fd5b833561232c81612133565b9250602084013561233c81612133565b929592945050506040919091013590565b600082821015612386577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500390565b60a08101600287106123c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9581526020810194909452604084019290925273ffffffffffffffffffffffffffffffffffffffff90811660608401521660809091015290565b60006020828403121561241257600080fd5b815161134781612133565b60006020828403121561242f57600080fd5b5051919050565b8183823760009101908152919050565b6000825160005b81811015612467576020818601810151858301520161244d565b81811115612476576000828501525b509190910192915050565b60006020828403121561249357600080fd5b8151611347816122c556fea26469706673582212201e880e9b0988b54f11a96ba96078032ae3ce16d239decda0aed683770f5357fe64736f6c634300080e0033

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

0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000b130a49065178465931d4f887056328cea5d723f

-----Decoded View---------------
Arg [0] : _weth (address): 0x4200000000000000000000000000000000000006
Arg [1] : _pool (address): 0xb130a49065178465931d4f887056328CeA5D723f

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000006
Arg [1] : 000000000000000000000000b130a49065178465931d4f887056328cea5d723f


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.