Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PE-7228: update-reward-share-ratio-edit-field-to-cap-at-95 #119

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.5.0] - 2024-12-04

### Added

* Profile button shows user's ArNS Primary Name (if available) or wallet address when logged in
* Download buttons added to Reports page and individual Report page
* Observers: Added epoch selector to view prescribed observers for previous epochs
* Gateway Details Page
Expand All @@ -20,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Staking and Withdrawal modals updated to show Review page for user to confirm operation before processing
* Withdrawal Modal: Added option for Standard and Expedited Withdrawal
* Modal dialog styles refreshed
* Reward Share Ratio capped to 95% when joining network and updating gateway settings

## [1.4.3] - 2024-11-27

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.3",
"version": "1.5.0",
"type": "module",
"scripts": {
"build": "yarn clean && tsc --build tsconfig.build.json && NODE_OPTIONS=--max-old-space-size=32768 vite build",
Expand Down
4 changes: 2 additions & 2 deletions src/components/modals/StartGatewayModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ const StartGatewayModal = ({ onClose }: { onClose: () => void }) => {
label: 'Reward Share Ratio:',
enabled: allowDelegatedStaking,
placeholder: allowDelegatedStaking
? 'Enter value 0-100'
? 'Enter value 0-95'
: 'Enable Delegated Staking to set this value.',
validateProperty: validateNumberRange('Reward Share Ratio', 0, 100),
validateProperty: validateNumberRange('Reward Share Ratio', 0, 95),
},
{
formPropertyName: 'note',
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useGateway = ({
const arIOReadSDK = useGlobalState((state) => state.arIOReadSDK);

const queryResults = useQuery({
queryKey: ['gateway', arIOReadSDK, ownerWalletAddress || ''],
queryKey: ['gateway', ownerWalletAddress || '', arIOReadSDK],
queryFn: () => {
if (ownerWalletAddress === undefined) {
return Promise.reject(
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Gateway/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ const Gateway = () => {
rowType: RowType.TOP,
enabled: delegatedStakingEnabled,
placeholder: delegatedStakingEnabled
? 'Enter value 0-100'
? 'Enter value 0-95'
: 'Enable Delegated Staking to set this value.',
validateProperty: validateNumberRange('Reward Share Ratio', 0, 100),
validateProperty: validateNumberRange('Reward Share Ratio', 0, 95),
},
{
formPropertyName: 'minDelegatedStake',
Expand Down
Loading