harb/onchain/script/backtesting/attacks/il-crystallization-optimal.jsonl
openhands af8bd07c7d feat: add red-team discovered IL crystallization attack (31.9 ETH optimal)
Single-cycle attack extracts 21.3 ETH (2.13%) from 1000 ETH LM:
  buy 31.9 ETH → recenter → sell all KRK

Key finding: thin pre-recenter positions allow massive price impact,
recenter rebuilds deep positions at manipulated price, sell through
deep positions recovers most ETH. IL crystallized during recenter.

This is the optimal single-buy amount — 31.95+ hits max tick,
<31 ETH extracts proportionally less.
2026-03-14 13:31:23 +00:00

3 lines
106 B
JSON

{"op":"buy","amount":"31900000000000000000"}
{"op":"recenter"}
{"op":"sell","amount":"all","token":"KRK"}