-
Notifications
You must be signed in to change notification settings - Fork 86
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
feat(earn): Add Claiming Reward line item on enter amount screen #6169
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # src/earn/EarnDepositBottomSheet.tsx
Co-authored-by: Finnian Jacobson-Schulte <140328381+finnian0826@users.noreply.github.com>
This reverts commit 775a925.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6169 +/- ##
==========================================
- Coverage 88.86% 88.86% -0.01%
==========================================
Files 728 728
Lines 30997 31005 +8
Branches 5689 5695 +6
==========================================
+ Hits 27546 27553 +7
- Misses 3255 3256 +1
Partials 196 196
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
src/earn/EarnEnterAmount.tsx
Outdated
const rewardsPositions = useSelector(positionsWithBalanceSelector).filter((position) => | ||
pool.dataProps.rewardsPositionIds?.includes(position.positionId) | ||
) |
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.
should we do the filter inside a useMemo
?
Description
Show line items for each reward that will be claimed
Also, only show Withdrawing and Claiming card if there are rewards that will be claimed
Test plan
Related issues
Backwards compatibility
Yes
Network scalability
If a new NetworkId and/or Network are added in the future, the changes in this PR will: