KreamPie Honeypot
What happened
KreamPie (KPIE) is a BEP-20 token on BNB Chain that blocks every sale into its liquidity pool. The first transferFrom the contract sees, normally the router pulling the deployer's tokens into the new PancakeSwap pair when liquidity is added, stores that recipient in a variable named newun. From then on, both transfer and transferFrom revert with please wait whenever the recipient is newun, so holders can buy from the pool but cannot sell back into it.
The owner can repoint newun at any time with transfernewun. The same newun trap was documented in April 2021 in a family of BNB Chain tokens such as SafeRocket; De.Fi's REKT database lists KreamPie as an exit scam/honeypot, with no loss figure.
How it happened
- The constructor mints the full 10,000,000,000
KPIE(3 decimals) to the owner;newunstarts asaddress(0). - When liquidity is added through the PancakeSwap router, the router calls
transferFrom(owner, pair, amount). Becausenewun == address(0), the lineif(from != address(0) && newun == address(0)) newun = to;records the pair asnewun. - Buys still work: the pair sends
KPIEto the buyer, and the buyer is notnewun. - A sell sends
KPIEto the pair, throughtransferor the router'stransferFrom. Both functions checkrequire(to != newun, "please wait"), so every sell reverts with a message that suggests a temporary delay. transfernewun(address _newun)isonlyOwner, so the owner can move the block to another address, which would reopen sells, or set it back to zero so the nexttransferFromrecipient is blocked instead.- Removing liquidity sends
KPIEout of the pair rather than into it, so the block does not stop whoever holds the LP tokens from withdrawing the pool's BNB. clearCNDAO()lets the owner withdraw any BNB held by the token contract itself.
Protocol details
Evidence
- report @Token_Sniffer incident report twitter.com
- address KreamPie (KPIE) verified contract source, BscScan bscscan.com
- analysis Scam explained: BSC stealthy LP block, CryptoT3ddyBear cryptot3ddybear.gitlab.io
- analysis Sourcify match, chain 56, 0xe4b89ebe6ff05f42dce314ebaf5be74d60a36728 repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.