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: bsc savers user staking data #5435

Merged
merged 3 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/context/AppProvider/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { AccountId, AssetId, ChainId } from '@shapeshiftoss/caip'
import {
avalancheChainId,
bchChainId,
bscChainId,
btcChainId,
cosmosChainId,
dogeChainId,
Expand Down Expand Up @@ -213,6 +214,7 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
case dogeChainId:
case bchChainId:
case cosmosChainId:
case bscChainId:
kaladinlight marked this conversation as resolved.
Show resolved Hide resolved
case avalancheChainId:
;(async () => {
await fetchAllOpportunitiesIdsByChainId(chainId)
Expand Down
8 changes: 8 additions & 0 deletions src/state/slices/opportunitiesSlice/mappings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
avalancheChainId,
bchChainId,
bscChainId,
btcChainId,
cosmosChainId,
dogeChainId,
Expand Down Expand Up @@ -173,6 +174,13 @@ export const CHAIN_ID_TO_SUPPORTED_DEFI_OPPORTUNITIES = {
defiType: DefiType.Staking,
},
],
[bscChainId]: [
{
defiProvider: DefiProvider.ThorchainSavers,
defiType: DefiType.Staking,
},
],

[cosmosChainId]: [
{
defiProvider: DefiProvider.CosmosSdk,
Expand Down