mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
refactor: minor fixes
This commit is contained in:
parent
1252c0f427
commit
a2717f0853
|
@ -57,7 +57,7 @@ module.exports = {
|
||||||
hardhat: {
|
hardhat: {
|
||||||
forking: {
|
forking: {
|
||||||
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
||||||
blockNumber: 13005785,
|
blockNumber: 13180514,
|
||||||
},
|
},
|
||||||
blockGasLimit: 12000000,
|
blockGasLimit: 12000000,
|
||||||
gasPrice: parseInt(utils.parseUnits("300", "gwei"))
|
gasPrice: parseInt(utils.parseUnits("300", "gwei"))
|
||||||
|
|
|
@ -170,11 +170,10 @@ describe("UniswapV3", function () {
|
||||||
let event = await castEvent
|
let event = await castEvent
|
||||||
|
|
||||||
let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address)
|
let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address)
|
||||||
console.log("Balane", balance)
|
console.log("Balance", balance)
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Should create incentive successfully", async function () {
|
it("Should create incentive successfully", async function () {
|
||||||
console.log("TokenIds", tokenIds[1]);
|
|
||||||
const spells = [
|
const spells = [
|
||||||
{
|
{
|
||||||
connector: connectorStaker,
|
connector: connectorStaker,
|
||||||
|
@ -265,7 +264,7 @@ describe("UniswapV3", function () {
|
||||||
let receipt = await tx.wait()
|
let receipt = await tx.wait()
|
||||||
|
|
||||||
let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address)
|
let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address)
|
||||||
console.log("Balane", balance)
|
console.log("Balance", balance)
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Should claim rewards successfully", async function () {
|
it("Should claim rewards successfully", async function () {
|
||||||
|
@ -274,7 +273,7 @@ describe("UniswapV3", function () {
|
||||||
connector: connectorStaker,
|
connector: connectorStaker,
|
||||||
method: "claimRewards",
|
method: "claimRewards",
|
||||||
args: [
|
args: [
|
||||||
DAI_ADDR,
|
ethAddress,
|
||||||
dsaWallet0.address,
|
dsaWallet0.address,
|
||||||
"1000",
|
"1000",
|
||||||
],
|
],
|
||||||
|
@ -298,9 +297,9 @@ describe("UniswapV3", function () {
|
||||||
connector: connectorStaker,
|
connector: connectorStaker,
|
||||||
method: "unstake",
|
method: "unstake",
|
||||||
args: [
|
args: [
|
||||||
DAI_ADDR,
|
ethAddress,
|
||||||
startTime,
|
startTime[0],
|
||||||
endTime,
|
endTime[0],
|
||||||
dsaWallet0.address,
|
dsaWallet0.address,
|
||||||
tokenIds[0]
|
tokenIds[0]
|
||||||
],
|
],
|
||||||
|
@ -318,8 +317,8 @@ describe("UniswapV3", function () {
|
||||||
method: "unstake",
|
method: "unstake",
|
||||||
args: [
|
args: [
|
||||||
INST_ADDR,
|
INST_ADDR,
|
||||||
startTime,
|
startTime[1],
|
||||||
endTime,
|
endTime[1],
|
||||||
dsaWallet0.address,
|
dsaWallet0.address,
|
||||||
tokenIds[1]
|
tokenIds[1]
|
||||||
],
|
],
|
||||||
|
@ -338,7 +337,7 @@ describe("UniswapV3", function () {
|
||||||
let receipt = await tx.wait()
|
let receipt = await tx.wait()
|
||||||
|
|
||||||
let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address)
|
let balance = await nftManager.connect(wallet0).balanceOf(dsaWallet0.address)
|
||||||
console.log("Balane", balance)
|
console.log("Balance", balance)
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user