fix to stake form

This commit is contained in:
Finn 2024-04-12 23:20:18 +01:00
parent 73864ee27b
commit b1d9d5139a
1 changed files with 3 additions and 3 deletions

View File

@ -186,10 +186,10 @@ function StakeForm({ token: selectedToken, clientContext }: StakeFormProps) {
} else {
const priceDifference = (stakePrice - borrowPrice) / borrowPrice
const borrowAmount =
(1 + priceDifference) * Number(inputAmount) * Math.min(leverage - 1, 1)
(1 + priceDifference) * Number(inputAmount) * (leverage - 1)
return borrowAmount
}
}, [leverage, borrowBank, stakeBank, inputAmount])
const availableVaultBalance = useMemo(() => {
@ -515,7 +515,7 @@ function StakeForm({ token: selectedToken, clientContext }: StakeFormProps) {
}
decimals={3}
/>{' '}
{borrowBank.name}
{'USDC'}
</p>
</div>
</div>