Yzer Token Rug Pull

Reported loss $29K
Rugpull

What happened

Yzer Token (YZER) is a reflection-style ERC20 whose whole supply was minted to the deployer, who is also the owner. The token takes no fees (the fee variables are never set) and has no mint, but the owner can flag any address with antiWhale, after which that address cannot send tokens. On 2023-09-21 the deployer removed liquidity from the YZER/WETH Uniswap V2 pool with removeLiquidityETHWithPermit: Etherscan shows 183,303 LP tokens sent from the deployer 0x050c731a…c379BD to the pool, and 52.3869 WETH plus about 643.11M YZER returned to the deployer, in transaction 0x5fc6a2fc…4994b3.

De.Fi's REKT database lists the incident as an exit scam / rug pull of 28,960 USD (17.38 ETH) and says the funds were moved to another address, 0xdeD9CF64…CFb05C, where they were still held as of 3 October 2023. SlowMist's weekly security report for 17-23 September 2023 lists YZER among that week's rug pulls at about 28,600 USD.

How it happened

What the code allows:

  1. The constructor mints the full supply to the deployer, who is also the owner: _owner = msg.sender; _rOwned[_owner] = _rTotal;. The deployer holds all tokens and can provide the liquidity.
  2. The owner can flag any address with function antiWhale(address _wallet, bool _allow) external onlyOwner(), and _transfer rejects flagged senders: require(!_antiWhale[sender], "Whale not allowed");. Because sender is the holder whose tokens move, a flagged holder cannot transfer or sell; a flagged pair address would block purchases. The code evidence does not show whether any address was ever flagged.
  3. Fees are not a trap here: _TAX, _BURN and _LIQUIDITYPOOL_ are never assigned a value and the contract has no setter for them, so _getTBasics returns zero fees.
  1. On 2023-09-21 the deployer called removeLiquidityETHWithPermit on Uniswap V2 Router 2. Etherscan shows 183,303.0278 UNI-V2 LP tokens sent from the deployer to the pool and burned, and 52.3869 WETH and about 643.11M YZER paid out to the deployer (transaction 0x5fc6a2fc…4994b3).
  2. De.Fi's REKT database lists the proceeds as later moved to 0xdeD9CF64…CFb05C.

Protocol details

Classification Token
Protocol Type Exit Scam/Rugpull
Affected asset / contract YZER

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.