Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki committed Nov 6, 2023
1 parent 4e40129 commit 7523866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/leverage/types/position.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ func (ap *AccountPosition) collateralUsageDecrease() sdk.Dec {
if borrowFactor.LT(wsp.SpecialWeight) {
// decreases effective collateral usage due to the difference in parameters
decrease = decrease.Add(
wsp.Borrow.Amount.Quo(ap.borrowFactor(wsp.Borrow.Denom)).Sub(
wsp.Borrow.Amount.Quo(wsp.SpecialWeight)),
wsp.Borrow.Amount.Quo(ap.borrowFactor(wsp.Borrow.Denom)).Sub( // original usage
wsp.Borrow.Amount.Quo(wsp.SpecialWeight)), // special usage
)
}
}
Expand Down

0 comments on commit 7523866

Please sign in to comment.