YFFC Rug Pull

Reported loss $72K
Ethereum
Rugpull

What happened

YFFC (yffc.finance) was a YFI-style token whose supply was not fixed: any address on a minter list can call mint, and the deployer controls that list through a governance address. De.Fi's REKT database lists the project as an exit scam / rug pull with a loss of about 72,446 USD, and the investors collectively lost approx. $72k. The live text lists the sequence as follows.

The deployer added initial liquidity (tx 0x02cf382c…355d94). About two months later, once the token traded at a price the deployer accepted, the deployer called mint to create new tokens for an external wallet (tx 0x39cecb2f…d99064). The external wallet sold the new tokens almost immediately (tx 0xc3d42e64…c88c5f).

Addresses: deployer 0xe28db60e…c99ec4 and a second address 0xa360d8e3…330a9a. The Etherscan page for the mint transaction shows the deployer calling mint on the YFFC contract on 2020-11-06 at 06:13 UTC for 2,500,000 YFFC to 0xA360D8E3…330A9A.

How it happened

  1. The constructor sets governance = tx.origin;, so the deploying account is the governance address. setGovernance lets it hand that role to another address.
  2. addMinter(address _minter) is callable only by governance and sets minters[_minter] = true. Governance can add any address, including itself, as a minter.
  3. mint(address account, uint256 amount) requires only minters[msg.sender] and then runs _mint(account, amount). There is no cap and no limit per call, so a minter can create any amount of YFFC for any address.
  4. _transfer is the plain ERC20 version with no sell block, tax or blacklist, so the minted tokens move into a Uniswap pool like any other transfer. Selling them there takes the ETH that buyers paid in.
  5. What happened: Etherscan shows the deployer calling mint on 2020-11-06 for 2,500,000 YFFC to 0xA360D8E3…330A9A. De.Fi's listing says that wallet sold the tokens almost immediately (tx 0xc3d42e64…c88c5f) and records a loss of 72,446 USD.

Protocol details

Classification Yield Aggregator
Protocol Type Exit Scam/Rugpull
Affected asset / contract YFFC
Protocol links Website

Build your security review skills

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