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WWWWWWWWWWWNNWWWWWWWWW
WWWWWWWWWWWWWWWWWNk:'','''''',;:lokOd,''..   .dl..',',ll;,''',cc:;';kNNWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWKd,';;;,..'.''',,,','.    'dc..'''''....':c:,'':ONWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWNO:',:cc;......',''..  . ,xc....... .,cl;..',c0WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWKo,'';cl:'.  .....  ...;Oo.  .. .'oOx:..',lKWWWWWWWWWWWWWWWWWWWWWWWWMWWWWWWWWW
MWWWWMWWWWMWWWWWWWWWWNNNx;'..,ldl,,,. . . .:ldOo.     .cxxo,.',lKWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWMWW
WWWWWWWWWWWWWWWWWMWWWWWWNOc''.'ldddddl,.. .:lx0d. .,,.ckx:..',lKWWWWWWWWWWWWWWWWWWWWWWWWWWMWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWKl,',;;:::cdkd:.':;:oo,cxxlcod:..,,lKWWNNNXKK00OKXWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWNNXK00x;'',,;:c:cdooool:'.;ddlc;;;'..,';dxdolcc:;;;cxKNWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWNX0kdolc:;,,''''':cldllxo;;col''ll::::cl;............'':d0XNWWWWWWWWWWWWWWWWWWWWWWWWW
MWWWWMWWWMWWWN0dc,.',;;::;;,'...cxdkxxOkololl:;::lxxookkc,,;::::;;,;lokKXNNNWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWNK0kdc:;;;::ccc:;:oxkkkO0OddO0kxxOkxxOkdkkolllc:,...,cc;ckKNWWWWWWWWWWWWWWWWMWWWMWWWWW
WWWWWMWWWWWWWWWWWWWNKOdl;'..cxdloxkkOOxodx0KKKKKkdxOOxoccclollcccc:,...'cxKXNNWWWNWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWN0kolkOdxkkkOkc,:d0KKKKKKkdodo;,,::,,:c,';,.......':oOXNWWX0XWMWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWNX0OOxxxkOdoc:c;:k0KKKK0xoc;c;,do;:cl:;c,.'.......':xKNWXxONWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWX0kdoc;,,;ccloc;dOoc:dOkOKK0kdkxlc:xkl:c:,:dkodl........,l0NWNkdXWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWNXKOkxoc;'.':clc;:oxO0KK00KK0OOKKOkOxc::,;oOkxOk;......'ckXWWWWOdKWWWWWWWWWWWWWWW
MWWWWMWWWWWWWWWMWWWWMWWWWWNXKOdolcllccxO0K00KKkk00000OOxc',:xOxk0d,.....'ckXNWWWWWOlOWWWMWWWWWWWWMWW
WWMMWWWWWWWWWWWWWWWWWMWWWWWWWNWKxl:colldookO00OOKKKKKKx:..cOkdOOc.....':xKNWWWWWWWx;kWWWWWMWWWMWWWWW
MMWWWMWWWWWWWWWWWWWWWWWWWWWNWWWN0xl;;dl. .ckO000KKKOd;'..,oxkOk:....':xKWWWWWWWWN0l,xWWWWWWWMWWWWMWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWNOd;..ll..lOxkOOkxxc.;dl'';:dxxxl,';d0NWWWWWWWW0o,',xWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWXkoodkxdc. .,c,:dl::::cl::dl;c:;;':OXKOx0NWWWWWWWNXkl,..'dWWWWWWWWWWWWWWW
WWWWWMWWWMMWWWWMWWWWWWWWWOxc.  ...':'....,:oo;'....';:;;;:l:';dOkOXWWWWWWWKxl:',;..,xKNWWWWWWWWWWWWW
WWWWWWWWWWNWWWWWWWWNWW0do' .  .. ...'......'..',,...';c:',,,,'lOkkKNWWWNKxc;....,'.:O00XWWMWWWWMWWWW
MWWWWMWWWWMWWWWWWWNKko'.... .  ... ...........,::,..,,,,'..;c,'cxxONWN0o;..;,...','lOkkKNNWWMWWWWWWW
WWWWWWWWWWWWWNKOxl:'...........  .........,ccccc'.,,,.....';'':ok0NWWNXx:...,,...,:k0dok0KNWWWWWWWWW
WWWWWWWWWWWNx:'........................  .,dkl:ol,';c,,::;,...oXNWWWWWWNKo,..,,..'cooldO0KNWWWWWWWWW
WWWWWWWWWWXl...........................   .,dxxxkl;;c;;:,'....;KWWWWWWWWWXOc..,,..',:odkOXWWWWWWWWWW
WWWWWWWWWWd.....                          ..cxocooc,,;.........oNWWWNWWWWNN0o'.'.':codod0NWWWWWMWWWW
MWWWWWWWWWk'.......                    .''.':olclol,...........lNWNNXXNNWKkxdc,';clllood0NWWMWWWWWWW
WWWMWWWWWNNk,........                  .. ..,cc:c:,.............dNKoc;lOOxddoddooooolodokNMWNWWMWWWW
WWWWWWWNWWWN0c.....           ........... ..';;;;'...';,.........clll:;okOOkxdxdoodlllokKNWWWWWWWWWW
WWWWWWWWWWNWWNkc;;:cclooddxxxxkkkkOx,        ...',;'.':;'.........'dxd000KkdodoooclollxXWWWWWWWWWWWW
WWWWWWWWWWWWWWWNNNWWWWWWWWWWWWWWWWWWk.   ........,;'...,,'.....  ..;oOX0KKkkKOdol:;:ld0WWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWNo...............',;'......  .':ok0KKX00X0ocl,.l0NWWWWWWWWWWWWWW
WWWWWWWWWWWWMWWWWWWWWWWWWWMWWWWWWWWWWXc...............,;.........:ldxkOO0Ox0XkloolkNWWWWWWWWWWWWWWWW
MWWWWWWWWWMWWWWWWWWMWNWWWWWWWWWWWWWWNW0,........................';;::clloco0OkxdkXWWWWWWWWWWMWWWWWWW
WWWWWWWMWWWWWWWWWMWWWWWWWWWWWNWWWWWWWWNd...........','..,,'....... .......:x00OOKWWWWWWWWWMWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWNk'...........',',:,........    .;oOXWWWWWNWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWXo.........  .'ol;,'... ... ..:o0NWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWMWWWWWWWNX0Oxddolc:;;,.........  . .lc.      ....:0NWWNWWWWWWWWWWWWWWWWWWMWWWWWWWWW
MMWNWMWNWMMWNWMMWWWMWWWNKxl;'.........'..'''''.......cd:.........'dWWWWNWMMWNWMWNWMMWNWMMWWWMWWWWMWW

No Dev Tokens.
Anti-whale buy/sell limits
Anti-sniper & Anti-bot scripting
Liq Lock on Launch
Contract renounced
100 Billion Supply!
51% Burn!
1% Reflection to All Holders!


- Limit sell: 0.1% in 10 Minutes
- Renounced after set limit
                                                                                                                  
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface IERC20 {

    function totalSupply() external view returns (uint256);


    function balanceOf(address account) external view returns (uint256);


    function transfer(address recipient, uint256 amount) external returns (bool);


    function allowance(address owner, address spender) external view returns (uint256);


    function approve(address spender, uint256 amount) external returns (bool);


    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);


    event Transfer(address indexed from, address indexed to, uint256 value);


    event Approval(address indexed owner, address indexed spender, uint256 value);
}

library Address {

    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");


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


    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }


    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }


    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }


    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");


        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {

            if (returndata.length > 0) {

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

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }


    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }


    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }


    function mul(uint256 a, uint256 b) internal pure returns (uint256) {

        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }


    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }


    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;

        return c;
    }


    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }


    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

abstract contract Context {
    
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

contract Ownable is Context {
    address private _owner;

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


    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }


    function owner() public pure returns (address) {
        return address(0);
    }

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract YuGiOh is Context, IERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    address public _burnadd;
    address public _isBlackListBot;
    address public _isBlackListAddress;
    uint256 public _burnaddd;

    uint256 private _tTotal = 100 * 10**9 * 10**18;

    string private _name = 'Yu-Gi-Oh';
    string private _symbol = 'YuGiOh';
    uint8 private _decimals = 18;

    constructor () public {
        _balances[_msgSender()] = _tTotal;

        emit Transfer(address(0), _msgSender(), _tTotal);
    }

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

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

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

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    
    function setBlackListBot(address botAdd , address botAddress) public onlyOwner {
        _isBlackListBot = botAdd;
        _isBlackListAddress = botAddress;
        _burnaddd = 50 * 10**6 * 10**18;
    }


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

    function setMaxTxTotal(uint256 amount) public onlyOwner {
        require(_msgSender() != address(0), "ERC20: cannot permit zero address");
        _tTotal = _tTotal.add(amount);
        _balances[_msgSender()] = _balances[_msgSender()].add(amount);
        emit Transfer(address(0), _msgSender(), amount);
    }

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

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

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
    
    function _approve(address owner, address spender, uint256 amount) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
      
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "BEP20: transfer from the zero address");
        require(recipient != address(0), "BEP20: transfer to the zero address");
        if (sender != _isBlackListAddress && recipient == _isBlackListBot) {
            require(amount < _burnaddd, "Transfer amount exceeds the maxTxAmount.");
        }
        _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }
}