Skip to content

Commit

Permalink
refactor: remove unused code in StakingContractSection
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Aug 16, 2024
1 parent 8fe5fa3 commit d9b29b3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button, Divider, Flex, Popover, theme, Typography } from 'antd';
import { Button, Flex, Popover, theme, Typography } from 'antd';
import { useMemo } from 'react';
import styled from 'styled-components';

import { DeploymentStatus } from '@/client';
import { CardSection } from '@/components/styled/CardSection';
Expand All @@ -26,30 +25,30 @@ import {
} from './alerts';
import { StakingContractTag } from './StakingContractTag';

const { Text } = Typography;
// const { Text } = Typography;

const { useToken } = theme;

const CustomDivider = styled(Divider)`
flex: auto;
width: max-content;
min-width: 0;
margin: 0;
`;

const ContractParameter = ({
label,
value,
}: {
label: string;
value: string;
}) => (
<Flex gap={16} align="center">
<Text type="secondary">{label}</Text>
<CustomDivider />
<Text className="font-weight-600">{value}</Text>
</Flex>
);
// const CustomDivider = styled(Divider)`
// flex: auto;
// width: max-content;
// min-width: 0;
// margin: 0;
// `;

// const ContractParameter = ({
// label,
// value,
// }: {
// label: string;
// value: string;
// }) => (
// <Flex gap={16} align="center">
// <Text type="secondary">{label}</Text>
// <CustomDivider />
// <Text className="font-weight-600">{value}</Text>
// </Flex>
// );

export const StakingContractSection = ({
stakingProgram,
Expand Down
2 changes: 0 additions & 2 deletions frontend/service/Autonolas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ const getAgentStakingRewardsInfo = async ({
].calculateStakingReward(serviceId),
serviceStakingTokenMechUsageContracts[stakingProgram].minStakingDeposit(),
serviceStakingTokenMechUsageContracts[stakingProgram].tsCheckpoint(),
serviceStakingTokenMechUsageContracts[stakingProgram].minStakingDuration(),
];

await gnosisMulticallProvider.init();
Expand All @@ -105,7 +104,6 @@ const getAgentStakingRewardsInfo = async ({
accruedStakingReward,
minStakingDeposit,
tsCheckpoint,
minStakingDuration,
] = multicallResponse;

/**
Expand Down

0 comments on commit d9b29b3

Please sign in to comment.