Browse Source

Merge #555

555: Remove liquidation price from main screen. r=bonomat a=bonomat

The current shown liquidation price only makes sense if the trader goes long. If she were to go short, the liquidation price should be different. With the current setup we can't know whether the trader wants to go long or short, hence we can't show the correct liquidation price

resolve #547 

Co-authored-by: bonomat <philipp@hoenisch.at>
new-http-api
bors[bot] 3 years ago
committed by GitHub
parent
commit
5078ba588a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      taker-frontend/src/components/Trade.tsx

21
taker-frontend/src/components/Trade.tsx

@ -146,9 +146,6 @@ const Trade = (
<GridItem colSpan={1}>
<Margin margin={margin} />
</GridItem>
<GridItem colSpan={1}>
<Liquidation value={liquidationPrice} />
</GridItem>
<GridItem colSpan={1}>
<Center>
<ButtonGroup
@ -286,21 +283,3 @@ function Margin({ margin }: MarginProps) {
</VStack>
);
}
interface LiquidationProps {
value?: string;
}
function Liquidation({ value }: LiquidationProps) {
return (
<VStack>
<HStack>
<Text as={"b"}>Liquidation price:</Text>
<Text>{value || "0.0"}</Text>
</HStack>
<Text fontSize={"sm"} color={"darkgrey"}>
You will lose your collateral if the price drops below this value
</Text>
</VStack>
);
}

Loading…
Cancel
Save