Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Began integrating the portfolio page #74

Merged
merged 3 commits into from
Jul 21, 2022
Merged

Conversation

IanWoodard
Copy link
Collaborator

As the title suggests, I began integrating the portfolio page. This includes fetching the data about a user's aloe positions as well as Uniswap v2 positions to display on their portfolio as well as the logic to display the empty states when the user doesn't have the respective position(s) (aloe/external). One thing that still needs to be done is the calculations for percentage change for both types of positions. Additionally, the logic needs a bit more error handling in order to make sure it is robust and doesn't crash ever (it shouldn't, but it is better to be safe). Lastly, as usual, below I attached some images of a few of the different states/cards (the ones with actual numbers are using addresses I found on etherscan):
portfolio-state
portfolio-state2
portfolio-state3

Copy link
Member

@haydenshively haydenshively left a comment

Choose a reason for hiding this comment

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

I'll look through the Uniswap V2 math once we get more of these merged. Otherwise looks good except for a few nits

src/components/graph/PortfolioGraph.tsx Show resolved Hide resolved
src/components/header/Header.tsx Show resolved Hide resolved
src/components/header/ConnectWalletButton.tsx Show resolved Hide resolved
src/components/pool/ConnectWallet.tsx Show resolved Hide resolved
src/pages/PortfolioPage.tsx Show resolved Hide resolved
@haydenshively haydenshively merged commit f6ffada into master Jul 21, 2022
@IanWoodard IanWoodard deleted the iw-portfolio-integration branch July 22, 2022 01:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants