diff --git a/pkg/exchange/max/exchange.go b/pkg/exchange/max/exchange.go index 79a7076ac..098dd8ccf 100644 --- a/pkg/exchange/max/exchange.go +++ b/pkg/exchange/max/exchange.go @@ -608,7 +608,7 @@ func (e *Exchange) QueryAccountBalances(ctx context.Context) (types.BalanceMap, Available: b.Balance, Locked: b.Locked, NetAsset: b.Balance.Add(b.Locked).Sub(b.Debt), - Borrowed: b.Debt, // TODO: Replace this with borrow in the newer version + Borrowed: b.Borrowed, Interest: b.Interest, } } diff --git a/pkg/exchange/max/maxapi/account.go b/pkg/exchange/max/maxapi/account.go index bdefd4c60..02b1106a7 100644 --- a/pkg/exchange/max/maxapi/account.go +++ b/pkg/exchange/max/maxapi/account.go @@ -22,8 +22,10 @@ type Account struct { Locked fixedpoint.Value `json:"locked"` // v3 fields for M wallet - Debt fixedpoint.Value `json:"debt"` - Interest fixedpoint.Value `json:"interest"` + Debt fixedpoint.Value `json:"debt"` + Principal fixedpoint.Value `json:"principal"` + Borrowed fixedpoint.Value `json:"borrowed"` + Interest fixedpoint.Value `json:"interest"` // v2 fields FiatCurrency string `json:"fiat_currency"`