GMT Rug Pull

Reported loss $12K
Rugpull

What happened

GMT is a BNB Chain token (not STEPN's GMT) deployed on 12 July 2022 at 0x59375348…8259c9. Its constructor gives the entire 1.3 billion supply to a hard-coded address, 0x732fa169…d3624a, which pays no transfer fees, and all trading through the PancakeSwap pair stays closed until the owner turns on a switch (takeSwapOff) unless an address is on an owner-controlled priority list. The deployer 0xe581611d…43dbb5 and the supply holder can also pull any token held by the GMT contract through setErc20With, a power that survives the later renouncement of ownership.

De.Fi's REKT database lists GMT as a rug pull: address 0x21075b8d…264eac, which the code names develop3Address, created the pool with 500,000 GMT and 209 BNB, and the supply holder later sold its tokens into it for a profit of about $11,800.

How it happened

  1. The constructor credits the whole supply to one hard-coded address: _balances[acceptAddr] = _totalSupply; with _totalSupply = 1300000000 * 10**18.
  2. The same constructor exempts that address and the deployer from fees and grants both the turnOffOwner flag: _isExcludedFromFee[acceptAddr] = true; and turnOffOwner[acceptAddr] = true;.
  3. Any transfer to or from a pair reverts until the owner opens trading, unless one side is on the priority list: require(isSwap, "not swap");, set by function takeSwapOff (bool _bool) external onlyOwner { isSwap = _bool; } and bypassed via setPrioritySwap.
  4. Addresses with the turnOffOwner flag can move any token the GMT contract holds: require(turnOffOwner[msg.sender], "no permission"); IERC20(con).transfer(addr, amount);. This check does not use onlyOwner, so it still works after ownership is renounced.
  5. According to De.Fi's listing, 0x21075b8d…264eac added 500,000 GMT and 209 BNB as liquidity in transaction 0xac3b8a94…cbe408, and 0x732fa169…d3624a sold its fee-free supply into the pool in transaction 0xe5fca6c2…a703f9, taking about $11,800.

Protocol details

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

Build your security review skills

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