ETH Price: $3,183.07 (+3.57%)

Contract

0x417342CD8BC7b9fa5A5Fc8d9b7e3E2E0E17E2414
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040137360542021-12-03 21:56:141080 days ago1638568574IN
 Create: SALMONV2
0 ETH0.4188702150

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SALMONV2

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : salmonupgrade.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;






import "@openzeppelin/contracts/token/ERC20/ERC20.sol";



import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";



import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol';


contract SALMONV2 is ERC20Upgradeable, OwnableUpgradeable {
    using SafeMathUpgradeable for uint256;
    using AddressUpgradeable for address;

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

    mapping(address => bool) controllers;  // a mapping from an address to whether or not it can mint / burn

    mapping (address => bool) private _isExcludedFromFee;

    mapping (address => bool) private _isExcluded;
    address[] private _excluded;

    uint256 private constant MAX = ~uint256(0);
    uint256 private _tTotal;
    uint256 private _rTotal;
    uint256 private _tFeeTotal;

    string private _name;
    string private _symbol;
    uint8 private _decimals;


    
    uint256 public _taxFee;
    uint256 private _previousTaxFee;

    uint256 public _liquidityFee;
    uint256 private _previousLiquidityFee;

    uint256 public _burnFee;
    uint256 private _previousBurnFee;


    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    bool inSwapAndLiquify;
    bool public swapAndLiquifyEnabled;

    uint256 private numTokensSellToAddToLiquidity;

    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    modifier lockTheSwap {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    function initialize() initializer public {

        __ERC20_init("SALMON", "SALMON");
        __Ownable_init();

        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;

        numTokensSellToAddToLiquidity = 5 * 10**6 * 10**18;
        _liquidityFee = 30;
        _taxFee = 0;
        _decimals = 18;
        _symbol = "SALMON";
        _name = "SALMON";
        _tTotal = 10;
        _burnFee = 0;
        swapAndLiquifyEnabled = true;
        _rTotal = 0;
        _previousTaxFee = _taxFee;
        _previousLiquidityFee = _liquidityFee;
        _previousBurnFee = _burnFee;

        _rOwned[_msgSender()] = 0;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        uniswapV2Router = _uniswapV2Router;
        
    
        emit Transfer(address(0), _msgSender(), _tTotal);


    }
    

    function name() public view override returns (string memory) {
        return _name;
    }

    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    function decimals() public view  override returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _tTotal;
    }

    // mints $SALMON to a recipient
    function mint(address account, uint256 amount) external {
        require(controllers[msg.sender], "Only controllers can mint");
        require(account != address(0), "ERC20: mint to the zero address");
        
        _mint(account, amount);
        _tTotal = _tTotal.add(amount);
        _rTotal = _rTotal.add(amount);
        _tOwned[account] = _tOwned[account].add(amount);
        _rOwned[account] = _rOwned[account].add(amount);

        // emit Transfer(address(0), account, amount);
    }
 //    burns $SALMON from a holder
    function burn(address from, uint256 amount) external {
        require(controllers[msg.sender], "Only controllers can burn");
        require(amount <= _tOwned[from],"Cant Burn");

        _tTotal -= amount;
        _tOwned[from] -= amount;
        emit Transfer(from, address(0), amount);
    }



    function transfer(address recipient, uint256 amount) public override returns (bool) {

        _transfer(_msgSender(), recipient, amount);

        return true;
    }

    function allowance(address owner, address spender) public view override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual override returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual  override returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    function isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function totalFees() public view returns (uint256) {
        return _tFeeTotal;
    }

    function deliver(uint256 tAmount) public {
        address sender = _msgSender();
        require(!_isExcluded[sender], "Excluded addresses cannot call this function");
        Values memory values = _getValues(tAmount);
        uint256 rAmount = values.rAmount;
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rTotal = _rTotal.sub(rAmount);
        _tFeeTotal = _tFeeTotal.add(tAmount);
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
        require(tAmount <= _tTotal, "Amount must be less than supply");
        if (!deductTransferFee) {
            Values memory values = _getValues(tAmount);
            return values.rAmount;
        } else {
            Values memory values = _getValues(tAmount);
            return values.rTransferAmount;
        }
    }

    function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
        require(rAmount <= _rTotal, "Amount must be less than total reflections");
        uint256 currentRate =  _getRate();
        if (rAmount == 0 || currentRate == 0) return 0;
        return rAmount.div(currentRate);
    }

    function excludeFromReward(address account) public onlyOwner() {
        // require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.');
        require(!_isExcluded[account], "Account is already excluded");
        if(_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner() {
        require(_isExcluded[account], "Account is already excluded");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }
    function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
        Values memory values = _getValues(tAmount);
        uint256 rAmount = values.rAmount;
        uint256 rTransferAmount = values.rTransferAmount;
        uint256 rFee = values.rFee;
        uint256 tTransferAmount = values.tTransferAmount;
        uint256 tFee = values.tFee;
        uint256 tLiquidity = values.tLiquidity;
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function excludeFromFee(address account) public onlyOwner {
        _isExcludedFromFee[account] = true;
    }

    function includeInFee(address account) public onlyOwner {
        _isExcludedFromFee[account] = false;
    }

    function setTaxFeePercent(uint256 taxFee) external onlyOwner() {
        _taxFee = taxFee;
    }

    function setBurnFeePercent(uint256 burnFee) external onlyOwner() {
        _burnFee = burnFee;
    }

    function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
        _liquidityFee = liquidityFee;
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    receive() external payable {}

    function _reflectFee(uint256 rFee, uint256 tFee) private {
        _rTotal = _rTotal.sub(rFee);
        _tFeeTotal = _tFeeTotal.add(tFee);
    }

    struct Values{
        uint256 rAmount;
        uint256 rTransferAmount;
        uint256 rFee;
        uint256 rBurnFee;
        uint256 tTransferAmount;
        uint256 tFee;
        uint256 tLiquidity;
        uint256 tBurnFee;
    }

    struct rValuesParams {
        uint256 tAmount;
        uint256 tFee;
        uint256 tLiquidity;
        uint256 tBurnFee;
        uint256 currentRate;
    }

    function _getValues(uint256 tAmount) private view returns (Values memory) {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tBurnFee) = _getTValues(tAmount);

        rValuesParams memory r_values_params = rValuesParams(tAmount, tFee, tLiquidity, tBurnFee, _getRate());

        (
        uint256 rAmount,
        uint256 rTransferAmount,
        uint256 rFee,
        uint256 rBurnFee
        ) = _getRValues(r_values_params);

        Values memory values = Values(rAmount, rTransferAmount, rFee, rBurnFee, tTransferAmount, tFee, tLiquidity, tBurnFee);

        return (values);
    }

    function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256) {
        uint256 tFee = calculateTaxFee(tAmount);
        uint256 tBurnFee = calculateBurnFee(tAmount);
        uint256 tLiquidity = calculateLiquidityFee(tAmount);
        uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity).sub(tBurnFee);
        return (tTransferAmount, tFee, tLiquidity, tBurnFee);
    }

    function _getRValues(rValuesParams memory r_values_params) private pure returns (uint256, uint256, uint256, uint256) {
        uint256 tAmount = r_values_params.tAmount;
        uint256 tFee = r_values_params.tFee;
        uint256 tLiquidity = r_values_params.tLiquidity;
        uint256 tBurnFee = r_values_params.tBurnFee;
        uint256 currentRate = r_values_params.currentRate;

        uint256 rAmount = tAmount.mul(currentRate);
        uint256 rFee = tFee.mul(currentRate);
        uint256 rBurnFee = tBurnFee.mul(currentRate);
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity).sub(rBurnFee);
        return (rAmount, rTransferAmount, rFee, rBurnFee);
    }

    function _getRate() private view returns(uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply.div(tSupply);
    }

    function _getCurrentSupply() private view returns(uint256, uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = _tTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
            rSupply = rSupply.sub(_rOwned[_excluded[i]]);
            tSupply = tSupply.sub(_tOwned[_excluded[i]]);
        }
        if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }

    function _takeLiquidity(uint256 tLiquidity) private {
        uint256 currentRate =  _getRate();
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
        if(_isExcluded[address(this)])
            _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
    }

    function calculateTaxFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(_taxFee).div(
            10**2
        );
    }

    function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(_liquidityFee).div(
            10**2
        );
    }

    function calculateBurnFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(_burnFee).div(
            10**2
        );
    }

    function removeAllFee() private {
        if(_taxFee == 0 && _liquidityFee == 0 && _burnFee == 0) return;

        _previousTaxFee = _taxFee;
        _previousLiquidityFee = _liquidityFee;
        _previousBurnFee = _burnFee;

        _taxFee = 0;
        _liquidityFee = 0;
        _burnFee = 0;
    }

    function restoreAllFee() private {
        _taxFee = _previousTaxFee;
        _liquidityFee = _previousLiquidityFee;
        _burnFee = _previousBurnFee;
    }

    function isExcludedFromFee(address account) public view returns(bool) {
        return _isExcludedFromFee[account];
    }

    function _approve(address owner, address spender, uint256 amount) internal override {
        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);
    }

    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");
        require(amount > 0, "Transfer amount must be greater than zero");
        
        uint256 contractTokenBalance = balanceOf(address(this));

        bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;
        if (
            overMinTokenBalance &&
            !inSwapAndLiquify &&
            from != uniswapV2Pair &&
            swapAndLiquifyEnabled
        ) {
            contractTokenBalance = numTokensSellToAddToLiquidity;
            swapAndLiquify(contractTokenBalance);
        }

        bool takeFee = true;

        if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
            takeFee = false;
        }

        _tokenTransfer(from,to,amount,takeFee);
    }

    function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        // split the contract balance into halves
        uint256 half = contractTokenBalance.div(2);
        uint256 otherHalf = contractTokenBalance.sub(half);

        uint256 initialBalance = address(this).balance;

        swapTokensForEth(half);

        uint256 newBalance = address(this).balance.sub(initialBalance);

        addLiquidity(otherHalf, newBalance);

        emit SwapAndLiquify(half, newBalance, otherHalf);
    }

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

        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            owner(),
            block.timestamp
        );
    }

    // enables an address to mint / burn
    function addController(address controller) external onlyOwner {
        controllers[controller] = true;
    }

    // disables an address from mint / burn
    function removeController(address controller) external onlyOwner {
        controllers[controller] = false;
    }

    function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
        if(!takeFee)
            removeAllFee();

        if (_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferFromExcluded(sender, recipient, amount);
        } else if (!_isExcluded[sender] && _isExcluded[recipient]) {
            _transferToExcluded(sender, recipient, amount);
        } else if (!_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferStandard(sender, recipient, amount);
        } else if (_isExcluded[sender] && _isExcluded[recipient]) {
            _transferBothExcluded(sender, recipient, amount);
        } else {
            _transferStandard(sender, recipient, amount);
        }

        if(!takeFee)
            restoreAllFee();
    }

    function _transferStandard(address sender, address recipient, uint256 tAmount) private {
        Values memory values = _getValues(tAmount);
        uint256 rAmount = values.rAmount;
        uint256 rTransferAmount = values.rTransferAmount;
        uint256 rFee = values.rFee;
        uint256 tTransferAmount = values.tTransferAmount;
        uint256 tFee = values.tFee;
        uint256 tLiquidity = values.tLiquidity;
        uint256 tBurnFee = values.tBurnFee;
        uint256 rBurnFee = values.rBurnFee;

        _tTotal = _tTotal.sub(tBurnFee);
        _rTotal = _rTotal.sub(rBurnFee);

        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);

        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        

        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);

        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
        Values memory values = _getValues(tAmount);
        uint256 rAmount = values.rAmount;
        uint256 rTransferAmount = values.rTransferAmount;
        uint256 rFee = values.rFee;
        uint256 tTransferAmount = values.tTransferAmount;
        uint256 tFee = values.tFee;
        uint256 tLiquidity = values.tLiquidity;

        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);

        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        




        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
        Values memory values = _getValues(tAmount);
        uint256 rAmount = values.rAmount;
        uint256 rTransferAmount = values.rTransferAmount;
        uint256 rFee = values.rFee;
        uint256 tTransferAmount = values.tTransferAmount;
        uint256 tFee = values.tFee;
        uint256 tLiquidity = values.tLiquidity;

        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);

        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);


        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }


    function changeReserveAmount(uint256 _newReserve) external onlyOwner {
      numTokensSellToAddToLiquidity = _newReserve;
    }


    function balanceOf(address account) public view virtual override  returns (uint256) {


        if (_isExcluded[account]) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]) +_tOwned[account];
    }


}

File 2 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 3 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 4 of 17 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

File 5 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 6 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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 8 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/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.zeppelin.solutions/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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 10 of 17 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 11 of 17 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

File 12 of 17 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 17 : IERC20MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @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 14 of 17 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 15 of 17 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20Upgradeable.sol";
import "./extensions/IERC20MetadataUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../proxy/utils/Initializable.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.zeppelin.solutions/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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
    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.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 {}
    uint256[45] private __gap;
}

File 16 of 17 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 17 of 17 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"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":"minTokensBeforeSwap","type":"uint256"}],"name":"MinTokensBeforeSwapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","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"},{"inputs":[],"name":"_burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newReserve","type":"uint256"}],"name":"changeReserveAmount","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"burnFee","type":"uint256"}],"name":"setBurnFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"setLiquidityFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee","type":"uint256"}],"name":"setTaxFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50613190806100206000396000f3fe60806040526004361061023f5760003560e01c80635342acb41161012e578063a457c2d7116100ab578063cea269581161006f578063cea26958146106c8578063dd62ed3e146106e8578063ea2f0b371461072e578063f2fde38b1461074e578063f6a74ed71461076e57600080fd5b8063a457c2d714610632578063a7fc7a0714610652578063a9059cbb14610672578063c0b0fda214610692578063c49b9a80146106a857600080fd5b806388f82020116100f257806388f82020146105865780638da5cb5b146105bf5780638ee88c53146105dd57806395d89b41146105fd5780639dc29fac1461061257600080fd5b80635342acb4146104ed5780636bc87c3a1461052657806370a082311461053c578063715018a61461055c5780638129fc1c1461057157600080fd5b806339509351116101bc578063437823ec11610180578063437823ec1461044c5780634549b0391461046c57806349bd5a5e1461048c5780634a74bb02146104ac57806352390c02146104cd57600080fd5b806339509351146103b65780633b124fe7146103d65780633bd5d173146103ec57806340c10f191461040c5780634100b5aa1461042c57600080fd5b806318160ddd1161020357806318160ddd1461031f57806323b872dd146103345780632d83811914610354578063313ce567146103745780633685d4191461039657600080fd5b8063061c82d01461024b57806306fdde031461026d578063095ea7b31461029857806313114a9d146102c85780631694505e146102e757600080fd5b3661024657005b600080fd5b34801561025757600080fd5b5061026b610266366004612e14565b61078e565b005b34801561027957600080fd5b506102826107c6565b60405161028f9190612e87565b60405180910390f35b3480156102a457600080fd5b506102b86102b3366004612dcd565b610858565b604051901515815260200161028f565b3480156102d457600080fd5b5060a0545b60405190815260200161028f565b3480156102f357600080fd5b5060aa54610307906001600160a01b031681565b6040516001600160a01b03909116815260200161028f565b34801561032b57600080fd5b50609e546102d9565b34801561034057600080fd5b506102b861034f366004612d8c565b61086f565b34801561036057600080fd5b506102d961036f366004612e14565b6108d8565b34801561038057600080fd5b5060a35460405160ff909116815260200161028f565b3480156103a257600080fd5b5061026b6103b1366004612d19565b610975565b3480156103c257600080fd5b506102b86103d1366004612dcd565b610b2c565b3480156103e257600080fd5b506102d960a45481565b3480156103f857600080fd5b5061026b610407366004612e14565b610b62565b34801561041857600080fd5b5061026b610427366004612dcd565b610c4a565b34801561043857600080fd5b5061026b610447366004612e14565b610d9b565b34801561045857600080fd5b5061026b610467366004612d19565b610dca565b34801561047857600080fd5b506102d9610487366004612e2d565b610e18565b34801561049857600080fd5b5060ab54610307906001600160a01b031681565b3480156104b857600080fd5b5060ab546102b890600160a81b900460ff1681565b3480156104d957600080fd5b5061026b6104e8366004612d19565b610e9e565b3480156104f957600080fd5b506102b8610508366004612d19565b6001600160a01b03166000908152609b602052604090205460ff1690565b34801561053257600080fd5b506102d960a65481565b34801561054857600080fd5b506102d9610557366004612d19565b610ff1565b34801561056857600080fd5b5061026b611066565b34801561057d57600080fd5b5061026b61109c565b34801561059257600080fd5b506102b86105a1366004612d19565b6001600160a01b03166000908152609c602052604090205460ff1690565b3480156105cb57600080fd5b506065546001600160a01b0316610307565b3480156105e957600080fd5b5061026b6105f8366004612e14565b611470565b34801561060957600080fd5b5061028261149f565b34801561061e57600080fd5b5061026b61062d366004612dcd565b6114ae565b34801561063e57600080fd5b506102b861064d366004612dcd565b6115d8565b34801561065e57600080fd5b5061026b61066d366004612d19565b611627565b34801561067e57600080fd5b506102b861068d366004612dcd565b611675565b34801561069e57600080fd5b506102d960a85481565b3480156106b457600080fd5b5061026b6106c3366004612df9565b611682565b3480156106d457600080fd5b5061026b6106e3366004612e14565b611704565b3480156106f457600080fd5b506102d9610703366004612d53565b6001600160a01b03918216600090815260996020908152604080832093909416825291909152205490565b34801561073a57600080fd5b5061026b610749366004612d19565b611733565b34801561075a57600080fd5b5061026b610769366004612d19565b61177e565b34801561077a57600080fd5b5061026b610789366004612d19565b611816565b6065546001600160a01b031633146107c15760405162461bcd60e51b81526004016107b890612f2a565b60405180910390fd5b60a455565b606060a180546107d590613040565b80601f016020809104026020016040519081016040528092919081815260200182805461080190613040565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b6000610865338484611861565b5060015b92915050565b600061087c848484611985565b6108ce84336108c9856040518060600160405280602881526020016130ee602891396001600160a01b038a1660009081526099602090815260408083203384529091529020549190611b7a565b611861565b5060019392505050565b6000609f5482111561093f5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016107b8565b6000610949611ba6565b9050821580610956575080155b156109645750600092915050565b61096e8382611bc9565b9392505050565b6065546001600160a01b0316331461099f5760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b0381166000908152609c602052604090205460ff16610a075760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016107b8565b60005b609d54811015610b2857816001600160a01b0316609d8281548110610a3157610a316130c2565b6000918252602090912001546001600160a01b03161415610b1657609d8054610a5c90600190613029565b81548110610a6c57610a6c6130c2565b600091825260209091200154609d80546001600160a01b039092169183908110610a9857610a986130c2565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152609882526040808220829055609c90925220805460ff19169055609d805480610af057610af06130ac565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610b208161307b565b915050610a0a565b5050565b3360008181526099602090815260408083206001600160a01b038716845290915281205490916108659185906108c99086611bd5565b336000818152609c602052604090205460ff1615610bd75760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b60648201526084016107b8565b6000610be283611be1565b80516001600160a01b03841660009081526097602052604090205491925090610c0b9082611cc6565b6001600160a01b038416600090815260976020526040902055609f54610c319082611cc6565b609f5560a054610c419085611bd5565b60a05550505050565b336000908152609a602052604090205460ff16610ca95760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206d696e740000000000000060448201526064016107b8565b6001600160a01b038216610cff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107b8565b610d098282611cd2565b609e54610d169082611bd5565b609e55609f54610d269082611bd5565b609f556001600160a01b038216600090815260986020526040902054610d4c9082611bd5565b6001600160a01b038316600090815260986020908152604080832093909355609790522054610d7b9082611bd5565b6001600160a01b0390921660009081526097602052604090209190915550565b6065546001600160a01b03163314610dc55760405162461bcd60e51b81526004016107b890612f2a565b60ac55565b6065546001600160a01b03163314610df45760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609b60205260409020805460ff19166001179055565b6000609e54831115610e6c5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016107b8565b81610e86576000610e7c84611be1565b5191506108699050565b6000610e9184611be1565b6020015191506108699050565b6065546001600160a01b03163314610ec85760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b0381166000908152609c602052604090205460ff1615610f315760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016107b8565b6001600160a01b03811660009081526097602052604090205415610f8b576001600160a01b038116600090815260976020526040902054610f71906108d8565b6001600160a01b0382166000908152609860205260409020555b6001600160a01b03166000818152609c60205260408120805460ff19166001908117909155609d805491820181559091527fd26e832454299e9fabb89e0e5fffdc046d4e14431bc1bf607ffb2e8a1ddecf7b0180546001600160a01b0319169091179055565b6001600160a01b0381166000908152609c602052604081205460ff161561102e57506001600160a01b031660009081526098602052604090205490565b6001600160a01b03821660009081526098602090815260408083205460979092529091205461105c906108d8565b6108699190612fd0565b6065546001600160a01b031633146110905760405162461bcd60e51b81526004016107b890612f2a565b61109a6000611d9f565b565b600054610100900460ff16806110b5575060005460ff16155b6110d15760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff161580156110f3576000805461ffff19166101011790555b6111396040518060400160405280600681526020016529a0a626a7a760d11b8152506040518060400160405280600681526020016529a0a626a7a760d11b815250611df1565b611141611e71565b6001609b60006111596065546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152609b83528181208054851660011790556a0422ca8b0a00a42500000060ac55601e60a65560a45560a38054909316601217909255815180830190925260068083526529a0a626a7a760d11b929091019182526111e69160a291612c6b565b506040805180820190915260068082526529a0a626a7a760d11b60209092019182526112149160a191612c6b565b50600a609e55600060a881905560ab805460ff60a81b1916600160a81b179055609f81905560a45460a55560a65460a75560a98190556097816112543390565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000737a250d5630b4cf539739df2c5dacb4c659f2488d9050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156112ca57600080fd5b505afa1580156112de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113029190612d36565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561134a57600080fd5b505afa15801561135e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113829190612d36565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114029190612d36565b60ab80546001600160a01b03199081166001600160a01b039384161790915560aa8054909116918316919091179055609e5460405190815233906000906000805160206131168339815191529060200160405180910390a350801561146d576000805461ff00191690555b50565b6065546001600160a01b0316331461149a5760405162461bcd60e51b81526004016107b890612f2a565b60a655565b606060a280546107d590613040565b336000908152609a602052604090205460ff1661150d5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206275726e0000000000000060448201526064016107b8565b6001600160a01b0382166000908152609860205260409020548111156115615760405162461bcd60e51b815260206004820152600960248201526821b0b73a10213ab93760b91b60448201526064016107b8565b80609e60008282546115739190613029565b90915550506001600160a01b038216600090815260986020526040812080548392906115a0908490613029565b90915550506040518181526000906001600160a01b038416906000805160206131168339815191529060200160405180910390a35050565b600061086533846108c985604051806060016040528060258152602001613136602591393360009081526099602090815260408083206001600160a01b038d1684529091529020549190611b7a565b6065546001600160a01b031633146116515760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609a60205260409020805460ff19166001179055565b6000610865338484611985565b6065546001600160a01b031633146116ac5760405162461bcd60e51b81526004016107b890612f2a565b60ab8054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906116f990831515815260200190565b60405180910390a150565b6065546001600160a01b0316331461172e5760405162461bcd60e51b81526004016107b890612f2a565b60a855565b6065546001600160a01b0316331461175d5760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609b60205260409020805460ff19169055565b6065546001600160a01b031633146117a85760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03811661180d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b8565b61146d81611d9f565b6065546001600160a01b031633146118405760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609a60205260409020805460ff19169055565b6001600160a01b0383166118c35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107b8565b6001600160a01b0382166119245760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107b8565b6001600160a01b0383811660008181526099602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166119e95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107b8565b6001600160a01b038216611a4b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107b8565b60008111611aad5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107b8565b6000611ab830610ff1565b60ac5490915081108015908190611ad9575060ab54600160a01b900460ff16155b8015611af3575060ab546001600160a01b03868116911614155b8015611b08575060ab54600160a81b900460ff165b15611b1b5760ac549150611b1b82611eec565b6001600160a01b0385166000908152609b602052604090205460019060ff1680611b5d57506001600160a01b0385166000908152609b602052604090205460ff165b15611b66575060005b611b7286868684611f93565b505050505050565b60008184841115611b9e5760405162461bcd60e51b81526004016107b89190612e87565b505050900390565b6000806000611bb3612116565b9092509050611bc28282611bc9565b9250505090565b600061096e8284612fe8565b600061096e8284612fd0565b611c2960405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600080600080611c3886612298565b935093509350935060006040518060a00160405280888152602001858152602001848152602001838152602001611c6d611ba6565b905290506000808080611c7f856122ee565b6040805161010081018252948552602085019390935291830152606082015260808101999099525050505060a085019390935260c084019190915260e08301525092915050565b600061096e8284613029565b6001600160a01b038216611d285760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107b8565b8060356000828254611d3a9190612fd0565b90915550506001600160a01b03821660009081526033602052604081208054839290611d67908490612fd0565b90915550506040518181526001600160a01b038316906000906000805160206131168339815191529060200160405180910390a35050565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1680611e0a575060005460ff16155b611e265760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015611e48576000805461ffff19166101011790555b611e50612374565b611e5a83836123de565b8015611e6c576000805461ff00191690555b505050565b600054610100900460ff1680611e8a575060005460ff16155b611ea65760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015611ec8576000805461ffff19166101011790555b611ed0612374565b611ed8612473565b801561146d576000805461ff001916905550565b60ab805460ff60a01b1916600160a01b1790556000611f0c826002611bc9565b90506000611f1a8383611cc6565b905047611f26836124d3565b6000611f324783611cc6565b9050611f3e8382612634565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a1505060ab805460ff60a01b19169055505050565b80611fa057611fa0612718565b6001600160a01b0384166000908152609c602052604090205460ff168015611fe157506001600160a01b0383166000908152609c602052604090205460ff16155b15611ff657611ff184848461275d565b6120f4565b6001600160a01b0384166000908152609c602052604090205460ff1615801561203757506001600160a01b0383166000908152609c602052604090205460ff165b1561204757611ff184848461275d565b6001600160a01b0384166000908152609c602052604090205460ff1615801561208957506001600160a01b0383166000908152609c602052604090205460ff16155b1561209957611ff18484846128bd565b6001600160a01b0384166000908152609c602052604090205460ff1680156120d957506001600160a01b0383166000908152609c602052604090205460ff165b156120e957611ff1848484612a4a565b6120f48484846128bd565b806121105761211060a55460a45560a75460a65560a95460a855565b50505050565b609f54609e546000918291825b609d54811015612268578260976000609d8481548110612145576121456130c2565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806121b057508160986000609d8481548110612189576121896130c2565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156121c657609f54609e54945094505050509091565b61220c60976000609d84815481106121e0576121e06130c2565b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611cc6565b925061225460986000609d8481548110612228576122286130c2565b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611cc6565b9150806122608161307b565b915050612123565b50609e54609f5461227891611bc9565b82101561228f57609f54609e549350935050509091565b90939092509050565b60008060008060006122a986612b59565b905060006122b687612b7b565b905060006122c388612b97565b905060006122dd836122d784818d89611cc6565b90611cc6565b975092955093509150509193509193565b805160208201516040830151606084015160808501516000948594859485949293919290918561231e8683612bb3565b9050600061232c8684612bb3565b9050600061233a8585612bb3565b905060006123488786612bb3565b9050600061235c836122d784818989611cc6565b949f949e50929c50909a509198505050505050505050565b600054610100900460ff168061238d575060005460ff16155b6123a95760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015611ed8576000805461ffff1916610101179055801561146d576000805461ff001916905550565b600054610100900460ff16806123f7575060005460ff16155b6124135760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015612435576000805461ffff19166101011790555b8251612448906036906020860190612c6b565b50815161245c906037906020850190612c6b565b508015611e6c576000805461ff0019169055505050565b600054610100900460ff168061248c575060005460ff16155b6124a85760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff161580156124ca576000805461ffff19166101011790555b611ed833611d9f565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612508576125086130c2565b6001600160a01b0392831660209182029290920181019190915260aa54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561255c57600080fd5b505afa158015612570573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125949190612d36565b816001815181106125a7576125a76130c2565b6001600160a01b03928316602091820292909201015260aa546125cd9130911684611861565b60aa5460405163791ac94760e01b81526001600160a01b039091169063791ac94790612606908590600090869030904290600401612f5f565b600060405180830381600087803b15801561262057600080fd5b505af1158015611b72573d6000803e3d6000fd5b60aa5461264c9030906001600160a01b031684611861565b60aa546001600160a01b031663f305d7198230856000806126756065546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b1580156126d857600080fd5b505af11580156126ec573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906127119190612e59565b5050505050565b60a454158015612728575060a654155b8015612734575060a854155b1561273b57565b60a4805460a55560a6805460a75560a8805460a9556000928390559082905555565b600061276882611be1565b8051602080830151604080850151608086015160a087015160c08801516001600160a01b038d1660009081526097909752939095205496975094959294909390929091906127b69087611cc6565b6001600160a01b038b166000908152609760209081526040808320939093556098905220546127e59089611cc6565b6001600160a01b03808c16600090815260986020908152604080832094909455918c1681526097909152205461281b9086611bd5565b6001600160a01b038a1660009081526097602090815260408083209390935560989052205461284a9084611bd5565b6001600160a01b038a1660009081526098602052604090205561286c81612bbf565b6128768483612c47565b886001600160a01b03168a6001600160a01b0316600080516020613116833981519152856040516128a991815260200190565b60405180910390a350505050505050505050565b60006128c882611be1565b805160208201516040830151608084015160a085015160c086015160e08701516060880151609e54989950969795969495939492939192909161290b9083611cc6565b609e55609f5461291b9082611cc6565b609f556001600160a01b038c166000908152609760205260409020546129419089611cc6565b6001600160a01b038d16600090815260976020908152604080832093909355609890522054612970908b611cc6565b6001600160a01b03808e16600090815260986020908152604080832094909455918e168152609790915220546129a69088611bd5565b6001600160a01b038c166000908152609760209081526040808320939093556098905220546129d59086611bd5565b6001600160a01b038c166000908152609860205260409020556129f783612bbf565b612a018685612c47565b8a6001600160a01b03168c6001600160a01b031660008051602061311683398151915287604051612a3491815260200190565b60405180910390a3505050505050505050505050565b6000612a5582611be1565b8051602080830151604080850151608086015160a087015160c08801516001600160a01b038d166000908152609890975293909520549697509495929490939092909190612aa39089611cc6565b6001600160a01b038b16600090815260986020908152604080832093909355609790522054612ad29087611cc6565b6001600160a01b03808c16600090815260976020908152604080832094909455918c16815260989091522054612b089084611bd5565b6001600160a01b038a16600090815260986020908152604080832093909355609790522054612b379086611bd5565b6001600160a01b038a1660009081526097602052604090205561286c81612bbf565b60006108696064612b7560a45485612bb390919063ffffffff16565b90611bc9565b60006108696064612b7560a85485612bb390919063ffffffff16565b60006108696064612b7560a65485612bb390919063ffffffff16565b600061096e828461300a565b6000612bc9611ba6565b90506000612bd78383612bb3565b30600090815260976020526040902054909150612bf49082611bd5565b30600090815260976020908152604080832093909355609c9052205460ff1615611e6c5730600090815260986020526040902054612c329084611bd5565b30600090815260986020526040902055505050565b609f54612c549083611cc6565b609f5560a054612c649082611bd5565b60a0555050565b828054612c7790613040565b90600052602060002090601f016020900481019282612c995760008555612cdf565b82601f10612cb257805160ff1916838001178555612cdf565b82800160010185558215612cdf579182015b82811115612cdf578251825591602001919060010190612cc4565b50612ceb929150612cef565b5090565b5b80821115612ceb5760008155600101612cf0565b80358015158114612d1457600080fd5b919050565b600060208284031215612d2b57600080fd5b813561096e816130d8565b600060208284031215612d4857600080fd5b815161096e816130d8565b60008060408385031215612d6657600080fd5b8235612d71816130d8565b91506020830135612d81816130d8565b809150509250929050565b600080600060608486031215612da157600080fd5b8335612dac816130d8565b92506020840135612dbc816130d8565b929592945050506040919091013590565b60008060408385031215612de057600080fd5b8235612deb816130d8565b946020939093013593505050565b600060208284031215612e0b57600080fd5b61096e82612d04565b600060208284031215612e2657600080fd5b5035919050565b60008060408385031215612e4057600080fd5b82359150612e5060208401612d04565b90509250929050565b600080600060608486031215612e6e57600080fd5b8351925060208401519150604084015190509250925092565b600060208083528351808285015260005b81811015612eb457858101830151858201604001528201612e98565b81811115612ec6576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612faf5784516001600160a01b031683529383019391830191600101612f8a565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612fe357612fe3613096565b500190565b60008261300557634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561302457613024613096565b500290565b60008282101561303b5761303b613096565b500390565b600181811c9082168061305457607f821691505b6020821081141561307557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561308f5761308f613096565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461146d57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122072f55333bfb54a4c1e17877875140b0adbb7d937a4adc99d0e13c831ed9b3d7964736f6c63430008070033

Deployed Bytecode

0x60806040526004361061023f5760003560e01c80635342acb41161012e578063a457c2d7116100ab578063cea269581161006f578063cea26958146106c8578063dd62ed3e146106e8578063ea2f0b371461072e578063f2fde38b1461074e578063f6a74ed71461076e57600080fd5b8063a457c2d714610632578063a7fc7a0714610652578063a9059cbb14610672578063c0b0fda214610692578063c49b9a80146106a857600080fd5b806388f82020116100f257806388f82020146105865780638da5cb5b146105bf5780638ee88c53146105dd57806395d89b41146105fd5780639dc29fac1461061257600080fd5b80635342acb4146104ed5780636bc87c3a1461052657806370a082311461053c578063715018a61461055c5780638129fc1c1461057157600080fd5b806339509351116101bc578063437823ec11610180578063437823ec1461044c5780634549b0391461046c57806349bd5a5e1461048c5780634a74bb02146104ac57806352390c02146104cd57600080fd5b806339509351146103b65780633b124fe7146103d65780633bd5d173146103ec57806340c10f191461040c5780634100b5aa1461042c57600080fd5b806318160ddd1161020357806318160ddd1461031f57806323b872dd146103345780632d83811914610354578063313ce567146103745780633685d4191461039657600080fd5b8063061c82d01461024b57806306fdde031461026d578063095ea7b31461029857806313114a9d146102c85780631694505e146102e757600080fd5b3661024657005b600080fd5b34801561025757600080fd5b5061026b610266366004612e14565b61078e565b005b34801561027957600080fd5b506102826107c6565b60405161028f9190612e87565b60405180910390f35b3480156102a457600080fd5b506102b86102b3366004612dcd565b610858565b604051901515815260200161028f565b3480156102d457600080fd5b5060a0545b60405190815260200161028f565b3480156102f357600080fd5b5060aa54610307906001600160a01b031681565b6040516001600160a01b03909116815260200161028f565b34801561032b57600080fd5b50609e546102d9565b34801561034057600080fd5b506102b861034f366004612d8c565b61086f565b34801561036057600080fd5b506102d961036f366004612e14565b6108d8565b34801561038057600080fd5b5060a35460405160ff909116815260200161028f565b3480156103a257600080fd5b5061026b6103b1366004612d19565b610975565b3480156103c257600080fd5b506102b86103d1366004612dcd565b610b2c565b3480156103e257600080fd5b506102d960a45481565b3480156103f857600080fd5b5061026b610407366004612e14565b610b62565b34801561041857600080fd5b5061026b610427366004612dcd565b610c4a565b34801561043857600080fd5b5061026b610447366004612e14565b610d9b565b34801561045857600080fd5b5061026b610467366004612d19565b610dca565b34801561047857600080fd5b506102d9610487366004612e2d565b610e18565b34801561049857600080fd5b5060ab54610307906001600160a01b031681565b3480156104b857600080fd5b5060ab546102b890600160a81b900460ff1681565b3480156104d957600080fd5b5061026b6104e8366004612d19565b610e9e565b3480156104f957600080fd5b506102b8610508366004612d19565b6001600160a01b03166000908152609b602052604090205460ff1690565b34801561053257600080fd5b506102d960a65481565b34801561054857600080fd5b506102d9610557366004612d19565b610ff1565b34801561056857600080fd5b5061026b611066565b34801561057d57600080fd5b5061026b61109c565b34801561059257600080fd5b506102b86105a1366004612d19565b6001600160a01b03166000908152609c602052604090205460ff1690565b3480156105cb57600080fd5b506065546001600160a01b0316610307565b3480156105e957600080fd5b5061026b6105f8366004612e14565b611470565b34801561060957600080fd5b5061028261149f565b34801561061e57600080fd5b5061026b61062d366004612dcd565b6114ae565b34801561063e57600080fd5b506102b861064d366004612dcd565b6115d8565b34801561065e57600080fd5b5061026b61066d366004612d19565b611627565b34801561067e57600080fd5b506102b861068d366004612dcd565b611675565b34801561069e57600080fd5b506102d960a85481565b3480156106b457600080fd5b5061026b6106c3366004612df9565b611682565b3480156106d457600080fd5b5061026b6106e3366004612e14565b611704565b3480156106f457600080fd5b506102d9610703366004612d53565b6001600160a01b03918216600090815260996020908152604080832093909416825291909152205490565b34801561073a57600080fd5b5061026b610749366004612d19565b611733565b34801561075a57600080fd5b5061026b610769366004612d19565b61177e565b34801561077a57600080fd5b5061026b610789366004612d19565b611816565b6065546001600160a01b031633146107c15760405162461bcd60e51b81526004016107b890612f2a565b60405180910390fd5b60a455565b606060a180546107d590613040565b80601f016020809104026020016040519081016040528092919081815260200182805461080190613040565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b6000610865338484611861565b5060015b92915050565b600061087c848484611985565b6108ce84336108c9856040518060600160405280602881526020016130ee602891396001600160a01b038a1660009081526099602090815260408083203384529091529020549190611b7a565b611861565b5060019392505050565b6000609f5482111561093f5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016107b8565b6000610949611ba6565b9050821580610956575080155b156109645750600092915050565b61096e8382611bc9565b9392505050565b6065546001600160a01b0316331461099f5760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b0381166000908152609c602052604090205460ff16610a075760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016107b8565b60005b609d54811015610b2857816001600160a01b0316609d8281548110610a3157610a316130c2565b6000918252602090912001546001600160a01b03161415610b1657609d8054610a5c90600190613029565b81548110610a6c57610a6c6130c2565b600091825260209091200154609d80546001600160a01b039092169183908110610a9857610a986130c2565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152609882526040808220829055609c90925220805460ff19169055609d805480610af057610af06130ac565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610b208161307b565b915050610a0a565b5050565b3360008181526099602090815260408083206001600160a01b038716845290915281205490916108659185906108c99086611bd5565b336000818152609c602052604090205460ff1615610bd75760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b60648201526084016107b8565b6000610be283611be1565b80516001600160a01b03841660009081526097602052604090205491925090610c0b9082611cc6565b6001600160a01b038416600090815260976020526040902055609f54610c319082611cc6565b609f5560a054610c419085611bd5565b60a05550505050565b336000908152609a602052604090205460ff16610ca95760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206d696e740000000000000060448201526064016107b8565b6001600160a01b038216610cff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107b8565b610d098282611cd2565b609e54610d169082611bd5565b609e55609f54610d269082611bd5565b609f556001600160a01b038216600090815260986020526040902054610d4c9082611bd5565b6001600160a01b038316600090815260986020908152604080832093909355609790522054610d7b9082611bd5565b6001600160a01b0390921660009081526097602052604090209190915550565b6065546001600160a01b03163314610dc55760405162461bcd60e51b81526004016107b890612f2a565b60ac55565b6065546001600160a01b03163314610df45760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609b60205260409020805460ff19166001179055565b6000609e54831115610e6c5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016107b8565b81610e86576000610e7c84611be1565b5191506108699050565b6000610e9184611be1565b6020015191506108699050565b6065546001600160a01b03163314610ec85760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b0381166000908152609c602052604090205460ff1615610f315760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016107b8565b6001600160a01b03811660009081526097602052604090205415610f8b576001600160a01b038116600090815260976020526040902054610f71906108d8565b6001600160a01b0382166000908152609860205260409020555b6001600160a01b03166000818152609c60205260408120805460ff19166001908117909155609d805491820181559091527fd26e832454299e9fabb89e0e5fffdc046d4e14431bc1bf607ffb2e8a1ddecf7b0180546001600160a01b0319169091179055565b6001600160a01b0381166000908152609c602052604081205460ff161561102e57506001600160a01b031660009081526098602052604090205490565b6001600160a01b03821660009081526098602090815260408083205460979092529091205461105c906108d8565b6108699190612fd0565b6065546001600160a01b031633146110905760405162461bcd60e51b81526004016107b890612f2a565b61109a6000611d9f565b565b600054610100900460ff16806110b5575060005460ff16155b6110d15760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff161580156110f3576000805461ffff19166101011790555b6111396040518060400160405280600681526020016529a0a626a7a760d11b8152506040518060400160405280600681526020016529a0a626a7a760d11b815250611df1565b611141611e71565b6001609b60006111596065546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152609b83528181208054851660011790556a0422ca8b0a00a42500000060ac55601e60a65560a45560a38054909316601217909255815180830190925260068083526529a0a626a7a760d11b929091019182526111e69160a291612c6b565b506040805180820190915260068082526529a0a626a7a760d11b60209092019182526112149160a191612c6b565b50600a609e55600060a881905560ab805460ff60a81b1916600160a81b179055609f81905560a45460a55560a65460a75560a98190556097816112543390565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000737a250d5630b4cf539739df2c5dacb4c659f2488d9050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156112ca57600080fd5b505afa1580156112de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113029190612d36565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561134a57600080fd5b505afa15801561135e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113829190612d36565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114029190612d36565b60ab80546001600160a01b03199081166001600160a01b039384161790915560aa8054909116918316919091179055609e5460405190815233906000906000805160206131168339815191529060200160405180910390a350801561146d576000805461ff00191690555b50565b6065546001600160a01b0316331461149a5760405162461bcd60e51b81526004016107b890612f2a565b60a655565b606060a280546107d590613040565b336000908152609a602052604090205460ff1661150d5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206275726e0000000000000060448201526064016107b8565b6001600160a01b0382166000908152609860205260409020548111156115615760405162461bcd60e51b815260206004820152600960248201526821b0b73a10213ab93760b91b60448201526064016107b8565b80609e60008282546115739190613029565b90915550506001600160a01b038216600090815260986020526040812080548392906115a0908490613029565b90915550506040518181526000906001600160a01b038416906000805160206131168339815191529060200160405180910390a35050565b600061086533846108c985604051806060016040528060258152602001613136602591393360009081526099602090815260408083206001600160a01b038d1684529091529020549190611b7a565b6065546001600160a01b031633146116515760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609a60205260409020805460ff19166001179055565b6000610865338484611985565b6065546001600160a01b031633146116ac5760405162461bcd60e51b81526004016107b890612f2a565b60ab8054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906116f990831515815260200190565b60405180910390a150565b6065546001600160a01b0316331461172e5760405162461bcd60e51b81526004016107b890612f2a565b60a855565b6065546001600160a01b0316331461175d5760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609b60205260409020805460ff19169055565b6065546001600160a01b031633146117a85760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03811661180d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b8565b61146d81611d9f565b6065546001600160a01b031633146118405760405162461bcd60e51b81526004016107b890612f2a565b6001600160a01b03166000908152609a60205260409020805460ff19169055565b6001600160a01b0383166118c35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107b8565b6001600160a01b0382166119245760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107b8565b6001600160a01b0383811660008181526099602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166119e95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107b8565b6001600160a01b038216611a4b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107b8565b60008111611aad5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107b8565b6000611ab830610ff1565b60ac5490915081108015908190611ad9575060ab54600160a01b900460ff16155b8015611af3575060ab546001600160a01b03868116911614155b8015611b08575060ab54600160a81b900460ff165b15611b1b5760ac549150611b1b82611eec565b6001600160a01b0385166000908152609b602052604090205460019060ff1680611b5d57506001600160a01b0385166000908152609b602052604090205460ff165b15611b66575060005b611b7286868684611f93565b505050505050565b60008184841115611b9e5760405162461bcd60e51b81526004016107b89190612e87565b505050900390565b6000806000611bb3612116565b9092509050611bc28282611bc9565b9250505090565b600061096e8284612fe8565b600061096e8284612fd0565b611c2960405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600080600080611c3886612298565b935093509350935060006040518060a00160405280888152602001858152602001848152602001838152602001611c6d611ba6565b905290506000808080611c7f856122ee565b6040805161010081018252948552602085019390935291830152606082015260808101999099525050505060a085019390935260c084019190915260e08301525092915050565b600061096e8284613029565b6001600160a01b038216611d285760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107b8565b8060356000828254611d3a9190612fd0565b90915550506001600160a01b03821660009081526033602052604081208054839290611d67908490612fd0565b90915550506040518181526001600160a01b038316906000906000805160206131168339815191529060200160405180910390a35050565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1680611e0a575060005460ff16155b611e265760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015611e48576000805461ffff19166101011790555b611e50612374565b611e5a83836123de565b8015611e6c576000805461ff00191690555b505050565b600054610100900460ff1680611e8a575060005460ff16155b611ea65760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015611ec8576000805461ffff19166101011790555b611ed0612374565b611ed8612473565b801561146d576000805461ff001916905550565b60ab805460ff60a01b1916600160a01b1790556000611f0c826002611bc9565b90506000611f1a8383611cc6565b905047611f26836124d3565b6000611f324783611cc6565b9050611f3e8382612634565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a1505060ab805460ff60a01b19169055505050565b80611fa057611fa0612718565b6001600160a01b0384166000908152609c602052604090205460ff168015611fe157506001600160a01b0383166000908152609c602052604090205460ff16155b15611ff657611ff184848461275d565b6120f4565b6001600160a01b0384166000908152609c602052604090205460ff1615801561203757506001600160a01b0383166000908152609c602052604090205460ff165b1561204757611ff184848461275d565b6001600160a01b0384166000908152609c602052604090205460ff1615801561208957506001600160a01b0383166000908152609c602052604090205460ff16155b1561209957611ff18484846128bd565b6001600160a01b0384166000908152609c602052604090205460ff1680156120d957506001600160a01b0383166000908152609c602052604090205460ff165b156120e957611ff1848484612a4a565b6120f48484846128bd565b806121105761211060a55460a45560a75460a65560a95460a855565b50505050565b609f54609e546000918291825b609d54811015612268578260976000609d8481548110612145576121456130c2565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806121b057508160986000609d8481548110612189576121896130c2565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156121c657609f54609e54945094505050509091565b61220c60976000609d84815481106121e0576121e06130c2565b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611cc6565b925061225460986000609d8481548110612228576122286130c2565b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611cc6565b9150806122608161307b565b915050612123565b50609e54609f5461227891611bc9565b82101561228f57609f54609e549350935050509091565b90939092509050565b60008060008060006122a986612b59565b905060006122b687612b7b565b905060006122c388612b97565b905060006122dd836122d784818d89611cc6565b90611cc6565b975092955093509150509193509193565b805160208201516040830151606084015160808501516000948594859485949293919290918561231e8683612bb3565b9050600061232c8684612bb3565b9050600061233a8585612bb3565b905060006123488786612bb3565b9050600061235c836122d784818989611cc6565b949f949e50929c50909a509198505050505050505050565b600054610100900460ff168061238d575060005460ff16155b6123a95760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015611ed8576000805461ffff1916610101179055801561146d576000805461ff001916905550565b600054610100900460ff16806123f7575060005460ff16155b6124135760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff16158015612435576000805461ffff19166101011790555b8251612448906036906020860190612c6b565b50815161245c906037906020850190612c6b565b508015611e6c576000805461ff0019169055505050565b600054610100900460ff168061248c575060005460ff16155b6124a85760405162461bcd60e51b81526004016107b890612edc565b600054610100900460ff161580156124ca576000805461ffff19166101011790555b611ed833611d9f565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612508576125086130c2565b6001600160a01b0392831660209182029290920181019190915260aa54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561255c57600080fd5b505afa158015612570573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125949190612d36565b816001815181106125a7576125a76130c2565b6001600160a01b03928316602091820292909201015260aa546125cd9130911684611861565b60aa5460405163791ac94760e01b81526001600160a01b039091169063791ac94790612606908590600090869030904290600401612f5f565b600060405180830381600087803b15801561262057600080fd5b505af1158015611b72573d6000803e3d6000fd5b60aa5461264c9030906001600160a01b031684611861565b60aa546001600160a01b031663f305d7198230856000806126756065546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b1580156126d857600080fd5b505af11580156126ec573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906127119190612e59565b5050505050565b60a454158015612728575060a654155b8015612734575060a854155b1561273b57565b60a4805460a55560a6805460a75560a8805460a9556000928390559082905555565b600061276882611be1565b8051602080830151604080850151608086015160a087015160c08801516001600160a01b038d1660009081526097909752939095205496975094959294909390929091906127b69087611cc6565b6001600160a01b038b166000908152609760209081526040808320939093556098905220546127e59089611cc6565b6001600160a01b03808c16600090815260986020908152604080832094909455918c1681526097909152205461281b9086611bd5565b6001600160a01b038a1660009081526097602090815260408083209390935560989052205461284a9084611bd5565b6001600160a01b038a1660009081526098602052604090205561286c81612bbf565b6128768483612c47565b886001600160a01b03168a6001600160a01b0316600080516020613116833981519152856040516128a991815260200190565b60405180910390a350505050505050505050565b60006128c882611be1565b805160208201516040830151608084015160a085015160c086015160e08701516060880151609e54989950969795969495939492939192909161290b9083611cc6565b609e55609f5461291b9082611cc6565b609f556001600160a01b038c166000908152609760205260409020546129419089611cc6565b6001600160a01b038d16600090815260976020908152604080832093909355609890522054612970908b611cc6565b6001600160a01b03808e16600090815260986020908152604080832094909455918e168152609790915220546129a69088611bd5565b6001600160a01b038c166000908152609760209081526040808320939093556098905220546129d59086611bd5565b6001600160a01b038c166000908152609860205260409020556129f783612bbf565b612a018685612c47565b8a6001600160a01b03168c6001600160a01b031660008051602061311683398151915287604051612a3491815260200190565b60405180910390a3505050505050505050505050565b6000612a5582611be1565b8051602080830151604080850151608086015160a087015160c08801516001600160a01b038d166000908152609890975293909520549697509495929490939092909190612aa39089611cc6565b6001600160a01b038b16600090815260986020908152604080832093909355609790522054612ad29087611cc6565b6001600160a01b03808c16600090815260976020908152604080832094909455918c16815260989091522054612b089084611bd5565b6001600160a01b038a16600090815260986020908152604080832093909355609790522054612b379086611bd5565b6001600160a01b038a1660009081526097602052604090205561286c81612bbf565b60006108696064612b7560a45485612bb390919063ffffffff16565b90611bc9565b60006108696064612b7560a85485612bb390919063ffffffff16565b60006108696064612b7560a65485612bb390919063ffffffff16565b600061096e828461300a565b6000612bc9611ba6565b90506000612bd78383612bb3565b30600090815260976020526040902054909150612bf49082611bd5565b30600090815260976020908152604080832093909355609c9052205460ff1615611e6c5730600090815260986020526040902054612c329084611bd5565b30600090815260986020526040902055505050565b609f54612c549083611cc6565b609f5560a054612c649082611bd5565b60a0555050565b828054612c7790613040565b90600052602060002090601f016020900481019282612c995760008555612cdf565b82601f10612cb257805160ff1916838001178555612cdf565b82800160010185558215612cdf579182015b82811115612cdf578251825591602001919060010190612cc4565b50612ceb929150612cef565b5090565b5b80821115612ceb5760008155600101612cf0565b80358015158114612d1457600080fd5b919050565b600060208284031215612d2b57600080fd5b813561096e816130d8565b600060208284031215612d4857600080fd5b815161096e816130d8565b60008060408385031215612d6657600080fd5b8235612d71816130d8565b91506020830135612d81816130d8565b809150509250929050565b600080600060608486031215612da157600080fd5b8335612dac816130d8565b92506020840135612dbc816130d8565b929592945050506040919091013590565b60008060408385031215612de057600080fd5b8235612deb816130d8565b946020939093013593505050565b600060208284031215612e0b57600080fd5b61096e82612d04565b600060208284031215612e2657600080fd5b5035919050565b60008060408385031215612e4057600080fd5b82359150612e5060208401612d04565b90509250929050565b600080600060608486031215612e6e57600080fd5b8351925060208401519150604084015190509250925092565b600060208083528351808285015260005b81811015612eb457858101830151858201604001528201612e98565b81811115612ec6576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612faf5784516001600160a01b031683529383019391830191600101612f8a565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612fe357612fe3613096565b500190565b60008261300557634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561302457613024613096565b500290565b60008282101561303b5761303b613096565b500390565b600181811c9082168061305457607f821691505b6020821081141561307557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561308f5761308f613096565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461146d57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122072f55333bfb54a4c1e17877875140b0adbb7d937a4adc99d0e13c831ed9b3d7964736f6c63430008070033

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  ]

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.