Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: incorrect withdraw percentage amount #6288

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

kathaypacific
Copy link
Collaborator

Description

As the title - this was a copy paste error, restoring it to the previous logic.

Test plan

Applying the max amount now matches the max amount displayed in the withdraw details.

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-12-03.at.10.01.39.mp4

Related issues

n/a

Backwards compatibility

Y

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)

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.96%. Comparing base (72dcc6b) to head (1bd20b7).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6288   +/-   ##
=======================================
  Coverage   88.96%   88.96%           
=======================================
  Files         739      739           
  Lines       31613    31613           
  Branches     5883     5883           
=======================================
+ Hits        28123    28126    +3     
+ Misses       3290     3287    -3     
  Partials      200      200           
Files with missing lines Coverage Δ
src/earn/EarnEnterAmount.tsx 88.85% <100.00%> (+1.20%) ⬆️

... 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 72dcc6b...1bd20b7. Read the comment docs.

Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

🚀

@kathaypacific kathaypacific added this pull request to the merge queue Dec 3, 2024
Merged via the queue into main with commit 5d544f4 Dec 3, 2024
16 checks passed
@kathaypacific kathaypacific deleted the kathy/fix-earn-percentages branch December 3, 2024 10:31
kathaypacific added a commit that referenced this pull request Dec 3, 2024
### Description

As the title - this was a copy paste error, restoring it to the
[previous
logic](https://github.com/valora-inc/wallet/blob/7714ddffef3b08d252fa6e6595b4b4114eb7e28c/src/earn/EarnEnterAmount.tsx#L348).

### Test plan

Applying the max amount now matches the max amount displayed in the
withdraw details.


https://github.com/user-attachments/assets/540854a7-9020-4208-930b-e0042c92a025


### Related issues

n/a

### Backwards compatibility

Y

### 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)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants