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

fix stake page should use fetchWalletBalances thunk async action #578

Conversation

0xcryptovenom
Copy link
Contributor

Follow-up of #447

Cherry-picked from #577

Copy link

vercel bot commented Nov 24, 2024

@0xcryptovenom is attempting to deploy a commit to the adrena Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Nov 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview Nov 24, 2024 11:33am

@adrena-orex adrena-orex merged commit f3d6a1d into AdrenaFoundation:dev Nov 24, 2024
1 of 2 checks passed
adrena-orex added a commit that referenced this pull request Nov 25, 2024
* contrib: refactor fetching of wallet token balances using Redux (#447)

* contrib: add reselect dependency (same version as the one used by rtk-query)
Enables memoization of Redux selectors

* contrib: add selectors directory w/ selectWalletAddress + selectWalletPublicKey memoized selector
* contrib: refactor token balances fetching using Redux
- remove useWatchWalletBalance hook in favor of a fetchWalletTokenBalances thunk action.
- remove props drilling from the App component to all component which may need to fetch token balances
  by using the fetchWalletTokenBalances thunk action.
- the same pattern can be applied to most custom hooks in the code base.
  it allows separating business logic from the UI, better architecture which also improves testability.
  it will have a good impact on rendering performance with wider adoption in the code base.
- clean-up walletBalances actions:
  - use type inference
  - define constant action type & use it in the matching reducer
  - use concise definition of action creators: a simple function returning an action object

* contrib: fix wallet token balances should reset when user disconnects
* contrib: fix fetchWalletTokenBalances typing issue

* fix stake page should use fetchWalletBalances thunk async action (#578)

* duplicate username fix (#579)

* Sunday nits2 (#580)

* Staking popup mobile
* Disable upgrade when not established
* Display correct borrow rate for short
* Remove automation from Monitoring Full

* Add SquadX support (#582)

* Volume chart (#583)

---------

Co-authored-by: Venom <[email protected]>
Co-authored-by: Tyro <[email protected]>
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.

2 participants