SPACE GEM Honeypot

Reported loss Not disclosed
BNB Chain
Honeypot

What happened

SPACE GEM (SGEM) is a BEP-20 token whose transfer and transferFrom both revert when the recipient equals an owner-settable address called newun. The first transferFrom call made while newun is unset records that call's recipient as newun, and the owner can later repoint it with transfernewun. If the recipient recorded this way is a liquidity pair, every holder sale to it fails with "please wait" and the holder keeps the balance but cannot sell it.

De.Fi's REKT database lists SGEM as an Exit Scam/Honeypot and says the contract owner could disable the transfer function, which restricted users from selling their tokens.

How it happened

  1. The constructor hard-codes the owner and credits the whole supply to that address: owner = 0xeA8c6c6E2070c8Ea2Bf3Cb72875a8d03eE7410dB; and balances[owner] = _totalSupply; (10,000,000,000 SGEM at 18 decimals). The deployer address in the deploy transaction is a different address, 0x6e0d7933…79a49e.
  2. transferFrom records the first recipient it sees: if(from != address(0) && newun == address(0)) newun = to;. When the first such call is a router moving tokens into a liquidity pair, that pair becomes newun; the code does not show which call came first on chain.
  3. After newun is set, transferFrom takes the other branch: else require(to != newun, "please wait");, and transfer has require(to != newun, "please wait");. A router sale calls transferFrom with the pair as to, so it reverts whenever the pair equals newun. There is no exemption for the owner either.
  4. The owner can change the target at any time: function transfernewun(address _newun) public onlyOwner { newun = _newun; }. Pointing it at an unused address lifts the block; setting it to the zero address re-arms the capture, so the next transferFrom recipient becomes newun.
  5. The owner can also pull any BNB held by the token contract: function clearCNDAO() public onlyOwner() { ... _owner.transfer(address(this).balance); }.

Protocol details

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

Build your security review skills

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