-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui-ux): fix displayed amount in transaction list #342
Conversation
DFC-398 Task: Fix displayed DFI amount from transactions list
Amount displayed on Transactions list doesnt match the amount inside tx details page (see image) |
✅ Deploy Preview for defimetascan ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -53,7 +42,7 @@ export const transformTransactionData = (tx: RawTransactionI): TransactionI => { | |||
transactionType, | |||
type: tx.type, | |||
hash: tx.hash, | |||
amount: dfiAmount, | |||
amount: formatEther(BigInt(tx.value ?? "0")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for diff coin decimal value will be different, I guess we should get decimal value and then format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this amount is only for "DFI value" so should always 18 decimals
What this PR does / why we need it:
Which issue(s) does this PR fixes?:
Fixes DFC-398
Additional comments?:
Developer Checklist: