Skip to content

Commit

Permalink
feat: oeth withdrawal
Browse files Browse the repository at this point in the history
- round down for the expected claim amount displayed
  • Loading branch information
apexearth committed Aug 12, 2024
1 parent f6b797d commit 701531f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libs/defi/oeth/src/redeem/components/ClaimForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ export const ClaimForm = (props: StackProps) => {
{
amount: eq(selectedAmount, 0)
? ''
: ` ${format(selectedAmount, getFormatPrecision(selectedAmount))} ${tokens.mainnet.WETH.symbol}`,
: ` ${format(selectedAmount, {
digits: getFormatPrecision(selectedAmount),
decimalsRounding: 'ROUND_DOWN',
})} ${tokens.mainnet.WETH.symbol}`,
},
)
}
Expand Down Expand Up @@ -221,7 +224,10 @@ const ClaimRow = ({
color={request.claimable ? 'text.primary' : 'text.secondary'}
>
<Typography variant="body2" fontWeight="medium">
{format(amt, getFormatPrecision(amt))}
{format(amt, {
digits: getFormatPrecision(amt),
decimalsRounding: 'ROUND_DOWN',
})}
</Typography>
<Typography variant="caption1">
{tokens.mainnet.WETH.symbol}
Expand Down

0 comments on commit 701531f

Please sign in to comment.