Zombie Swap Honeypot
What happened
Zombie Swap (ZOMBIE) is a BNB Chain token deployed on 10 March 2021 at 0xf129b2f3…c3bc80. Its contract keeps a hidden target address, newun: the first transferFrom made while newun is empty stores that call's recipient, and from then on every transfer or transferFrom to newun reverts with "please wait". When the first transferFrom is the router moving the owner's tokens into a new PancakeSwap pair, the pair becomes newun, so every sale into the pool fails while purchases paid out of the pool still work.
Only the owner can point newun somewhere else, through transfernewun. De.Fi's REKT database lists Zombie Swap as an exit scam/honeypot, stating that the contract owner could disable the transfer function and so stop users from selling their tokens.
How it happened
- The constructor mints the full 10,000 ZOMBIE supply to the deployer, who becomes
owner, and leavesnewunas the zero address. transferFromrunsif(from != address(0) && newun == address(0)) newun = to;, so the recipient of the firsttransferFrombecomesnewun. When the owner adds liquidity through the PancakeSwap router, the router'stransferFrominto the pair is that first call.- Every later
transferFromrunsrequire(to != newun, "please wait"), andtransferruns the same check. A router sale moves the holder's tokens to the pair, so it reverts. - Purchases move tokens from the pair to the buyer, whose address is not
newun, so buying keeps working. - The owner-only
transfernewun(address)can resetnewunto any address, which is the only way to reopen sales. The owner-onlyclearCNDAO()sends any BNB held by the token contract to the owner.
Protocol details
Evidence
- report De.Fi REKT database listing for Zombie Swap (proof link: Token Sniffer tweet 1381346761566916614) twitter.com
- transaction Zombie Swap contract creation transaction bscscan.com
- address Zombie Swap verified contract code on BscScan bscscan.com
- analysis Scam explained: BSC stealthy LP block (CryptoT3ddyBear, 2021-04-11) cryptot3ddybear.gitlab.io
- analysis Sourcify match for 0xf129b2f3f7d06d9d109bcb1197f79c7a5fc3bc80 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.