Rotex Rug Pull

Reported loss $5K
Ethereum
Rugpull

What happened

Rotex (RTX) was an ERC-20 token on Ethereum (0x079de196…c753d9) whose comments promise a fixed 25,000 RTX supply to the creator and 3,000 more over three years for staking. In fact the contract hides an unlimited mint in a public function named renounceRole, a name that sounds like giving up permissions. The role check behind it is renamed supportsInterface, and the functions that could add, remove or transfer the minter role are all internal, so the deployer's minting power can never be given up.

On 21 November 2020 the deployer called renounceRole and minted 1,000,000,000 RTX to kingstar.eth (0xB303Cf5A…69A065). Under three minutes later that wallet sold 10,000 RTX on Uniswap V2 for 4.35 ETH, the first of five sales De.Fi lists. The current total supply is 2,000,025,000 RTX.

De.Fi's REKT database lists the case as an exit scam with $4,804 lost.

How it happened

  1. The constructor makes the deployer the only minter: constructor () internal { _addMinter(msg.sender); }.
  2. The public function renounceRole(address account, uint256 amount) public onlyMinter does not renounce anything. It calls _mint(account, amount), which adds any amount to the total supply and to the chosen balance.
  3. The minter check is disguised as supportsInterface(msg.sender), and addMinter, renounceMinter and transferMinterRole are declared internal, so no external call can remove the deployer's minting power.
  4. On 21 November 2020 at 15:34:01 UTC the deployer called renounceRole and minted 1,000,000,000 RTX to 0xB303Cf5A…69A065 (kingstar.eth), against a stated supply of 25,000.
  5. At 15:36:46 UTC that wallet swapped 10,000 RTX for 4.35 ETH through the Uniswap V2 router (transaction 0xf8b2ebe3…7e0da6). De.Fi lists four further sales, which drew ETH out of the pool that other holders sold into.

Protocol details

Classification Token
Protocol Type Exit Scam/Rugpull
Affected asset / contract RTX
Protocol links Website

Build your security review skills

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