Skip to content

Commit b161012

Browse files
authored
fix(rewards): decimals issues (#201)
1 parent 450131e commit b161012

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

liquidity/ui/src/components/Rewards/Rewards.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export const Rewards = ({
112112
address={item.distributorAddress}
113113
readOnly={readOnly}
114114
total={item.total}
115-
decimals={item.decimals}
116115
/>
117116
))}
118117
</Tbody>

liquidity/ui/src/components/Rewards/RewardsRow.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ interface RewardsRowInterface {
1818
address: string;
1919
readOnly: boolean;
2020
total: number;
21-
decimals: number;
2221
}
2322

2423
export const RewardsRow = ({
@@ -31,7 +30,6 @@ export const RewardsRow = ({
3130
address,
3231
readOnly,
3332
total,
34-
decimals,
3533
}: RewardsRowInterface) => {
3634
const { accountId, collateralSymbol, poolId } = useParams();
3735

@@ -111,13 +109,13 @@ export const RewardsRow = ({
111109
<Amount value={wei(claimableAmount)} />
112110
{` ${symbol}`}
113111
</Text>
114-
{lifetimeClaimed > 0 ? (
112+
{lifetimeClaimed > 0 && (
115113
<Text color="gray.500" fontSize="12px" fontFamily="heading" lineHeight="16px">
116114
<Tooltip label="Total claimed over lifetime">Lifetime: &nbsp;</Tooltip>
117-
<Amount value={wei(lifetimeClaimed.toString(), decimals, true)} />
115+
<Amount value={wei(lifetimeClaimed.toString(), 18, true)} />
118116
{symbol}
119117
</Text>
120-
) : null}
118+
)}
121119
</Fade>
122120
</Td>
123121
{!readOnly && (

0 commit comments

Comments
 (0)