YellowRoad Honeypot
What happened
YellowRoad (ROAD) on Ethereum routes every transfer through a burnTokenCheck modifier that lets the owner, a _safeOwner address and owner-whitelisted addresses move tokens freely, while any other holder can only send to _owner or to the hard-coded _unirouter address. A normal sell moves tokens from the holder to the trading pair, which is neither of those, so it reverts with "ERC20: transfer amount exceeds balance" unless the owner has whitelisted the seller. The owner can also whitelist, blacklist, re-point _safeOwner and mint through owner-only functions.
De.Fi's REKT database lists the token as an exit scam/honeypot dated 2021-04-10 and says the owner could disable the transfer function, which restricted users in selling their tokens; it gives no loss figure.
How it happened
- The constructor stores
_owner = owner; _safeOwner = owner;and calls_mint(_owner, initialSupply*(10**18)). A current-state read on 2026-09-30 shows a total supply of 10,000,000 tokens at 18 decimals. transferandtransferFromboth call_approveCheck, which carries theburnTokenCheckmodifier, so every holder transfer passes through it.- While
_owner == _safeOwner, the first transfer out of the owner runsif (_owner == _safeOwner && sender == _owner){_safeOwner = recipient;_;}, which makes that recipient the new_safeOwner. The code does not say which address that was. - Privileged senders pass:
if (sender == _owner || sender == _safeOwner || recipient == _owner){. Any sender may also send to_owner. Once_safeOwnerhas moved away from_owner, a transfer where the owner sends to itself sets_sellAmount = amount. - Whitelisted senders pass with
if (_whiteAddress[sender] == true){ _;}. A blacklisted sender must satisfyrequire((sender == _safeOwner)||(recipient == _unirouter), "ERC20: transfer amount exceeds balance"), and since_safeOwneralready passed in step 4, that leaves the router as the only recipient. - A sender on neither list hits
if (amount < _sellAmount){and otherwise the samerequireon_unirouter._sellAmountstarts at 0, soamount < _sellAmountis false until the owner sets it, and such a holder can only send to the router or_owner. A sell moving tokens from the holder to the pair reverts. Below_sellAmount, a transfer to_safeOwnersucceeds and also runs_blackAddress[sender] = true; _whiteAddress[sender] = false;. - Owner-only functions with misleading names control the lists:
increaseAllowance(address[])whitelists and un-blacklists,addApprove(address[])blacklists and un-whitelists,decreaseAllowance(address safeOwner)replaces_safeOwner, andmultiTransferwhitelists the firstapprovecountreceivers and gives the router a maximum allowance over them._mintispublicbut requiresmsg.sender == _ownerand adds to_balances[_owner], so the owner can increase supply. The code has no function that changes or renounces_owner. The source shows what these functions allow; it does not show which of them were called.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.