Skip to content

feat: added new tooltips to borrow/lend/market details #1236

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

OnlyJousting
Copy link
Contributor

@OnlyJousting OnlyJousting commented Aug 7, 2025

Changes:

  • Refactored and renamed TooltipItem from /llamalend to TooltipComponents and moved it to ui-kit
  • Added more helper components to easier manage theme changes
  • Added a bunch of new tooltips for the new borrow/lend/market details
  • Refactored and moved Borrow rate and Supply rate tooltips to ui-kit

Copy link

vercel bot commented Aug 7, 2025

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

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Preview 💬 Add feedback Aug 12, 2025 9:50am
curve-dapp-storybook Ready Preview 💬 Add feedback Aug 12, 2025 9:50am

0xtutti
0xtutti previously approved these changes Aug 8, 2025
Copy link
Collaborator

@DanielSchiavini DanielSchiavini left a comment

Choose a reason for hiding this comment

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

It's impossible to know what changed functionally because so many things are moving in one PR

@@ -65,32 +68,39 @@ export const useBorrowPositionDetails = ({
const thirtyDaysAgo = new Date()
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30)

const recentSnapshots = lendSnapshots.filter((snapshot) => snapshot.timestamp > thirtyDaysAgo)
const recentSnapshots = lendSnapshots.filter((snapshot) => new Date(snapshot.timestamp) > thirtyDaysAgo)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The Date conversion should be handled in the prices-api lib?

Suggested change
const recentSnapshots = lendSnapshots.filter((snapshot) => new Date(snapshot.timestamp) > thirtyDaysAgo)
const recentSnapshots = lendSnapshots.filter((snapshot) => snapshot.timestamp > thirtyDaysAgo)

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