ETH Price: $2,669.68 (+1.06%)

Contract

0x1bCEdCAee99D6d51e83FEDD16D206f224c30C455
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer172014222023-05-06 12:02:23474 days ago1683374543IN
0x1bCEdCAe...24c30C455
0 ETH0.00613148101.1896163
Approve170407082023-04-13 20:22:11497 days ago1681417331IN
0x1bCEdCAe...24c30C455
0 ETH0.001386929.71464992
Approve170406582023-04-13 20:11:47497 days ago1681416707IN
0x1bCEdCAe...24c30C455
0 ETH0.0015375332.94191126
Approve170406562023-04-13 20:11:23497 days ago1681416683IN
0x1bCEdCAe...24c30C455
0 ETH0.0015483633.37142053
Withdraw170406552023-04-13 20:11:11497 days ago1681416671IN
0x1bCEdCAe...24c30C455
0 ETH0.0017760833.04715162
Update Bridge170406542023-04-13 20:10:59497 days ago1681416659IN
0x1bCEdCAe...24c30C455
0 ETH0.0016387533.5378478
Approve170405752023-04-13 19:54:23497 days ago1681415663IN
0x1bCEdCAe...24c30C455
0 ETH0.00165435.64817584
Approve170405722023-04-13 19:53:47497 days ago1681415627IN
0x1bCEdCAe...24c30C455
0 ETH0.0023668251.06424347
Approve170405602023-04-13 19:50:59497 days ago1681415459IN
0x1bCEdCAe...24c30C455
0 ETH0.0015914234.09653247
Approve170405532023-04-13 19:49:35497 days ago1681415375IN
0x1bCEdCAe...24c30C455
0 ETH0.0013876429.9539958
Approve170405502023-04-13 19:48:59497 days ago1681415339IN
0x1bCEdCAe...24c30C455
0 ETH0.0013022728.0966462
Update Sell Fees170405412023-04-13 19:47:11497 days ago1681415231IN
0x1bCEdCAe...24c30C455
0 ETH0.001308932.26998053
Update Buy Fees170405402023-04-13 19:46:59497 days ago1681415219IN
0x1bCEdCAe...24c30C455
0 ETH0.0013695133.71941874
Approve170405302023-04-13 19:44:47497 days ago1681415087IN
0x1bCEdCAe...24c30C455
0 ETH0.0014935832.22402805
Approve170405252023-04-13 19:43:47497 days ago1681415027IN
0x1bCEdCAe...24c30C455
0 ETH0.0017058736.59584279
Remove Limits170405242023-04-13 19:43:35497 days ago1681415015IN
0x1bCEdCAe...24c30C455
0 ETH0.0010502436.5723673
Update Sell Fees170405232023-04-13 19:43:23497 days ago1681415003IN
0x1bCEdCAe...24c30C455
0 ETH0.0013986437.03940681
Update Buy Fees170405222023-04-13 19:43:11497 days ago1681414991IN
0x1bCEdCAe...24c30C455
0 ETH0.0013915836.7998689
Approve170405222023-04-13 19:43:11497 days ago1681414991IN
0x1bCEdCAe...24c30C455
0 ETH0.0017059536.8058689
Update Sell Fees170405142023-04-13 19:40:59497 days ago1681414859IN
0x1bCEdCAe...24c30C455
0 ETH0.0011605128.61159252
Update Buy Fees170405112023-04-13 19:40:23497 days ago1681414823IN
0x1bCEdCAe...24c30C455
0 ETH0.0012353230.41549308
Approve170405062023-04-13 19:39:23497 days ago1681414763IN
0x1bCEdCAe...24c30C455
0 ETH0.0016241134.79708122
Update Marketing...170405052023-04-13 19:39:11497 days ago1681414751IN
0x1bCEdCAe...24c30C455
0 ETH0.00709501233.45761413
Approve170405042023-04-13 19:38:59497 days ago1681414739IN
0x1bCEdCAe...24c30C455
0 ETH0.00674972144.8003634
Approve170405032023-04-13 19:38:47497 days ago1681414727IN
0x1bCEdCAe...24c30C455
0 ETH0.0015340133.10481031
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000014 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000002 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000005 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000017 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000014 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000002 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000005 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000017 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000014 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000002 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000005 ETH
170406582023-04-13 20:11:47497 days ago1681416707
0x1bCEdCAe...24c30C455
0.00000017 ETH
170406552023-04-13 20:11:11497 days ago1681416671
0x1bCEdCAe...24c30C455
1.05886469 ETH
170406552023-04-13 20:11:11497 days ago1681416671
0x1bCEdCAe...24c30C455
0.19467721 ETH
170406552023-04-13 20:11:11497 days ago1681416671
0x1bCEdCAe...24c30C455
0.41885035 ETH
170406552023-04-13 20:11:11497 days ago1681416671
0x1bCEdCAe...24c30C455
1.28303783 ETH
170405532023-04-13 19:49:35497 days ago1681415375
0x1bCEdCAe...24c30C455
1.02850112 ETH
170405532023-04-13 19:49:35497 days ago1681415375
0x1bCEdCAe...24c30C455
0.18745348 ETH
170405532023-04-13 19:49:35497 days ago1681415375
0x1bCEdCAe...24c30C455
0.40343654 ETH
170405532023-04-13 19:49:35497 days ago1681415375
0x1bCEdCAe...24c30C455
1.24448418 ETH
170405502023-04-13 19:48:59497 days ago1681415339
0x1bCEdCAe...24c30C455
1.02850112 ETH
170405502023-04-13 19:48:59497 days ago1681415339
0x1bCEdCAe...24c30C455
0.18745348 ETH
170405502023-04-13 19:48:59497 days ago1681415339
0x1bCEdCAe...24c30C455
0.40343654 ETH
170405502023-04-13 19:48:59497 days ago1681415339
0x1bCEdCAe...24c30C455
1.24448418 ETH
170405052023-04-13 19:39:11497 days ago1681414751
0x1bCEdCAe...24c30C455
0.88654712 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ARBridge

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 17 : Token.sol
// SPDX-License-Identifier: MIT
/*
 *  ARBridge - $AP
 *
 *  Real-time bridge solutions between Arbitrum and Ethereum network that
 *  seamlessly connects these two ecosystems, facilitating efficient token transfers
 *
 *  @Docs: https://docs.arbridge.net/
 *  @Telegram: https://t.me/arbridg3lobby
 *  @Website: https://arbridge.net/
 *  @Twitter: https://twitter.com/ARBridg3
 */
pragma solidity 0.8.17;

import "Address.sol";
import "ERC20.sol";
import "AccessControl.sol";
import "Pausable.sol";

import "IUniswapV2Factory.sol";
import "IUniswapV2Router02.sol";

import "IBridgeToken.sol";


contract ARBridge is ERC20, AccessControl, IBridgeToken {
    using Address for address payable;

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant BRIDGE_ROLE = keccak256("BRIDGE_ROLE");

    uint256 private constant DENOMINATOR = 1000;

    uint256 private constant DEFAULT_MAX_TRANSACTION = 20; // Default: 2[%]
    uint256 private constant DEFAULT_MAX_WALLET = 30; // Default: 3[%]
    uint256 private constant DEFAULT_SWAP_TOKENS_AT = 25; // Default: 0.025[%]

    uint256 private constant DEFAULT_BUY_MARKETING_FEE = 100; // Default: 10[%]
    uint256 private constant DEFAULT_BUY_LIQUIDITY_FEE = 50; // Default: 5[%]

    uint256 private constant DEFAULT_SELL_MARKETING_FEE = 200; // Default: 20[%]
    uint256 private constant DEFAULT_SELL_LIQUIDITY_FEE = 100; // Default: 10[%]

    IUniswapV2Router02 immutable public router;
    address public marketingWallet;
    address public liquidityWallet;

    bool private swapping;    
    bool private swapEnabled = true;
    bool private limitsEnabled = true;
    bool private tradeEnabled;

    uint256 public buyTotalFee;
    uint256 public buyMarketingFee;
    uint256 public buyLiquidityFee;

    uint256 public sellTotalFee;
    uint256 public sellMarketingFee;
    uint256 public sellLiquidityFee;

    uint256 public tokensForMarketing;
    uint256 public tokensForLiquidity;

    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWalletAmount;

    mapping(address => bool) public isExcludedFromFees;
    mapping(address => bool) public isExcludedMaxTransactionAmount;

    mapping(address => bool) pairs;


    event MaxTxUpdated(uint256 newMax);
    event MaxWalletUpdated(uint256 newMax);
    event BuyFeesUpdated(
        uint256 marketingFee,
        uint256 liquidityFee
    );
    event SellFeesUpdated(
        uint256 marketingFee,
        uint256 liquidityFee
    );
    event WalletUpdated(address newWallet);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    constructor(address _router) ERC20("ARBridge", "AP") {
        address _defaultAdmin = _msgSender();
        // ACL configs
        _grantRole(ADMIN_ROLE, _defaultAdmin);
        _grantRole(DEFAULT_ADMIN_ROLE, _defaultAdmin);

        // Default configuration
        marketingWallet = payable(_defaultAdmin);
        liquidityWallet = _defaultAdmin;

        uint256 totalSupply = 1_000_000 * 1e18;

        maxTransactionAmount = (totalSupply * DEFAULT_MAX_TRANSACTION) / DENOMINATOR;
        maxWalletAmount = (totalSupply * DEFAULT_MAX_WALLET) / DENOMINATOR;
        swapTokensAtAmount = (totalSupply * DEFAULT_SWAP_TOKENS_AT) / 10000; // 0.05% swap wallet

        // Buy side
        buyMarketingFee = DEFAULT_BUY_MARKETING_FEE;
        buyLiquidityFee = DEFAULT_BUY_LIQUIDITY_FEE;
        buyTotalFee = DEFAULT_BUY_MARKETING_FEE + DEFAULT_BUY_LIQUIDITY_FEE;

        // Sell side
        sellMarketingFee = DEFAULT_SELL_MARKETING_FEE;
        sellLiquidityFee = DEFAULT_SELL_LIQUIDITY_FEE;
        sellTotalFee = DEFAULT_SELL_MARKETING_FEE + DEFAULT_SELL_LIQUIDITY_FEE;

        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromFees(_defaultAdmin, true);

        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(_defaultAdmin, true);

        router = IUniswapV2Router02(_router);

        _mint(_defaultAdmin, totalSupply);
    }

    modifier whenNotSwap() {
        swapping = true;
        _;
        swapping = false;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (limitsEnabled) {
            if (
                !isExcludedFromFees[tx.origin] &&
                !isExcludedFromFees[from] &&
                !isExcludedFromFees[to] &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ) {
                if (!tradeEnabled) {
                    require(
                        isExcludedFromFees[from] || isExcludedFromFees[to],
                        "Trading is not active."
                    );
                }
                //when buy
                if (
                    pairs[from] &&
                    !isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount."
                    );
                    require(
                        amount + balanceOf(to) <= maxWalletAmount,
                        "Max wallet exceeded"
                    );
                }
                //when sell
                else if (
                    pairs[to] &&
                    !isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTransactionAmount."
                    );
                } else if (!isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWalletAmount,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;
        if (
            swapEnabled &&
            !swapping &&
            !pairs[from] &&
            !isExcludedFromFees[from] &&
            !isExcludedFromFees[to]
        ) { 
            _swap();
        }
        bool takeFee = !swapping;
        // if any account belongs to isExcludedFromFees account then remove the fee
        if (isExcludedFromFees[from] || isExcludedFromFees[to] || isExcludedFromFees[tx.origin]) {
            takeFee = false;
        }
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            uint256 fees = 0;
            // on sell
            if (pairs[to] && sellTotalFee > 0) {
                fees = (amount * sellTotalFee) / DENOMINATOR;
                tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFee;
                tokensForMarketing += (fees * sellMarketingFee) / sellTotalFee;
            }
            // on buy
            else if (pairs[from] && buyTotalFee > 0) {
                fees = (amount * buyTotalFee) / DENOMINATOR;
                tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFee;
                tokensForMarketing += (fees * buyMarketingFee) / buyTotalFee;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

            amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    function _swapExactTokensForETH(uint256 amount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();

        _approve(address(this), address(router), amount);

        // make the swap
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            amount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(router), tokenAmount);

        // add the liquidity
        router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            liquidityWallet,
            block.timestamp
        );
    }

    function _swap() private whenNotSwap {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing;

        if (contractBalance == 0 || totalTokensToSwap == 0) {
            return;
        }

        if (contractBalance > swapTokensAtAmount * 20) {
            contractBalance = swapTokensAtAmount * 20;
        }

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance - liquidityTokens;

        uint256 initialETHBalance = address(this).balance;

        _swapExactTokensForETH(amountToSwapForETH);
        
        uint256 ethBalance = address(this).balance - initialETHBalance;

        uint256 ethForMarketing = (ethBalance * tokensForMarketing) / totalTokensToSwap;
        uint256 ethForLiquidity = ethBalance - ethForMarketing;

        tokensForLiquidity = 0;
        tokensForMarketing = 0;

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            _addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(
                amountToSwapForETH,
                ethForLiquidity,
                liquidityTokens
            );
        }
        payable(marketingWallet).sendValue(address(this).balance);    
    }
    
    function withdraw(address to, uint256 amount) external override onlyRole(BRIDGE_ROLE) returns (bool) {
        _mint(to, amount);
        return true;
    }

    function deposit(address to, uint256 amount) external override onlyRole(BRIDGE_ROLE) returns (bool) {
        _burn(to, amount);
        return true;
    }

    function enableTrading() external onlyRole(ADMIN_ROLE) {
        require(!tradeEnabled, "already enabled");
        tradeEnabled = true;
    }

    function removeLimits() external onlyRole(ADMIN_ROLE) {
        limitsEnabled = false;
    }

    function updateSwapTokensAtAmount(uint256 percentage) external onlyRole(ADMIN_ROLE) {
        require(percentage >= 1 && percentage <= 500, "invalid");
        swapTokensAtAmount = (totalSupply() * percentage) / 10000; 
    }

    function updateMaxTxnAmount(uint256 percentage) external onlyRole(ADMIN_ROLE) {
        require(percentage >= 5, "too low");
        maxTransactionAmount = (totalSupply() * percentage) / DENOMINATOR;   

        emit MaxTxUpdated(maxTransactionAmount);
    }

    function updateMaxWalletAmount(uint256 percentage) external onlyRole(ADMIN_ROLE) {
        require(percentage >= 5, "too low");
        maxWalletAmount = (totalSupply() * percentage) / DENOMINATOR;

        emit MaxWalletUpdated(maxWalletAmount);
    }

    function updateBuyFees(uint256 marketingFee, uint256 liquidityFee) external onlyRole(ADMIN_ROLE)  {
        buyMarketingFee = marketingFee;
        buyLiquidityFee = liquidityFee;
        buyTotalFee = marketingFee + liquidityFee;
        require(buyTotalFee <= 250, "too high");

        emit BuyFeesUpdated(marketingFee, liquidityFee);
    }

    function updateSellFees(uint256 marketingFee, uint256 liquidityFee) external onlyRole(ADMIN_ROLE)  {
        sellMarketingFee = marketingFee;
        sellLiquidityFee = liquidityFee;
        sellTotalFee = marketingFee + liquidityFee;
        require(sellTotalFee <= 400, "too high");

        emit SellFeesUpdated(marketingFee, liquidityFee);
    }

    function excludeFromMaxTransaction(address account, bool excluded) public onlyRole(ADMIN_ROLE) {
        isExcludedMaxTransactionAmount[account] = excluded;
    }

    function excludeFromFees(address account, bool excluded) public onlyRole(ADMIN_ROLE) {
        isExcludedFromFees[account] = excluded;
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyRole(ADMIN_ROLE) {
        pairs[pair] = value;
    }

    function swapBack() external onlyRole(ADMIN_ROLE) {
        _swap();
    }

    function updateLiquidityWallet(address wallet) external onlyRole(ADMIN_ROLE) {
        liquidityWallet = wallet;

        emit WalletUpdated(wallet);
    }
    
    function updateMarketingWallet(address wallet) external onlyRole(ADMIN_ROLE) {
        marketingWallet = payable(wallet);

        emit WalletUpdated(wallet);
    }

    function updateSwapEnabled(bool enabled) external onlyRole(ADMIN_ROLE) {
        swapEnabled = enabled;
    }

    function updateAdmin(address _admin) external onlyRole(ADMIN_ROLE) {
        _grantRole(ADMIN_ROLE, _admin);
    }

    function updateBridge(address _bridge) external onlyRole(ADMIN_ROLE) {
        _grantRole(BRIDGE_ROLE, _bridge);
    }

    receive() external payable {}
}

File 2 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 3 of 17 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "IERC20.sol";
import "IERC20Metadata.sol";
import "Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 17 : 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 17 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "IERC20.sol";

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

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

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

File 6 of 17 : 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 7 of 17 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "IAccessControl.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 9 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

File 10 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

pragma solidity ^0.8.0;

import "IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 13 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 14 of 17 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

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

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

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

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

File 15 of 17 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import "IUniswapV2Router01.sol";

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

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

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

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

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

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

File 17 of 17 : IBridgeToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

interface IBridgeToken {

    function withdraw(address to, uint256 amount) external returns (bool);
    function deposit(address to, uint256 amount) external returns (bool);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "Token.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"marketingFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"BuyFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"MaxTxUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"MaxWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"marketingFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"SellFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newWallet","type":"address"}],"name":"WalletUpdated","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRIDGE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForMarketing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"updateBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"marketingFee","type":"uint256"},{"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"updateLiquidityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"updateMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"marketingFee","type":"uint256"},{"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040526007805461ffff60a81b191661010160a81b1790553480156200002657600080fd5b506040516200364938038062003649833981016040819052620000499162000693565b60405180604001604052806008815260200167415242726964676560c01b81525060405180604001604052806002815260200161041560f41b815250816003908162000096919062000762565b506004620000a5828262000762565b5050506000620000ba6200022360201b60201c565b9050620000d7600080516020620036298339815191528262000227565b620000e460008262000227565b600680546001600160a01b0383166001600160a01b0319918216811790925560078054909116909117905569d3c21bcecceda10000006103e86200012a60148362000844565b6200013691906200085e565b6010556103e862000149601e8362000844565b6200015591906200085e565b6012556127106200016860198362000844565b6200017491906200085e565b601155606460098190556032600a819055620001909162000881565b60085560c8600c8190556064600d819055620001ac9162000881565b600b55620001bc306001620002b2565b620001cb61dead6001620002b2565b620001d8826001620002b2565b620001e5306001620002f9565b620001f461dead6001620002f9565b62000201826001620002f9565b6001600160a01b0383166080526200021a828262000340565b5050506200099b565b3390565b62000233828262000407565b620002ae5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200026d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60008051602062003629833981519152620002cd8162000434565b506001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b60008051602062003629833981519152620003148162000434565b506001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b6001600160a01b0382166200039c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620003b0919062000881565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b62000440813362000448565b50565b505050565b62000454828262000407565b620002ae576200046f81620004c060201b620013411760201c565b6200048583602062001353620004d3821b17811c565b60405160200162000498929190620008bd565b60408051601f198184030181529082905262461bcd60e51b8252620003939160040162000936565b60606200042e6001600160a01b03831660145b60606000620004e483600262000844565b620004f190600262000881565b6001600160401b038111156200050b576200050b620006be565b6040519080825280601f01601f19166020018201604052801562000536576020820181803683370190505b509050600360fc1b816000815181106200055457620005546200096b565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200058657620005866200096b565b60200101906001600160f81b031916908160001a9053506000620005ac84600262000844565b620005b990600162000881565b90505b60018111156200063b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620005f157620005f16200096b565b1a60f81b8282815181106200060a576200060a6200096b565b60200101906001600160f81b031916908160001a90535060049490941c93620006338162000981565b9050620005bc565b5083156200068c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000393565b9392505050565b600060208284031215620006a657600080fd5b81516001600160a01b03811681146200068c57600080fd5b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006e957607f821691505b6020821081036200070a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200044357600081815260208120601f850160051c81016020861015620007395750805b601f850160051c820191505b818110156200075a5782815560010162000745565b505050505050565b81516001600160401b038111156200077e576200077e620006be565b62000796816200078f8454620006d4565b8462000710565b602080601f831160018114620007ce5760008415620007b55750858301515b600019600386901b1c1916600185901b1785556200075a565b600085815260208120601f198616915b82811015620007ff57888601518255948401946001909101908401620007de565b50858210156200081e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176200042e576200042e6200082e565b6000826200087c57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156200042e576200042e6200082e565b60005b83811015620008b45781810151838201526020016200089a565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351620008f781601785016020880162000897565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200092a81602884016020880162000897565b01602801949350505050565b60208152600082518060208401526200095781604085016020870162000897565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b6000816200099357620009936200082e565b506000190190565b608051612c4f620009da600039600081816109cb015281816123b001528181612469015281816124a501528181612517015261257f0152612c4f6000f3fe6080604052600436106103385760003560e01c80637bce5a04116101ab578063c0246668116100f7578063e2f273bd11610095578063f11a24d31161006f578063f11a24d31461096d578063f3fef3a314610983578063f6374342146109a3578063f887ea40146109b957600080fd5b8063e2f273bd14610917578063e2f4560514610937578063e37ba8f91461094d57600080fd5b8063d257b34f116100d1578063d257b34f14610897578063d4698016146108b7578063d547741f146108d7578063dd62ed3e146108f757600080fd5b8063c024666814610841578063c18bc19514610861578063c8c8ebe41461088157600080fd5b80639a7a23d611610164578063a9059cbb1161013e578063a9059cbb146107c9578063aa4bde28146107e9578063aacebbe3146107ff578063b5bfddea1461081f57600080fd5b80639a7a23d614610774578063a217fddf14610794578063a457c2d7146107a957600080fd5b80637bce5a04146106de5780638a8c523c146106f457806391d14854146107095780639213691314610729578063924de9b71461073f57806395d89b411461075f57600080fd5b806336568abe116102855780636ac5eeee11610223578063751039fc116101fd578063751039fc1461064f5780637571336a1461066457806375b238fc1461068457806375f0a874146106a657600080fd5b80636ac5eeee146105e45780636eb38212146105f957806370a082311461061957600080fd5b806347e7ef241161025f57806347e7ef24146105445780634bb2c785146105645780634fbee1931461059457806366ca9b83146105c457600080fd5b806336568abe146104ee5780633705b3921461050e578063395093511461052457600080fd5b80631a8145bb116102f257806323b872dd116102cc57806323b872dd14610462578063248a9ca3146104825780632f2ff15d146104b2578063313ce567146104d257600080fd5b80631a8145bb146104165780631f3fed8f1461042c578063203e727e1461044257600080fd5b8062afb3251461034457806301ffc9a71461036d57806302dbd8f81461039d57806306fdde03146103bf578063095ea7b3146103e157806318160ddd1461040157600080fd5b3661033f57005b600080fd5b34801561035057600080fd5b5061035a600b5481565b6040519081526020015b60405180910390f35b34801561037957600080fd5b5061038d610388366004612710565b6109ed565b6040519015158152602001610364565b3480156103a957600080fd5b506103bd6103b836600461273a565b610a24565b005b3480156103cb57600080fd5b506103d4610ad5565b6040516103649190612780565b3480156103ed57600080fd5b5061038d6103fc3660046127c8565b610b67565b34801561040d57600080fd5b5060025461035a565b34801561042257600080fd5b5061035a600f5481565b34801561043857600080fd5b5061035a600e5481565b34801561044e57600080fd5b506103bd61045d3660046127f4565b610b7f565b34801561046e57600080fd5b5061038d61047d36600461280d565b610c30565b34801561048e57600080fd5b5061035a61049d3660046127f4565b60009081526005602052604090206001015490565b3480156104be57600080fd5b506103bd6104cd36600461284e565b610c54565b3480156104de57600080fd5b5060405160128152602001610364565b3480156104fa57600080fd5b506103bd61050936600461284e565b610c7e565b34801561051a57600080fd5b5061035a60085481565b34801561053057600080fd5b5061038d61053f3660046127c8565b610cfc565b34801561055057600080fd5b5061038d61055f3660046127c8565b610d1e565b34801561057057600080fd5b5061038d61057f36600461287e565b60146020526000908152604090205460ff1681565b3480156105a057600080fd5b5061038d6105af36600461287e565b60136020526000908152604090205460ff1681565b3480156105d057600080fd5b506103bd6105df36600461273a565b610d42565b3480156105f057600080fd5b506103bd610de4565b34801561060557600080fd5b506103bd61061436600461287e565b610e07565b34801561062557600080fd5b5061035a61063436600461287e565b6001600160a01b031660009081526020819052604090205490565b34801561065b57600080fd5b506103bd610e37565b34801561067057600080fd5b506103bd61067f3660046128b0565b610e5f565b34801561069057600080fd5b5061035a600080516020612bfa83398151915281565b3480156106b257600080fd5b506006546106c6906001600160a01b031681565b6040516001600160a01b039091168152602001610364565b3480156106ea57600080fd5b5061035a60095481565b34801561070057600080fd5b506103bd610ea3565b34801561071557600080fd5b5061038d61072436600461284e565b610f1d565b34801561073557600080fd5b5061035a600c5481565b34801561074b57600080fd5b506103bd61075a3660046128e5565b610f48565b34801561076b57600080fd5b506103d4610f7f565b34801561078057600080fd5b506103bd61078f3660046128b0565b610f8e565b3480156107a057600080fd5b5061035a600081565b3480156107b557600080fd5b5061038d6107c43660046127c8565b610fd2565b3480156107d557600080fd5b5061038d6107e43660046127c8565b61104d565b3480156107f557600080fd5b5061035a60125481565b34801561080b57600080fd5b506103bd61081a36600461287e565b61105b565b34801561082b57600080fd5b5061035a600080516020612bda83398151915281565b34801561084d57600080fd5b506103bd61085c3660046128b0565b6110c1565b34801561086d57600080fd5b506103bd61087c3660046127f4565b611105565b34801561088d57600080fd5b5061035a60105481565b3480156108a357600080fd5b506103bd6108b23660046127f4565b6111ae565b3480156108c357600080fd5b506007546106c6906001600160a01b031681565b3480156108e357600080fd5b506103bd6108f236600461284e565b611237565b34801561090357600080fd5b5061035a610912366004612900565b61125c565b34801561092357600080fd5b506103bd61093236600461287e565b611287565b34801561094357600080fd5b5061035a60115481565b34801561095957600080fd5b506103bd61096836600461287e565b6112b7565b34801561097957600080fd5b5061035a600a5481565b34801561098f57600080fd5b5061038d61099e3660046127c8565b61131d565b3480156109af57600080fd5b5061035a600d5481565b3480156109c557600080fd5b506106c67f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b03198216637965db0b60e01b1480610a1e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080516020612bfa833981519152610a3c816114f6565b600c839055600d829055610a508284612944565b600b8190556101901015610a965760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064015b60405180910390fd5b60408051848152602081018490527f2c7448b63380296b372453c5287509524b5b645dc6a93ffe09e0af53e6b8935b91015b60405180910390a1505050565b606060038054610ae490612957565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1090612957565b8015610b5d5780601f10610b3257610100808354040283529160200191610b5d565b820191906000526020600020905b815481529060010190602001808311610b4057829003601f168201915b5050505050905090565b600033610b75818585611500565b5060019392505050565b600080516020612bfa833981519152610b97816114f6565b6005821015610bd25760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610a8d565b6103e882610bdf60025490565b610be99190612991565b610bf391906129a8565b60108190556040519081527fff3dd5e80294197918c284bbfc3dadd97d0b40ce92106110946329088f80068a906020015b60405180910390a15050565b600033610c3e858285611624565b610c4985858561169e565b506001949350505050565b600082815260056020526040902060010154610c6f816114f6565b610c798383611d70565b505050565b6001600160a01b0381163314610cee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a8d565b610cf88282611df6565b5050565b600033610b75818585610d0f838361125c565b610d199190612944565b611500565b6000600080516020612bda833981519152610d38816114f6565b610b758484611e5d565b600080516020612bfa833981519152610d5a816114f6565b6009839055600a829055610d6e8284612944565b600881905560fa1015610dae5760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401610a8d565b60408051848152602081018490527f480af1f773972b1df72af32ec463e0fdeb1b49f1ca37d07982f677919d5fdd0c9101610ac8565b600080516020612bfa833981519152610dfc816114f6565b610e04611f8f565b50565b600080516020612bfa833981519152610e1f816114f6565b610cf8600080516020612bda83398151915283611d70565b600080516020612bfa833981519152610e4f816114f6565b506007805460ff60b01b19169055565b600080516020612bfa833981519152610e77816114f6565b506001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b600080516020612bfa833981519152610ebb816114f6565b600754600160b81b900460ff1615610f075760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e48195b98589b1959608a1b6044820152606401610a8d565b506007805460ff60b81b1916600160b81b179055565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020612bfa833981519152610f60816114f6565b5060078054911515600160a81b0260ff60a81b19909216919091179055565b606060048054610ae490612957565b600080516020612bfa833981519152610fa6816114f6565b506001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b60003381610fe0828661125c565b9050838110156110405760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a8d565b610c498286868403611500565b600033610b7581858561169e565b600080516020612bfa833981519152611073816114f6565b600680546001600160a01b0319166001600160a01b0384169081179091556040519081527f4edbfac5b40fe46ac1af1fd222b224b38cfeeb9e21bd4fc6344526c245f7549b90602001610c24565b600080516020612bfa8339815191526110d9816114f6565b506001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b600080516020612bfa83398151915261111d816114f6565b60058210156111585760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610a8d565b6103e88261116560025490565b61116f9190612991565b61117991906129a8565b60128190556040519081527f12528a3c61e0f3b2d6fc707a9fc58b1af86e252cad0d7f4c154ebeabb162dace90602001610c24565b600080516020612bfa8339815191526111c6816114f6565b600182101580156111d957506101f48211155b61120f5760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b6044820152606401610a8d565b6127108261121c60025490565b6112269190612991565b61123091906129a8565b6011555050565b600082815260056020526040902060010154611252816114f6565b610c798383611df6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600080516020612bfa83398151915261129f816114f6565b610cf8600080516020612bfa83398151915283611d70565b600080516020612bfa8339815191526112cf816114f6565b600780546001600160a01b0319166001600160a01b0384169081179091556040519081527f4edbfac5b40fe46ac1af1fd222b224b38cfeeb9e21bd4fc6344526c245f7549b90602001610c24565b6000600080516020612bda833981519152611337816114f6565b610b758484612117565b6060610a1e6001600160a01b03831660145b60606000611362836002612991565b61136d906002612944565b67ffffffffffffffff811115611385576113856129ca565b6040519080825280601f01601f1916602001820160405280156113af576020820181803683370190505b509050600360fc1b816000815181106113ca576113ca6129e0565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106113f9576113f96129e0565b60200101906001600160f81b031916908160001a905350600061141d846002612991565b611428906001612944565b90505b60018111156114a0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061145c5761145c6129e0565b1a60f81b828281518110611472576114726129e0565b60200101906001600160f81b031916908160001a90535060049490941c93611499816129f6565b905061142b565b5083156114ef5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a8d565b9392505050565b610e0481336121d6565b6001600160a01b0383166115625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a8d565b6001600160a01b0382166115c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a8d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611630848461125c565b90506000198114611698578181101561168b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a8d565b6116988484848403611500565b50505050565b6001600160a01b0383166116c45760405162461bcd60e51b8152600401610a8d90612a0d565b6001600160a01b0382166116ea5760405162461bcd60e51b8152600401610a8d90612a52565b806000036116fe57610c798383600061222f565b600754600160b01b900460ff1615611aaf573260009081526013602052604090205460ff1615801561174957506001600160a01b03831660009081526013602052604090205460ff16155b801561176e57506001600160a01b03821660009081526013602052604090205460ff16155b801561178257506001600160a01b03821615155b801561179957506001600160a01b03821661dead14155b80156117af5750600754600160a01b900460ff16155b15611aaf57600754600160b81b900460ff16611849576001600160a01b03831660009081526013602052604090205460ff168061180457506001600160a01b03821660009081526013602052604090205460ff165b6118495760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610a8d565b6001600160a01b03831660009081526015602052604090205460ff16801561188a57506001600160a01b03821660009081526014602052604090205460ff16155b1561196e576010548111156118ff5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610a8d565b6012546001600160a01b0383166000908152602081905260409020546119259083612944565b11156119695760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a8d565b611aaf565b6001600160a01b03821660009081526015602052604090205460ff1680156119af57506001600160a01b03831660009081526014602052604090205460ff16155b15611a25576010548111156119695760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610a8d565b6001600160a01b03821660009081526014602052604090205460ff16611aaf576012546001600160a01b038316600090815260208190526040902054611a6b9083612944565b1115611aaf5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a8d565b306000908152602081905260409020546011546007549082101590600160a81b900460ff168015611aea5750600754600160a01b900460ff16155b8015611b0f57506001600160a01b03851660009081526015602052604090205460ff16155b8015611b3457506001600160a01b03851660009081526013602052604090205460ff16155b8015611b5957506001600160a01b03841660009081526013602052604090205460ff16155b15611b6657611b66611f8f565b6007546001600160a01b03861660009081526013602052604090205460ff600160a01b909204821615911680611bb457506001600160a01b03851660009081526013602052604090205460ff165b80611bce57503260009081526013602052604090205460ff165b15611bd7575060005b8015611d5d576001600160a01b03851660009081526015602052604081205460ff168015611c0757506000600b54115b15611c90576103e8600b5486611c1d9190612991565b611c2791906129a8565b9050600b54600d5482611c3a9190612991565b611c4491906129a8565b600f6000828254611c559190612944565b9091555050600b54600c54611c6a9083612991565b611c7491906129a8565b600e6000828254611c859190612944565b90915550611d3e9050565b6001600160a01b03871660009081526015602052604090205460ff168015611cba57506000600854115b15611d3e576103e860085486611cd09190612991565b611cda91906129a8565b9050600854600a5482611ced9190612991565b611cf791906129a8565b600f6000828254611d089190612944565b9091555050600854600954611d1d9083612991565b611d2791906129a8565b600e6000828254611d389190612944565b90915550505b8015611d4f57611d4f87308361222f565b611d598186612a95565b9450505b611d6886868661222f565b505050505050565b611d7a8282610f1d565b610cf85760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611db23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e008282610f1d565b15610cf85760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611ebd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a8d565b6001600160a01b03821660009081526020819052604090205481811015611f315760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a8d565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6007805460ff60a01b1916600160a01b1790553060009081526020819052604081205490506000600e54600f54611fc69190612944565b9050811580611fd3575080155b15611fdf575050612108565b601154611fed906014612991565b82111561200557601154612002906014612991565b91505b6000600282600f54856120189190612991565b61202291906129a8565b61202c91906129a8565b9050600061203a8285612a95565b90504761204682612359565b60006120528247612a95565b9050600085600e54836120659190612991565b61206f91906129a8565b9050600061207d8284612a95565b6000600f819055600e55905085158015906120985750600081115b156120e9576120a78682612511565b60408051868152602081018390529081018790527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15b6006546120ff906001600160a01b0316476125f7565b50505050505050505b6007805460ff60a01b19169055565b6001600160a01b03821661216d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a8d565b806002600082825461217f9190612944565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6121e08282610f1d565b610cf8576121ed81611341565b6121f8836020611353565b604051602001612209929190612aa8565b60408051601f198184030181529082905262461bcd60e51b8252610a8d91600401612780565b6001600160a01b0383166122555760405162461bcd60e51b8152600401610a8d90612a0d565b6001600160a01b03821661227b5760405162461bcd60e51b8152600401610a8d90612a52565b6001600160a01b038316600090815260208190526040902054818110156122f35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a8d565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611698565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061238e5761238e6129e0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561240c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124309190612b1d565b81600181518110612443576124436129e0565b60200260200101906001600160a01b031690816001600160a01b03168152505061248e307f000000000000000000000000000000000000000000000000000000000000000084611500565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906124e3908590600090869030904290600401612b3a565b600060405180830381600087803b1580156124fd57600080fd5b505af1158015611d68573d6000803e3d6000fd5b61253c307f000000000000000000000000000000000000000000000000000000000000000084611500565b60075460405163f305d71960e01b81523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f00000000000000000000000000000000000000000000000000000000000000009091169063f305d71990839060c40160606040518083038185885af11580156125cb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906125f09190612bab565b5050505050565b804710156126475760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a8d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612694576040519150601f19603f3d011682016040523d82523d6000602084013e612699565b606091505b5050905080610c795760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a8d565b60006020828403121561272257600080fd5b81356001600160e01b0319811681146114ef57600080fd5b6000806040838503121561274d57600080fd5b50508035926020909101359150565b60005b8381101561277757818101518382015260200161275f565b50506000910152565b602081526000825180602084015261279f81604085016020870161275c565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e0457600080fd5b600080604083850312156127db57600080fd5b82356127e6816127b3565b946020939093013593505050565b60006020828403121561280657600080fd5b5035919050565b60008060006060848603121561282257600080fd5b833561282d816127b3565b9250602084013561283d816127b3565b929592945050506040919091013590565b6000806040838503121561286157600080fd5b823591506020830135612873816127b3565b809150509250929050565b60006020828403121561289057600080fd5b81356114ef816127b3565b803580151581146128ab57600080fd5b919050565b600080604083850312156128c357600080fd5b82356128ce816127b3565b91506128dc6020840161289b565b90509250929050565b6000602082840312156128f757600080fd5b6114ef8261289b565b6000806040838503121561291357600080fd5b823561291e816127b3565b91506020830135612873816127b3565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a1e57610a1e61292e565b600181811c9082168061296b57607f821691505b60208210810361298b57634e487b7160e01b600052602260045260246000fd5b50919050565b8082028115828204841417610a1e57610a1e61292e565b6000826129c557634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081612a0557612a0561292e565b506000190190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610a1e57610a1e61292e565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612ae081601785016020880161275c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612b1181602884016020880161275c565b01602801949350505050565b600060208284031215612b2f57600080fd5b81516114ef816127b3565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612b8a5784516001600160a01b031683529383019391830191600101612b65565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612bc057600080fd5b835192506020840151915060408401519050925092509256fe52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220264c14671bc4d484487b596079eddf27788a02ff0a739d85e5275e6d7756bdef64736f6c63430008110033a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217750000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x6080604052600436106103385760003560e01c80637bce5a04116101ab578063c0246668116100f7578063e2f273bd11610095578063f11a24d31161006f578063f11a24d31461096d578063f3fef3a314610983578063f6374342146109a3578063f887ea40146109b957600080fd5b8063e2f273bd14610917578063e2f4560514610937578063e37ba8f91461094d57600080fd5b8063d257b34f116100d1578063d257b34f14610897578063d4698016146108b7578063d547741f146108d7578063dd62ed3e146108f757600080fd5b8063c024666814610841578063c18bc19514610861578063c8c8ebe41461088157600080fd5b80639a7a23d611610164578063a9059cbb1161013e578063a9059cbb146107c9578063aa4bde28146107e9578063aacebbe3146107ff578063b5bfddea1461081f57600080fd5b80639a7a23d614610774578063a217fddf14610794578063a457c2d7146107a957600080fd5b80637bce5a04146106de5780638a8c523c146106f457806391d14854146107095780639213691314610729578063924de9b71461073f57806395d89b411461075f57600080fd5b806336568abe116102855780636ac5eeee11610223578063751039fc116101fd578063751039fc1461064f5780637571336a1461066457806375b238fc1461068457806375f0a874146106a657600080fd5b80636ac5eeee146105e45780636eb38212146105f957806370a082311461061957600080fd5b806347e7ef241161025f57806347e7ef24146105445780634bb2c785146105645780634fbee1931461059457806366ca9b83146105c457600080fd5b806336568abe146104ee5780633705b3921461050e578063395093511461052457600080fd5b80631a8145bb116102f257806323b872dd116102cc57806323b872dd14610462578063248a9ca3146104825780632f2ff15d146104b2578063313ce567146104d257600080fd5b80631a8145bb146104165780631f3fed8f1461042c578063203e727e1461044257600080fd5b8062afb3251461034457806301ffc9a71461036d57806302dbd8f81461039d57806306fdde03146103bf578063095ea7b3146103e157806318160ddd1461040157600080fd5b3661033f57005b600080fd5b34801561035057600080fd5b5061035a600b5481565b6040519081526020015b60405180910390f35b34801561037957600080fd5b5061038d610388366004612710565b6109ed565b6040519015158152602001610364565b3480156103a957600080fd5b506103bd6103b836600461273a565b610a24565b005b3480156103cb57600080fd5b506103d4610ad5565b6040516103649190612780565b3480156103ed57600080fd5b5061038d6103fc3660046127c8565b610b67565b34801561040d57600080fd5b5060025461035a565b34801561042257600080fd5b5061035a600f5481565b34801561043857600080fd5b5061035a600e5481565b34801561044e57600080fd5b506103bd61045d3660046127f4565b610b7f565b34801561046e57600080fd5b5061038d61047d36600461280d565b610c30565b34801561048e57600080fd5b5061035a61049d3660046127f4565b60009081526005602052604090206001015490565b3480156104be57600080fd5b506103bd6104cd36600461284e565b610c54565b3480156104de57600080fd5b5060405160128152602001610364565b3480156104fa57600080fd5b506103bd61050936600461284e565b610c7e565b34801561051a57600080fd5b5061035a60085481565b34801561053057600080fd5b5061038d61053f3660046127c8565b610cfc565b34801561055057600080fd5b5061038d61055f3660046127c8565b610d1e565b34801561057057600080fd5b5061038d61057f36600461287e565b60146020526000908152604090205460ff1681565b3480156105a057600080fd5b5061038d6105af36600461287e565b60136020526000908152604090205460ff1681565b3480156105d057600080fd5b506103bd6105df36600461273a565b610d42565b3480156105f057600080fd5b506103bd610de4565b34801561060557600080fd5b506103bd61061436600461287e565b610e07565b34801561062557600080fd5b5061035a61063436600461287e565b6001600160a01b031660009081526020819052604090205490565b34801561065b57600080fd5b506103bd610e37565b34801561067057600080fd5b506103bd61067f3660046128b0565b610e5f565b34801561069057600080fd5b5061035a600080516020612bfa83398151915281565b3480156106b257600080fd5b506006546106c6906001600160a01b031681565b6040516001600160a01b039091168152602001610364565b3480156106ea57600080fd5b5061035a60095481565b34801561070057600080fd5b506103bd610ea3565b34801561071557600080fd5b5061038d61072436600461284e565b610f1d565b34801561073557600080fd5b5061035a600c5481565b34801561074b57600080fd5b506103bd61075a3660046128e5565b610f48565b34801561076b57600080fd5b506103d4610f7f565b34801561078057600080fd5b506103bd61078f3660046128b0565b610f8e565b3480156107a057600080fd5b5061035a600081565b3480156107b557600080fd5b5061038d6107c43660046127c8565b610fd2565b3480156107d557600080fd5b5061038d6107e43660046127c8565b61104d565b3480156107f557600080fd5b5061035a60125481565b34801561080b57600080fd5b506103bd61081a36600461287e565b61105b565b34801561082b57600080fd5b5061035a600080516020612bda83398151915281565b34801561084d57600080fd5b506103bd61085c3660046128b0565b6110c1565b34801561086d57600080fd5b506103bd61087c3660046127f4565b611105565b34801561088d57600080fd5b5061035a60105481565b3480156108a357600080fd5b506103bd6108b23660046127f4565b6111ae565b3480156108c357600080fd5b506007546106c6906001600160a01b031681565b3480156108e357600080fd5b506103bd6108f236600461284e565b611237565b34801561090357600080fd5b5061035a610912366004612900565b61125c565b34801561092357600080fd5b506103bd61093236600461287e565b611287565b34801561094357600080fd5b5061035a60115481565b34801561095957600080fd5b506103bd61096836600461287e565b6112b7565b34801561097957600080fd5b5061035a600a5481565b34801561098f57600080fd5b5061038d61099e3660046127c8565b61131d565b3480156109af57600080fd5b5061035a600d5481565b3480156109c557600080fd5b506106c67f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60006001600160e01b03198216637965db0b60e01b1480610a1e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080516020612bfa833981519152610a3c816114f6565b600c839055600d829055610a508284612944565b600b8190556101901015610a965760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064015b60405180910390fd5b60408051848152602081018490527f2c7448b63380296b372453c5287509524b5b645dc6a93ffe09e0af53e6b8935b91015b60405180910390a1505050565b606060038054610ae490612957565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1090612957565b8015610b5d5780601f10610b3257610100808354040283529160200191610b5d565b820191906000526020600020905b815481529060010190602001808311610b4057829003601f168201915b5050505050905090565b600033610b75818585611500565b5060019392505050565b600080516020612bfa833981519152610b97816114f6565b6005821015610bd25760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610a8d565b6103e882610bdf60025490565b610be99190612991565b610bf391906129a8565b60108190556040519081527fff3dd5e80294197918c284bbfc3dadd97d0b40ce92106110946329088f80068a906020015b60405180910390a15050565b600033610c3e858285611624565b610c4985858561169e565b506001949350505050565b600082815260056020526040902060010154610c6f816114f6565b610c798383611d70565b505050565b6001600160a01b0381163314610cee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a8d565b610cf88282611df6565b5050565b600033610b75818585610d0f838361125c565b610d199190612944565b611500565b6000600080516020612bda833981519152610d38816114f6565b610b758484611e5d565b600080516020612bfa833981519152610d5a816114f6565b6009839055600a829055610d6e8284612944565b600881905560fa1015610dae5760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401610a8d565b60408051848152602081018490527f480af1f773972b1df72af32ec463e0fdeb1b49f1ca37d07982f677919d5fdd0c9101610ac8565b600080516020612bfa833981519152610dfc816114f6565b610e04611f8f565b50565b600080516020612bfa833981519152610e1f816114f6565b610cf8600080516020612bda83398151915283611d70565b600080516020612bfa833981519152610e4f816114f6565b506007805460ff60b01b19169055565b600080516020612bfa833981519152610e77816114f6565b506001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b600080516020612bfa833981519152610ebb816114f6565b600754600160b81b900460ff1615610f075760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e48195b98589b1959608a1b6044820152606401610a8d565b506007805460ff60b81b1916600160b81b179055565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020612bfa833981519152610f60816114f6565b5060078054911515600160a81b0260ff60a81b19909216919091179055565b606060048054610ae490612957565b600080516020612bfa833981519152610fa6816114f6565b506001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b60003381610fe0828661125c565b9050838110156110405760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a8d565b610c498286868403611500565b600033610b7581858561169e565b600080516020612bfa833981519152611073816114f6565b600680546001600160a01b0319166001600160a01b0384169081179091556040519081527f4edbfac5b40fe46ac1af1fd222b224b38cfeeb9e21bd4fc6344526c245f7549b90602001610c24565b600080516020612bfa8339815191526110d9816114f6565b506001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b600080516020612bfa83398151915261111d816114f6565b60058210156111585760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610a8d565b6103e88261116560025490565b61116f9190612991565b61117991906129a8565b60128190556040519081527f12528a3c61e0f3b2d6fc707a9fc58b1af86e252cad0d7f4c154ebeabb162dace90602001610c24565b600080516020612bfa8339815191526111c6816114f6565b600182101580156111d957506101f48211155b61120f5760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b6044820152606401610a8d565b6127108261121c60025490565b6112269190612991565b61123091906129a8565b6011555050565b600082815260056020526040902060010154611252816114f6565b610c798383611df6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600080516020612bfa83398151915261129f816114f6565b610cf8600080516020612bfa83398151915283611d70565b600080516020612bfa8339815191526112cf816114f6565b600780546001600160a01b0319166001600160a01b0384169081179091556040519081527f4edbfac5b40fe46ac1af1fd222b224b38cfeeb9e21bd4fc6344526c245f7549b90602001610c24565b6000600080516020612bda833981519152611337816114f6565b610b758484612117565b6060610a1e6001600160a01b03831660145b60606000611362836002612991565b61136d906002612944565b67ffffffffffffffff811115611385576113856129ca565b6040519080825280601f01601f1916602001820160405280156113af576020820181803683370190505b509050600360fc1b816000815181106113ca576113ca6129e0565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106113f9576113f96129e0565b60200101906001600160f81b031916908160001a905350600061141d846002612991565b611428906001612944565b90505b60018111156114a0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061145c5761145c6129e0565b1a60f81b828281518110611472576114726129e0565b60200101906001600160f81b031916908160001a90535060049490941c93611499816129f6565b905061142b565b5083156114ef5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a8d565b9392505050565b610e0481336121d6565b6001600160a01b0383166115625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a8d565b6001600160a01b0382166115c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a8d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611630848461125c565b90506000198114611698578181101561168b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a8d565b6116988484848403611500565b50505050565b6001600160a01b0383166116c45760405162461bcd60e51b8152600401610a8d90612a0d565b6001600160a01b0382166116ea5760405162461bcd60e51b8152600401610a8d90612a52565b806000036116fe57610c798383600061222f565b600754600160b01b900460ff1615611aaf573260009081526013602052604090205460ff1615801561174957506001600160a01b03831660009081526013602052604090205460ff16155b801561176e57506001600160a01b03821660009081526013602052604090205460ff16155b801561178257506001600160a01b03821615155b801561179957506001600160a01b03821661dead14155b80156117af5750600754600160a01b900460ff16155b15611aaf57600754600160b81b900460ff16611849576001600160a01b03831660009081526013602052604090205460ff168061180457506001600160a01b03821660009081526013602052604090205460ff165b6118495760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610a8d565b6001600160a01b03831660009081526015602052604090205460ff16801561188a57506001600160a01b03821660009081526014602052604090205460ff16155b1561196e576010548111156118ff5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610a8d565b6012546001600160a01b0383166000908152602081905260409020546119259083612944565b11156119695760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a8d565b611aaf565b6001600160a01b03821660009081526015602052604090205460ff1680156119af57506001600160a01b03831660009081526014602052604090205460ff16155b15611a25576010548111156119695760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610a8d565b6001600160a01b03821660009081526014602052604090205460ff16611aaf576012546001600160a01b038316600090815260208190526040902054611a6b9083612944565b1115611aaf5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a8d565b306000908152602081905260409020546011546007549082101590600160a81b900460ff168015611aea5750600754600160a01b900460ff16155b8015611b0f57506001600160a01b03851660009081526015602052604090205460ff16155b8015611b3457506001600160a01b03851660009081526013602052604090205460ff16155b8015611b5957506001600160a01b03841660009081526013602052604090205460ff16155b15611b6657611b66611f8f565b6007546001600160a01b03861660009081526013602052604090205460ff600160a01b909204821615911680611bb457506001600160a01b03851660009081526013602052604090205460ff165b80611bce57503260009081526013602052604090205460ff165b15611bd7575060005b8015611d5d576001600160a01b03851660009081526015602052604081205460ff168015611c0757506000600b54115b15611c90576103e8600b5486611c1d9190612991565b611c2791906129a8565b9050600b54600d5482611c3a9190612991565b611c4491906129a8565b600f6000828254611c559190612944565b9091555050600b54600c54611c6a9083612991565b611c7491906129a8565b600e6000828254611c859190612944565b90915550611d3e9050565b6001600160a01b03871660009081526015602052604090205460ff168015611cba57506000600854115b15611d3e576103e860085486611cd09190612991565b611cda91906129a8565b9050600854600a5482611ced9190612991565b611cf791906129a8565b600f6000828254611d089190612944565b9091555050600854600954611d1d9083612991565b611d2791906129a8565b600e6000828254611d389190612944565b90915550505b8015611d4f57611d4f87308361222f565b611d598186612a95565b9450505b611d6886868661222f565b505050505050565b611d7a8282610f1d565b610cf85760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611db23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e008282610f1d565b15610cf85760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611ebd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a8d565b6001600160a01b03821660009081526020819052604090205481811015611f315760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a8d565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6007805460ff60a01b1916600160a01b1790553060009081526020819052604081205490506000600e54600f54611fc69190612944565b9050811580611fd3575080155b15611fdf575050612108565b601154611fed906014612991565b82111561200557601154612002906014612991565b91505b6000600282600f54856120189190612991565b61202291906129a8565b61202c91906129a8565b9050600061203a8285612a95565b90504761204682612359565b60006120528247612a95565b9050600085600e54836120659190612991565b61206f91906129a8565b9050600061207d8284612a95565b6000600f819055600e55905085158015906120985750600081115b156120e9576120a78682612511565b60408051868152602081018390529081018790527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15b6006546120ff906001600160a01b0316476125f7565b50505050505050505b6007805460ff60a01b19169055565b6001600160a01b03821661216d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a8d565b806002600082825461217f9190612944565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6121e08282610f1d565b610cf8576121ed81611341565b6121f8836020611353565b604051602001612209929190612aa8565b60408051601f198184030181529082905262461bcd60e51b8252610a8d91600401612780565b6001600160a01b0383166122555760405162461bcd60e51b8152600401610a8d90612a0d565b6001600160a01b03821661227b5760405162461bcd60e51b8152600401610a8d90612a52565b6001600160a01b038316600090815260208190526040902054818110156122f35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a8d565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611698565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061238e5761238e6129e0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561240c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124309190612b1d565b81600181518110612443576124436129e0565b60200260200101906001600160a01b031690816001600160a01b03168152505061248e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611500565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906124e3908590600090869030904290600401612b3a565b600060405180830381600087803b1580156124fd57600080fd5b505af1158015611d68573d6000803e3d6000fd5b61253c307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611500565b60075460405163f305d71960e01b81523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063f305d71990839060c40160606040518083038185885af11580156125cb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906125f09190612bab565b5050505050565b804710156126475760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a8d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612694576040519150601f19603f3d011682016040523d82523d6000602084013e612699565b606091505b5050905080610c795760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a8d565b60006020828403121561272257600080fd5b81356001600160e01b0319811681146114ef57600080fd5b6000806040838503121561274d57600080fd5b50508035926020909101359150565b60005b8381101561277757818101518382015260200161275f565b50506000910152565b602081526000825180602084015261279f81604085016020870161275c565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e0457600080fd5b600080604083850312156127db57600080fd5b82356127e6816127b3565b946020939093013593505050565b60006020828403121561280657600080fd5b5035919050565b60008060006060848603121561282257600080fd5b833561282d816127b3565b9250602084013561283d816127b3565b929592945050506040919091013590565b6000806040838503121561286157600080fd5b823591506020830135612873816127b3565b809150509250929050565b60006020828403121561289057600080fd5b81356114ef816127b3565b803580151581146128ab57600080fd5b919050565b600080604083850312156128c357600080fd5b82356128ce816127b3565b91506128dc6020840161289b565b90509250929050565b6000602082840312156128f757600080fd5b6114ef8261289b565b6000806040838503121561291357600080fd5b823561291e816127b3565b91506020830135612873816127b3565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a1e57610a1e61292e565b600181811c9082168061296b57607f821691505b60208210810361298b57634e487b7160e01b600052602260045260246000fd5b50919050565b8082028115828204841417610a1e57610a1e61292e565b6000826129c557634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081612a0557612a0561292e565b506000190190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610a1e57610a1e61292e565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612ae081601785016020880161275c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612b1181602884016020880161275c565b01602801949350505050565b600060208284031215612b2f57600080fd5b81516114ef816127b3565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612b8a5784516001600160a01b031683529383019391830191600101612b65565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612bc057600080fd5b835192506020840151915060408401519050925092509256fe52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220264c14671bc4d484487b596079eddf27788a02ff0a739d85e5275e6d7756bdef64736f6c63430008110033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.