update
This commit is contained in:
parent
dbe613c48b
commit
90c5810f17
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue