We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a4e886 commit b20f7aaCopy full SHA for b20f7aa
packages/frontend/src/state/lp/apis.ts
packages/frontend/src/state/lp/hooks.ts
@@ -64,6 +64,7 @@ export const useGetDepositAmounts = () => {
64
const vaultShortAmt = fromTokenAmount(vaultBefore.shortAmount, OSQUEETH_DECIMALS)
65
const vaultCollateralAmt = fromTokenAmount(vaultBefore.collateralAmount, WETH_DECIMALS)
66
67
+ // Calculate collateralToMint
68
const oSQTHInETH = mintWSqueethAmount.times(ethIndexPrice.div(INDEX_SCALE)).times(normFactor)
69
const collateralToMint = new BigNumber(collatRatio)
70
.times(vaultShortAmt.plus(mintWSqueethAmount).times(normFactor).times(ethIndexPrice).div(INDEX_SCALE))
0 commit comments