Dogefather Honeypot

Reported loss Not disclosed
BNB Chain
Honeypot

What happened

DogeFather (FDOG) is a BNB Smart Chain token whose transfer and transferFrom functions revert for any recipient equal to a stored address called newun. transferFrom fills newun with the recipient of the first transferFrom it processes while newun is empty, and the owner can overwrite it with transfernewun. Whichever address newun holds can no longer receive tokens, so a sell that sends tokens to that address fails with the message please wait.

De.Fi's REKT database lists FDOG as an exit scam / honeypot in which the owner could disable the transfer function and restrict users from selling.

How it happened

  1. The constructor gives the whole supply to the deployer: balances[owner] = _totalSupply;. newun starts as the zero address.
  2. transferFrom contains the capture line if(from != address(0) && newun == address(0)) newun = to;. The first transferFrom that succeeds while newun is empty, which is how a router moves tokens when liquidity is added, stores that call's recipient in newun. The code does not name who that recipient is.
  3. From then on every later call hits a block: transfer starts with require(to != newun, "please wait"); and transferFrom runs else require(to != newun, "please wait");. A holder's sale that sends tokens to the newun address reverts, while sends to other addresses go through.
  4. The block is not limited to non-owners and has no exception for the deployer's address: both functions apply the same require. The owner can move it with function transfernewun(address _newun) public onlyOwner. Setting it to the zero address lets the next transferFrom capture a new recipient, while pointing it at an unused address lifts the block.

The code allows this; the sources opened for this entry do not include a transaction showing which address newun held or any owner call to transfernewun.

Protocol details

Classification Token
Protocol Type Exit Scam/Honeypot
Affected asset / contract FDOG

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.