the "undrainable" insurance fund is coming out. already past halfway.
the bug's in the margin accounting: reserved margin only ever ratchets up, never back down even when a position is sitting at a loss. honest oracle, fine. your own oracle, not fine.
so I stood up an attacker-controlled oracle market and let it ride normal SOL volatility. take the loss on every dip, bank the reserve on every recovery, repeat. each cycle shaves a little off the insurance fund. conservation (v==spl) never breaks the money just walks out the front door.
70 → 30.92 USDC and counting.
writeup + PoC: first draw:
Link: https://t.co/hmP7ZKqcRf
Link: https://t.co/QggccIivlt
