-
Notifications
You must be signed in to change notification settings - Fork 464
Refactor/dashboard page #2723
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
base: main
Are you sure you want to change the base?
Refactor/dashboard page #2723
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
| }, | ||
| ], | ||
| user: userAddress!, | ||
| orderBy: { debt: OrderDirection.Asc }, |
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.
should we order Desc so bigger first?
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.
it doesn’t sort based on the balance. It sorts according to the internal order in the backend. That’s why I think one ordering or the other makes no difference.
| }, | ||
| ], | ||
| user: userAddress!, | ||
| orderBy: { balance: OrderDirection.Asc }, |
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.
should we order Desc so bigger first?
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.
same answer
| symbol: tokenInReserve.underlyingToken.symbol, | ||
| underlyingAsset: tokenInReserve.underlyingToken.address, | ||
| decimals: tokenInReserve.underlyingToken.decimals, | ||
| priceInUSD: tokenInReserve.usdExchangeRate, |
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.
is usdExchangeRate giving the amount in usd as we had before or just the rate?
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.
usd amount per token
| const currentNetworkConfig = useRootStore((store) => store.currentNetworkConfig); | ||
| const currentMarketData = useRootStore((store) => store.currentMarketData); | ||
| const currentMarket = useRootStore((store) => store.currentMarket); |
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.
can merge these three
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.
done
| 0 | ||
| ); | ||
| }, [isShowSmallBalanceAssets, user?.userReservesData, marketReferencePriceInUsd]); | ||
| }, [suppliedPositions]); |
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.
we should probably add isShowSmallBalanceAssets (and test the dashboard with some dust)
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.
ok!
| const disableSwap = isPaused || reserve.underlyingToken.symbol == 'stETH'; | ||
| const disableWithdraw = isPaused; | ||
| const disableSupply = isFrozen || isPaused; |
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.
we don't have isActive anymore with the sdk?
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.
nop
| //! Your Staked Amount: shows the underlying of assets(ej. USDC, WETH) staked or equivalent to the | ||
| //! shares. | ||
| //! Using stakeTokenReedemableAmount should be the equivalent in Asset to the shares |
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 one seems useful, isnt it?
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.
yeah, I should have only deleted the exclamation. Restored
|
You must have Developer access to commit code to Aave on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes. Learn more: https://vercel.com/docs/accounts/team-members-and-roles/access-roles#team-level-roles |
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
General Changes
Developer Notes
Reviewer Checklist
Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.
.env.examplefile as well as the pertinant.github/actions/*files