You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: LP fee tracking + remove dead liquidation_buffer_bps
1. fees_earned_total now tracks only capital actually paid to insurance
(realized revenue), not including collectible fee debt that may
later be forgiven on close/reclaim. charge_fee_to_insurance returns
(cash_paid, total_equity_impact) tuple. LP tracking uses cash_paid;
margin enforcement uses total_equity_impact.
2. Removed liquidation_buffer_bps from RiskParams — dead parameter
never read by the engine. Not in the spec.
Not changed (with rationale):
- #1-4 (non-atomic mutations): Solana SVM atomicity. The engine uses
validate-then-mutate in critical paths (accrue_market_to,
settle_side_effects, force_close_resolved) but the full-instruction
atomicity relies on runtime rollback.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments