seamless-protocol / seamless-interface

https://seamless-interface.vercel.app
Other
7 stars 4 forks source link

feat: portfolio summary data integration #518

Closed kitanovicd closed 2 weeks ago

kitanovicd commented 2 weeks ago

I integrated data into portfolio summary component on Dashboard page. We are getting data from already coded hooks and no new hook is done in this PR. For unrealized gains I am using hook that is merged couple of PRs ago and for total claimable rewards I am using hook from current UI (state folder). I decided to not code new hook since it is complex and that make PR harder for review. Also I implemented loading state that was missing in this component and implemented colour changing based on the fact is portfolio profitable or not in the very right moment. Also I upgraded hook for fetching profit and loss to return also current portfolio value.

vercel[bot] commented 2 weeks ago

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

Name Status Preview Comments Updated (UTC)
seamless-interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 4:01pm