SteadyGainz Honeypot
What happened
SteadyGainz (SgainZ) is a BNB Chain token deployed on 2 March 2021 at 0x2d2a9604…c459c6, which minted 1,000,000,000 tokens to the deployer 0xa55e7C1e…18A6Ae. Every transfer runs calculateFeesBeforeSend, which reverts with "Error: Can not sell this token" when the recipient is flagged in PanCakeSwapReciever. The owner can flag any address, including the PancakeSwap pair, with setPanCakeSwapReciever, and that setter is not limited by the renounceWhitelist switch.
Once the pair is flagged, buys still work but every sale into the pair reverts. The deployer is still the owner, and De.Fi's REKT database lists SteadyGainz as an exit scam/honeypot.
How it happened
- The constructor calls
_transferTO(msg.sender, 1000000000e9), minting 1,000,000,000 SgainZ (9 decimals) to the deployer and making itowner. _transferdebits the sender, then callscalculateFeesBeforeSend(sender, recipient, amount). That function runsif(PanCakeSwapReciever[recipient]){ revert("Error: Can not sell this token"); }, which undoes the whole transfer.setPanCakeSwapReciever(address _recipient, bool _feeless)isonlyOwnerand sets that flag for any address. UnlikesetFeelessSenderandsetFeelessReciever, it has nocanWhitelistcheck, sorenounceWhitelist()does not disable it.- If the owner flags the PancakeSwap pair after liquidity is added, any transfer into the pair reverts. Buys, where the pair sends tokens out, still succeed, so holders can buy but not sell.
- Removing liquidity is not blocked, since the pair sends tokens out.
renounceOwnership()exists, but on-chainowner()still returns the deployer.
Protocol details
Evidence
- report Token Sniffer post 1386163504470659074 (seed link) twitter.com
- transaction SteadyGainz contract creation transaction bscscan.com
- address SteadyGainz (SgainZ) verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x2d2a9604f15e2190dd6536e88b0149e6e9c459c6 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.