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): redux setup for withdraw #5429

Merged
merged 3 commits into from
May 18, 2024

Conversation

satish-ravi
Copy link
Contributor

Description

Also changed from started -> loading to be consistent with other slices

Test plan

Unit tests

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)

@satish-ravi satish-ravi force-pushed the satish/act-1180-collect-prepare-tx branch from 7c6f4bd to 64fd9eb Compare May 17, 2024 21:56
@satish-ravi satish-ravi force-pushed the satish/act-1180-withdraw-redux-setup branch from 15960ee to 22f956b Compare May 17, 2024 22:03
Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 94.73684% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 86.28%. Comparing base (ede24ec) to head (cc63b8d).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5429      +/-   ##
==========================================
- Coverage   86.29%   86.28%   -0.02%     
==========================================
  Files         754      754              
  Lines       30825    30839      +14     
  Branches     5274     5274              
==========================================
+ Hits        26601    26610       +9     
- Misses       3997     4002       +5     
  Partials      227      227              
Files Coverage Δ
src/earn/EarnDepositBottomSheet.tsx 98.41% <100.00%> (ø)
src/earn/slice.ts 100.00% <100.00%> (ø)
src/redux/migrations.ts 97.08% <100.00%> (+<0.01%) ⬆️
src/redux/store.ts 78.68% <ø> (ø)
test/schemas.ts 91.10% <100.00%> (+0.03%) ⬆️
src/earn/saga.ts 93.82% <80.00%> (-0.98%) ⬇️

... and 2 files 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 ede24ec...cc63b8d. Read the comment docs.

interface State {
depositStatus: 'idle' | 'started' | 'success' | 'error'
depositStatus: Status
Copy link
Collaborator

Choose a reason for hiding this comment

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

Eventually have to handle multiple pools so deposit and withdraw status could need to be represented differently, but I think for the MVP this is fine.

Base automatically changed from satish/act-1180-collect-prepare-tx to main May 18, 2024 02:55
@satish-ravi satish-ravi force-pushed the satish/act-1180-withdraw-redux-setup branch from 4ced741 to cc63b8d Compare May 18, 2024 03:01
@satish-ravi satish-ravi added this pull request to the merge queue May 18, 2024
Merged via the queue into main with commit e8472fd May 18, 2024
16 checks passed
@satish-ravi satish-ravi deleted the satish/act-1180-withdraw-redux-setup branch May 18, 2024 05:35
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.

None yet

2 participants