Skip to content

Fix BTC history chart: use correct asset name#153

Merged
TaprootFreak merged 1 commit intoLightningDotSpace:developfrom
TaprootFreak:fix/btc-history-chart-asset-name
Feb 14, 2026
Merged

Fix BTC history chart: use correct asset name#153
TaprootFreak merged 1 commit intoLightningDotSpace:developfrom
TaprootFreak:fix/btc-history-chart-asset-name

Conversation

@TaprootFreak
Copy link
Contributor

Summary

  • Fix BTC balance history chart showing only WBTC (0.00374970 BTC) instead of full net balance (~0.98 BTC)
  • Root cause: query filtered on asset name 'Bitcoin' but the database uses 'BTC'
  • Changes 'Bitcoin''BTC' in both getBalanceHistory and getLastBalanceBefore calls

Test plan

  • Open /monitoring/btc and verify the chart shows the correct net BTC balance (~0.98 BTC)
  • Test all three ranges (24h, 7d, 30d)

The balance history query used 'Bitcoin' but the asset name
in the database is 'BTC', causing empty chart data.
@TaprootFreak TaprootFreak marked this pull request as ready for review February 14, 2026 20:35
@TaprootFreak TaprootFreak merged commit f267f72 into LightningDotSpace:develop Feb 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant