This commit is contained in:
tjs 2023-10-11 15:46:26 -04:00
parent a4e7e2b293
commit 33d2b96001
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default function useLeverageMax(selectedToken: string) {
}, [group])
const leverageMax = useMemo(() => {
if (!stakeBank || !borrowBank) return 1
if (!stakeBank || !borrowBank) return 0
const borrowInitLiabWeight = borrowBank.scaledInitLiabWeight(
borrowBank.price,
)