diff --git a/components/EditLeverageForm.tsx b/components/EditLeverageForm.tsx index dc5de9d..ce4e4c2 100644 --- a/components/EditLeverageForm.tsx +++ b/components/EditLeverageForm.tsx @@ -164,7 +164,8 @@ function EditLeverageForm({ const stakePrice = stakeBank?.uiPrice if (!borrowPrice || !stakePrice || !Number(tokenMax.maxAmount)) return 0 const borrowAmount = - stakeBank?.uiPrice * Number(tokenMax.maxAmount) * (leverage - 1) + (stakeBank?.uiPrice * Number(tokenMax.maxAmount) * (leverage - 1)) / + borrowBank.uiPrice return borrowAmount }, [leverage, borrowBank, stakeBank, tokenMax]) @@ -180,7 +181,6 @@ function EditLeverageForm({ return available }, [borrowBank]) - //TODO fix for LSTS const changeInJLP = useMemo(() => { if (stakeBankAmount) { return Number( diff --git a/components/Positions.tsx b/components/Positions.tsx index a3868fe..ab10129 100644 --- a/components/Positions.tsx +++ b/components/Positions.tsx @@ -294,7 +294,7 @@ const PositionItem = ({ )} - {position.bank.name == 'JLP' ? ( + {position.bank.name == 'USDC' ? null : ( <>

Leverage

@@ -332,7 +332,7 @@ const PositionItem = ({ ) : null} */}
- ) : null} + )} {showEditLeverageModal ? (