Slime.Finance Honeypot
What happened
De.Fi's REKT database lists Slime.Finance (SLME) on BNB Smart Chain as an exit scam/honeypot, noting that the contract owner could disable the transfer function and so restrict users from selling. The verified code shows how: the owner can flag any address with setPanCakeSwapReciever, and a flagged address cannot be the recipient of any token transfer. Flagging a liquidity pair address would make every sell into that pair revert, while buys out of the pair would still work.
The code does not show whether the owner flagged any address; that would need a transaction.
How it happened
SlimeFinancemints its whole supply of 68,466 SLME to the deployer in the constructor with_transferTO(msg.sender, 68466e18);, and the deployer is the initialowner.- The owner can call
setPanCakeSwapReciever(address _recipient, bool _feeless), which ispublic onlyOwnerand simply writesPanCakeSwapReciever[_recipient] = _feeless;. It is not limited bycanWhitelist, sorenounceWhitelist()does not switch it off. - Every transfer path,
transferandtransferFrom, goes through_transfer, which callscalculateFeesBeforeSend(sender, recipient, amount). That function containsif(PanCakeSwapReciever[recipient]){ revert("Error: Can not sell this token"); }. - A holder's sell through a DEX router moves tokens from the holder to the pair, so the pair is the
recipient. If the owner has flagged the pair address, the call reverts and the earlier balance debit in_transferis rolled back, so the holder keeps the tokens but cannot sell them. - The same check also blocks any wallet-to-wallet transfer to a flagged address. Transfers to unflagged addresses, including a buy from the pair, are unaffected, and the deployer can hold the unflagged side of the market.
- The code includes
renounceOwnership(), so the owner could give up this power, but nothing in the source shows that it was exercised or that the pair was flagged. De.Fi's REKT database describes the outcome as the owner being able to disable transfers and stop users selling.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.