ETH Price: $2,668.55 (+1.02%)
Gas: 0.92 Gwei

Contract

0xfBa34C7Da885885c597b8eeaB61fDC0EEe7ACf3C
 

Overview

ETH Balance

0.521592669592640102 ETH

Eth Value

$1,391.89 (@ $2,668.55/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve184799962023-11-01 21:40:11295 days ago1698874811IN
DeFi Holdings: DHOLD Token
0 ETH0.0016790536.00722523
Add Tax Excluded184799832023-11-01 21:37:35295 days ago1698874655IN
DeFi Holdings: DHOLD Token
0 ETH0.001923541.40943828
Mint184799762023-11-01 21:36:11295 days ago1698874571IN
DeFi Holdings: DHOLD Token
0 ETH0.0016244144.32952228
Mint184799732023-11-01 21:35:23295 days ago1698874523IN
DeFi Holdings: DHOLD Token
0 ETH0.0024813846.19100951
Transfer Ownersh...184799322023-11-01 21:27:11295 days ago1698874031IN
DeFi Holdings: DHOLD Token
0 ETH0.0011286839.21491314
Approve184721422023-10-31 19:18:11296 days ago1698779891IN
DeFi Holdings: DHOLD Token
0 ETH0.0012576327.10939411
Approve184657532023-10-30 21:48:11297 days ago1698702491IN
DeFi Holdings: DHOLD Token
0 ETH0.0011993825.72076553
Approve180760382023-09-06 7:51:23352 days ago1693986683IN
DeFi Holdings: DHOLD Token
0 ETH0.0005690712.25433814
Approve178591002023-08-06 23:10:11382 days ago1691363411IN
DeFi Holdings: DHOLD Token
0 ETH0.0003482813
Approve178591002023-08-06 23:10:11382 days ago1691363411IN
DeFi Holdings: DHOLD Token
0 ETH0.0005945912.73464961
Approve178560932023-08-06 13:03:35382 days ago1691327015IN
DeFi Holdings: DHOLD Token
0 ETH0.0004598917.37603893
Approve178559612023-08-06 12:36:59382 days ago1691325419IN
DeFi Holdings: DHOLD Token
0 ETH0.0003405412.86671336
Approve178559242023-08-06 12:29:35382 days ago1691324975IN
DeFi Holdings: DHOLD Token
0 ETH0.00059912.91867071
Approve178225922023-08-01 20:38:47387 days ago1690922327IN
DeFi Holdings: DHOLD Token
0 ETH0.0012247826.23163614
Approve178225872023-08-01 20:37:47387 days ago1690922267IN
DeFi Holdings: DHOLD Token
0 ETH0.0012125525.9696938
Approve176878212023-07-13 23:23:35406 days ago1689290615IN
DeFi Holdings: DHOLD Token
0 ETH0.0006371724.18410616
Approve176878132023-07-13 23:21:59406 days ago1689290519IN
DeFi Holdings: DHOLD Token
0 ETH0.0011821725.48294171
Approve175981752023-07-01 8:58:35419 days ago1688201915IN
DeFi Holdings: DHOLD Token
0 ETH0.0007332215.72396392
Approve174117402023-06-05 3:43:11445 days ago1685936591IN
DeFi Holdings: DHOLD Token
0 ETH0.0010314322.11914324
Approve169231082023-03-28 3:15:35514 days ago1679973335IN
DeFi Holdings: DHOLD Token
0 ETH0.0005765623.62291486
Approve168842132023-03-22 16:07:23519 days ago1679501243IN
DeFi Holdings: DHOLD Token
0 ETH0.0005857223.99826161
Approve168475742023-03-17 12:36:59524 days ago1679056619IN
DeFi Holdings: DHOLD Token
0 ETH0.0013239328.39172222
Approve166895572023-02-23 7:16:23547 days ago1677136583IN
DeFi Holdings: DHOLD Token
0 ETH0.0010841323.24913885
Approve164475812023-01-20 11:00:47580 days ago1674212447IN
DeFi Holdings: DHOLD Token
0 ETH0.0007381615.83
Approve160480982022-11-25 16:09:47636 days ago1669392587IN
DeFi Holdings: DHOLD Token
0 ETH0.0005277111.30227224
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
184721442023-10-31 19:18:35296 days ago1698779915
DeFi Holdings: DHOLD Token
0.00030434 ETH
180760502023-09-06 7:53:47352 days ago1693986827
DeFi Holdings: DHOLD Token
0.00114591 ETH
175981782023-07-01 8:59:11419 days ago1688201951
DeFi Holdings: DHOLD Token
0.00686623 ETH
174117492023-06-05 3:44:59445 days ago1685936699
DeFi Holdings: DHOLD Token
0.00069415 ETH
166895612023-02-23 7:17:11547 days ago1677136631
DeFi Holdings: DHOLD Token
0.00017008 ETH
159155552022-11-07 3:47:47655 days ago1667792867
DeFi Holdings: DHOLD Token
0.00129222 ETH
156564392022-10-01 23:01:11691 days ago1664665271
DeFi Holdings: DHOLD Token
0.00008047 ETH
156125142022-09-25 19:35:23697 days ago1664134523
DeFi Holdings: DHOLD Token
0.00186588 ETH
155239772022-09-13 0:43:35710 days ago1663029815
DeFi Holdings: DHOLD Token
0.00028525 ETH
154398742022-08-30 10:32:55723 days ago1661855575
DeFi Holdings: DHOLD Token
0.00035084 ETH
153372722022-08-14 3:10:45740 days ago1660446645
DeFi Holdings: DHOLD Token
0.00489226 ETH
152963912022-08-07 16:49:43746 days ago1659890983
DeFi Holdings: DHOLD Token
0.00011726 ETH
152531892022-07-31 23:29:03753 days ago1659310143
DeFi Holdings: DHOLD Token
0.00025352 ETH
152497732022-07-31 10:45:20753 days ago1659264320
DeFi Holdings: DHOLD Token
0.0026212 ETH
151859432022-07-21 12:37:13763 days ago1658407033
DeFi Holdings: DHOLD Token
0.00156218 ETH
151627162022-07-17 22:08:02767 days ago1658095682
DeFi Holdings: DHOLD Token
0.00433854 ETH
150874462022-07-06 6:49:25779 days ago1657090165
DeFi Holdings: DHOLD Token
0.01819663 ETH
148353042022-05-24 10:42:52821 days ago1653388972
DeFi Holdings: DHOLD Token
0.0055398 ETH
147983162022-05-18 10:27:24827 days ago1652869644
DeFi Holdings: DHOLD Token
0.00243467 ETH
147948862022-05-17 21:30:19828 days ago1652823019
DeFi Holdings: DHOLD Token
0.00045926 ETH
147820892022-05-15 20:32:13830 days ago1652646733
DeFi Holdings: DHOLD Token
0.00045481 ETH
146577632022-04-26 3:20:46850 days ago1650943246
DeFi Holdings: DHOLD Token
0.00310529 ETH
146503322022-04-24 23:19:32851 days ago1650842372
DeFi Holdings: DHOLD Token
0.01308311 ETH
146148862022-04-19 9:59:54857 days ago1650362394
DeFi Holdings: DHOLD Token
0.00000689 ETH
145932002022-04-16 0:39:38860 days ago1650069578
DeFi Holdings: DHOLD Token
1.65810453 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DHold

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : DHold.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; 

import "./Ownable.sol";
 
contract DHold is ERC20, Ownable {

    using EnumerableSet for EnumerableSet.AddressSet;

    modifier lockSwap {
        _inSwap = true;
        _;
        _inSwap = false;
    }

    modifier liquidityAdd {
        _inLiquidityAdd = true;
        _;
        _inLiquidityAdd = false;
    }

    // Constants
    uint256 internal constant MARKETING_RATE = 10; //both marketing and treasury, 5% each
    uint256 internal constant REFLECT_RATE = 10;
    uint256 internal constant COOLDOWN = 60 seconds;
    uint256 internal constant SWAP_FEES_AT = 1000 ether;
    address internal constant LP_HOLDER = 0x823bF3514d593d0Ee796Afe4339987812C3bf795;

    uint256 internal _maxTransfer = 5; 

    // total wei reflected ever
    uint256 public ethReflectionBasis; 
    uint256 public totalReflected;
    uint256 public totalMarketing;

    uint256 internal _totalSupply;
    uint256 public tradingStartBlock;

    address payable public marketingWallet;
    address payable public treasuryWallet;

    address public pair;
    bool internal _inSwap;
    bool internal _inLiquidityAdd;
    bool public tradingActive;
    bool internal _swapFees = true;

    IUniswapV2Router02 internal _router;
    EnumerableSet.AddressSet internal _reflectionExcludedList;
    
    mapping(address => uint256) private _balances;
    mapping(address => bool) public taxExcluded;
    mapping(address => bool) private _bot;
    mapping(address => uint256) public lastBuy;
    mapping(address => uint256) public lastReflectionBasis;
    mapping(address => uint256) public claimedReflection;
    
    constructor(
        address uniswapFactory,
        address uniswapRouter,
        address payable marketing, //multisig with 5%
        address payable treasury //multisig with 5%
    ) ERC20("DeFi Holdings", "DHOLD") Ownable(msg.sender) {
        _reflectionExcludedList.add(address(0));
        taxExcluded[marketing] = true;
        taxExcluded[treasury] = true;
        taxExcluded[address(this)] = true;

        marketingWallet = marketing;
        treasuryWallet = treasury;

        _router = IUniswapV2Router02(uniswapRouter);
        IUniswapV2Factory uniswapContract = IUniswapV2Factory(uniswapFactory);
        pair = uniswapContract.createPair(address(this), _router.WETH());
    }

    function addLiquidity(uint256 tokens) public payable onlyOwner() liquidityAdd {
        _mint(address(this), tokens);
        _approve(address(this), address(_router), tokens);

        _router.addLiquidityETH{value: msg.value}(
            address(this),
            tokens,
            0,
            0,
            LP_HOLDER,
            // solhint-disable-next-line not-rely-on-time
            block.timestamp
        );

        if (!tradingActive) {
            tradingActive = true;
            tradingStartBlock = block.number;
        }
    }

    function addReflection() public payable {
        ethReflectionBasis += msg.value;
    }

    function isReflectionExcluded(address account) public view returns (bool) {
        return _reflectionExcludedList.contains(account);
    }

    function removeReflectionExcluded(address account) public onlyOwner() {
        require(isReflectionExcluded(account), "Account must be excluded");
        _reflectionExcludedList.remove(account);
    }

    function addReflectionExcluded(address account) public onlyOwner() {
        _addReflectionExcluded(account);
    }

    function _addReflectionExcluded(address account) internal {
        require(!isReflectionExcluded(account), "Account must not be excluded");
        _reflectionExcludedList.add(account);
    }

    function isTaxExcluded(address account) public view returns (bool) {
        return taxExcluded[account];
    }

    function addTaxExcluded(address account) public onlyOwner() {
        require(!isTaxExcluded(account), "Account must not be excluded");

        taxExcluded[account] = true;
    }

    function removeTaxExcluded(address account) public onlyOwner() {
        require(isTaxExcluded(account), "Account must not be excluded");

        taxExcluded[account] = false;
    }

    function isBot(address account) public view returns (bool) {
        return _bot[account];
    }

    function addBot(address account) internal {
        _addBot(account);
    }

    function _addBot(address account) internal {
        require(!isBot(account), "Account must not be flagged");
        require(account != address(_router), "Account must not be uniswap router");
        require(account != pair, "Account must not be uniswap pair");

        _bot[account] = true;
        _addReflectionExcluded(account);
    }

    function removeBot(address account) public onlyOwner() {
        require(isBot(account), "Account must be flagged");

        _bot[account] = false;
        removeReflectionExcluded(account);
    }

    function balanceOf(address account)
        public
        view
        virtual
        override
        returns (uint256) {
        return _balances[account];
    }

    function _addBalance(address account, uint256 amount) internal {
        _balances[account] = _balances[account] + amount;
    }

    function _subtractBalance(address account, uint256 amount) internal {
        _balances[account] = _balances[account] - amount;
    }

    function _transfer(address sender, address recipient, uint256 amount) internal override {
        if (isTaxExcluded(sender) || isTaxExcluded(recipient)) {
            _rawTransfer(sender, recipient, amount);
            return;
        }

        require(!isBot(sender), "Sender locked as bot");
        require(!isBot(recipient), "Recipient locked as bot");
        uint256 maxTxAmount = totalSupply() * _maxTransfer / 1000;
        require(amount <= maxTxAmount || _inLiquidityAdd || _inSwap || recipient == address(_router), "Exceeds max transaction amount");

        // checks if contractTokenBalance >= 1000 DHold and swaps it for ETH inside _swap function
        uint256 contractTokenBalance = balanceOf(address(this));
        bool overMinTokenBalance = contractTokenBalance >= SWAP_FEES_AT;

        if(contractTokenBalance >= maxTxAmount) {
            contractTokenBalance = maxTxAmount;
        }

        if (
            overMinTokenBalance &&
            !_inSwap &&
            sender != pair &&
            _swapFees
        ) {
            _swap(contractTokenBalance);
        }
        // ends check


        _claimReflection(sender, payable(sender));
        _claimReflection(recipient, payable(recipient));

        uint256 send = amount;  // i.e: 1000 DHold 
        uint256 reflect;
        uint256 marketing;
        if (sender == pair && tradingActive) {
            // Buy, apply buy fee schedule
            (send, reflect) = _getBuyTaxAmounts(amount); // send = 900, reflect = 100
            require(block.timestamp - lastBuy[tx.origin] > COOLDOWN || _inSwap, "hit cooldown, try again later");
            lastBuy[tx.origin] = block.timestamp;
            _reflect(sender, reflect); // (pair, 100)
        } else if (recipient == pair && tradingActive) {
            // Sell, apply sell fee schedule
            (send, marketing ) = _getSellTaxAmounts(amount);
            _takeMarketing(sender, marketing);
        }

        //            pair    buyer     900
        _rawTransfer(sender, recipient, send);

        if (tradingActive && block.number == tradingStartBlock && !isTaxExcluded(tx.origin)) {
            if (tx.origin == address(pair)) {
                if (sender == address(pair)) {
                    _addBot(recipient);
                } else {
                    _addBot(sender);
                }
            } else {
                _addBot(tx.origin);
            }
        }
    }

    function _claimReflection(address addr, address payable to) internal {
        if (addr == pair || addr == address(_router)) return;

        uint256 basisDifference = ethReflectionBasis - lastReflectionBasis[addr];
        uint256 owed = basisDifference * balanceOf(addr) / _totalSupply;

        lastReflectionBasis[addr] = ethReflectionBasis;
        if (owed == 0) {
                return;
        }
        claimedReflection[addr] += owed;
        to.transfer(owed);
    }

    function claimReflection() public {
        require(!_reflectionExcludedList.contains(msg.sender), "Excluded from reflections");
        _claimReflection(msg.sender, payable(msg.sender));
    }

    function claimExcludedReflections(address from) public virtual onlyOwner {
        require(_reflectionExcludedList.contains(from), "Address not excluded");
        _claimReflection(from, payable(owner()));
    }

    function _swap(uint256 amount) internal lockSwap {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _router.WETH();

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

        uint256 contractEthBalance = address(this).balance;

        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            amount,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 tradeValue = address(this).balance - contractEthBalance;

        uint256 marketingAmount = amount * totalMarketing / (totalMarketing + totalReflected);
        uint256 reflectedAmount = amount - marketingAmount;

        uint256 marketingEth = tradeValue * totalMarketing / (totalMarketing + totalReflected);
        uint256 reflectedEth = tradeValue - marketingEth;

        if (marketingEth > 0) {
            uint256 split = marketingEth / 2;
            marketingWallet.transfer(split);
            treasuryWallet.transfer(marketingEth - split);
        }
        totalMarketing -= marketingAmount;
        totalReflected -= reflectedAmount;
        ethReflectionBasis += reflectedEth;
    }

    function swapAll() public {
        uint256 maxTxAmount = totalSupply() * _maxTransfer / 1000;
        uint256 contractTokenBalance = balanceOf(address(this));

        if(contractTokenBalance >= maxTxAmount) {
            contractTokenBalance = maxTxAmount;
        }

        if (!_inSwap) _swap(contractTokenBalance);
        
    }

    function withdrawAll() public onlyOwner() {
        uint256 split = address(this).balance / 2;
        marketingWallet.transfer(split);
        treasuryWallet.transfer(address(this).balance - split);
    }

    //                          pair , 100
    function _reflect(address account, uint256 amount) internal {
        require(account != address(0), "reflect from the zero address");

        //      from(pair)  , to(this)     , 100DHOld 
        _rawTransfer(account, address(this), amount);
        totalReflected += amount;
        emit Transfer(account, address(this), amount);
    }

    function _takeMarketing(address account, uint256 amount) internal {
        require(account != address(0), "take marketing from the zero address");

        _rawTransfer(account, address(this), amount);
        totalMarketing += amount;
        emit Transfer(account, address(this), amount);
    }

    function _getBuyTaxAmounts(uint256 amount) internal pure returns (uint256 send, uint256 reflect) {
        reflect = 0;
        uint256 sendRate = 100 - REFLECT_RATE; // 100 - 10 = 90
        assert(sendRate >= 0);

        send = (amount * sendRate) / 100; // (1000 * 90) /100 = 900
        reflect = amount - send; // 1000 - 900 = 100
        assert(reflect >= 0);
        assert(send + reflect == amount);
    }

    function _getSellTaxAmounts(uint256 amount) internal pure returns (uint256 send, uint256 marketing) {
        marketing = 0;
        uint256 sendRate = 100 - MARKETING_RATE; // 100 - 10 = 90
        assert(sendRate >= 0);

        send = (amount * sendRate) / 100; // (1000 * 90) /100 = 900
        marketing = amount - send; // 1000 - 900 = 100
        assert(send + marketing == amount);
    }

    // modified from OpenZeppelin ERC20
    function _rawTransfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "transfer from the zero address");
        require(recipient != address(0), "transfer to the zero address");

        uint256 senderBalance = balanceOf(sender);
        require(senderBalance >= amount, "transfer amount exceeds balance");
        unchecked {
            _subtractBalance(sender, amount);
        }
        _addBalance(recipient, amount);

        emit Transfer(sender, recipient, amount);
    }

    function setMaxTransfer(uint256 maxTransfer) public onlyOwner() {
        _maxTransfer = maxTransfer;
    }

    function setSwapFees(bool swapFees) public onlyOwner() {
        _swapFees = swapFees;
    }

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

    function _mint(address account, uint256 amount) internal override {
        _totalSupply += amount;
        _addBalance(account, amount);
        emit Transfer(address(0), account, amount);
    }

    function mint(address account, uint256 amount) public onlyOwner() {
        _mint(account, amount);
    }

    function airdrop(address[] memory accounts, uint256[] memory amounts) public onlyOwner() {
        require(accounts.length == amounts.length, "array lengths must match");

        for (uint256 i = 0; i < accounts.length; i++) {
            _mint(accounts[i], amounts[i]);
        }
    }

    receive() external payable {}

}

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor(address newOwner) {
        _setOwner(newOwner);
    }

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

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

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

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

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

File 3 of 10 : 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 4 of 10 : 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 5 of 10 : 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 10 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 10 of 10 : 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 {}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"uniswapFactory","type":"address"},{"internalType":"address","name":"uniswapRouter","type":"address"},{"internalType":"address payable","name":"marketing","type":"address"},{"internalType":"address payable","name":"treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"addLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"addReflection","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addReflectionExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addTaxExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","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"}],"name":"claimExcludedReflections","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReflection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethReflectionBasis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isReflectionExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isTaxExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastReflectionBasis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeReflectionExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeTaxExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTransfer","type":"uint256"}],"name":"setMaxTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"swapFees","type":"bool"}],"name":"setSwapFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"taxExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMarketing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReflected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingStartBlock","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":"treasuryWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526005600655600e805460ff60b81b1916600160b81b1790553480156200002957600080fd5b5060405162003054380380620030548339810160408190526200004c9162000425565b604080518082018252600d81526c4465466920486f6c64696e677360981b602080830191825283518085019094526005845264111213d31160da1b9084015281513393916200009f916003919062000359565b508051620000b590600490602084019062000359565b505050620000c9816200028060201b60201c565b50620000e660006010620002d260201b620012f21790919060201c565b506001600160a01b0382811660008181526013602090815260408083208054600160ff1991821681179092558787168086528386208054831684179055308087529584902080549092169092179055600c80546001600160a01b03199081169096179055600d805486169091179055600f8054909416888616179384905580516315ab88c960e31b8152905189958681169563c9c65396959491169263ad5c46489260048083019392829003018186803b158015620001a457600080fd5b505afa158015620001b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001df9190620003ff565b6040518363ffffffff1660e01b8152600401620001fe9291906200048c565b602060405180830381600087803b1580156200021957600080fd5b505af11580156200022e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002549190620003ff565b600e80546001600160a01b0319166001600160a01b039290921691909117905550620004fc9350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620002e9836001600160a01b038416620002f2565b90505b92915050565b600062000300838362000341565b6200033857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002ec565b506000620002ec565b60009081526001919091016020526040902054151590565b8280546200036790620004a6565b90600052602060002090601f0160209004810192826200038b5760008555620003d6565b82601f10620003a657805160ff1916838001178555620003d6565b82800160010185558215620003d6579182015b82811115620003d6578251825591602001919060010190620003b9565b50620003e4929150620003e8565b5090565b5b80821115620003e45760008155600101620003e9565b60006020828403121562000411578081fd5b81516200041e81620004e3565b9392505050565b600080600080608085870312156200043b578283fd5b84516200044881620004e3565b60208601519094506200045b81620004e3565b60408601519093506200046e81620004e3565b60608601519092506200048181620004e3565b939692955090935050565b6001600160a01b0392831681529116602082015260400190565b600281046001821680620004bb57607f821691505b60208210811415620004dd57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b0381168114620004f957600080fd5b50565b612b48806200050c6000396000f3fe60806040526004361061026b5760003560e01c806369ec8e9c116101445780639daa30e3116100b6578063bbc0c7421161007a578063bbc0c742146106b9578063c1adf7bc146106ce578063d798cbd2146106ee578063dd62ed3e14610703578063e3f9fc6314610723578063f2fde38b1461074357610272565b80639daa30e314610624578063a457c2d714610644578063a8aa1b3114610664578063a9059cbb14610679578063b41356c91461069957610272565b8063853828b611610108578063853828b6146105855780638da5cb5b1461059a5780639045be58146105af57806392c1c913146105cf5780639579d514146105ef57806395d89b411461060f57610272565b806369ec8e9c146104fb57806370a082311461051b578063715018a61461053b57806375f0a8741461055057806377348de91461056557610272565b80633bbac579116101dd5780634fb0b7e7116101a15780634fb0b7e7146104535780635196aadb1461047357806351c6590a146104935780635fecd926146104a657806361db2446146104c657806367243482146104db57610272565b80633bbac579146103d45780633e9ffbea146103f457806340c10f19146104095780634626402b146104295780634e6be5441461044b57610272565b80632c9fc7d31161022f5780632c9fc7d314610326578063313ce567146103485780633732e2141461036a578063375632931461037f578063395093511461039457806339b622d3146103b457610272565b806306fdde0314610277578063095ea7b3146102a25780631233d83a146102cf57806318160ddd146102f157806323b872dd1461030657610272565b3661027257005b600080fd5b34801561028357600080fd5b5061028c610763565b6040516102999190612375565b60405180910390f35b3480156102ae57600080fd5b506102c26102bd3660046121cb565b6107f5565b604051610299919061236a565b3480156102db57600080fd5b506102e4610813565b6040516102999190612938565b3480156102fd57600080fd5b506102e4610819565b34801561031257600080fd5b506102c261032136600461218b565b61081f565b34801561033257600080fd5b5061034661034136600461211b565b6108b8565b005b34801561035457600080fd5b5061035d610932565b60405161029991906129b1565b34801561037657600080fd5b506102e4610937565b34801561038b57600080fd5b5061034661093d565b3480156103a057600080fd5b506102c26103af3660046121cb565b610971565b3480156103c057600080fd5b506102c26103cf36600461211b565b6109c5565b3480156103e057600080fd5b506102c26103ef36600461211b565b6109da565b34801561040057600080fd5b506103466109f8565b34801561041557600080fd5b506103466104243660046121cb565b610a53565b34801561043557600080fd5b5061043e610a9c565b604051610299919061231b565b610346610aab565b34801561045f57600080fd5b5061034661046e36600461211b565b610ac4565b34801561047f57600080fd5b5061034661048e36600461211b565b610b4d565b6103466104a13660046122d6565b610b95565b3480156104b257600080fd5b506103466104c136600461211b565b610ce9565b3480156104d257600080fd5b506102e4610d76565b3480156104e757600080fd5b506103466104f63660046121f6565b610d7c565b34801561050757600080fd5b506102c261051636600461211b565b610e57565b34801561052757600080fd5b506102e461053636600461211b565b610e75565b34801561054757600080fd5b50610346610e90565b34801561055c57600080fd5b5061043e610ed9565b34801561057157600080fd5b506103466105803660046122d6565b610ee8565b34801561059157600080fd5b50610346610f2c565b3480156105a657600080fd5b5061043e610ff5565b3480156105bb57600080fd5b506102c26105ca36600461211b565b611004565b3480156105db57600080fd5b506102e46105ea36600461211b565b611011565b3480156105fb57600080fd5b506102e461060a36600461211b565b611023565b34801561061b57600080fd5b5061028c611035565b34801561063057600080fd5b5061034661063f36600461211b565b611044565b34801561065057600080fd5b506102c261065f3660046121cb565b6110b3565b34801561067057600080fd5b5061043e61112c565b34801561068557600080fd5b506102c26106943660046121cb565b61113b565b3480156106a557600080fd5b506103466106b436600461211b565b61114f565b3480156106c557600080fd5b506102c26111d4565b3480156106da57600080fd5b506102e46106e936600461211b565b6111e4565b3480156106fa57600080fd5b506102e46111f6565b34801561070f57600080fd5b506102e461071e366004612153565b6111fc565b34801561072f57600080fd5b5061034661073e3660046122b6565b611227565b34801561074f57600080fd5b5061034661075e36600461211b565b611284565b60606003805461077290612a7b565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90612a7b565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b600061080961080261130e565b8484611312565b5060015b92915050565b60095481565b600a5490565b600061082c8484846113c6565b6001600160a01b03841660009081526001602052604081208161084d61130e565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156108995760405162461bcd60e51b8152600401610890906126db565b60405180910390fd5b6108ad856108a561130e565b858403611312565b506001949350505050565b6108c061130e565b6001600160a01b03166108d1610ff5565b6001600160a01b0316146108f75760405162461bcd60e51b815260040161089090612723565b6109026010826116d9565b61091e5760405162461bcd60e51b815260040161089090612758565b61092f8161092a610ff5565b6116ee565b50565b601290565b60085481565b6109486010336116d9565b156109655760405162461bcd60e51b81526004016108909061266d565b61096f33336116ee565b565b600061080961097e61130e565b84846001600061098c61130e565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546109c09190612a0d565b611312565b60136020526000908152604090205460ff1681565b6001600160a01b031660009081526014602052604090205460ff1690565b60006103e8600654610a08610819565b610a129190612a45565b610a1c9190612a25565b90506000610a2930610e75565b9050818110610a355750805b600e54600160a01b900460ff16610a4f57610a4f816117ff565b5050565b610a5b61130e565b6001600160a01b0316610a6c610ff5565b6001600160a01b031614610a925760405162461bcd60e51b815260040161089090612723565b610a4f8282611b08565b600d546001600160a01b031681565b3460076000828254610abd9190612a0d565b9091555050565b610acc61130e565b6001600160a01b0316610add610ff5565b6001600160a01b031614610b035760405162461bcd60e51b815260040161089090612723565b610b0c81610e57565b15610b295760405162461bcd60e51b815260040161089090612786565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b610b5561130e565b6001600160a01b0316610b66610ff5565b6001600160a01b031614610b8c5760405162461bcd60e51b815260040161089090612723565b61092f81611b7a565b610b9d61130e565b6001600160a01b0316610bae610ff5565b6001600160a01b031614610bd45760405162461bcd60e51b815260040161089090612723565b600e805460ff60a81b1916600160a81b179055610bf13082611b08565b600f54610c099030906001600160a01b031683611312565b600f5460405163f305d71960e01b81526001600160a01b039091169063f305d719903490610c5a9030908690600090819073823bf3514d593d0ee796afe4339987812c3bf79590429060040161232f565b6060604051808303818588803b158015610c7357600080fd5b505af1158015610c87573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610cac91906122ee565b5050600e54600160b01b900460ff169050610cd957600e805460ff60b01b1916600160b01b17905543600b555b50600e805460ff60a81b19169055565b610cf161130e565b6001600160a01b0316610d02610ff5565b6001600160a01b031614610d285760405162461bcd60e51b815260040161089090612723565b610d31816109da565b610d4d5760405162461bcd60e51b81526004016108909061252c565b6001600160a01b0381166000908152601460205260409020805460ff1916905561092f81611044565b60075481565b610d8461130e565b6001600160a01b0316610d95610ff5565b6001600160a01b031614610dbb5760405162461bcd60e51b815260040161089090612723565b8051825114610ddc5760405162461bcd60e51b8152600401610890906124f5565b60005b8251811015610e5257610e40838281518110610e0b57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110610e3357634e487b7160e01b600052603260045260246000fd5b6020026020010151611b08565b80610e4a81612ab6565b915050610ddf565b505050565b6001600160a01b031660009081526013602052604090205460ff1690565b6001600160a01b031660009081526012602052604090205490565b610e9861130e565b6001600160a01b0316610ea9610ff5565b6001600160a01b031614610ecf5760405162461bcd60e51b815260040161089090612723565b61096f6000611bab565b600c546001600160a01b031681565b610ef061130e565b6001600160a01b0316610f01610ff5565b6001600160a01b031614610f275760405162461bcd60e51b815260040161089090612723565b600655565b610f3461130e565b6001600160a01b0316610f45610ff5565b6001600160a01b031614610f6b5760405162461bcd60e51b815260040161089090612723565b6000610f78600247612a25565b600c546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610fb3573d6000803e3d6000fd5b50600d546001600160a01b03166108fc610fcd8347612a64565b6040518115909202916000818181858888f19350505050158015610a4f573d6000803e3d6000fd5b6005546001600160a01b031690565b600061080d6010836116d9565b60176020526000908152604090205481565b60166020526000908152604090205481565b60606004805461077290612a7b565b61104c61130e565b6001600160a01b031661105d610ff5565b6001600160a01b0316146110835760405162461bcd60e51b815260040161089090612723565b61108c81611004565b6110a85760405162461bcd60e51b815260040161089090612636565b610a4f601082611bfd565b600080600160006110c261130e565b6001600160a01b039081168252602080830193909352604091820160009081209188168152925290205490508281101561110e5760405162461bcd60e51b815260040161089090612878565b61112261111961130e565b85858403611312565b5060019392505050565b600e546001600160a01b031681565b600061080961114861130e565b84846113c6565b61115761130e565b6001600160a01b0316611168610ff5565b6001600160a01b03161461118e5760405162461bcd60e51b815260040161089090612723565b61119781610e57565b6111b35760405162461bcd60e51b815260040161089090612786565b6001600160a01b03166000908152601360205260409020805460ff19169055565b600e54600160b01b900460ff1681565b60156020526000908152604090205481565b600b5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61122f61130e565b6001600160a01b0316611240610ff5565b6001600160a01b0316146112665760405162461bcd60e51b815260040161089090612723565b600e8054911515600160b81b0260ff60b81b19909216919091179055565b61128c61130e565b6001600160a01b031661129d610ff5565b6001600160a01b0316146112c35760405162461bcd60e51b815260040161089090612723565b6001600160a01b0381166112e95760405162461bcd60e51b8152600401610890906123ff565b61092f81611bab565b6000611307836001600160a01b038416611c12565b9392505050565b3390565b6001600160a01b0383166113385760405162461bcd60e51b8152600401610890906127bd565b6001600160a01b03821661135e5760405162461bcd60e51b815260040161089090612445565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906113b9908590612938565b60405180910390a3505050565b6113cf83610e57565b806113de57506113de82610e57565b156113f3576113ee838383611c5c565b610e52565b6113fc836109da565b156114195760405162461bcd60e51b8152600401610890906125d1565b611422826109da565b1561143f5760405162461bcd60e51b815260040161089090612563565b60006103e860065461144f610819565b6114599190612a45565b6114639190612a25565b9050808211158061147d5750600e54600160a81b900460ff165b806114915750600e54600160a01b900460ff165b806114a95750600f546001600160a01b038481169116145b6114c55760405162461bcd60e51b8152600401610890906123c8565b60006114d030610e75565b9050683635c9adc5dea000008110158282106114ea578291505b8080156115015750600e54600160a01b900460ff16155b801561151b5750600e546001600160a01b03878116911614155b80156115305750600e54600160b81b900460ff165b1561153e5761153e826117ff565b61154886876116ee565b61155285866116ee565b600e54849060009081906001600160a01b038a8116911614801561157f5750600e54600160b01b900460ff165b156116015761158d87611d3a565b326000908152601560205260409020549194509250603c906115af9042612a64565b11806115c45750600e54600160a01b900460ff165b6115e05760405162461bcd60e51b8152600401610890906125ff565b3260009081526015602052604090204290556115fc8983611d9c565b611644565b600e546001600160a01b0389811691161480156116275750600e54600160b01b900460ff165b156116445761163587611d3a565b90935090506116448982611e21565b61164f898985611c5c565b600e54600160b01b900460ff1680156116695750600b5443145b801561167b575061167932610e57565b155b156116ce57600e546001600160a01b03163214156116c557600e546001600160a01b038a8116911614156116b7576116b288611e64565b6116c0565b6116c089611e64565b6116ce565b6116ce32611e64565b505050505050505050565b6000611307836001600160a01b038416611f12565b600e546001600160a01b03838116911614806117175750600f546001600160a01b038381169116145b1561172157610a4f565b6001600160a01b0382166000908152601660205260408120546007546117479190612a64565b90506000600a5461175785610e75565b6117619084612a45565b61176b9190612a25565b6007546001600160a01b038616600090815260166020526040902055905080611795575050610a4f565b6001600160a01b038416600090815260176020526040812080548392906117bd908490612a0d565b90915550506040516001600160a01b0384169082156108fc029083906000818181858888f193505050501580156117f8573d6000803e3d6000fd5b5050505050565b600e805460ff60a01b1916600160a01b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061185557634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600f54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156118a957600080fd5b505afa1580156118bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e19190612137565b8160018151811061190257634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600f546119289130911684611312565b600f5460405163791ac94760e01b815247916001600160a01b03169063791ac94790611961908690600090879030904290600401612941565b600060405180830381600087803b15801561197b57600080fd5b505af115801561198f573d6000803e3d6000fd5b50505050600081476119a19190612a64565b905060006008546009546119b59190612a0d565b6009546119c29087612a45565b6119cc9190612a25565b905060006119da8287612a64565b905060006008546009546119ee9190612a0d565b6009546119fb9086612a45565b611a059190612a25565b90506000611a138286612a64565b90508115611aa8576000611a28600284612a25565b600c546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015611a63573d6000803e3d6000fd5b50600d546001600160a01b03166108fc611a7d8386612a64565b6040518115909202916000818181858888f19350505050158015611aa5573d6000803e3d6000fd5b50505b8360096000828254611aba9190612a64565b925050819055508260086000828254611ad39190612a64565b925050819055508060076000828254611aec9190612a0d565b9091555050600e805460ff60a01b191690555050505050505050565b80600a6000828254611b1a9190612a0d565b90915550611b2a90508282611f2a565b816001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611b6e9190612938565b60405180910390a35050565b611b8381611004565b15611ba05760405162461bcd60e51b815260040161089090612786565b610a4f6010826112f2565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611307836001600160a01b038416611f6e565b6000611c1e8383611f12565b611c545750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561080d565b50600061080d565b6001600160a01b038316611c825760405162461bcd60e51b815260040161089090612487565b6001600160a01b038216611ca85760405162461bcd60e51b8152600401610890906124be565b6000611cb384610e75565b905081811015611cd55760405162461bcd60e51b81526004016108909061259a565b611cdf848361208b565b611ce98383611f2a565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d2c9190612938565b60405180910390a350505050565b60008080611d4a600a6064612a64565b90506064611d588286612a45565b611d629190612a25565b9250611d6e8385612a64565b915083611d7b8385612a0d565b14611d9657634e487b7160e01b600052600160045260246000fd5b50915091565b6001600160a01b038216611dc25760405162461bcd60e51b8152600401610890906126a4565b611dcd823083611c5c565b8060086000828254611ddf9190612a0d565b909155505060405130906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611b6e908590612938565b6001600160a01b038216611e475760405162461bcd60e51b8152600401610890906128f4565b611e52823083611c5c565b8060096000828254611ddf9190612a0d565b611e6d816109da565b15611e8a5760405162461bcd60e51b8152600401610890906128bd565b600f546001600160a01b0382811691161415611eb85760405162461bcd60e51b815260040161089090612801565b600e546001600160a01b0382811691161415611ee65760405162461bcd60e51b815260040161089090612843565b6001600160a01b0381166000908152601460205260409020805460ff1916600117905561092f81611b7a565b60009081526001919091016020526040902054151590565b6001600160a01b038216600090815260126020526040902054611f4e908290612a0d565b6001600160a01b0390921660009081526012602052604090209190915550565b60008181526001830160205260408120548015612081576000611f92600183612a64565b8554909150600090611fa690600190612a64565b9050818114612027576000866000018281548110611fd457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061200557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061204657634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061080d565b600091505061080d565b6001600160a01b038216600090815260126020526040902054611f4e908290612a64565b600082601f8301126120bf578081fd5b813560206120d46120cf836129e9565b6129bf565b82815281810190858301838502870184018810156120f0578586fd5b855b8581101561210e578135845292840192908401906001016120f2565b5090979650505050505050565b60006020828403121561212c578081fd5b813561130781612afd565b600060208284031215612148578081fd5b815161130781612afd565b60008060408385031215612165578081fd5b823561217081612afd565b9150602083013561218081612afd565b809150509250929050565b60008060006060848603121561219f578081fd5b83356121aa81612afd565b925060208401356121ba81612afd565b929592945050506040919091013590565b600080604083850312156121dd578182fd5b82356121e881612afd565b946020939093013593505050565b60008060408385031215612208578182fd5b823567ffffffffffffffff8082111561221f578384fd5b818501915085601f830112612232578384fd5b813560206122426120cf836129e9565b82815281810190858301838502870184018b101561225e578889fd5b8896505b8487101561228957803561227581612afd565b835260019690960195918301918301612262565b509650508601359250508082111561229f578283fd5b506122ac858286016120af565b9150509250929050565b6000602082840312156122c7578081fd5b81358015158114611307578182fd5b6000602082840312156122e7578081fd5b5035919050565b600080600060608486031215612302578283fd5b8351925060208401519150604084015190509250925092565b6001600160a01b0391909116815260200190565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b901515815260200190565b6000602080835283518082850152825b818110156123a157858101830151858201604001528201612385565b818111156123b25783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f45786365656473206d6178207472616e73616374696f6e20616d6f756e740000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601e908201527f7472616e736665722066726f6d20746865207a65726f20616464726573730000604082015260600190565b6020808252601c908201527f7472616e7366657220746f20746865207a65726f206164647265737300000000604082015260600190565b60208082526018908201527f6172726179206c656e67746873206d757374206d617463680000000000000000604082015260600190565b60208082526017908201527f4163636f756e74206d75737420626520666c6167676564000000000000000000604082015260600190565b60208082526017908201527f526563697069656e74206c6f636b656420617320626f74000000000000000000604082015260600190565b6020808252601f908201527f7472616e7366657220616d6f756e7420657863656564732062616c616e636500604082015260600190565b60208082526014908201527314d95b99195c881b1bd8dad95908185cc8189bdd60621b604082015260600190565b6020808252601d908201527f68697420636f6f6c646f776e2c2074727920616761696e206c61746572000000604082015260600190565b60208082526018908201527f4163636f756e74206d757374206265206578636c756465640000000000000000604082015260600190565b60208082526019908201527f4578636c756465642066726f6d207265666c656374696f6e7300000000000000604082015260600190565b6020808252601d908201527f7265666c6563742066726f6d20746865207a65726f2061646472657373000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152731059191c995cdcc81b9bdd08195e18db1d59195960621b604082015260600190565b6020808252601c908201527f4163636f756e74206d757374206e6f74206265206578636c7564656400000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526022908201527f4163636f756e74206d757374206e6f7420626520756e697377617020726f757460408201526132b960f11b606082015260800190565b6020808252818101527f4163636f756e74206d757374206e6f7420626520756e69737761702070616972604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601b908201527f4163636f756e74206d757374206e6f7420626520666c61676765640000000000604082015260600190565b60208082526024908201527f74616b65206d61726b6574696e672066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156129905784516001600160a01b03168352938301939183019160010161296b565b50506001600160a01b03969096166060850152505050608001529392505050565b60ff91909116815260200190565b60405181810167ffffffffffffffff811182821017156129e1576129e1612ae7565b604052919050565b600067ffffffffffffffff821115612a0357612a03612ae7565b5060209081020190565b60008219821115612a2057612a20612ad1565b500190565b600082612a4057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612a5f57612a5f612ad1565b500290565b600082821015612a7657612a76612ad1565b500390565b600281046001821680612a8f57607f821691505b60208210811415612ab057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612aca57612aca612ad1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461092f57600080fdfea26469706673582212209e10d969d105bbeb8340a621cd6fb93444b416d2f3cc3fbdc4bcd8b678e567cf64736f6c634300080000330000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005874b6434435126a700300bbd6c56363372181000000000000000000000000002b3b60d24d975b9b681a2f9ebaff4670d6c7262a

Deployed Bytecode

0x60806040526004361061026b5760003560e01c806369ec8e9c116101445780639daa30e3116100b6578063bbc0c7421161007a578063bbc0c742146106b9578063c1adf7bc146106ce578063d798cbd2146106ee578063dd62ed3e14610703578063e3f9fc6314610723578063f2fde38b1461074357610272565b80639daa30e314610624578063a457c2d714610644578063a8aa1b3114610664578063a9059cbb14610679578063b41356c91461069957610272565b8063853828b611610108578063853828b6146105855780638da5cb5b1461059a5780639045be58146105af57806392c1c913146105cf5780639579d514146105ef57806395d89b411461060f57610272565b806369ec8e9c146104fb57806370a082311461051b578063715018a61461053b57806375f0a8741461055057806377348de91461056557610272565b80633bbac579116101dd5780634fb0b7e7116101a15780634fb0b7e7146104535780635196aadb1461047357806351c6590a146104935780635fecd926146104a657806361db2446146104c657806367243482146104db57610272565b80633bbac579146103d45780633e9ffbea146103f457806340c10f19146104095780634626402b146104295780634e6be5441461044b57610272565b80632c9fc7d31161022f5780632c9fc7d314610326578063313ce567146103485780633732e2141461036a578063375632931461037f578063395093511461039457806339b622d3146103b457610272565b806306fdde0314610277578063095ea7b3146102a25780631233d83a146102cf57806318160ddd146102f157806323b872dd1461030657610272565b3661027257005b600080fd5b34801561028357600080fd5b5061028c610763565b6040516102999190612375565b60405180910390f35b3480156102ae57600080fd5b506102c26102bd3660046121cb565b6107f5565b604051610299919061236a565b3480156102db57600080fd5b506102e4610813565b6040516102999190612938565b3480156102fd57600080fd5b506102e4610819565b34801561031257600080fd5b506102c261032136600461218b565b61081f565b34801561033257600080fd5b5061034661034136600461211b565b6108b8565b005b34801561035457600080fd5b5061035d610932565b60405161029991906129b1565b34801561037657600080fd5b506102e4610937565b34801561038b57600080fd5b5061034661093d565b3480156103a057600080fd5b506102c26103af3660046121cb565b610971565b3480156103c057600080fd5b506102c26103cf36600461211b565b6109c5565b3480156103e057600080fd5b506102c26103ef36600461211b565b6109da565b34801561040057600080fd5b506103466109f8565b34801561041557600080fd5b506103466104243660046121cb565b610a53565b34801561043557600080fd5b5061043e610a9c565b604051610299919061231b565b610346610aab565b34801561045f57600080fd5b5061034661046e36600461211b565b610ac4565b34801561047f57600080fd5b5061034661048e36600461211b565b610b4d565b6103466104a13660046122d6565b610b95565b3480156104b257600080fd5b506103466104c136600461211b565b610ce9565b3480156104d257600080fd5b506102e4610d76565b3480156104e757600080fd5b506103466104f63660046121f6565b610d7c565b34801561050757600080fd5b506102c261051636600461211b565b610e57565b34801561052757600080fd5b506102e461053636600461211b565b610e75565b34801561054757600080fd5b50610346610e90565b34801561055c57600080fd5b5061043e610ed9565b34801561057157600080fd5b506103466105803660046122d6565b610ee8565b34801561059157600080fd5b50610346610f2c565b3480156105a657600080fd5b5061043e610ff5565b3480156105bb57600080fd5b506102c26105ca36600461211b565b611004565b3480156105db57600080fd5b506102e46105ea36600461211b565b611011565b3480156105fb57600080fd5b506102e461060a36600461211b565b611023565b34801561061b57600080fd5b5061028c611035565b34801561063057600080fd5b5061034661063f36600461211b565b611044565b34801561065057600080fd5b506102c261065f3660046121cb565b6110b3565b34801561067057600080fd5b5061043e61112c565b34801561068557600080fd5b506102c26106943660046121cb565b61113b565b3480156106a557600080fd5b506103466106b436600461211b565b61114f565b3480156106c557600080fd5b506102c26111d4565b3480156106da57600080fd5b506102e46106e936600461211b565b6111e4565b3480156106fa57600080fd5b506102e46111f6565b34801561070f57600080fd5b506102e461071e366004612153565b6111fc565b34801561072f57600080fd5b5061034661073e3660046122b6565b611227565b34801561074f57600080fd5b5061034661075e36600461211b565b611284565b60606003805461077290612a7b565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90612a7b565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b600061080961080261130e565b8484611312565b5060015b92915050565b60095481565b600a5490565b600061082c8484846113c6565b6001600160a01b03841660009081526001602052604081208161084d61130e565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156108995760405162461bcd60e51b8152600401610890906126db565b60405180910390fd5b6108ad856108a561130e565b858403611312565b506001949350505050565b6108c061130e565b6001600160a01b03166108d1610ff5565b6001600160a01b0316146108f75760405162461bcd60e51b815260040161089090612723565b6109026010826116d9565b61091e5760405162461bcd60e51b815260040161089090612758565b61092f8161092a610ff5565b6116ee565b50565b601290565b60085481565b6109486010336116d9565b156109655760405162461bcd60e51b81526004016108909061266d565b61096f33336116ee565b565b600061080961097e61130e565b84846001600061098c61130e565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546109c09190612a0d565b611312565b60136020526000908152604090205460ff1681565b6001600160a01b031660009081526014602052604090205460ff1690565b60006103e8600654610a08610819565b610a129190612a45565b610a1c9190612a25565b90506000610a2930610e75565b9050818110610a355750805b600e54600160a01b900460ff16610a4f57610a4f816117ff565b5050565b610a5b61130e565b6001600160a01b0316610a6c610ff5565b6001600160a01b031614610a925760405162461bcd60e51b815260040161089090612723565b610a4f8282611b08565b600d546001600160a01b031681565b3460076000828254610abd9190612a0d565b9091555050565b610acc61130e565b6001600160a01b0316610add610ff5565b6001600160a01b031614610b035760405162461bcd60e51b815260040161089090612723565b610b0c81610e57565b15610b295760405162461bcd60e51b815260040161089090612786565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b610b5561130e565b6001600160a01b0316610b66610ff5565b6001600160a01b031614610b8c5760405162461bcd60e51b815260040161089090612723565b61092f81611b7a565b610b9d61130e565b6001600160a01b0316610bae610ff5565b6001600160a01b031614610bd45760405162461bcd60e51b815260040161089090612723565b600e805460ff60a81b1916600160a81b179055610bf13082611b08565b600f54610c099030906001600160a01b031683611312565b600f5460405163f305d71960e01b81526001600160a01b039091169063f305d719903490610c5a9030908690600090819073823bf3514d593d0ee796afe4339987812c3bf79590429060040161232f565b6060604051808303818588803b158015610c7357600080fd5b505af1158015610c87573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610cac91906122ee565b5050600e54600160b01b900460ff169050610cd957600e805460ff60b01b1916600160b01b17905543600b555b50600e805460ff60a81b19169055565b610cf161130e565b6001600160a01b0316610d02610ff5565b6001600160a01b031614610d285760405162461bcd60e51b815260040161089090612723565b610d31816109da565b610d4d5760405162461bcd60e51b81526004016108909061252c565b6001600160a01b0381166000908152601460205260409020805460ff1916905561092f81611044565b60075481565b610d8461130e565b6001600160a01b0316610d95610ff5565b6001600160a01b031614610dbb5760405162461bcd60e51b815260040161089090612723565b8051825114610ddc5760405162461bcd60e51b8152600401610890906124f5565b60005b8251811015610e5257610e40838281518110610e0b57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110610e3357634e487b7160e01b600052603260045260246000fd5b6020026020010151611b08565b80610e4a81612ab6565b915050610ddf565b505050565b6001600160a01b031660009081526013602052604090205460ff1690565b6001600160a01b031660009081526012602052604090205490565b610e9861130e565b6001600160a01b0316610ea9610ff5565b6001600160a01b031614610ecf5760405162461bcd60e51b815260040161089090612723565b61096f6000611bab565b600c546001600160a01b031681565b610ef061130e565b6001600160a01b0316610f01610ff5565b6001600160a01b031614610f275760405162461bcd60e51b815260040161089090612723565b600655565b610f3461130e565b6001600160a01b0316610f45610ff5565b6001600160a01b031614610f6b5760405162461bcd60e51b815260040161089090612723565b6000610f78600247612a25565b600c546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610fb3573d6000803e3d6000fd5b50600d546001600160a01b03166108fc610fcd8347612a64565b6040518115909202916000818181858888f19350505050158015610a4f573d6000803e3d6000fd5b6005546001600160a01b031690565b600061080d6010836116d9565b60176020526000908152604090205481565b60166020526000908152604090205481565b60606004805461077290612a7b565b61104c61130e565b6001600160a01b031661105d610ff5565b6001600160a01b0316146110835760405162461bcd60e51b815260040161089090612723565b61108c81611004565b6110a85760405162461bcd60e51b815260040161089090612636565b610a4f601082611bfd565b600080600160006110c261130e565b6001600160a01b039081168252602080830193909352604091820160009081209188168152925290205490508281101561110e5760405162461bcd60e51b815260040161089090612878565b61112261111961130e565b85858403611312565b5060019392505050565b600e546001600160a01b031681565b600061080961114861130e565b84846113c6565b61115761130e565b6001600160a01b0316611168610ff5565b6001600160a01b03161461118e5760405162461bcd60e51b815260040161089090612723565b61119781610e57565b6111b35760405162461bcd60e51b815260040161089090612786565b6001600160a01b03166000908152601360205260409020805460ff19169055565b600e54600160b01b900460ff1681565b60156020526000908152604090205481565b600b5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61122f61130e565b6001600160a01b0316611240610ff5565b6001600160a01b0316146112665760405162461bcd60e51b815260040161089090612723565b600e8054911515600160b81b0260ff60b81b19909216919091179055565b61128c61130e565b6001600160a01b031661129d610ff5565b6001600160a01b0316146112c35760405162461bcd60e51b815260040161089090612723565b6001600160a01b0381166112e95760405162461bcd60e51b8152600401610890906123ff565b61092f81611bab565b6000611307836001600160a01b038416611c12565b9392505050565b3390565b6001600160a01b0383166113385760405162461bcd60e51b8152600401610890906127bd565b6001600160a01b03821661135e5760405162461bcd60e51b815260040161089090612445565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906113b9908590612938565b60405180910390a3505050565b6113cf83610e57565b806113de57506113de82610e57565b156113f3576113ee838383611c5c565b610e52565b6113fc836109da565b156114195760405162461bcd60e51b8152600401610890906125d1565b611422826109da565b1561143f5760405162461bcd60e51b815260040161089090612563565b60006103e860065461144f610819565b6114599190612a45565b6114639190612a25565b9050808211158061147d5750600e54600160a81b900460ff165b806114915750600e54600160a01b900460ff165b806114a95750600f546001600160a01b038481169116145b6114c55760405162461bcd60e51b8152600401610890906123c8565b60006114d030610e75565b9050683635c9adc5dea000008110158282106114ea578291505b8080156115015750600e54600160a01b900460ff16155b801561151b5750600e546001600160a01b03878116911614155b80156115305750600e54600160b81b900460ff165b1561153e5761153e826117ff565b61154886876116ee565b61155285866116ee565b600e54849060009081906001600160a01b038a8116911614801561157f5750600e54600160b01b900460ff165b156116015761158d87611d3a565b326000908152601560205260409020549194509250603c906115af9042612a64565b11806115c45750600e54600160a01b900460ff165b6115e05760405162461bcd60e51b8152600401610890906125ff565b3260009081526015602052604090204290556115fc8983611d9c565b611644565b600e546001600160a01b0389811691161480156116275750600e54600160b01b900460ff165b156116445761163587611d3a565b90935090506116448982611e21565b61164f898985611c5c565b600e54600160b01b900460ff1680156116695750600b5443145b801561167b575061167932610e57565b155b156116ce57600e546001600160a01b03163214156116c557600e546001600160a01b038a8116911614156116b7576116b288611e64565b6116c0565b6116c089611e64565b6116ce565b6116ce32611e64565b505050505050505050565b6000611307836001600160a01b038416611f12565b600e546001600160a01b03838116911614806117175750600f546001600160a01b038381169116145b1561172157610a4f565b6001600160a01b0382166000908152601660205260408120546007546117479190612a64565b90506000600a5461175785610e75565b6117619084612a45565b61176b9190612a25565b6007546001600160a01b038616600090815260166020526040902055905080611795575050610a4f565b6001600160a01b038416600090815260176020526040812080548392906117bd908490612a0d565b90915550506040516001600160a01b0384169082156108fc029083906000818181858888f193505050501580156117f8573d6000803e3d6000fd5b5050505050565b600e805460ff60a01b1916600160a01b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061185557634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600f54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156118a957600080fd5b505afa1580156118bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e19190612137565b8160018151811061190257634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600f546119289130911684611312565b600f5460405163791ac94760e01b815247916001600160a01b03169063791ac94790611961908690600090879030904290600401612941565b600060405180830381600087803b15801561197b57600080fd5b505af115801561198f573d6000803e3d6000fd5b50505050600081476119a19190612a64565b905060006008546009546119b59190612a0d565b6009546119c29087612a45565b6119cc9190612a25565b905060006119da8287612a64565b905060006008546009546119ee9190612a0d565b6009546119fb9086612a45565b611a059190612a25565b90506000611a138286612a64565b90508115611aa8576000611a28600284612a25565b600c546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015611a63573d6000803e3d6000fd5b50600d546001600160a01b03166108fc611a7d8386612a64565b6040518115909202916000818181858888f19350505050158015611aa5573d6000803e3d6000fd5b50505b8360096000828254611aba9190612a64565b925050819055508260086000828254611ad39190612a64565b925050819055508060076000828254611aec9190612a0d565b9091555050600e805460ff60a01b191690555050505050505050565b80600a6000828254611b1a9190612a0d565b90915550611b2a90508282611f2a565b816001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611b6e9190612938565b60405180910390a35050565b611b8381611004565b15611ba05760405162461bcd60e51b815260040161089090612786565b610a4f6010826112f2565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611307836001600160a01b038416611f6e565b6000611c1e8383611f12565b611c545750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561080d565b50600061080d565b6001600160a01b038316611c825760405162461bcd60e51b815260040161089090612487565b6001600160a01b038216611ca85760405162461bcd60e51b8152600401610890906124be565b6000611cb384610e75565b905081811015611cd55760405162461bcd60e51b81526004016108909061259a565b611cdf848361208b565b611ce98383611f2a565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d2c9190612938565b60405180910390a350505050565b60008080611d4a600a6064612a64565b90506064611d588286612a45565b611d629190612a25565b9250611d6e8385612a64565b915083611d7b8385612a0d565b14611d9657634e487b7160e01b600052600160045260246000fd5b50915091565b6001600160a01b038216611dc25760405162461bcd60e51b8152600401610890906126a4565b611dcd823083611c5c565b8060086000828254611ddf9190612a0d565b909155505060405130906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611b6e908590612938565b6001600160a01b038216611e475760405162461bcd60e51b8152600401610890906128f4565b611e52823083611c5c565b8060096000828254611ddf9190612a0d565b611e6d816109da565b15611e8a5760405162461bcd60e51b8152600401610890906128bd565b600f546001600160a01b0382811691161415611eb85760405162461bcd60e51b815260040161089090612801565b600e546001600160a01b0382811691161415611ee65760405162461bcd60e51b815260040161089090612843565b6001600160a01b0381166000908152601460205260409020805460ff1916600117905561092f81611b7a565b60009081526001919091016020526040902054151590565b6001600160a01b038216600090815260126020526040902054611f4e908290612a0d565b6001600160a01b0390921660009081526012602052604090209190915550565b60008181526001830160205260408120548015612081576000611f92600183612a64565b8554909150600090611fa690600190612a64565b9050818114612027576000866000018281548110611fd457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061200557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061204657634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061080d565b600091505061080d565b6001600160a01b038216600090815260126020526040902054611f4e908290612a64565b600082601f8301126120bf578081fd5b813560206120d46120cf836129e9565b6129bf565b82815281810190858301838502870184018810156120f0578586fd5b855b8581101561210e578135845292840192908401906001016120f2565b5090979650505050505050565b60006020828403121561212c578081fd5b813561130781612afd565b600060208284031215612148578081fd5b815161130781612afd565b60008060408385031215612165578081fd5b823561217081612afd565b9150602083013561218081612afd565b809150509250929050565b60008060006060848603121561219f578081fd5b83356121aa81612afd565b925060208401356121ba81612afd565b929592945050506040919091013590565b600080604083850312156121dd578182fd5b82356121e881612afd565b946020939093013593505050565b60008060408385031215612208578182fd5b823567ffffffffffffffff8082111561221f578384fd5b818501915085601f830112612232578384fd5b813560206122426120cf836129e9565b82815281810190858301838502870184018b101561225e578889fd5b8896505b8487101561228957803561227581612afd565b835260019690960195918301918301612262565b509650508601359250508082111561229f578283fd5b506122ac858286016120af565b9150509250929050565b6000602082840312156122c7578081fd5b81358015158114611307578182fd5b6000602082840312156122e7578081fd5b5035919050565b600080600060608486031215612302578283fd5b8351925060208401519150604084015190509250925092565b6001600160a01b0391909116815260200190565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b901515815260200190565b6000602080835283518082850152825b818110156123a157858101830151858201604001528201612385565b818111156123b25783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f45786365656473206d6178207472616e73616374696f6e20616d6f756e740000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601e908201527f7472616e736665722066726f6d20746865207a65726f20616464726573730000604082015260600190565b6020808252601c908201527f7472616e7366657220746f20746865207a65726f206164647265737300000000604082015260600190565b60208082526018908201527f6172726179206c656e67746873206d757374206d617463680000000000000000604082015260600190565b60208082526017908201527f4163636f756e74206d75737420626520666c6167676564000000000000000000604082015260600190565b60208082526017908201527f526563697069656e74206c6f636b656420617320626f74000000000000000000604082015260600190565b6020808252601f908201527f7472616e7366657220616d6f756e7420657863656564732062616c616e636500604082015260600190565b60208082526014908201527314d95b99195c881b1bd8dad95908185cc8189bdd60621b604082015260600190565b6020808252601d908201527f68697420636f6f6c646f776e2c2074727920616761696e206c61746572000000604082015260600190565b60208082526018908201527f4163636f756e74206d757374206265206578636c756465640000000000000000604082015260600190565b60208082526019908201527f4578636c756465642066726f6d207265666c656374696f6e7300000000000000604082015260600190565b6020808252601d908201527f7265666c6563742066726f6d20746865207a65726f2061646472657373000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152731059191c995cdcc81b9bdd08195e18db1d59195960621b604082015260600190565b6020808252601c908201527f4163636f756e74206d757374206e6f74206265206578636c7564656400000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526022908201527f4163636f756e74206d757374206e6f7420626520756e697377617020726f757460408201526132b960f11b606082015260800190565b6020808252818101527f4163636f756e74206d757374206e6f7420626520756e69737761702070616972604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601b908201527f4163636f756e74206d757374206e6f7420626520666c61676765640000000000604082015260600190565b60208082526024908201527f74616b65206d61726b6574696e672066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156129905784516001600160a01b03168352938301939183019160010161296b565b50506001600160a01b03969096166060850152505050608001529392505050565b60ff91909116815260200190565b60405181810167ffffffffffffffff811182821017156129e1576129e1612ae7565b604052919050565b600067ffffffffffffffff821115612a0357612a03612ae7565b5060209081020190565b60008219821115612a2057612a20612ad1565b500190565b600082612a4057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612a5f57612a5f612ad1565b500290565b600082821015612a7657612a76612ad1565b500390565b600281046001821680612a8f57607f821691505b60208210811415612ab057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612aca57612aca612ad1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461092f57600080fdfea26469706673582212209e10d969d105bbeb8340a621cd6fb93444b416d2f3cc3fbdc4bcd8b678e567cf64736f6c63430008000033

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

0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005874b6434435126a700300bbd6c56363372181000000000000000000000000002b3b60d24d975b9b681a2f9ebaff4670d6c7262a

-----Decoded View---------------
Arg [0] : uniswapFactory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [1] : uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : marketing (address): 0x5874B6434435126a700300bbd6C5636337218100
Arg [3] : treasury (address): 0x2b3b60D24D975b9B681A2F9ebAff4670D6c7262a

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 0000000000000000000000005874b6434435126a700300bbd6c5636337218100
Arg [3] : 0000000000000000000000002b3b60d24d975b9b681a2f9ebaff4670d6c7262a


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

DeFi Holdings is a reward system that allow users to earn ETH reflections and dividends from farming strategies by simply holding DHOLD.

Validator Index Block Amount
View All Withdrawals

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

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