```\nit("Updated accRate is incorrect", async () => {\n        const amountWBTC = ethers.utils.parseUnits("0.05", 8); //token0\n        let deadline = (await time.latest()) + 60;\n        const minLeverageDesired = 50;\n        const maxCollateralWBTC = amountWBTC.div(minLeverageDesired);\n\n        const loans = [\n            {\n                liquidity: nftpos[3].liquidity,\n                tokenId: nftpos[3].tokenId,\n            },\n            {\n                liquidity: nftpos[5].liquidity,\n                tokenId: nftpos[5].tokenId,\n            },\n        ];\n\n        const swapParams: ApproveSwapAndPay.SwapParamsStruct = {\n            swapTarget: constants.AddressZero,\n            swapAmountInDataIndex: 0,\n            maxGasForCall: 0,\n            swapData: swapData,\n        };\n\n        const borrowParams = {\n            internalSwapPoolfee: 500,\n            saleToken: WETH_ADDRESS,\n            holdToken: WBTC_ADDRESS,\n            minHoldTokenOut: amountWBTC,\n            maxCollateral: maxCollateralWBTC,\n            externalSwap: swapParams,\n            loans: loans,\n        };\n\n        //borrow tokens\n        await borrowingManager.connect(bob).borrow(borrowParams, deadline);\n\n        await time.increase(3600 * 72); //72h so 2 days of missing collateral\n        deadline = (await time.latest()) + 60;\n\n        const borrowingKey = await borrowingManager.userBorrowingKeys(bob.address, 0);\n\n        let repayParams = {\n            isEmergency: true,\n            internalSwapPoolfee: 0,\n            externalSwap: swapParams,\n            borrowingKey: borrowingKey,\n            swapSlippageBP1000: 0,\n        };\n\n        const oldBorrowingInfo = await borrowingManager.borrowingsInfo(borrowingKey);\n        const dailyRateCollateral = await borrowingManager.checkDailyRateCollateral(borrowingKey);\n\n        //Alice emergency repay but it reverts with 2 days of collateral missing\n        await expect(borrowingManager.connect(alice).repay(repayParams, deadline)).to.be.revertedWithPanic();\n    });\n```\n