Closed vega-paul closed 1 year ago
the problem is that we allow commitmentMinTimeFraction to be 1 and that leads to division by zero in the formula for calculating the penalty:
Let $t$ be fraction_of_time_on_book
Let $s$ be market.liquidity.commitmentMinTimeFraction
.
Let $c$ be market.liquidity.slaCompetitionFactor
.
$$ p_i = (1 - \frac{t - s}{1 - s}) \cdot c. $$
spec issue - needs clarifying before we can fix
Fixed by #8996
Vega branch origin/feature/integrate-sla-rebased-2 ST branch sla-future-market-proposal
Proposal
LP - did not submit any LP orders
Created traders/pubkeys/deposits
Panic