Skip to content

chore: tracking txs usd amounts to amplitude #2564

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

Merged
merged 2 commits into from
Aug 11, 2025
Merged

Conversation

mgrabina
Copy link
Contributor

@mgrabina mgrabina commented Aug 4, 2025

e.g.
image

Copy link

vercel bot commented Aug 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 2:24pm

Copy link

github-actions bot commented Aug 4, 2025

Copy link

github-actions bot commented Aug 4, 2025

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@foodaka
Copy link
Collaborator

foodaka commented Aug 5, 2025

@grothem are we missing any places top of mind for calculating all the amount flows

@mgrabina mgrabina force-pushed the feat/tracking-usd-amounts branch from bbb8816 to bee5e1b Compare August 7, 2025 13:49
@mgrabina
Copy link
Contributor Author

mgrabina commented Aug 7, 2025

@MartinGbz can you rebase main so we have the app context

rebased

Copy link

github-actions bot commented Aug 7, 2025

Copy link

github-actions bot commented Aug 7, 2025

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@foodaka
Copy link
Collaborator

foodaka commented Aug 7, 2025

@mgrabina are we able to handle the corner case of repay max? its USD value is -1

@foodaka foodaka closed this Aug 7, 2025
@foodaka foodaka reopened this Aug 7, 2025
@foodaka
Copy link
Collaborator

foodaka commented Aug 7, 2025

Screenshot 2025-08-07 at 15 03 25 @mgrabina repay max

Copy link

github-actions bot commented Aug 7, 2025

Copy link

github-actions bot commented Aug 7, 2025

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@mgrabina
Copy link
Contributor Author

mgrabina commented Aug 7, 2025

Screenshot 2025-08-07 at 15 03 25 @mgrabina repay max

good catch! fixed now

Copy link

github-actions bot commented Aug 7, 2025

Copy link

github-actions bot commented Aug 7, 2025

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@@ -197,8 +200,11 @@ export const RepayActions = ({
action,
txState: 'success',
asset: poolAddress,
amount: amountToRepay,
amount: amountToRepay === '-1' ? maxAmountToRepay : amountToRepay,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgrabina should this change?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we just care about the amountUsd for that value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we currently have the same issue in amount sending -1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but is it changing anything in the actual transaction or is it just information sent to amplitude

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope transaction is sent just above
image
(whatsmore addTransaction only executed if tx was successful)

and addTransaction just 'saves' the tx in the state, which are used only in TransactionEventHandler just for tracking

@foodaka
Copy link
Collaborator

foodaka commented Aug 8, 2025

@mgrabina repaying wSTETH left negative balance

Screenshot 2025-08-08 at 14 54 05

@mgrabina
Copy link
Contributor Author

mgrabina commented Aug 8, 2025

wSTETH

did u pull the latest?

image

@mgrabina mgrabina merged commit bd8a4ef into main Aug 11, 2025
17 of 18 checks passed
@mgrabina mgrabina deleted the feat/tracking-usd-amounts branch August 11, 2025 16:40
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.

3 participants