Skip to content
Verified contractExactUNLICENSED

MAKE

Address0x49d3fdbc035696d13a2ca4ea28d5a18a882f2531
Balance

0 ETH

 

Transactions

121

 

Compiler

solc 0.8.20

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
No
License
UNLICENSED
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
24,895,274
Creation transaction
0x30015cc9a8…4b3ed9bdb3

MAKE.sol

// SPDX-License-Identifier: UNLICENSED

/*                                                
                                                                                                                                                                                       
                  @@@@@@@@@@@                   @@@@               @@@@@@@@                         
               @@@@@@@@@@@@@@@@@         @@@    @@@@    @@       @@@@@@@@@@@@@@@@@@@@@              
              @@@@@@@@@@@@@@@@@@@       @@@@@   @@@@  @@@@@     @@@@@@@@@@@@@@@@@@@@@@@@            
             @@@@@@@@@@@@@@@@@@@@@        @@@@@ @@@@@@@@@@      @@@@@@@@@@@@@@@@@@@@@@@@            
            @@@@@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@@@           
            @@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@           
           @@@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@@@@@            
           @@@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@@@@@     @@@@@@@@@@@@@@@@@@@@@             
            @@@@@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@@@@           @@@@@@@@@@@@@@@@@@@              
             @@@@@@@@@@@@@@@@@@@@@       @@@@@@ @@@@@@@@@@          @@@@@@@@@@@@@@@@                
             @@@@@@@@@@@@@@@@@@@@       @@@@@   @@@@  @@@@@           @@@@@@@@@@@@                  
               @@@@@@@@@@@@@@@@@         @@@    @@@@    @@             @@@@@@@@                     
                 @@@@@@@@@@@@                   @@@@                     @@@                                                                                                                            
                                                                                                    

makechain.net
*/

pragma solidity 0.8.20;

interface IERC20 {
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    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);
}

interface IRouter {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external payable returns (uint256, uint256, uint256);

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

interface IFactory {
    function createPair(address a, address b) external returns (address);
}

abstract contract Auth {
    address internal _admin;

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

    constructor() {
        _admin = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

    modifier onlyAdmin() {
        require(_admin == msg.sender, "Not admin");
        _;
    }

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

    function transferOwnership(address who) external onlyAdmin {
        require(who != address(0), "Zero");
        emit OwnershipTransferred(_admin, who);
        _admin = who;
    }

    function renounceOwnership() external onlyAdmin {
        emit OwnershipTransferred(_admin, address(0));
        _admin = address(0);
    }
}

contract MAKE is IERC20, Auth {
    string private constant NAME = "Makechain";
    string private constant SYMBOL = "MAKE";
    uint8 private constant DECIMALS = 18;
    uint256 private constant SUPPLY = 100_000_000 * 10 ** DECIMALS;

    // Tax schedule
    uint256 private buyTaxStart = 33;
    uint256 private sellTaxStart = 33;
    uint256 private buyTaxFinal = 5;
    uint256 private sellTaxFinal = 5;
    uint256 private buyTaxCut = 20;
    uint256 private sellTaxCut = 20;
    uint256 private swapLockBuys = 5;
    uint256 private buyTally = 0;

    // Limits (2% of supply tx/wallet)
    uint256 public _maxTxAmount = 2_000_000 * 10 ** DECIMALS;
    uint256 public _maxWalletSize = 2_000_000 * 10 ** DECIMALS;
    uint256 public _taxSwapThreshold = 100_000 * 10 ** DECIMALS;
    uint256 public _maxTaxSwap = 5_000_000 * 10 ** DECIMALS;

    // State
    mapping(address => uint256) private _bal;
    mapping(address => mapping(address => uint256)) private _allow;
    mapping(address => bool) private _feeOff;
    mapping(address => bool) private _blocked;
    mapping(address => uint256) private _lastTx;

    bool public transferDelayEnabled = true;
    address payable private _taxWallet;

    IRouter private _router;
    address private _pair;
    bool private _live;
    bool private _busy;
    bool private _swapOn;
    uint256 private _lastSwapBlock;

    event MaxTxAmountUpdated(uint256 value);
    event FeeUpdated(uint256 buyFee, uint256 sellFee);

    modifier noReenter() {
        _busy = true;
        _;
        _busy = false;
    }

    constructor() {
        _taxWallet = payable(msg.sender);
        _bal[msg.sender] = SUPPLY;
        _feeOff[msg.sender] = true;
        _feeOff[address(this)] = true;

        emit Transfer(address(0), msg.sender, SUPPLY);
    }

    // Metadata
    function name() external pure returns (string memory) {
        return NAME;
    }

    function symbol() external pure returns (string memory) {
        return SYMBOL;
    }

    function decimals() external pure returns (uint8) {
        return DECIMALS;
    }

    function totalSupply() external pure override returns (uint256) {
        return SUPPLY;
    }

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

    function allowance(address o, address s) external view override returns (uint256) {
        return _allow[o][s];
    }

    // ERC20 core
    function approve(address spender, uint256 amount) external override returns (bool) {
        _setAllowance(msg.sender, spender, amount);
        return true;
    }

    function transfer(address to, uint256 amount) external override returns (bool) {
        _move(msg.sender, to, amount);
        return true;
    }

    function transferFrom(address from, address to, uint256 amount) external override returns (bool) {
        _move(from, to, amount);
        uint256 a = _allow[from][msg.sender];
        require(a >= amount, "Allowance low");
        unchecked {
            _setAllowance(from, msg.sender, a - amount);
        }
        return true;
    }

    function _setAllowance(address o, address s, uint256 v) private {
        require(o != address(0) && s != address(0), "Zero addr");
        _allow[o][s] = v;
        emit Approval(o, s, v);
    }

    // Transfer logic
    function _move(address from, address to, uint256 amount) private {
        require(from != address(0) && to != address(0), "Zero");
        require(amount > 0, "Zero amount");

        uint256 fee = 0;

        if (from != _admin && to != _admin) {
            require(!_blocked[from] && !_blocked[to], "Blocked");

            // Anti-snipe delay — track the receiving wallet so multiple buyers can
            // transact in the same block (msg.sender here is the pair, not the buyer).
            if (transferDelayEnabled && to != address(_router) && to != _pair) {
                require(_lastTx[to] < block.number, "One per block");
                _lastTx[to] = block.number;
            }

            // Determine fee context
            if (from == _pair && to != address(_router) && !_feeOff[to]) {
                require(amount <= _maxTxAmount, "Over tx");
                require(_bal[to] + amount <= _maxWalletSize, "Over wallet");
                fee = (amount * (buyTally > buyTaxCut ? buyTaxFinal : buyTaxStart)) / 100;
                buyTally++;
            } else if (to == _pair && from != address(this)) {
                fee = (amount * (buyTally > sellTaxCut ? sellTaxFinal : sellTaxStart)) / 100;
            }

            // Auto-swap tax
            uint256 held = _bal[address(this)];
            bool canSwap =
                !_busy && to == _pair && _swapOn && held > _taxSwapThreshold && buyTally > swapLockBuys;

            if (canSwap) {
                require(block.number > _lastSwapBlock, "Swap throttle");
                _doSwap(_pickMin(amount, _pickMin(held, _maxTaxSwap)));
                if (address(this).balance > 0) {
                    _taxWallet.transfer(address(this).balance);
                }
                _lastSwapBlock = block.number;
            }
        }

        // Apply balances
        if (fee > 0) {
            _bal[address(this)] += fee;
            emit Transfer(from, address(this), fee);
        }
        _bal[from] -= amount;
        _bal[to] += (amount - fee);
        emit Transfer(from, to, amount - fee);
    }

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

    function _doSwap(uint256 amountIn) private noReenter {
        address[] memory p = new address[](2);
        p[0] = address(this);
        p[1] = _router.WETH();
        _setAllowance(address(this), address(_router), amountIn);
        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountIn, 0, p, address(this), block.timestamp);
    }

    // Admin
    function removeLimits() external onlyAdmin {
        _maxTxAmount = SUPPLY;
        _maxWalletSize = SUPPLY;
        transferDelayEnabled = false;
        emit MaxTxAmountUpdated(SUPPLY);
    }

    function addBots(address[] calldata list) external onlyAdmin {
        uint256 n = list.length;
        for (uint256 i = 0; i < n; i++) {
            _blocked[list[i]] = true;
        }
    }

    function delBots(address[] calldata list) external onlyAdmin {
        uint256 n = list.length;
        for (uint256 i = 0; i < n; i++) {
            _blocked[list[i]] = false;
        }
    }

    function isBot(address who) external view returns (bool) {
        return _blocked[who];
    }

    function openTrading() external payable onlyAdmin {
        require(!_live, "Live");
        _router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _setAllowance(address(this), address(_router), SUPPLY);
        _pair = IFactory(_router.factory()).createPair(address(this), _router.WETH());
        _router.addLiquidityETH{value: address(this).balance}(
            address(this), _bal[address(this)], 0, 0, _admin, block.timestamp
        );
        IERC20(_pair).approve(address(_router), type(uint256).max);
        _swapOn = true;
        _live = true;
    }

    // Tax wallet controls
    function reduceFee(uint256 newFee) external {
        require(msg.sender == _taxWallet, "Not tax");
        require(newFee <= buyTaxFinal && newFee <= sellTaxFinal, "Can only reduce");
        buyTaxFinal = newFee;
        sellTaxFinal = newFee;
        emit FeeUpdated(newFee, newFee);
    }

    function manualSwap() external {
        require(msg.sender == _taxWallet, "Not tax");
        uint256 held = _bal[address(this)];
        if (held > 0) _doSwap(held);
        uint256 ethBal = address(this).balance;
        if (ethBal > 0) _taxWallet.transfer(ethBal);
    }

    // Rescue (only before trading opens)
    function rescueETH() external {
        require(msg.sender == _taxWallet, "Not tax");
        require(!_live, "Live");
        _taxWallet.transfer(address(this).balance);
    }

    function rescueTokens(address token) external {
        require(msg.sender == _taxWallet, "Not tax");
        require(!_live, "Live");
        uint256 bal = IERC20(token).balanceOf(address(this));
        require(bal > 0, "No bal");
        IERC20(token).transfer(_taxWallet, bal);
    }

    receive() external payable {}
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.