Skip to content

Commit

Permalink
variable vault id
Browse files Browse the repository at this point in the history
  • Loading branch information
Darya Kaviani authored and Darya Kaviani committed Aug 2, 2022
1 parent 8b91ab0 commit 27149c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/state/lp/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useOpenPositionDeposit = () => {
const getTwapSqueethPrice = useGetTwapSqueethPrice()
const getDebtAmount = useGetDebtAmount()
const openPositionDeposit = useAppCallback(
async (squeethToMint: BigNumber, lowerTickInput: number, upperTickInput: number, onTxConfirmed?: () => void) => {
async (squeethToMint: BigNumber, lowerTickInput: number, upperTickInput: number, vaultId: number, onTxConfirmed?: () => void) => {
if (!contract || !address) return null

const squeethPrice = await getTwapSqueethPrice()
Expand All @@ -43,7 +43,7 @@ export const useOpenPositionDeposit = () => {

const flashloanWMintDepositNftParams = {
wPowerPerpPool: squeethPool,
vaultId: 0,
vaultId: vaultId,
wPowerPerpAmount: mintWSqueethAmount.toFixed(0),
collateralToDeposit: collateralToMint.toFixed(0),
collateralToFlashloan: collateralToMint.toFixed(0),
Expand Down

0 comments on commit 27149c4

Please sign in to comment.