Skip to content

fix(mobile): JMD currency precision in price conversion and transaction display#606

Closed
Gengyscan wants to merge 1 commit intolnflash:mainfrom
Gengyscan:fix/282-jmd-currency-precision
Closed

fix(mobile): JMD currency precision in price conversion and transaction display#606
Gengyscan wants to merge 1 commit intolnflash:mainfrom
Gengyscan:fix/282-jmd-currency-precision

Conversation

@Gengyscan
Copy link
Copy Markdown

@Gengyscan Gengyscan commented Apr 3, 2026

Summary

Send/Receive rounding:

- use-price-conversion.ts: Math.round for all currencies, not BTC-only

- payment-request.ts: Math.round before lnUsdInvoiceCreate

- intraledger.ts: Math.round before intraLedgerUsdPaymentSend

Transaction display:

- TxItem.tsx: use settlementDisplayAmount/Currency from API instead of manual conversion

- transactions.ts: Breez payments convert to user DisplayCurrency, not hardcoded USD

Amount inflation fix (settlementAmount is already in cents):

- transaction-filters.ts: remove erroneous * 100 in convertToDisplayCurrency and orderAndConvertTransactionsByDate

- reconciliation.tsx: remove erroneous * 100 in balance calculation

Ref: lnflash/flash#282
@Gengyscan Gengyscan force-pushed the fix/282-jmd-currency-precision branch from bb86992 to 30f28b9 Compare April 3, 2026 13:38
@islandbitcoin islandbitcoin added the bounty:review PR submitted — under review label Apr 7, 2026
@Gengyscan
Copy link
Copy Markdown
Author

Hi, checking in on this JMD precision fix for mobile. Let me know if anything needs adjusting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bounty:review PR submitted — under review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants