diff --git a/components/StakeForm.tsx b/components/StakeForm.tsx index e1549e6..bb48375 100644 --- a/components/StakeForm.tsx +++ b/components/StakeForm.tsx @@ -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'}