Skip to content

Commit

Permalink
fix: text info for puts
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdt committed Sep 25, 2021
1 parent 2a7434b commit 9102a76
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/OptionTextInfo/OptionTextInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ const OptionTextInfo: React.FC<OptionTextInfoProps> = ({
for{' '}
<StyledData>
{formatParsedAmount(
isPut
? parsedAmount
.mul(underlying.raw.toString())
.div(parseEther('1'))
: parsedAmount.mul(parseEther('1')).div(strike.raw.toString())
parsedAmount.mul(parseEther('1')).div(strike.raw.toString())
)}{' '}
{short.token.symbol === 'WETH' ? 'ETH' : short.token.symbol}
</StyledData>
Expand Down

0 comments on commit 9102a76

Please sign in to comment.