Skip to content

Commit

Permalink
v7.4.18
Browse files Browse the repository at this point in the history
v7.4.18
  • Loading branch information
platschi authored Aug 3, 2023
2 parents be63224 + 530dbfd commit dcdef7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ const PositionsTab = () => {
{row.takeProfit === undefined ? (
<Body>{NO_VALUE}</Body>
) : (
<Currency.Price price={row.takeProfit} />
<Currency.Price price={row.takeProfit.targetPrice} />
)}
<Body>/</Body>
{row.stopLoss === undefined ? (
<Body color="secondary">{NO_VALUE}</Body>
) : (
<Currency.Price price={row.stopLoss} colorType="secondary" />
<Currency.Price price={row.stopLoss.targetPrice} colorType="secondary" />
)}
{accountType === FuturesMarginType.SMART_MARGIN && (
<>
Expand Down
9 changes: 4 additions & 5 deletions packages/app/src/state/futures/smartMargin/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,12 +812,11 @@ export const selectClosePositionPreview = createSelector(
)

export const selectSmartMarginLeverage = createSelector(
selectSelectedSmartMarginPosition,
selectTotalAvailableMargin,
selectSmartMarginTradeInputs,
(position, { susdSize }) => {
const remainingMargin = position?.remainingMargin
if (!remainingMargin || remainingMargin.eq(0) || !susdSize) return wei(0)
return susdSize.div(remainingMargin)
(availableMargin, { susdSize }) => {
if (!availableMargin || availableMargin.eq(0) || !susdSize) return wei(0)
return susdSize.div(availableMargin)
}
)

Expand Down

1 comment on commit dcdef7c

@vercel
Copy link

@vercel vercel bot commented on dcdef7c Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kwenta – ./packages/app

kwenta-kwenta.vercel.app
kwenta.io
kwenta-git-main-kwenta.vercel.app

Please sign in to comment.