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

fix: MET-1441 remove field ROS #1459

Merged
merged 1 commit into from
Jul 31, 2023
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
14 changes: 1 addition & 13 deletions src/components/DelegationDetail/DelegationDetailList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { parse, stringify } from "qs";
import { useHistory, useLocation } from "react-router-dom";

import { details } from "src/commons/routers";
import {
formatADAFull,
formatDateTimeLocal,
formatPercent,
getShortWallet,
numberWithCommas
} from "src/commons/utils/helper";
import { formatADAFull, formatDateTimeLocal, getShortWallet, numberWithCommas } from "src/commons/utils/helper";
import CopyButton from "src/components/commons/CopyButton";
import CustomTooltip from "src/components/commons/CustomTooltip";
import Table, { Column } from "src/components/commons/Table";
Expand Down Expand Up @@ -66,12 +60,6 @@ const DelegationEpochList = ({
minWidth: "120px",

render: (data) => <Box component={"span"}>{formatADAFull(data.fee)}</Box>
},
{
title: "ROS",
key: "ros",
minWidth: "120px",
render: (data) => formatPercent(data.ros ? data.ros / 100 : 0)
}
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ const DelegationDetailOverview: React.FC<IDelegationDetailOverview> = ({ data, l
value: `${toFixedBigNumber(data?.reward || 0, 2)}%`,
tooltip: "Last calculated gross return, as of the second last epoch"
},
{
title: "ROS",
value: formatPercent(data?.ros ? data?.ros / 100 : 0),
tooltip: "Gross average return during pool’s lifetime"
},
{
title: "Fixed Cost(A)",
value: formatADAFull(data?.cost),
Expand Down
12 changes: 1 addition & 11 deletions src/components/DelegationPool/DelegationList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box } from "@mui/material";
import { get } from "lodash";

import Table, { Column } from "src/components/commons/Table";
import { formatADAFull, formatPercent, getPageInfo, getShortWallet, toFixedBigNumber } from "src/commons/utils/helper";
import { formatADAFull, formatPercent, getPageInfo, getShortWallet } from "src/commons/utils/helper";
import { details } from "src/commons/routers";
import { HeaderSearchIcon } from "src/commons/resources";
import useFetchList from "src/commons/hooks/useFetchList";
Expand Down Expand Up @@ -116,16 +116,6 @@ const DelegationLists: React.FC = () => {
minWidth: "120px",
render: (r) => <RateWithIcon value={r.reward} multiple={1} />
},
{
title: (
<CustomTooltip title="Gross average return during pool’s lifetime">
<span>Lifetime ROS</span>
</CustomTooltip>
),
minWidth: "100px",
key: "lifetimeRos",
render: (r) => <Box component={"span"}>{toFixedBigNumber(r.lifetimeRos || 0, 2)}%</Box>
},
{
title: "Fixed Cost (A)",
key: "pu.fixedCost",
Expand Down
11 changes: 1 addition & 10 deletions src/components/Home/TopDelegationPools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { get } from "lodash";

import useFetch from "src/commons/hooks/useFetch";
import { details, routers } from "src/commons/routers";
import { formatADAFull, formatPercent, getShortWallet, toFixedBigNumber } from "src/commons/utils/helper";
import { formatADAFull, formatPercent, getShortWallet } from "src/commons/utils/helper";
import ViewAllButton from "src/components/commons/ViewAllButton";
import { Column } from "src/components/commons/Table";
import CustomTooltip from "src/components/commons/CustomTooltip";
Expand Down Expand Up @@ -82,15 +82,6 @@ const TopDelegationPools = () => {
title: "Blocks Lifetime",
key: "lifetimeBlock",
render: (r) => r.lifetimeBlock || 0
},
{
title: (
<CustomTooltip title="Gross average return during pool’s lifetime">
<span>Lifetime ROS</span>
</CustomTooltip>
),
key: "lifetimeRos",
render: (r) => `${toFixedBigNumber(r.lifetimeRos || 0, 2)}%`
}
];
return (
Expand Down
Loading