diff --git a/apps/portal/src/components/widgets/staking/substrate/StakeForm.tsx b/apps/portal/src/components/widgets/staking/substrate/StakeForm.tsx index af5fb0259..790c3aab3 100644 --- a/apps/portal/src/components/widgets/staking/substrate/StakeForm.tsx +++ b/apps/portal/src/components/widgets/staking/substrate/StakeForm.tsx @@ -38,6 +38,8 @@ import { usePoolCommission } from '@/domains/staking/substrate/nominationPools/h import type { ApiPromise } from '@polkadot/api' import { type Decimal } from '@talismn/math' import { CircularProgressIndicator, Select } from '@talismn/ui' +import { Tooltip } from '@talismn/ui' +import { Info } from '@talismn/web-icons' import BN from 'bn.js' import { Suspense, @@ -165,6 +167,7 @@ const PoolSelector = (props: { const [chain, recommendedPools, nativeTokenDecimal] = useRecoilValue( waitForAll([useChainRecoilState(), useRecommendedPoolsState(), useNativeTokenDecimalState()]) ) + const { getCurrentCommission } = usePoolCommission() return ( - {recommendedPools.map((pool, index) => ( - setNewPoolId(pool.poolId)} - /> - ))} + {recommendedPools.map((pool, index) => { + return ( + setNewPoolId(pool.poolId)} + commissionFeeDescription="Actual earnings reflect commissions charged by validators and pools. The amount of fees charged by pools cannot be determined by Talisman. +But Talisman charges 1.5% on certain pools." + commissionFee={getCurrentCommission(pool.poolId).toString() + '%'} + /> + ) + })} ) } @@ -275,7 +283,20 @@ const CommissionFee = ({ poolId }: { poolId: number }) => { return (
-
Commission fee
{`${poolCommission}%`}
+
+
Commission fee
+ + Actual earnings reflect commissions charged by validators and pools. The amount of fees charged by pools + cannot be determined by Talisman. But Talisman charges 1.5% on certain pools. +
+ } + > + + +
+
{`${poolCommission}%`}
) }