Dojecoin Honeypot
What happened
Dojecoin (DOJE) is a BNB Chain token deployed on 30 April 2021 at 0x4658220e…bf9d45. Its transferFrom stores the recipient of the first delegated transfer in a variable called newun, and both transfer and transferFrom then revert with "please wait" for any transfer to that address. When liquidity is added through the PancakeSwap router, that first transferFrom sends tokens to the new pair, so the pair becomes newun: holders can buy, because the pair sends tokens out, but any sale back into the pair fails.
The owner can point newun at another address with transfernewun, but cannot switch the block off: setting it to the zero address only re-arms the capture, so the recipient of the next delegated transfer becomes the new blocked address. De.Fi's REKT database lists Dojecoin as an exit scam/honeypot, stating that the contract owner could disable the transfer function and so stop users from selling; its proof links describe the same newun block on earlier tokens.
How it happened
- The constructor mints the whole supply of 1,000,000,000,000 DOJE to the deployer, who is also
owner. - On the first
transferFromwith a non-zerofrom,newunis still the zero address, so the contract setsnewun = toand lets the transfer through. A router liquidity add performs this call with the pair asto. - From then on,
transferFromrunsrequire(to != newun, "please wait"), so a router sale (transferFrom(holder, pair, amount)) reverts. transferhas the same check, so sending tokens straight to the pair also fails. Buys are unaffected because the pair transfers tokens to the buyer.- Only the owner can change the blocked address through
transfernewun(address). The contract has no renounce function; ownership can only move throughtransferOwnershipandacceptOwnership. clearCNDAO()lets the owner withdraw any BNB held by the token contract.
Protocol details
Evidence
- report @Token_Sniffer incident report twitter.com
- report De.Fi REKT database listing for DOJE (proof links: Token Sniffer tweet 1381346761566916614 and S4) twitter.com
- transaction Dojecoin contract creation transaction bscscan.com
- address Dojecoin verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x4658220e8f802af416ad723d09361c99a9bf9d45 on BNB Chain repo.sourcify.dev
- analysis BSC-SCAM: Stealthy Liquidity Pool Block on PancakeSwap (cryptot3ddybear, 2021-04-11) cryptot3ddybear.gitlab.io
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.