From d64d3901c71f11024fa48c2208eb7a102633651b Mon Sep 17 00:00:00 2001 From: Ignacio Date: Wed, 17 Apr 2024 15:53:15 +0800 Subject: [PATCH] feat: fix staking divisor --- src/screens/staking/lib/staking_sdk/staking_client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screens/staking/lib/staking_sdk/staking_client.ts b/src/screens/staking/lib/staking_sdk/staking_client.ts index 88423e50..f0fa0ec8 100644 --- a/src/screens/staking/lib/staking_sdk/staking_client.ts +++ b/src/screens/staking/lib/staking_sdk/staking_client.ts @@ -1,7 +1,7 @@ import BigNumber from "bignumber.js"; import type { StakingNetworkId } from "./core/base"; -import { cosmosStakingNetworks } from "./core/cosmos"; +import { solanaNetworks } from "./core/solana"; import type { AccountDetailResponse, ClaimableRewardsResponse, @@ -32,11 +32,11 @@ const fetchJson = (uri: string, opts?: Options): Promise => const getRewardsDivisor = (denom: string) => { const network = unnormalisedDenomToNetwork[denom.toUpperCase()]; - if (cosmosStakingNetworks.has(network as StakingNetworkId)) { - return new BigNumber(10).pow(18); + if (solanaNetworks.has(network as StakingNetworkId)) { + return 1; } - return 1; + return new BigNumber(10).pow(18); }; const parseStakingRewards = async (res: ClaimableRewardsResponse) =>