Skip to content

Commit

Permalink
Merge branch 'develop' into PE-7101-quick-wins-v-1-5-0
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik authored Nov 27, 2024
2 parents ae6172a + b3813f8 commit 32bf6a3
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Withdrawal Modal: Added option for Standard and Expedited Withdrawal
* Modal dialog styles refreshed

## [1.4.3] - 2024-11-27

### Updated

* Settings updated for staking:
* Staking withdrawals are now 90 days
* Gateway Operator Stake minimum is now 10,000 IO
* Minimum Delegated Staking amount for gateway configuration is now 10 IO

## [1.4.2] - 2024-11-20

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ar-io/network-portal",
"private": true,
"version": "1.4.2",
"version": "1.4.3",
"type": "module",
"scripts": {
"build": "yarn clean && tsc --build tsconfig.build.json && NODE_OPTIONS=--max-old-space-size=32768 vite build",
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/StakingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const StakingModal = ({

const minDelegatedStake = gateway
? new mIOToken(gateway?.settings.minDelegatedStake).toIO().valueOf()
: 500;
: 10;
const minRequiredStakeToAdd = currentStake > 0 ? 1 : minDelegatedStake;

const withdrawalFee =
Expand Down
8 changes: 4 additions & 4 deletions src/components/modals/StartGatewayModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const StartGatewayModal = ({ onClose }: { onClose: () => void }) => {
{
formPropertyName: 'stake',
label: `*Stake (${ticker}):`,
placeholder: `Minimum 50000 ${ticker}`,
validateProperty: validateIOAmount('Stake', ticker, 50000),
placeholder: `Minimum 10000 ${ticker}`,
validateProperty: validateIOAmount('Stake', ticker, 10000),
},
{
formPropertyName: 'allowDelegatedStaking',
Expand All @@ -103,9 +103,9 @@ const StartGatewayModal = ({ onClose }: { onClose: () => void }) => {
label: `Minimum Delegated Stake (${ticker}):`,
enabled: allowDelegatedStaking,
placeholder: allowDelegatedStaking
? `Minimum 500 ${ticker}`
? `Minimum 10 ${ticker}`
: 'Enable Delegated Staking to set this value.',
validateProperty: validateIOAmount('Minimum Delegated Stake', ticker, 500),
validateProperty: validateIOAmount('Minimum Delegated Stake', ticker, 10),
},
{
formPropertyName: 'delegatedStakingShareRatio',
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/WithdrawWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const WithdrawWarning = () => {
<div className="flex gap-3 rounded bg-containerL3 p-4">
<WarningTriangleIcon width={40} height={20} />
<div className="grow text-[0.8125rem] text-high">
30 days is the standard withdrawal period. During this time
90 days is the standard withdrawal period. During this time
your tokens will be locked and will not be accruing rewards.
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useGateways.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const useGateways = () => {
});
cursor = pageResult.nextCursor;
} while (cursor !== undefined);

return gateways;
};

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 @@ -220,8 +220,8 @@ const Gateway = () => {
formPropertyName: 'stake',
label: `Gateway Stake (${ticker}):`,
rowType: RowType.BOTTOM,
placeholder: `Minimum 50000 ${ticker}`,
validateProperty: validateIOAmount('Stake', ticker, 50000, maxStake),
placeholder: `Minimum 10000 ${ticker}`,
validateProperty: validateIOAmount('Stake', ticker, 10000, maxStake),
},
{
formPropertyName: 'status',
Expand Down Expand Up @@ -267,12 +267,12 @@ const Gateway = () => {
rowType: RowType.LAST,
enabled: delegatedStakingEnabled,
placeholder: delegatedStakingEnabled
? `Minimum 500 ${ticker}`
? `Minimum 10 ${ticker}`
: 'Enable Delegated Staking to set this value.',
validateProperty: validateIOAmount(
'Minumum Delegated Stake',
ticker,
500,
10,
),
},
];
Expand Down

0 comments on commit 32bf6a3

Please sign in to comment.