Skip to content

Commit

Permalink
chore: move gateway operator stake minimum to a global constant
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik committed Dec 19, 2024
1 parent 68387ba commit 9aa8951
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/modals/StartGatewayModal.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 9aa8951

Please sign in to comment.