fix to stake form
This commit is contained in:
parent
73864ee27b
commit
b1d9d5139a
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue