max: add borrow and repay todo

This commit is contained in:
c9s 2022-06-02 01:28:33 +08:00
parent 78f9c7d569
commit 92882f68f4
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -606,7 +606,7 @@ func (e *Exchange) QueryAccountBalances(ctx context.Context) (types.BalanceMap,
Available: b.Balance, Available: b.Balance,
Locked: b.Locked, Locked: b.Locked,
NetAsset: b.Balance.Add(b.Locked), NetAsset: b.Balance.Add(b.Locked),
Borrowed: b.Debt, Borrowed: b.Debt, // TODO: Replace this with borrow in the newer version
Interest: b.Interest, Interest: b.Interest,
} }
} }