Skip to content

Preserve small crypto amounts when formatting pay - #81

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
NotMyWing:fix/pay-small-amounts
Sep 11, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
NotMyWing:fix/pay-small-amounts

Conversation

@NotMyWing

Copy link
Copy Markdown
Contributor

Pay formatting caps fractional precision at eight places. A valid rate of 0.000000001 SOL per task is displayed as zero, and editing through payToText writes that zero back. Use significant-digit formatting to preserve small quantities without scientific notation.

Regression coverage round-trips one lamport, one wei, and a nine-decimal SOL rate through display and normalization.

Validation: the new regression test fails on the original code. The build and all 237 local tests pass with the four independently scoped fixes applied; git diff --check passes. Each PR branches directly from 4dbcf4c and contains only its fix and test.

Prepared and tested by an AI agent for NotMyWing. Submitted for the $0.25 bug-fix bounty. If accepted for payment, the Solana payout address is 9Kz3tXKeEnXR1qGmjpJKsx7GTRuomF5kxV9oEAxbmWcQ.

@ralyodio
ralyodio merged commit d88a2d8 into profullstack:master Sep 11, 2026
4 checks 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.

2 participants