Skip to content

Commit

Permalink
Merge pull request #176 from ar-io/develop
Browse files Browse the repository at this point in the history
Release to production
  • Loading branch information
kunstmusik authored Feb 20, 2025
2 parents a671631 + 4898600 commit 6e2cec1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.10.2] - 2025-02-20

### Changed

- Updated fee message on Redelegation modal

## [1.10.1] - 2025-02-20

### Changed
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.10.1",
"version": "1.10.2",
"type": "module",
"scripts": {
"build": "yarn clean && tsc --build tsconfig.build.json && NODE_OPTIONS=--max-old-space-size=32768 vite build",
Expand Down
30 changes: 10 additions & 20 deletions src/components/modals/ReviewRedelegateModal.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
import { AoGatewayWithAddress, ARIOToken } from '@ar.io/sdk/web';
import {
log,
REDELEGATION_FEE_TOOLTIP_TEXT,
WRITE_OPTIONS,
} from '@src/constants';
import { log, WRITE_OPTIONS } from '@src/constants';
import useRedelegationFee from '@src/hooks/useRedelegationFee';
import { useGlobalState } from '@src/store';
import { AoAddress } from '@src/types';
import { formatAddress, formatWithCommas } from '@src/utils';
import { showErrorToast } from '@src/utils/toast';
import { useQueryClient } from '@tanstack/react-query';
import { InfoIcon } from 'lucide-react';
import { useState } from 'react';
import Button, { ButtonType } from '../Button';
import { LinkArrowIcon } from '../icons';
import LabelValueRow from '../LabelValueRow';
import Tooltip from '../Tooltip';
import BaseModal from './BaseModal';
import BlockingMessageModal from './BlockingMessageModal';
import SuccessModal from './SuccessModal';
import WithdrawWarning from './WithdrawWarning';

type ReviewRedelegateModalProps = {
sourceGateway: AoGatewayWithAddress;
Expand Down Expand Up @@ -165,17 +158,6 @@ const ReviewRedelegateModal = ({
<LabelValueRow
label="Fee:"
value={`${fee > 0 && fee} ${redelegationFee ? `(-${redelegationFee.redelegationFeeRate}%)` : ''} ${ticker}`}
rightIcon={
<Tooltip
message={
<div>
<p>{REDELEGATION_FEE_TOOLTIP_TEXT}</p>
</div>
}
>
<InfoIcon className="size-[1.125rem]" />
</Tooltip>
}
/>
)}

Expand All @@ -191,7 +173,15 @@ const ReviewRedelegateModal = ({
</div>

<div className="px-8 pb-6 text-left">
<WithdrawWarning />
<div>
<div className="flex gap-3 rounded bg-containerL3 p-4">
<div className="grow text-[0.8125rem] text-mid">
Users get one free redelegation every 7 days. Fees then
increase incrementally (10%, 20%, ... up to 60%) and stay at
60% until resetting after 7 days of no action.
</div>
</div>
</div>
</div>

<div className="flex size-full flex-col bg-containerL0 px-8 pb-2 pt-6">
Expand Down

0 comments on commit 6e2cec1

Please # to comment.