Skip to content

Commit

Permalink
Merge pull request #30 from ar-io/develop
Browse files Browse the repository at this point in the history
Release to Production
  • Loading branch information
kunstmusik authored Jun 25, 2024
2 parents 5950a87 + 765350e commit 0658f46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/modals/StakingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const StakingModal = ({
.valueOf();
const minDelegatedStake = gateway
? new mIOToken(gateway?.settings.minDelegatedStake).toIO().valueOf()
: 100;
: 500;
const minRequiredStakeToAdd = existingStake > 0 ? 1 : minDelegatedStake;

const validators = {
Expand Down
10 changes: 5 additions & 5 deletions src/components/modals/StartGatewayModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DEFAULT_FORM_STATE = {
const DEFAULT_PROTOCOL = 'https' as const;
const DEFAULT_PORT = 443;
const DEFAULT_DELEGATED_STAKING_REWARD_SHARE_RATIO = 0;
const DEFAULT_DELEGATED_STAKING = 100;
const DEFAULT_DELEGATED_STAKING = 500;

const StartGatewayModal = ({ onClose }: { onClose: () => void }) => {
const queryClient = useQueryClient();
Expand Down Expand Up @@ -90,8 +90,8 @@ const StartGatewayModal = ({ onClose }: { onClose: () => void }) => {
{
formPropertyName: 'stake',
label: `*Stake (${IO_LABEL}):`,
placeholder: `Minimum 10000 ${IO_LABEL}`,
validateProperty: validateIOAmount('Stake', 10000),
placeholder: `Minimum 50000 ${IO_LABEL}`,
validateProperty: validateIOAmount('Stake', 50000),
},
{
formPropertyName: 'allowDelegatedStaking',
Expand All @@ -102,9 +102,9 @@ const StartGatewayModal = ({ onClose }: { onClose: () => void }) => {
label: `Minimum Delegated Stake (${IO_LABEL}):`,
enabled: allowDelegatedStaking,
placeholder: allowDelegatedStaking
? `Minimum 100 ${IO_LABEL}`
? `Minimum 500 ${IO_LABEL}`
: 'Enable Delegated Staking to set this value.',
validateProperty: validateIOAmount('Minimum Delegated Stake', 100),
validateProperty: validateIOAmount('Minimum Delegated Stake', 500),
},
{
formPropertyName: 'delegatedStakingShareRatio',
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Gateway/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ const Gateway = () => {
formPropertyName: 'stake',
label: `Gateway Stake (${IO_LABEL}):`,
rowType: RowType.BOTTOM,
placeholder: `Minimum 10000 ${IO_LABEL}`,
validateProperty: validateIOAmount('Stake', 10000, maxStake),
placeholder: `Minimum 50000 ${IO_LABEL}`,
validateProperty: validateIOAmount('Stake', 50000, maxStake),
},
{
formPropertyName: 'status',
Expand Down Expand Up @@ -236,9 +236,9 @@ const Gateway = () => {
rowType: RowType.LAST,
enabled: delegatedStakingEnabled,
placeholder: delegatedStakingEnabled
? `Minimum 100 ${IO_LABEL}`
? `Minimum 500 ${IO_LABEL}`
: 'Enable Delegated Staking to set this value.',
validateProperty: validateIOAmount('Minumum Delegated Stake ', 100),
validateProperty: validateIOAmount('Minumum Delegated Stake ', 500),
},
];

Expand Down

0 comments on commit 0658f46

Please sign in to comment.