STARTFI Honeypot
What happened
STARTFI (STFI) is a BNB Smart Chain token, contract 0x1677b8a8…ec2dfd, whose transferFrom records the recipient of the first call in a variable called newun. After that, both transfer and transferFrom revert with "please wait" for any transfer to that address. If newun ends up as the liquidity pair, buying still works (the pair sends tokens out) but selling fails, because a sell moves tokens into the pair.
The owner can re-point newun at any time with transfernewun. De.Fi's REKT database lists STARTFI as an exit scam/honeypot in which the contract owner could disable the transfer function, restricting users from selling their tokens. The sources opened here do not show which address newun held on-chain or any specific holder's failed sell.
How it happened
- The constructor gives the whole supply to the deployer:
balances[owner] = _totalSupply;. newunstarts as the zero address. The firsttransferFromwith a non-zerofromrunsif(from != address(0) && newun == address(0)) newun = to;, which stores that call's recipient and skips the check. A published write-up of this pattern on BSC says the first liquidity deposit makesnewunthe pool address; the code alone does not show which addressnewunheld for STFI.- A buy works because the pair pays out through
transfer, andtransferonly checksrequire(to != newun, "please wait");against the buyer's address. - A sell moves tokens to the pair, either through
transferFrom(else require(to != newun, "please wait");) or a directtransfer. If the pair isnewun, the call reverts, so the holder's balance is not debited and the swap fails. transfernewun(address _newun)isonlyOwnerand has no condition. Settingnewunto an unused address lifts the block; setting it back to the zero address lets the nexttransferFromcapture a new recipient. The check looks only at the recipient, so it applies to every sender, including the owner.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.