REFERRALPROJECT.NETWORK Honeypot
What happened
REFERRALPROJECT.NETWORK (REFER) is a BNB Chain token deployed on 26 March 2021 at 0xf74e12b9…05a587. Its contract keeps a hidden target address, newun: the first transferFrom made while newun is empty stores that call's recipient, and from then on every transfer or transferFrom to newun reverts with "please wait". When the first transferFrom is the router moving the owner's tokens into a new PancakeSwap pair, the pair becomes newun, so every sale into the pool fails while purchases paid out of the pool still work.
Only the owner can point newun somewhere else, through transfernewun. De.Fi's REKT database lists REFER as an exit scam/honeypot, stating that the contract owner could disable the transfer function and so stop users from selling their tokens.
How it happened
- The constructor mints the full 295,000 REFER supply to the deployer, who becomes
owner, and leavesnewunas the zero address. transferFromrunsif(from != address(0) && newun == address(0)) newun = to;, so the recipient of the firsttransferFrombecomesnewun. When the owner adds liquidity through the PancakeSwap router, the router'stransferFrominto the pair is that first call.- Every later
transferFromrunsrequire(to != newun, "please wait"), andtransferruns the same check. A router sale moves the holder's tokens to the pair, so it reverts. - Purchases move tokens from the pair to the buyer, whose address is not
newun, so buying keeps working. - The owner-only
transfernewun(address)can resetnewunto any address, which is the only way to reopen sales. - The contract also has an owner-configured presale,
tokenSaleREFER, that accepts BNB, and the owner-onlyclearDOG()sends the contract's whole BNB balance to the owner.
Protocol details
Evidence
- report De.Fi REKT database listing for REFER (proof link: Token Sniffer tweet 1381346761566916614) twitter.com
- transaction REFERRALPROJECT.NETWORK contract creation transaction bscscan.com
- address REFERRALPROJECT.NETWORK verified contract code on BscScan bscscan.com
- analysis Scam explained: BSC stealthy LP block (CryptoT3ddyBear, 2021-04-11) cryptot3ddybear.gitlab.io
- analysis Sourcify match for 0xf74e12b9e2b9b1fd316f24e1c5b79be8f105a587 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.