You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Values like 0.000115A are being rounding to ≈0.00012A, to ensure the amount fits within the small space we have.
In this scenario we have the space, so it'd be good to add a little more logic to try prevent the rounding where possible.
The text was updated successfully, but these errors were encountered:
neilcampbell
changed the title
Make the transaction visualiser amount truncation a little smarter
Make the transaction visualiser amount rounding/truncation a little smarter
Aug 26, 2024
@satishccy Some additional context for this one.
To fix this it's probably changing this line https://github.com/algorandfoundation/algokit-lora/blob/main/src/utils/compact-amount.ts#L4 from 8 to 9.
Whilst it's likely an easy fix, it'll require some visual verification/checks.
You'll also need to re-run the tests, re-generate test snapshots and visually inspect the transactions in those snapshots to confirm everything looks ok.
Values like 0.000115A are being rounding to ≈0.00012A, to ensure the amount fits within the small space we have.
In this scenario we have the space, so it'd be good to add a little more logic to try prevent the rounding where possible.
The text was updated successfully, but these errors were encountered: