Skip to content
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

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

Conversation

finnian0826
Copy link
Contributor

@finnian0826 finnian0826 commented Oct 17, 2024

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:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

MuckT and others added 30 commits October 2, 2024 15:08
# Conflicts:
#	src/earn/EarnDepositBottomSheet.tsx
Co-authored-by: Finnian Jacobson-Schulte <140328381+finnian0826@users.noreply.github.com>
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.86%. Comparing base (6e03eb4) to head (acbdd0f).

Additional details and impacted files

Impacted file tree graph

@@            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              
Files with missing lines Coverage Δ
src/earn/EarnEnterAmount.tsx 89.42% <100.00%> (+0.26%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e03eb4...acbdd0f. Read the comment docs.

Base automatically changed from finnian0826/act-1411 to main October 18, 2024 18:20
@finnian0826 finnian0826 marked this pull request as ready for review October 18, 2024 20:27
Comment on lines 289 to 291
const rewardsPositions = useSelector(positionsWithBalanceSelector).filter((position) =>
pool.dataProps.rewardsPositionIds?.includes(position.positionId)
)
Copy link
Contributor

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?

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