Tallying compound supply and borrow balances with per-account netting