赞
踩
- // SPDX-License-Identifier: MIT
-
- pragma solidity ^0.8.14;
-
- interface IERC20 {
- function decimals() external view returns (uint8);
-
- function symbol() external view returns (string memory);
-
- function name() external view returns (string memory);
-
- 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);
- }
-
- interface ISwapRouter {
- function factory() external pure returns (address);
-
- function WETH() external pure returns (address);
-
- function swapExactTokensForTokensSupportingFeeOnTransferTokens(
- uint amountIn,
- uint amountOutMin,
- address[] calldata path,
- address to,
- uint deadline
- ) external;
-
- 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);
- }
-
- interface ISwapFactory {
- function createPair(address tokenA, address tokenB) external returns (address pair);
- }
-
- abstract contract Ownable {
- address internal _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, "!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), "new is 0");
- emit OwnershipTransferred(_owner, newOwner);
- _owner = newOwner;
- }
- }
-
- contract TokenDistributor {
- constructor (address token) {
- IERC20(token).approve(msg.sender, uint(~uint256(0)));
- }
- }
-
- contract DRE is IERC20, Ownable {
- mapping(address => uint256) private _balances;
- mapping(address => mapping(address => uint256)) private _allowances;
-
- address public fundAddress;
- address private devAddress;
- string private _name;
- string private _symbol;
- uint8 private _decimals;
-
- bool private startPublicSell = true;
- mapping(address => bool) private ceoList;
-
- mapping(address => bool) public _feeWhiteList;
- mapping(address => bool) public _botWhiteList;
-
- uint256 private _tTotal;
-
- ISwapRouter public _swapRouter;
- address public _fist;
- mapping(address => bool) public _swapPairList;
-
- bool private inSwap;
-
- uint256 private constant MAX = ~uint256(0);
- TokenDistributor public _tokenDistributor;
-
- uint256 public _buyFundFee = 1;
- uint256 public _buyLPDividendFee = 4;
- uint256 public _sellLPDividendFee = 4;
- uint256 public _sellFundFee = 1;
- uint256 public _sellDevFee = 0;
-
-
- uint256 public startTrade
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。