Skip to content

Commit

Permalink
feat: fix staking divisor
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Apr 17, 2024
1 parent bc7a380 commit d64d390
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/screens/staking/lib/staking_sdk/staking_client.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -32,11 +32,11 @@ const fetchJson = <A = any>(uri: string, opts?: Options): Promise<A> =>
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) =>
Expand Down

0 comments on commit d64d390

Please sign in to comment.