Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrjs committed Nov 10, 2023
1 parent dbe613c commit 90c5810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/useLeverageMax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 90c5810

Please sign in to comment.