Format claim allocation with token decimals #5

Merged
backmeupplz merged 2 commits from bdt-kaneo-5-format-testcoin-allocation into main 2026-05-25 19:08:22 +00:00
backmeupplz commented 2026-05-25 19:01:03 +00:00 (Migrated from github.com)

Summary

  • Format claim allocation raw amounts as 18-decimal units in the claim UI.
  • Preserve full fractional precision up to 18 decimals with BigInt string math, trimming only trailing fractional zeros.
  • Add focused formatter tests for zero, 1 raw unit, whole-token, fractional, and large non-round allocations.

Validation

  • bun run check
  • bun run test
  • bun run build

Manual QA: deployment/live production verification remains external. Automated validation covers the deterministic formatting and confirms the app still typechecks, tests, and builds.

## Summary - Format claim allocation raw amounts as 18-decimal units in the claim UI. - Preserve full fractional precision up to 18 decimals with BigInt string math, trimming only trailing fractional zeros. - Add focused formatter tests for zero, 1 raw unit, whole-token, fractional, and large non-round allocations. ## Validation - bun run check - bun run test - bun run build Manual QA: deployment/live production verification remains external. Automated validation covers the deterministic formatting and confirms the app still typechecks, tests, and builds.
Sign in to join this conversation.
No description provided.