Anchor Protocol Honeypot
What happened
This record covers a BNB Chain token named "Anchor Protocol" (ANCHOR), deployed on 6 May 2021 at 0x5669f8af…0a473b. It shares a name with Terra's Anchor Protocol, whose governance token is ANC, but it is a separate token with no code link to that project. Its _transfer function has an owner switch, _feeEnabled: when it is on, any transfer into the PancakeSwap pair from an address other than the router, the owner or the contract debits the sender's full amount but credits the pair with only the remainder of amount divided by 100 base units, and burns the rest.
A holder's sale therefore either reverts in the pair's swap check or hands over the tokens for almost nothing, while buys and the owner's own transfers are unaffected. De.Fi's REKT database lists this ANCHOR token as an exit scam/honeypot, stating that the contract owner could disable transfers and so stop holders from selling.
How it happened
- The constructor stores the deployer as the private
_owner, credits it the full 100,000,000 ANCHOR supply and creates the PancakeSwap pair. _feeEnabledstarts asfalse, so trading, including sales, works normally at first.- Only
_ownercan callsetFeeEnabled(true). There is no function to transfer or renounce_owner. - With the flag on, a sale reaches
_transfer(holder, pair, amount). The holder's balance is reduced by the fullamount, butfee = mul(div(amount, 100), 100)isamountrounded down to a multiple of 100 base units, so the pair receives at most 99 base units (under 0.0000001 ANCHOR at 9 decimals) and the fee is removed from_totalSupply. - Because the pair receives almost nothing, a standard router sale fails the pair's reserve check and reverts, and a fee-on-transfer sale returns close to zero BNB. Transfers from the owner, the router or the contract, and transfers to any address other than the pair, are not taxed, so buys still work.
Protocol details
Evidence
- report De.Fi REKT database listing for ANCHOR (proof link: Token Sniffer tweet) twitter.com
- transaction ANCHOR contract creation transaction bscscan.com
- address Anchor Protocol (ANCHOR) verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x5669f8affc22f2111765c56b91fa455b980a473b on BNB Chain repo.sourcify.dev
- analysis Anchor Token (ANC) - Anchor Protocol docs docs.anchorprotocol.com
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.