Formation.Fi Hack

Reported loss $100K
Other

What happened

The attacker:

Address 0x8964…3ae1

The transaction behind the attack:

Tx 0x5c9a…b6ab

The attack contract:

Address 0xb5ae…711e

Affected contracts:

Address 0xe2ee…0012

Address 0x6293…334b

The farming contract has been using the balance of the pool for price discovery of the FORM token and LP token in order to calculate the USD (stable coin) value of the position and pay rewards accordingly.

The Flash Swap mechanism allows to alter the price of the FORM token — the exploit contract used that in order to excessively increase the value of the reward calculated at the withdrawal transaction.

The attacker:

  • Staked LP tokens.
  • Pulled available funds from the pool, unstaked LP token, and sent back funds to the pool.

Further exploitation was prevented by devs by setting the multiplier to 0, which makes the contract send no FORMs for any new staked LP tokens:

Tx 0x9aad…efc8

Protocol details

Classification Yield Aggregator
Protocol Type Exploit/Other
Affected asset / contract FORM
Protocol links Website @formationfi

Build your security review skills

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