File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/components/tooltips/APRTooltip/components Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { Pool } from '@/services/pool/types';
77import { AprBreakdown } from ' @balancer-labs/sdk' ;
88import { useTokens } from ' @/providers/tokens.provider' ;
99import { hasBalEmissions } from ' @/composables/useAPR' ;
10+ import useWeb3 from ' @/services/web3/useWeb3' ;
1011
1112/**
1213 * TYPES
@@ -26,6 +27,7 @@ const props = defineProps<Props>();
2627 */
2728const { fNum } = useNumbers ();
2829const { getToken } = useTokens ();
30+ const { isWalletReady } = useWeb3 ();
2931
3032/**
3133 * COMPUTED
@@ -34,7 +36,9 @@ const { getToken } = useTokens();
3436const apr = computed (() => props .pool ?.apr || props .poolApr );
3537
3638const boost = computed ((): string => props .pool ?.boost || ' ' );
37- const hasBoost = computed ((): boolean => !! boost .value );
39+ const hasBoost = computed (
40+ (): boolean => !! boost .value && boost .value !== ' 1' && isWalletReady .value
41+ );
3842const stakingAPR = computed (
3943 (): AprBreakdown [' stakingApr' ] | undefined => apr .value ?.stakingApr
4044);
You can’t perform that action at this time.
0 commit comments