Skip to content

Commit b20f7aa

Browse files
committed
refactor: making PR ready for review
1 parent 1a4e886 commit b20f7aa

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

packages/frontend/src/state/lp/apis.ts

-14
This file was deleted.

packages/frontend/src/state/lp/hooks.ts

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const useGetDepositAmounts = () => {
6464
const vaultShortAmt = fromTokenAmount(vaultBefore.shortAmount, OSQUEETH_DECIMALS)
6565
const vaultCollateralAmt = fromTokenAmount(vaultBefore.collateralAmount, WETH_DECIMALS)
6666

67+
// Calculate collateralToMint
6768
const oSQTHInETH = mintWSqueethAmount.times(ethIndexPrice.div(INDEX_SCALE)).times(normFactor)
6869
const collateralToMint = new BigNumber(collatRatio)
6970
.times(vaultShortAmt.plus(mintWSqueethAmount).times(normFactor).times(ethIndexPrice).div(INDEX_SCALE))

0 commit comments

Comments
 (0)