Skip to content

Commit

Permalink
fixup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Dec 16, 2024
1 parent ff13ce3 commit cf01c6e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/hyperdrive-math/src/short/max.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,13 @@ impl State {

/// Calculate the long exposure minus the checkpoint exposure, in shares.
///
/// This is a useful number when working with shorts because they reduce the
/// total exposure. However, in general this is not the same as the total
/// The long exposure will account for any executed trades. Any new short
/// net previous longs by subtracting from the long exposure. This increases
/// solvency until the checkpoint exposure goes negative. Past that point,
/// shorts will impact solvency by decreasing share reserves.
///
/// This function is useful when working with shorts because it converts
/// a piece-wise linear calculation into a linear one by computing the net
/// exposure.
fn long_minus_checkpoint_exposure_shares(
&self,
Expand Down

0 comments on commit cf01c6e

Please sign in to comment.