From 62002d29c2b578644bbf7269f9a111b61251483d Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Tue, 7 Nov 2023 20:13:42 -0700 Subject: [PATCH] stringer skips empty special assets --- x/leverage/types/string.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/leverage/types/string.go b/x/leverage/types/string.go index 8803418459..3834c556ae 100644 --- a/x/leverage/types/string.go +++ b/x/leverage/types/string.go @@ -12,7 +12,9 @@ func (ap *AccountPosition) String() string { collateral := []string{} borrowed := []string{} for _, wsp := range ap.specialPairs { - special = append(special, wsp.String()) + if wsp.Borrow.IsPositive() || wsp.Collateral.IsPositive() { + special = append(special, wsp.String()) + } } for _, c := range ap.collateralValue { collateral = append(collateral, c.String())