HellGate Honeypot
What happened
HellGate (HG) is a BEP-20 token on BNB Chain whose transfer function contains a hidden sell block. The owner can mark any address as a PanCakeSwapReciever, and every transfer sent to a marked address reverts with "Error: Can not sell this token". Marking the PancakeSwap pair lets buyers receive tokens from the pool while every sale into it fails.
The fee settings in the contract are decorative: txFee is never used and no fee is charged. De.Fi's REKT database lists HG as an exit scam/honeypot, with no loss figure.
How it happened
- The constructor mints 1,000,000,000
HGto the deployer, who is also theowner. - The owner can call
setPanCakeSwapReciever(address, true), which isonlyOwnerand, unlike the feeless whitelist setters, is not limited bycanWhitelist. - Every transfer runs
calculateFeesBeforeSend, which reverts when the recipient is flagged:if(PanCakeSwapReciever[recipient]){ revert("Error: Can not sell this token"); }. - If the flagged address is the PancakeSwap pair, a sale (tokens moving into the pair) reverts, while a buy (the pair sending tokens to a buyer) is not checked and goes through.
- The owner can flag or unflag any address at any time.
renounceOwnership()exists, but the on-chainowneris still the deployer.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.