Skip to content

feat: support fractional kWh tokens with 3 decimal places#442

Merged
AnnabelJoe merged 2 commits into
AnnabelJoe:mainfrom
Dev-Odun-oss:feat/fractional-kwh-tokens-354
Jun 3, 2026
Merged

feat: support fractional kWh tokens with 3 decimal places#442
AnnabelJoe merged 2 commits into
AnnabelJoe:mainfrom
Dev-Odun-oss:feat/fractional-kwh-tokens-354

Conversation

@Dev-Odun-oss
Copy link
Copy Markdown
Contributor

  • Set SEP-41 decimals to 3 (1 unit = 0.001 kWh, 1000 units = 1 kWh)
  • Update kwhToStroops/stroopsToKwh to use 1e3 scale
  • Display all kwh values with toFixed(3) across dashboard, certificates, verify, meter-reading-row, retire-modal, and certificate detail pages
  • Update tests and snapshots to match new scale

Closes #354
Closes #355
Closes #356

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • CI / tooling

Related issue

Closes #

Checklist

  • Tests pass
  • No new lint warnings
  • Docs updated if needed
  • CHANGELOG.md updated
  • PR targets develop
  • Supabase queries audited for SQL injection (no raw SQL, parameterized methods used)

- Set SEP-41 decimals to 3 (1 unit = 0.001 kWh, 1000 units = 1 kWh)
- Update kwhToStroops/stroopsToKwh to use 1e3 scale
- Display all kwh values with toFixed(3) across dashboard, certificates,
  verify, meter-reading-row, retire-modal, and certificate detail pages
- Update tests and snapshots to match new scale

Closes AnnabelJoe#354
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Dev-Odun-oss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@AnnabelJoe AnnabelJoe merged commit e4544b7 into AnnabelJoe:main Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants