reduce margin in trade form; remove leverage text from slider
This commit is contained in:
parent
f08e323e6c
commit
d9019b961a
|
@ -142,12 +142,12 @@ export default function LeverageSlider({
|
|||
|
||||
const closeDepositString =
|
||||
percentToClose(value, roundedDeposits) > 100
|
||||
? '100% Close Position + Leverage'
|
||||
? '100% Close Position'
|
||||
: `${percentToClose(value, roundedDeposits).toFixed(2)}% Close Position`
|
||||
|
||||
const closeBorrowString =
|
||||
percentToClose(value, roundedBorrows) > 100
|
||||
? '100% Close Position + Leverage'
|
||||
? '100% Close Position'
|
||||
: `${percentToClose(value, roundedBorrows).toFixed(2)}% Close Position`
|
||||
|
||||
const setMaxLeverage = function () {
|
||||
|
@ -156,7 +156,7 @@ export default function LeverageSlider({
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="flex mt-4 items-center pl-1 pr-1">
|
||||
<div className="flex mt-2 items-center pl-1 pr-1">
|
||||
<StyledSlider
|
||||
min={0}
|
||||
max={max}
|
||||
|
@ -174,11 +174,11 @@ export default function LeverageSlider({
|
|||
</button>
|
||||
</div>
|
||||
{side === 'sell' ? (
|
||||
<div className="text-th-fgd-4 text-xs tracking-normal mt-2.5">
|
||||
<div className="text-th-fgd-4 text-xs tracking-normal mt-1">
|
||||
<span>{roundedDeposits > 0 ? closeDepositString : null}</span>
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-th-fgd-4 text-xs tracking-normal mt-2.5">
|
||||
<div className="text-th-fgd-4 text-xs tracking-normal mt-1">
|
||||
<span>{roundedBorrows > 0 ? closeBorrowString : null}</span>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
@ -994,8 +994,8 @@
|
|||
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
||||
|
||||
"@blockworks-foundation/mango-client@git+https://github.com/blockworks-foundation/mango-client-v3.git":
|
||||
version "3.0.9"
|
||||
resolved "git+https://github.com/blockworks-foundation/mango-client-v3.git#db7de8ad82ff9fccff744c70b78c644a193b17b7"
|
||||
version "3.0.10"
|
||||
resolved "git+https://github.com/blockworks-foundation/mango-client-v3.git#2302e0347f7543b7b95725dabfa49d9c71272530"
|
||||
dependencies:
|
||||
"@project-serum/serum" "0.13.55"
|
||||
"@project-serum/sol-wallet-adapter" "^0.2.0"
|
||||
|
|
Loading…
Reference in New Issue