STILTON MUSK Rug Pull

Reported loss $232K
Rugpull

What happened

STILTON MUSK (STILTON) was an ERC-20 token on Ethereum traded in a Uniswap V2 pool against WETH. Its owner-only createLiquidity function puts the entire token supply into the pool and sends the resulting LP tokens to the caller, so the deployer held the pool's liquidity with no lock in the code. The deployer is also exempt from the 10% transfer fee and from the owner-controlled tradingEnable switch.

Etherscan shows the deployer selling about 4.19 trillion STILTON for 162.35 WETH on 2022-06-15 and removing the remaining liquidity for 17.46 ETH on 2023-03-08. De.Fi's REKT database values the combined 179.8 WETH at about 231,904 USD.

How it happened

  1. createLiquidity() is onlyOwner. It sets _balances[address(this)] = initialLiquidity; (the whole _totalSupply) and calls _uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this), initialLiquidity, 0, 0, msg.sender, block.timestamp);, so every LP token goes to the owner's wallet.
  2. The constructor sets _isExcludedFromFee[msg.sender] = true;. Excluded senders skip both the fee and the require(tradingEnable, "trading disabled") check in _transfer, so the deployer can sell into the pool at any time, even if trading is switched off for everyone else.
  3. The owner can flip trading with setEnableTrading(bool value). While it is false, every buy and sell by a non-excluded holder reverts, but wallet-to-wallet transfers still work. The owner can also add or remove fee exemptions with setExcludeFromFee.
  4. On 2022-06-15 the deployer sold 4,187.63 billion STILTON through the Uniswap V3 router's multicall for 162.35 WETH, paid out as ETH (tx 0x64a2a79f…85d21e).
  5. On 2023-03-08 the deployer called removeLiquidityETHWithPermitSupportingFeeOnTransferTokens on the Uniswap V2 router, burning its LP tokens and receiving 17.46 ETH plus about 4.54 trillion STILTON from the pool (tx 0x315cdf0a…ee50d4).

Protocol details

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

Build your security review skills

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