JaguarMOON Honeypot

Reported loss Not disclosed
BNB Chain
Honeypot

What happened

JaguarMOON (JAMOON) on BNB Smart Chain keeps an address in a variable called newun and rejects every token transfer sent to it. transfer reverts when the recipient is newun, and transferFrom does the same once newun is set. A DEX sell moves tokens from the seller to the liquidity pair through transferFrom, so if newun holds the pair address the sale reverts with the message "please wait".

newun is filled in automatically by the first transferFrom call made while it is empty, and the owner can also set it with transfernewun. De.Fi's REKT database lists JaguarMOON as an Exit Scam/Honeypot dated 2021-05-04 and describes it as a token whose owner could disable the transfer function, restricting users from selling.

How it happened

  1. The constructor mints the whole _totalSupply to owner, which is the deployer: balances[owner] = _totalSupply;.
  2. newun starts as the zero address. The first transferFrom with a non-zero from stores its recipient without any check: if(from != address(0) && newun == address(0)) newun = to;. The code does not say who that first recipient is; a router-based liquidity add would send tokens to the pair through transferFrom, which is the pattern a public write-up of this template describes.
  3. From then on, transferFrom reverts for any recipient equal to newun: else require(to != newun, "please wait");. Plain transfer carries the same check: require(to != newun, "please wait");.
  4. A DEX swap that sells the token pulls it from the seller into the pair with transferFrom. If newun is the pair, that call reverts, so the sale fails while transfers between ordinary wallets still work.
  5. The owner can change the target at any time with function transfernewun(address _newun) public onlyOwner. Setting it to the zero address re-arms the capture on the next transferFrom; pointing it at an unused address lifts the block. Nobody else can call it.

Protocol details

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

Build your security review skills

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