alby-hub/api
Anshuman 1d3f9ecd41
feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153)
* feat: add both Sat and Msat companion fields for all ambiguous balance/amount properties

* feat: add sat and msat companion fields to backend API responses

* chore: align frontend types and other missing fields

* chore: keep old formula for calculating total fee sat

* chore: remove unnecessary balance assignments in cashu and phoenix

* chore: add deprecated comment to non unit fields

* chore: rename callers and variable to specify units

* chore: remove msat fields for channel size and liquidity fields

* chore: drop msat fields from onchain channel size and liquidity responses

* chore: further changes

* chore: remove amount msat field onchain tx

* chore: remove msats from onchain balance response

* chore: remove msat fields for swaps

* chore: remove msat fields for punishment reserves

* chore: simplify rebalancing fee calculation

* chore: remove unnecessary fields

* chore: mark deprecated fields in frontend types

---------

Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
2026-04-17 13:53:28 +05:30
..
api.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
api_test.go feat: proposal: custom node commands (#1007) 2025-01-30 18:20:17 +07:00
apps_test.go Feat: NWA auth for self-hosted hubs (#1016) 2025-02-27 19:12:55 +07:00
backup.go fix: prevent LN client access during shutdown (#2096) 2026-02-27 15:45:09 +07:00
esplora.go Adding checks for ok status code in responses (#2178) 2026-03-31 23:21:26 +05:30
lsp.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
models.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
rebalance.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
transactions.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30