Contract 0x44b288a8258d3bda04ccdb5d06c72a4dcd295700

Contract Overview

Balance:
102.392758132921143599 MOVR

MOVR Value:
$660.13 (@ $6.45/MOVR)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd063030c140b3d70f1672bae7e911155f0929e63a076db87e5d31d1665471dfeExecute Meta Tra...43808642023-06-03 19:20:2414 hrs 27 mins ago0x7b031f4da991b412734b46877486088a385c2912 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00039929875
0xa27734bd9ac4d38fde344ee9cf764e440f5b001bfc7796bf415fc73f28ec5665Execute Meta Tra...43504302023-05-30 12:12:124 days 21 hrs ago0x9bc6af5583b5278f3c50ed238e5c0fe8c126eb36 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00029522625
0xfd2bfb4a570860650b5deb8a89fcc7eeec74f084e1693ae56a0c15578bcfee3aExecute Meta Tra...43339792023-05-28 4:26:307 days 5 hrs ago0x2ea96239e348e28c0a2edf22aaacc547c2ebce55 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000374335
0xe23d6e2d5fba09f2bc5c422477141fe2c19dd3598e72613b2a0e832cce19472dExecute Meta Tra...43154742023-05-25 13:39:549 days 20 hrs ago0x0a57012d1378a8a25e03dd1d66215557458bb241 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00033735
0xd060010a3255b5ed42aac623ea214d55512b95acfe0331cd248edbaea56df67aExecute Meta Tra...42496552023-05-15 23:29:3019 days 10 hrs ago0x2ea96239e348e28c0a2edf22aaacc547c2ebce55 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00004518625
0x5b76eac665ecff81f21ddd65d9e6b0d8f226b2058e3a8b2dde346daa3cacddacExecute Meta Tra...42496552023-05-15 23:29:3019 days 10 hrs ago0xb1fb216d94a6409308aa919d1aafc7feb13a345b IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000295215
0x632738fb4bafafa120bc0a4918bc6511b60923f6399c721aad3e4d5c40f44999Execute Meta Tra...42494992023-05-15 22:54:5419 days 10 hrs ago0xe84cb8e785f0e6b37663f00ac0d76f14753b622f IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00033790375
0x2682f0bc7eabe64cd08cb8769b3f6cf9238bbe4f220d019c70954f00bb6dc30cExecute Meta Tra...42455712023-05-15 9:00:4220 days 47 mins ago0x0a57012d1378a8a25e03dd1d66215557458bb241 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00033735
0x4b79f6c918de856d6d008810ce8b879b9961a64e8aba078209c15ddb0d0e4226Execute Meta Tra...42424072023-05-14 21:38:5420 days 12 hrs ago0x7208deb6f9e75dab52a6e8ecb872fc32d3afbde8 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00027871125
0x07741b1cd65685b434afb85f8da845811a2f4e36f850c00bc835a6e3d93f86aaExecute Meta Tra...42423652023-05-14 21:29:3620 days 12 hrs ago0x7b031f4da991b412734b46877486088a385c2912 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00027874
0xb63e1b0069574d70759d63da1f46e18068ef71b8118f39983596545525faec03Execute Meta Tra...42423362023-05-14 21:23:1320 days 12 hrs ago0xf0584bbeda83798a8680d145c1b5a805f9659df1 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00031292375
0xa892e58a682861a9524c5a5d7a98aa97c688ae4ebde5ab4c67256c9f7c7396a0Execute Meta Tra...42167272023-05-11 2:01:5424 days 7 hrs ago0x2ea96239e348e28c0a2edf22aaacc547c2ebce55 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00033739375
0x4b9145cd126904c02d5a72721e2bbcafa9b194cedb15f2bb8f84b2d5e80a094dExecute Meta Tra...41967492023-05-08 3:40:2427 days 6 hrs ago0x0a57012d1378a8a25e03dd1d66215557458bb241 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000337405
0xc671415e51359f1956aebc0de079f8b89afc589d8255206e0101daa5b85aa041Execute Meta Tra...41683372023-05-03 22:40:4831 days 11 hrs ago0x0a57012d1378a8a25e03dd1d66215557458bb241 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000278205
0x5ceb13f6b40b80c07dd15f283ff0c97b02cda5a0c5c0c397adde050c907b77b6Execute Meta Tra...41664702023-05-03 16:02:4231 days 17 hrs ago0x7b031f4da991b412734b46877486088a385c2912 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000312405
0xfde077e9f94a8518f162639c57d816c439673972d7de22f6051fd221452affbbExecute Meta Tra...41619592023-05-03 0:12:3632 days 9 hrs ago0xf0584bbeda83798a8680d145c1b5a805f9659df1 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00034795625
0xdbfb8c639b81908a8aee3f6dc4f2693c0f7054b2f081583d6c44f32bdf473985Execute Meta Tra...41534552023-05-01 18:23:4833 days 15 hrs ago0xf0584bbeda83798a8680d145c1b5a805f9659df1 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00033737
0x47fd376f6cdbfdcac738a5068e3424174dc193a4be1cc675cbc4d2260a8e61dcExecute Meta Tra...41282732023-04-28 1:26:1837 days 8 hrs ago0xf0584bbeda83798a8680d145c1b5a805f9659df1 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00035126875
0x496056edcd70ab0214c334332c3e2f6ee7b8372a0464baddd1afd04882fd026bExecute Meta Tra...41266522023-04-27 19:30:3637 days 14 hrs ago0x9d9b19b6bf385d50b1895b66328b8aa95cdbd460 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00033735
0x65aab8cc68cb575e09308673fb98099477c092aa0655101e0dd3c984751add81Execute Meta Tra...41233582023-04-27 7:50:3038 days 1 hr ago0x0a57012d1378a8a25e03dd1d66215557458bb241 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.0002829025
0x33c426b0f6dfd71cfd1cabb716c8018e24f00ef8ce53b318146c0b42ab61b0a1Execute Meta Tra...41148872023-04-26 1:27:5439 days 8 hrs ago0x9bc6af5583b5278f3c50ed238e5c0fe8c126eb36 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00031237
0x5a022702158f6bb516e0b6c54f938bc90ce62dbf6e718c374c73bfa79a92f2e3Execute Meta Tra...41115972023-04-25 13:59:3039 days 19 hrs ago0x2ea96239e348e28c0a2edf22aaacc547c2ebce55 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000278205
0x931abe9afbedc81a56d9d24c2e11147f5ba20b7f74a6c4a8c223674cd6a6c15aExecute Meta Tra...41075032023-04-24 23:49:5440 days 9 hrs ago0x327d372f9b1d7ada2565c777b51f6f73b7b9279a IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.0003373625
0x03c8ba2a642da1437a9f58d49b38450b20f044263901946bb49e9e6589945003Execute Meta Tra...41037772023-04-24 11:03:5440 days 22 hrs ago0x0a57012d1378a8a25e03dd1d66215557458bb241 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.000312405
0x76bbd7e70c3e639055940e4f47346f2d7f0b3b1adf2b0b8631d5cedcfe1f3759Execute Meta Tra...40607152023-04-18 7:00:1847 days 2 hrs ago0x9bc6af5583b5278f3c50ed238e5c0fe8c126eb36 IN  0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000 MOVR0.00037845125
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd063030c140b3d70f1672bae7e911155f0929e63a076db87e5d31d1665471dfe43808642023-06-03 19:20:2414 hrs 27 mins ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000xf5209ba88e7eea21319bf6025486e40586f1f3b90.009358000589366046 MOVR
0xd063030c140b3d70f1672bae7e911155f0929e63a076db87e5d31d1665471dfe43808642023-06-03 19:20:2414 hrs 27 mins ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.009452525847844491 MOVR
0xa27734bd9ac4d38fde344ee9cf764e440f5b001bfc7796bf415fc73f28ec566543504302023-05-30 12:12:124 days 21 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000xfb09da501a1939959daefa9dbdf196007a9befa40.0099494999961419 MOVR
0xa27734bd9ac4d38fde344ee9cf764e440f5b001bfc7796bf415fc73f28ec566543504302023-05-30 12:12:124 days 21 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.01004999999610293 MOVR
0xfd2bfb4a570860650b5deb8a89fcc7eeec74f084e1693ae56a0c15578bcfee3a43339792023-05-28 4:26:307 days 5 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x5a1bd4cd5981cc5ece075ff1978f22684b7c333c0.151883472051699777 MOVR
0xfd2bfb4a570860650b5deb8a89fcc7eeec74f084e1693ae56a0c15578bcfee3a43339792023-05-28 4:26:307 days 5 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.153417648537070482 MOVR
0xe23d6e2d5fba09f2bc5c422477141fe2c19dd3598e72613b2a0e832cce19472d43154742023-05-25 13:39:549 days 20 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x9c7a3e3efd0cec787c432535f27de6c755fb48702.526435319999237056 MOVR
0xe23d6e2d5fba09f2bc5c422477141fe2c19dd3598e72613b2a0e832cce19472d43154742023-05-25 13:39:549 days 20 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957002.551954868686098037 MOVR
0x5b76eac665ecff81f21ddd65d9e6b0d8f226b2058e3a8b2dde346daa3cacddac42496552023-05-15 23:29:3019 days 10 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000xfb09da501a1939959daefa9dbdf196007a9befa40.035722930200679872 MOVR
0x5b76eac665ecff81f21ddd65d9e6b0d8f226b2058e3a8b2dde346daa3cacddac42496552023-05-15 23:29:3019 days 10 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.036083767879474619 MOVR
0x632738fb4bafafa120bc0a4918bc6511b60923f6399c721aad3e4d5c40f4499942494992023-05-15 22:54:5419 days 10 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x92b449a7bcbd316834464f03c209301d22c8ad810.299239398559069001 MOVR
0x632738fb4bafafa120bc0a4918bc6511b60923f6399c721aad3e4d5c40f4499942494992023-05-15 22:54:5419 days 10 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.302262018746534345 MOVR
0x2682f0bc7eabe64cd08cb8769b3f6cf9238bbe4f220d019c70954f00bb6dc30c42455712023-05-15 9:00:4220 days 47 mins ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x2c6820974935ca221cd6a1ee3942da636a4edb905.595625649125194302 MOVR
0x2682f0bc7eabe64cd08cb8769b3f6cf9238bbe4f220d019c70954f00bb6dc30c42455712023-05-15 9:00:4220 days 47 mins ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957005.652147120328479093 MOVR
0x4b79f6c918de856d6d008810ce8b879b9961a64e8aba078209c15ddb0d0e422642424072023-05-14 21:38:5420 days 12 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x9fc5a5f830c4117245815fc111d1e919244ffbc10.048419511891168974 MOVR
0x4b79f6c918de856d6d008810ce8b879b9961a64e8aba078209c15ddb0d0e422642424072023-05-14 21:38:5420 days 12 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.048908597869867651 MOVR
0x07741b1cd65685b434afb85f8da845811a2f4e36f850c00bc835a6e3d93f86aa42423652023-05-14 21:29:3620 days 12 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x9fc5a5f830c4117245815fc111d1e919244ffbc1418.033658793678362698 MOVR
0x07741b1cd65685b434afb85f8da845811a2f4e36f850c00bc835a6e3d93f86aa42423652023-05-14 21:29:3620 days 12 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd295700422.256221003715517877 MOVR
0xb63e1b0069574d70759d63da1f46e18068ef71b8118f39983596545525faec0342423362023-05-14 21:23:1320 days 12 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x9fc5a5f830c4117245815fc111d1e919244ffbc11.518008218205869131 MOVR
0xb63e1b0069574d70759d63da1f46e18068ef71b8118f39983596545525faec0342423362023-05-14 21:23:1320 days 12 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957001.533341634551382961 MOVR
0xa892e58a682861a9524c5a5d7a98aa97c688ae4ebde5ab4c67256c9f7c7396a042167272023-05-11 2:01:5424 days 7 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000x5946b31e3e3797614c696d1cb1154e52bd24c4e90.075140264484323518 MOVR
0xa892e58a682861a9524c5a5d7a98aa97c688ae4ebde5ab4c67256c9f7c7396a042167272023-05-11 2:01:5424 days 7 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000.075899257054872241 MOVR
0x4b9145cd126904c02d5a72721e2bbcafa9b194cedb15f2bb8f84b2d5e80a094d41967492023-05-08 3:40:2427 days 6 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000xff1153a6809fc384983963721b751b0df822e2461.485944286457917963 MOVR
0x4b9145cd126904c02d5a72721e2bbcafa9b194cedb15f2bb8f84b2d5e80a094d41967492023-05-08 3:40:2427 days 6 hrs ago Solarbeam: Solar Router 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957001.50095382470496764 MOVR
0xc671415e51359f1956aebc0de079f8b89afc589d8255206e0101daa5b85aa04141683372023-05-03 22:40:4831 days 11 hrs ago 0x44b288a8258d3bda04ccdb5d06c72a4dcd2957000xf150b338887af61c659a0e92eff240f8672d4d210.745658466950485497 MOVR
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GasSwap

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 10 : GasSwap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./EIP712MetaTransaction.sol";
import "./ISolarRouter.sol";
import "./IToken.sol";

contract GasSwap is Ownable, EIP712MetaTransaction("GasSwap", "2") {
    address public immutable WMOVR = 0x98878B06940aE243284CA214f92Bb71a2b032B8A;

    struct Transformation {
        uint32 _uint32;
        bytes _bytes;
    }

    ISolarRouter public solarRouter;
    address public feeAddress;
    uint256 public feePercent = 100; //1%

    mapping(address => bool) public tokenWhitelist;

    constructor(address router) {
        solarRouter = ISolarRouter(router);
    }

    receive() external payable {
        require(Address.isContract(msgSender()), "REVERT_EOA_DEPOSIT");
    }

    function whitelistToken(address tokenAddress, bool whitelisted)
        external
        onlyOwner
    {
        require(Address.isContract(tokenAddress), "NO_CONTRACT_AT_ADDRESS");
        tokenWhitelist[tokenAddress] = whitelisted;
    }

    function changeFeePercent(uint256 newFeePercent) external onlyOwner {
        require(feePercent >= 0 && feePercent < 10000, "INVALID_FEE_PERCENT");
        feePercent = newFeePercent;
    }

    function changeFeeAddress(address newFeeAddress) external onlyOwner {
        feeAddress = newFeeAddress;
    }

    function changeRouter(address newTarget) external onlyOwner {
        require(Address.isContract(newTarget), "NO_CONTRACT_AT_ADDRESS");
        solarRouter = ISolarRouter(newTarget);
    }

    function withdrawToken(IToken token, uint256 amount) external onlyOwner {
        token.transfer(msg.sender, amount);
    }

    // Transfer ETH held by this contract to the sender/owner.
    function withdrawETH(uint256 amount) external onlyOwner {
        payable(msg.sender).transfer(amount);
    }

    // Swaps ERC20->MOVR tokens
    function swap(bytes calldata swapCallData) external returns (uint256) {
        (
            uint256 amountIn,
            uint256 amountOutMin,
            address[] memory path,
            ,
            uint256 deadline,
            uint8 v,
            bytes32 r,
            bytes32 s
        ) = abi.decode(
                swapCallData,
                (
                    uint256,
                    uint256,
                    address[],
                    address,
                    uint256,
                    uint8,
                    bytes32,
                    bytes32
                )
            );

        require(path[path.length - 1] == WMOVR, "INVALID_OUTPUT_TOKEN");

        require(tokenWhitelist[path[0]] == true, "INVALID_INPUT_TOKEN");

        IToken sellToken = IToken(path[0]);

        sellToken.permit(
            msgSender(),
            address(this),
            amountIn,
            deadline,
            v,
            r,
            s
        );

        sellToken.transferFrom(msgSender(), address(this), amountIn);

        uint256 beforeSwapBalance = address(this).balance;

        sellToken.approve(address(solarRouter), amountIn);

        solarRouter.swapExactTokensForETH(
            amountIn,
            amountOutMin,
            path,
            address(this),
            deadline
        );

        uint256 tradeBalance = address(this).balance - beforeSwapBalance;
        uint256 amount = ((tradeBalance * 10000) -
            (tradeBalance * feePercent)) / 10000;
        uint256 fee = tradeBalance - amount;

        if (feeAddress != address(0)) {
            payable(feeAddress).transfer(fee);
        }
        payable(msgSender()).transfer(amount);
        return amount;
    }
}

File 2 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 4 of 10 : EIP712MetaTransaction.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./EIP712Base.sol";

contract EIP712MetaTransaction is EIP712Base {
    bytes32 private constant META_TRANSACTION_TYPEHASH =
        keccak256(
            bytes(
                "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
            )
        );

    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) private nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    constructor(string memory name, string memory version)
        EIP712Base(name, version)
    {}

    function convertBytesToBytes4(bytes memory inBytes)
        internal
        pure
        returns (bytes4 outBytes4)
    {
        if (inBytes.length == 0) {
            return 0x0;
        }

        assembly {
            outBytes4 := mload(add(inBytes, 32))
        }
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        bytes4 destinationFunctionSig = convertBytesToBytes4(functionSignature);
        require(
            destinationFunctionSig != msg.sig,
            "functionSignature can not be of executeMetaTransaction method"
        );
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });
        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );
        nonces[userAddress] += 1;
        // Append userAddress at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );

        require(success, "Function call not successful");
        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );
        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) external view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address user,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        address signer = ecrecover(
            toTypedMessageHash(hashMetaTransaction(metaTx)),
            sigV,
            sigR,
            sigS
        );
        require(signer != address(0), "Invalid signature");
        return signer == user;
    }

    function msgSender() internal view returns (address sender) {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = msg.sender;
        }
        return sender;
    }
}

File 5 of 10 : ISolarRouter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface ISolarRouter {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

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

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

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

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

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 fee
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 fee
    ) external pure returns (uint256 amountIn);

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

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

    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

File 6 of 10 : IToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol";

interface IToken is IERC20, IERC20Permit {}

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

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 10 : EIP712Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract EIP712Base {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
        keccak256(
            bytes(
                "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
            )
        );

    bytes32 internal domainSeparator;

    constructor(string memory name, string memory version) {
        domainSeparator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(version)),
                address(this),
                bytes32(getChainID())
            )
        );
    }

    function getChainID() internal view returns (uint256 id) {
        assembly {
            id := chainid()
        }
    }

    function getDomainSeparator() private view returns (bytes32) {
        return domainSeparator;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeparator(), messageHash)
            );
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 10 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"WMOVR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeAddress","type":"address"}],"name":"changeFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFeePercent","type":"uint256"}],"name":"changeFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTarget","type":"address"}],"name":"changeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"solarRouter","outputs":[{"internalType":"contract ISolarRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"swapCallData","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"whitelistToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IToken","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040527f98878b06940ae243284ca214f92bb71a2b032b8a00000000000000000000000060805260646005553480156200003a57600080fd5b50604051620022ae380380620022ae8339810160408190526200005d91620001c4565b604051806040016040528060078152602001660476173537761760cc1b815250604051806040016040528060018152602001601960f91b8152508181620000b3620000ad6200016c60201b60201c565b62000170565b6040518060800160405280604f81526020016200225f604f9139805190602001208280519060200120828051906020012030620000f5620001c060201b60201c565b60408051602081019690965285019390935260608401919091526001600160a01b0316608083015260a082015260c00160408051808303601f1901815291905280516020909101206001555050600380546001600160a01b0319166001600160a01b03949094169390931790925550620001f69050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b4690565b600060208284031215620001d757600080fd5b81516001600160a01b0381168114620001ef57600080fd5b9392505050565b60805160601c6120436200021c600039600081816101f50152610c3701526120436000f3fe6080604052600436106101125760003560e01c8063627dd56a116100a557806380f490a8116100745780639e281a98116100595780639e281a98146103fd578063f14210a61461041d578063f2fde38b1461043d57600080fd5b806380f490a8146103a55780638da5cb5b146103d257600080fd5b8063627dd56a1461031a578063715018a61461033a578063753d75631461034f5780637fd6f15c1461038f57600080fd5b80632d0335ab116100e15780632d0335ab1461025c578063340ac20f146102ad57806334eddf3e146102cd57806341275358146102ed57600080fd5b80630c53c51c1461019a5780630ffb1d8b146101c35780631467d58b146101e3578063285e14061461023c57600080fd5b366101955761012861012261045d565b3b151590565b610193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5245564552545f454f415f4445504f534954000000000000000000000000000060448201526064015b60405180910390fd5b005b600080fd5b6101ad6101a83660046118e3565b6104c7565b6040516101ba9190611d25565b60405180910390f35b3480156101cf57600080fd5b506101936101de3660046118aa565b6107e7565b3480156101ef57600080fd5b506102177f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101ba565b34801561024857600080fd5b50610193610257366004611886565b610926565b34801561026857600080fd5b5061029f610277366004611886565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6040519081526020016101ba565b3480156102b957600080fd5b506101936102c8366004611886565b6109ee565b3480156102d957600080fd5b506101936102e8366004611b25565b610b1e565b3480156102f957600080fd5b506004546102179073ffffffffffffffffffffffffffffffffffffffff1681565b34801561032657600080fd5b5061029f610335366004611a87565b610c11565b34801561034657600080fd5b5061019361121d565b34801561035b57600080fd5b5061037f61036a366004611886565b60066020526000908152604090205460ff1681565b60405190151581526020016101ba565b34801561039b57600080fd5b5061029f60055481565b3480156103b157600080fd5b506003546102179073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103de57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610217565b34801561040957600080fd5b50610193610418366004611af9565b6112aa565b34801561042957600080fd5b50610193610438366004611b25565b6113d6565b34801561044957600080fd5b50610193610458366004611886565b611488565b6000333014156104c157600080368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505036015173ffffffffffffffffffffffffffffffffffffffff1691506104c49050565b50335b90565b606060006104d4866115b8565b90506000357fffffffff00000000000000000000000000000000000000000000000000000000908116908216141561058e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f66756e6374696f6e5369676e61747572652063616e206e6f74206265206f662060448201527f657865637574654d6574615472616e73616374696f6e206d6574686f64000000606482015260840161018a565b6040805160608101825273ffffffffffffffffffffffffffffffffffffffff8916600081815260026020908152908490205483528201529081018790526105d888828888886115d4565b610664576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f6800000000000000000000000000000000000000000000000000000000000000606482015260840161018a565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260026020526040812080546001929061069a908490611e36565b9091555050604051600090819030906106b9908b908d90602001611c99565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526106f191611c7d565b6000604051808303816000865af19150503d806000811461072e576040519150601f19603f3d011682016040523d82523d6000602084013e610733565b606091505b50915091508161079f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015260640161018a565b7f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b8a338b6040516107d293929190611ce3565b60405180910390a19998505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b813b6108d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e4f5f434f4e54524143545f41545f4144445245535300000000000000000000604482015260640161018a565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260066020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b803b610ad7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e4f5f434f4e54524143545f41545f4144445245535300000000000000000000604482015260640161018a565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b61271060055410610c0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e56414c49445f4645455f50455243454e5400000000000000000000000000604482015260640161018a565b600555565b600080808080808080610c26898b018b611b3e565b9750975097509750509650965096507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168560018751610c7b9190611ec6565b81518110610c8b57610c8b611f3c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614610d10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e56414c49445f4f55545055545f544f4b454e000000000000000000000000604482015260640161018a565b6006600086600081518110610d2757610d27611f3c565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff1682528101919091526040016000205460ff161515600114610dc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e56414c49445f494e5055545f544f4b454e00000000000000000000000000604482015260640161018a565b600085600081518110610ddb57610ddb611f3c565b602002602001015190508073ffffffffffffffffffffffffffffffffffffffff1663d505accf610e0961045d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604481018b90526064810188905260ff8716608482015260a4810186905260c4810185905260e401600060405180830381600087803b158015610e9a57600080fd5b505af1158015610eae573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff166323b872dd610ed661045d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604481018b9052606401602060405180830381600087803b158015610f4957600080fd5b505af1158015610f5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f819190611a6a565b506003546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018a9052479183169063095ea7b390604401602060405180830381600087803b158015610ff757600080fd5b505af115801561100b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102f9190611a6a565b506003546040517f18cbafe500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906318cbafe59061108e908c908c908c9030908d90600401611d38565b600060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261110291908101906119cd565b50600061110f8247611ec6565b90506000612710600554836111249190611e89565b61113084612710611e89565b61113a9190611ec6565b6111449190611e4e565b905060006111528284611ec6565b60045490915073ffffffffffffffffffffffffffffffffffffffff16156111bc5760045460405173ffffffffffffffffffffffffffffffffffffffff9091169082156108fc029083906000818181858888f193505050501580156111ba573d6000803e3d6000fd5b505b6111c461045d565b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611209573d6000803e3d6000fd5b50909e9d5050505050505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461129e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b6112a8600061171b565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461132b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b15801561139957600080fd5b505af11580156113ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d19190611a6a565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b604051339082156108fc029083906000818181858888f19350505050158015611484573d6000803e3d6000fd5b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018a565b73ffffffffffffffffffffffffffffffffffffffff81166115ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161018a565b6115b58161171b565b50565b60008151600014156115cc57506000919050565b506020015190565b60008060016115ea6115e588611790565b61181a565b6040805160008152602081018083529290925260ff861690820152606081018790526080810186905260a0016020604051602081039080840390855afa158015611638573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166116e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964207369676e6174757265000000000000000000000000000000604482015260640161018a565b8673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161491505095945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000604051806080016040528060438152602001611fcb60439139805160209182012083518483015160408087015180519086012090516117fd9501938452602084019290925273ffffffffffffffffffffffffffffffffffffffff166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061182560015490565b6040517f190100000000000000000000000000000000000000000000000000000000000060208201526022810191909152604281018390526062016117fd565b803561187081611f9a565b919050565b803560ff8116811461187057600080fd5b60006020828403121561189857600080fd5b81356118a381611f9a565b9392505050565b600080604083850312156118bd57600080fd5b82356118c881611f9a565b915060208301356118d881611fbc565b809150509250929050565b600080600080600060a086880312156118fb57600080fd5b853561190681611f9a565b945060208681013567ffffffffffffffff8082111561192457600080fd5b818901915089601f83011261193857600080fd5b81358181111561194a5761194a611f6b565b61197a847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611dc3565b91508082528a8482850101111561199057600080fd5b808484018584013760008482840101525080965050505060408601359250606086013591506119c160808701611875565b90509295509295909350565b600060208083850312156119e057600080fd5b825167ffffffffffffffff8111156119f757600080fd5b8301601f81018513611a0857600080fd5b8051611a1b611a1682611e12565b611dc3565b80828252848201915084840188868560051b8701011115611a3b57600080fd5b600094505b83851015611a5e578051835260019490940193918501918501611a40565b50979650505050505050565b600060208284031215611a7c57600080fd5b81516118a381611fbc565b60008060208385031215611a9a57600080fd5b823567ffffffffffffffff80821115611ab257600080fd5b818501915085601f830112611ac657600080fd5b813581811115611ad557600080fd5b866020828501011115611ae757600080fd5b60209290920196919550909350505050565b60008060408385031215611b0c57600080fd5b8235611b1781611f9a565b946020939093013593505050565b600060208284031215611b3757600080fd5b5035919050565b600080600080600080600080610100898b031215611b5b57600080fd5b883597506020808a0135975060408a013567ffffffffffffffff811115611b8157600080fd5b8a01601f81018c13611b9257600080fd5b8035611ba0611a1682611e12565b8082825284820191508484018f868560051b8701011115611bc057600080fd5b600094505b83851015611bec578035611bd881611f9a565b835260019490940193918501918501611bc5565b50809a505050505050611c0160608a01611865565b945060808901359350611c1660a08a01611875565b925060c0890135915060e089013590509295985092959890939650565b60008151808452611c4b816020860160208601611edd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251611c8f818460208701611edd565b9190910192915050565b60008351611cab818460208801611edd565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b600073ffffffffffffffffffffffffffffffffffffffff808616835280851660208401525060606040830152611d1c6060830184611c33565b95945050505050565b6020815260006118a36020830184611c33565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611d9557845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101611d63565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611e0a57611e0a611f6b565b604052919050565b600067ffffffffffffffff821115611e2c57611e2c611f6b565b5060051b60200190565b60008219821115611e4957611e49611f0d565b500190565b600082611e84577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ec157611ec1611f0d565b500290565b600082821015611ed857611ed8611f0d565b500390565b60005b83811015611ef8578181015183820152602001611ee0565b83811115611f07576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146115b557600080fd5b80151581146115b557600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212207a01f3224c09627a0ec9851fd85c710f932e45cd0e475ecd01e2c3d0bfd42a8664736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000aa30ef758139ae4a7f798112902bf6d65612045f

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

000000000000000000000000aa30ef758139ae4a7f798112902bf6d65612045f

-----Decoded View---------------
Arg [0] : router (address): 0xaa30ef758139ae4a7f798112902bf6d65612045f

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000aa30ef758139ae4a7f798112902bf6d65612045f


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.