Artillery Honeypot
What happened
Artillery (ART) is a BEP-20 token on BNB Chain whose transfer code blocks every transfer into one hidden address, except transfers sent by the owner. The address is stored in a private variable nxOwner and filled automatically by the first transferFrom call, which for a new token is normally the router moving tokens into the PancakeSwap pair when liquidity is added. Once that address is the pair, buys still work but any sell to the pair reverts with "Order TransferFromMiddleware".
renounceOwnership clears only _owner; the deployer stays authorised through a second variable, _leaveowner, and a function misleadingly named transferOwnership re-points the blocked address. De.Fi's REKT database lists Artillery as a honeypot, and its listing cites a 5 May 2021 Token Sniffer post saying the contracts it flagged block transfers to the LP address.
How it happened
- The deployer holds the full supply of 100,000,000 ART and is recorded as both
_ownerand_leaveowner;nxOwnerstarts as the zero address. - Every transfer runs the
PancakeSwabV2Interfacemodifier. On the firsttransferFromfrom a non-zero sender it setsnxOwner = to, so if that call is the liquidity add, the pair becomes the blocked address. - After that, every transfer whose recipient is
nxOwnermust come from_owneror it reverts. Buyers receive ART from the pair normally, but a sell, which sends ART to the pair, fails. - Calling
renounceOwnershipsets_ownerto zero. That makes the owner check impossible to pass, so no one can sell to the pair, while_leaveownercan still passonlyOwner. - Through
transferOwnership, which only writesnxOwner, the_leaveowneraccount can move the block to any other address.previousOwner(), the getter for the blocked address, is itself restricted to the owner, so holders cannot easily see which address is blocked.
Protocol details
Evidence
- report Token Sniffer reply on X, 2021-05-05 (De.Fi proof link) twitter.com
- transaction Artillery contract creation transaction bscscan.com
- address Artillery (ART) verified source code on BscScan bscscan.com
- analysis Sourcify match for 0xf1134696fc312e2880f25064768d19000bdb346a 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.