-
Notifications
You must be signed in to change notification settings - Fork 96
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): support partial withdrawals #6128
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6128 +/- ##
=======================================
Coverage 88.78% 88.79%
=======================================
Files 728 728
Lines 30870 30941 +71
Branches 5645 5669 +24
=======================================
+ Hits 27409 27474 +65
- Misses 3264 3270 +6
Partials 197 197
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
# Conflicts: # src/earn/EarnDepositBottomSheet.tsx
Co-authored-by: Finnian Jacobson-Schulte <140328381+finnian0826@users.noreply.github.com>
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.
Can you run through deposit, and swap-deposit flows again to ensure they still work? Also making sure that they are correct for stable and non stable coins
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.
I believe the withdrawToken state can be removed now.
This reverts commit 775a925.
fireEvent.changeText(getByTestId('EarnEnterAmount/TokenAmountInput'), '20.001') | ||
expect(getByTestId('EarnEnterAmount/NotEnoughBalanceWarning')).toBeTruthy() | ||
expect(getByTestId('EarnEnterAmount/Continue')).toBeDisabled() | ||
}) |
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.
can we add tests for checking transaction preparation is called with the right amounts?
Co-authored-by: Satish Ravi <satish.ravi@valoraapp.com>
Description
Adds the ability to support partial withdrawals from Earn pools and adds the feature gate
allow_earn_partial_withdrawal
to enable this feature.Test plan
Related issues
Backwards compatibility
Yes
Network scalability
Yes