From a2717f0853ca6e422800188f9bdcb22799e092dc Mon Sep 17 00:00:00 2001 From: cryptoDev222 Date: Tue, 7 Sep 2021 14:35:46 -0500 Subject: [PATCH] refactor: minor fixes --- hardhat.config.js | 2 +- test/uniswapStake/uniswapStake.test.js | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index 3320c333..44456a48 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -57,7 +57,7 @@ module.exports = { hardhat: { forking: { url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, - blockNumber: 13005785, + blockNumber: 13180514, }, blockGasLimit: 12000000, gasPrice: parseInt(utils.parseUnits("300", "gwei")) diff --git a/test/uniswapStake/uniswapStake.test.js b/test/uniswapStake/uniswapStake.test.js index 67b523a0..b11a5927 100644 --- a/test/uniswapStake/uniswapStake.test.js +++ b/test/uniswapStake/uniswapStake.test.js @@ -170,11 +170,10 @@ describe("UniswapV3", function () { let event = await castEvent let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address) - console.log("Balane", balance) + console.log("Balance", balance) }); it("Should create incentive successfully", async function () { - console.log("TokenIds", tokenIds[1]); const spells = [ { connector: connectorStaker, @@ -265,7 +264,7 @@ describe("UniswapV3", function () { let receipt = await tx.wait() let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address) - console.log("Balane", balance) + console.log("Balance", balance) }); it("Should claim rewards successfully", async function () { @@ -274,7 +273,7 @@ describe("UniswapV3", function () { connector: connectorStaker, method: "claimRewards", args: [ - DAI_ADDR, + ethAddress, dsaWallet0.address, "1000", ], @@ -298,9 +297,9 @@ describe("UniswapV3", function () { connector: connectorStaker, method: "unstake", args: [ - DAI_ADDR, - startTime, - endTime, + ethAddress, + startTime[0], + endTime[0], dsaWallet0.address, tokenIds[0] ], @@ -318,8 +317,8 @@ describe("UniswapV3", function () { method: "unstake", args: [ INST_ADDR, - startTime, - endTime, + startTime[1], + endTime[1], dsaWallet0.address, tokenIds[1] ], @@ -338,7 +337,7 @@ describe("UniswapV3", function () { let receipt = await tx.wait() let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address) - console.log("Balane", balance) + console.log("Balance", balance) }); }) })