komainu.finance Honeypot

Reported loss Not disclosed
Ethereum
Honeypot

What happened

Koinu (koinuinu.finance) was an Ethereum token whose transferFrom function records the first recipient it ever sees in a variable called newun, then rejects every later transfer to that address with the error "please wait". Because the first transferFrom is normally the router pulling tokens into the Uniswap pool when liquidity is added, the pool itself becomes the blocked address: tokens can flow out of the pool to buyers, but no holder can send tokens back into it to sell. The owner can also repoint newun to any address at any time through transfernewun.

The source comment advertises 3% redistribution and 3% auto-liquidity fees, but that fee code is commented out and never runs. De.Fi's REKT database lists Koinu as an exit scam / honeypot dated 2021-06-07.

How it happened

  1. The owner receives the whole supply at deployment (balances[owner] = _totalSupply;), and newun starts empty.
  2. The first call to transferFrom finds newun == address(0) and stores the recipient: if(from != address(0) && newun == address(0)) newun = to;. When liquidity is added through a router, that recipient is the Uniswap pair.
  3. From then on, both transfer and transferFrom run require(to != newun, "please wait");, so any swap that moves Koinu into the pair reverts. Buying still works because the pair sends tokens out to the buyer, not to itself.
  4. The owner can change the blocked address at any time with transfernewun(address _newun) public onlyOwner, so the block can be lifted or moved at the owner's discretion; there is no renounce function, only a two-step transferOwnership / acceptOwnership.
  5. The code places no restriction on tokens leaving the pair, so whoever holds the pool's LP tokens can remove liquidity while holders cannot sell. Whether that happened for Koinu is not established by the sources reviewed.

Protocol details

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

Build your security review skills

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