This commit is contained in:
tjs 2023-11-10 11:09:15 -05:00
parent dbe613c48b
commit 90c5810f17
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ export default function useLeverageMax(selectedToken: string) {
1 -
conversionRate *
floorToDecimal(stakeInitAssetWeight.toNumber(), 2).toNumber()
const max = floorToDecimal(1 + x.toNumber() / y, 2).toNumber()
const max = floorToDecimal(1 + x.toNumber() / y, 1).toNumber()
return max
}, [stakeBank, borrowBank])