Skip to content

Commit

Permalink
fix(payout_curve): Ensure that liquidation payouts are sane
Browse files Browse the repository at this point in the history
We were allowing the short liquidation payout to go under the short
party's collateral reserve, which was obviously wrong.

The payout curve is still a bit rough around the edges (literally).
This is because we have to make relatively big payout jumps to connect
the liquidation intervals with the adjacent intervals. I'm not sure
there is a good solution for this other than going back to the
ItchySats payout curve.
  • Loading branch information
luckysori committed Apr 2, 2024
1 parent e502bdd commit cfce164
Showing 1 changed file with 246 additions and 70 deletions.
Loading

0 comments on commit cfce164

Please sign in to comment.