Ren Swap Honeypot

Reported loss $7K
Ethereum
Honeypot

What happened

Ren Swap (RSWAP) was an ERC-20 token on Ethereum traded on Uniswap V2. Its hidden _ints check, run on every transfer, is inactive at deployment. Once the owner points _address1 at another address with ints, it rejects any transfer whose sender is not the owner, _address1, the Uniswap router or an owner-listed wallet.

With _address1 set to the pool, buys still go through while holders' sells revert with a fake ERC20: transfer from the zero address error. The deployer added 38 ETH and 250,000 RSWAP of liquidity on 2020-12-08 and removed it about 15 hours later, withdrawing 49.37 WETH and 192,522.7 RSWAP. De.Fi's REKT database lists the token as an exit scam/honeypot with $7,248 lost.

How it happened

  1. The constructor sets _address0 and _address1 to the same owner address and mints the full 500,000 RSWAP supply to it; while they are equal, _ints allows every transfer.
  2. _address0 can call ints(addressn) at any time to set _address1 to a different address, which switches the restriction on.
  3. From then on, a transfer that neither comes from nor goes to _address0 must have sender equal to _address1, the hard-coded Uniswap V2 router or a wallet in _Addressint, or it reverts.
  4. In a Uniswap sale the checked sender is the holder, not the router, so ordinary holders cannot sell. If _address1 is the pool, buys (sent from the pool) still work.
  5. multiaddress lets _address0 distribute tokens, add chosen recipients to _Addressint and set their router allowance to the maximum, so selected wallets can keep selling.
  6. The deployer added 38 ETH and 250,000 RSWAP to Uniswap in transaction 0x00ba4c81…e1bfe6, then removed the liquidity in transaction 0x1b076b17…96d8df. It received 49.37 WETH, about 11.4 ETH more than it deposited.

Protocol details

Classification Token
Protocol Type Exit Scam/Honeypot
Affected asset / contract RSWAP

Build your security review skills

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