Commit b36a7dd
authored
fix: TAT-1263 pooled-staking data fails to refresh when on unsupported chainId (MetaMask#6106)
## Explanation
<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:
* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->
Currently, when the GNS active chainId isn't supported by pooled-staking
we cannot fetch pooled-staking data. Supported chains are Ethereum
mainnet and Hoodi Testnet.
To fix this, we fallback to Ethereum mainnet when the active chain isn't
supported.
### Fixes
- [TAT-1263](https://consensyssoftware.atlassian.net/browse/TAT-1263):
Fix staking data refresh issue when switching accounts in GNS
[TAT-1263]:
https://consensyssoftware.atlassian.net/browse/TAT-1263?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ1 parent 85176a9 commit b36a7dd
5 files changed
Lines changed: 632 additions & 117 deletions
File tree
- packages/earn-controller
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments