-
Notifications
You must be signed in to change notification settings - Fork 41
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…m/curvefi/curve-frontend into feat/new-position-detail-tooltips
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'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) |
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.
The Date conversion should be handled in the prices-api lib?
const recentSnapshots = lendSnapshots.filter((snapshot) => new Date(snapshot.timestamp) > thirtyDaysAgo) | |
const recentSnapshots = lendSnapshots.filter((snapshot) => snapshot.timestamp > thirtyDaysAgo) |
Changes: