SafeMarket Token Honeypot
What happened
SafeMarket Token (SafeMarket) is a BNB Chain token deployed on 29 March 2021 at 0x04895cad…0472e9. Every transfer runs through calculateFeesBeforeSend, which reverts with "Error: Can not sell this token" whenever the recipient is flagged in the PanCakeSwapReciever mapping, and only the owner can set that flag through setPanCakeSwapReciever. Once the PancakeSwap pair is flagged, any transfer into the pair fails, so holders cannot sell, while purchases, which move tokens out of the pair, still go through.
The flag is not covered by the renounceWhitelist lock, and the seTxFee setter has no effect because the fee calculation always returns zero fee. De.Fi's REKT database lists SafeMarket as an exit scam/honeypot, stating that the contract owner could disable the transfer function and so stop users from selling.
How it happened
- The constructor mints 25,300,000,000 SafeMarket to the deployer, who is also the
Ownableowner. _transferdebits the sender's balance, then callscalculateFeesBeforeSend(sender, recipient, amount)before crediting the recipient.calculateFeesBeforeSendreverts with "Error: Can not sell this token" ifPanCakeSwapReciever[recipient]is true, which undoes the whole transfer.- The owner can call
setPanCakeSwapReciever(pair, true)at any time. UnlikesetFeelessSenderandsetFeelessReciever, this setter does not checkcanWhitelist, so callingrenounceWhitelist()does not remove the power. - With the pair flagged, a router sale (
transferFrom(holder, pair, amount)) and a directtransferto the pair both revert, whoever the caller is. Buys, where the pair transfers tokens to the buyer, are not affected. - The owner keeps this power until
renounceOwnership()is called or ownership is handed over through the two-steptransferOwnershipandrecieveOwnershippath.
Protocol details
Evidence
- report De.Fi REKT database listing for SafeMarket (proof link: Token Sniffer tweet 1386163504470659074) twitter.com
- transaction SafeMarket Token contract creation transaction bscscan.com
- address SafeMarket Token verified contract code on BscScan bscscan.com
- analysis Sourcify exact match for 0x04895cadd6462475af7a8efb319bc2ab460472e9 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.