Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Van Ootegem <[email protected]>
  • Loading branch information
EVODelavega committed May 15, 2024
1 parent 386a99a commit 9710000
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/risk/margins_calculation.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ func (e *Engine) calculateFullCollatMargins(m events.Margin, price *num.Uint, _
riskiestLng = openVolume
riskiestSht = openVolume
)
// if withPotential {
// calculate both long and short riskiest positions
// riskiestLng = riskiestLng.Add(num.DecimalFromInt64(m.Buy()).Div(e.positionFactor))
// riskiestSht = riskiestSht.Sub(num.DecimalFromInt64(m.Sell()).Div(e.positionFactor))
// }
// the party has no open positions that we need to calculate margin for
if riskiestLng.IsZero() && riskiestSht.IsZero() && !withPotential {
return &types.MarginLevels{
Expand Down

0 comments on commit 9710000

Please sign in to comment.