Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki committed Nov 8, 2023
1 parent c08d072 commit 28ce193
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/leverage/types/position.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ func (ap *AccountPosition) Limit() sdk.Dec {
}
borrowFactorLimit := ap.BorrowedValue().Add(unusedCollateralValue.Mul(avgWeight))

// TODO: clean this up (used to trace through tests)
if len(ap.collateralValue) == 1 && ap.collateralValue[0].Denom == "FFFF" {
if len(ap.borrowedValue) == 1 && ap.borrowedValue[0].Denom == "HHHH" {
fmt.Printf("%s -> %s (%t)\n %s, %s\n >>> %s\n",
Expand Down

0 comments on commit 28ce193

Please sign in to comment.