diff --git a/src/components/modals/StartGatewayModal.tsx b/src/components/modals/StartGatewayModal.tsx index 6a0c1ba..56224b4 100644 --- a/src/components/modals/StartGatewayModal.tsx +++ b/src/components/modals/StartGatewayModal.tsx @@ -1,5 +1,5 @@ import { ARIOToken } from '@ar.io/sdk/web'; -import { WRITE_OPTIONS, log } from '@src/constants'; +import { GATEWAY_OPERATOR_STAKE_MINIMUM_ARIO, WRITE_OPTIONS, log } from '@src/constants'; import { useGlobalState } from '@src/store'; import { showErrorToast } from '@src/utils/toast'; import { useQueryClient } from '@tanstack/react-query'; @@ -91,8 +91,8 @@ const StartGatewayModal = ({ onClose }: { onClose: () => void }) => { { formPropertyName: 'stake', label: `*Stake (${ticker}):`, - placeholder: `Minimum 10000 ${ticker}`, - validateProperty: validateIOAmount('Stake', ticker, 10000), + placeholder: `Minimum ${GATEWAY_OPERATOR_STAKE_MINIMUM_ARIO} ${ticker}`, + validateProperty: validateIOAmount('Stake', ticker, GATEWAY_OPERATOR_STAKE_MINIMUM_ARIO), }, { formPropertyName: 'allowDelegatedStaking', diff --git a/src/constants.ts b/src/constants.ts index 3fd3d5a..4f76c98 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -62,3 +62,6 @@ export const OPERATOR_EAY_TOOLTIP_FORMULA = export const NAME_PASS_THRESHOLD = 0.8; export const REFERENCE_GATEWAY_FQDN = process.env.VITE_REFERENCE_GATEWAY_FQDN ?? 'arweave.net'; + + +export const GATEWAY_OPERATOR_STAKE_MINIMUM_ARIO = 10000;