Skip to content

Commit b36a7dd

Browse files
authored
fix: TAT-1263 pooled-staking data fails to refresh when on unsupported chainId (#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=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 85176a9 commit b36a7dd

File tree

5 files changed

+632
-117
lines changed

5 files changed

+632
-117
lines changed

packages/earn-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- **BREAKING:** Removed `chainId` parameter from `refreshPooledStakingVaultMetadata`, `refreshPooledStakingVaultDailyApys`, `refreshPooledStakingVaultApyAverages`, and `refreshPooledStakes` methods. ([#6106](https://github.com/MetaMask/core/pull/6106))
1213
- Bump `@metamask/controller-utils` from `^11.10.0` to `^11.11.0` ([#6069](https://github.com/MetaMask/core/pull/6069))
1314

1415
## [2.0.1]

0 commit comments

Comments
 (0)