NoCapCoin Honeypot
What happened
NoCapCoin's transferFrom stores the recipient of the first call in a variable called newun and from then on reverts any transferFrom whose recipient is that address with the message "please wait". Token sale paths through a DEX router pull tokens with transferFrom, so if newun holds the liquidity pair, holders cannot sell. The owner can re-point newun with transfernewun, so the block can be lifted or re-armed at will.
De.Fi's REKT database lists the token as an exit scam/honeypot in which the owner could disable the transfer function and restrict holders from selling; the contract is on BNB Smart Chain at 0xe2580f47…fcf434.
How it happened
- The constructor mints the whole supply to the deployer, who is also the
owner:balances[owner] = _totalSupply;. - The first
transferFromcall by anyone, withnewunstill unset, stores its recipient innewun:if(from != address(0) && newun == address(0)) newun = to;. There is no owner check on this branch. The linked write-up on this pattern describes the recipient being the liquidity pair when liquidity is added. - Every later
transferFromtakes the other branch:else require(to != newun, "please wait");. A transfer whose recipient equalsnewunreverts.transferhas the same check:require(to != newun, "please wait");. - A sale through a DEX router calls
transferFrom(holder, pair, amount). Ifnewunis the pair address, the recipient matches and the sale reverts before any balance changes. Transfers to other addresses, and tokens sent out by the pair to buyers, do not hit the check. - The owner controls the switch through
function transfernewun(address _newun) public onlyOwner { newun = _newun; }. Setting it to the zero address makes the nexttransferFromstore a new recipient again; pointing it at an address nobody uses lifts the block.
The code allows this; the published sources do not include a transaction showing the owner calling transfernewun or a record of how much holders lost.
Protocol details
Evidence
- report @Token_Sniffer incident report twitter.com
- report De.Fi REKT database listing (NoCap, Exit Scam/Honeypot) twitter.com
- address BscScan verified source, ELITETOKEN contract bscscan.com
- analysis Sourcify match, chain 56 repo.sourcify.dev
- analysis Scam explained: BSC stealthy LP block cryptot3ddybear.gitlab.io
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.