update
This commit is contained in:
parent
a4e7e2b293
commit
33d2b96001
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue