diff --git a/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/AcrePointsRewardEstimation.tsx b/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/AcrePointsRewardEstimation.tsx index 2307b625d..a09463405 100644 --- a/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/AcrePointsRewardEstimation.tsx +++ b/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/AcrePointsRewardEstimation.tsx @@ -13,7 +13,7 @@ import { H4, TextMd } from "#/components/shared/Typography" import { numberToLocaleString } from "#/utils" import { IconChevronDown } from "@tabler/icons-react" import { TOKEN_AMOUNT_FIELD_NAME } from "#/components/shared/TokenAmountForm/TokenAmountFormBase" -import { useFormField } from "#/hooks" +import { useFormField, useMinDepositAmount } from "#/hooks" import { ONE_MONTH_IN_DAYS, ONE_WEEK_IN_DAYS } from "#/constants" const ACRE_POINTS_DATA = { @@ -48,7 +48,10 @@ function AcrePointsRewardEstimation(props: StackProps) { const { value = 0n } = useFormField( TOKEN_AMOUNT_FIELD_NAME, ) - const baseReward = Number(value) + const minDepositAmount = useMinDepositAmount() + const amount = value >= minDepositAmount ? value : 0n + + const baseReward = Number(amount) const pointsRate = 10000 const estimatedReward = useMemo(