BongWeedCoin Honeypot
What happened
De.Fi's REKT database lists BongWeedCoin ($BWC) as an exit scam/honeypot on BSC, noting that the owner could stop holders from selling. In the verified source the control is a stored address, newun: after it is set, any transfer or transferFrom whose recipient is that address reverts with "please wait". newun is filled automatically by the first transferFrom and can also be set by the owner with transfernewun.
If it points at the trading pool, buys still work but sells into the pool revert.
How it happened
- The constructor sets the deployer as
ownerand gives it the whole supply:balances[owner] = _totalSupply;. newunstarts as the zero address. The owner can change it at any time withfunction transfernewun(address _newun) public onlyOwner { newun = _newun; }.- The first
transferFromfrom a non-zero sender whilenewunis unset stores its recipient:if(from != address(0) && newun == address(0)) newun = to;. That transfer succeeds. A liquidity add through a router is atransferFrominto the pool, so the pool address is a natural value fornewun; the code does not name it, and the linked write-up describes this capture. - Every later call is checked against it.
transferhasrequire(to != newun, "please wait");andtransferFromhaselse require(to != newun, "please wait");. The balance subtraction comes after the check, so a blocked call reverts and nothing is debited. - If
newunis the pool, a sell, which a router executes astransferFrom(seller, pool, amount), always reverts. A buy moves tokens out of the pool withtransfer(buyer, amount), whose recipient is notnewun, so it passes. - The owner keeps control of the block: setting
newunback to the zero address re-arms capture on the nexttransferFrom, while pointing it at an address nothing uses lifts the restriction. - What happened: De.Fi's REKT database lists the token as an exit scam/honeypot. No transaction showing the owner calling
transfernewunor a failed sell was opened for this record.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.