SHINKY Honeypot
What happened
SHINKY (SHINKY) is a BNB Chain token at 0xd3d24d1f…f3d1d9, deployed on 2021-05-14 with 70,000,000 tokens at 8 decimals. While the flag ownerLock is true, which it is from deployment, transfer reverts when the recipient equals the stored address prevOwner, and transferFrom stores its first recipient in prevOwner and then reverts for that address. A holder cannot send tokens to the stored address, and the owner can change it or turn the lock off.
De.Fi's REKT database lists the token as an Exit Scam/Honeypot dated 2021-05-14 and says the owner could disable the transfer function, which restricted users in selling their tokens.
How it happened
Initalization()sets_totalSupply = 7 * 10**7 * 10**8;, credits it to the deployer and setsownerLock=true;.transferis wrapped intransferMiddleware(recipient,ownerLock), which runsrequire(to != prevOwner, "Handling Request");while the lock is on.transferFromis wrapped intransferFromMiddleware, which runsif(from != address(0) && prevOwner == address(0)) prevOwner = to; else require(to != prevOwner, "Order TransferFromMiddleware");. The recipient of the firsttransferFrombecomesprevOwnerand every latertransferFrominto that address reverts. The code does not show which address that is.- A reverted transfer never reaches
_transfer, so the holder's_balancesentry is not debited and the tokens stay but cannot be sent toprevOwner. - The owner can call
setOwnerLock(false)to switch both checks off.transferOwnership(address newOwner)only runsprevOwner = newOwner;and does not change_owner, so the owner can also overwriteprevOwner: setting it toaddress(0)lets the nexttransferFromcapture a new recipient, and pointing it at an unused address lifts the block. - What happened: De.Fi's REKT database lists SHINKY as an Exit Scam/Honeypot. No opened transaction in this review shows the owner changing
ownerLockorprevOwner, or removing liquidity.
Protocol details
Evidence
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.