-
Notifications
You must be signed in to change notification settings - Fork 596
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
Add "recent" swaps section to token to buy list #5956
Conversation
export type RecentSwap = { | ||
swappedAt: number; | ||
} & ExtendedAnimatedAssetWithColors; |
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.
Do we want more metadata here?
@@ -34,6 +36,74 @@ export interface SwapsState { | |||
setSource: (source: Source | 'auto') => void; | |||
degenMode: boolean; | |||
setDegenMode: (degenMode: boolean) => void; | |||
|
|||
// recent swaps | |||
latestSwapAt: Map<ChainId, number>; |
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 this prop used? do we need 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.
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.
gotcha cool cool
Fixes APP-1635
What changed (plus any additional context for devs)
Added a new section that shows the last three user swaps per chain. These recents prioritize favorites and bridge assets if they exist in those lists.
Screen recordings / screenshots
What to test