From 83be819f64a6f5ac1b1939c766001cd4641b24ee Mon Sep 17 00:00:00 2001 From: BkChoy Date: Tue, 29 Aug 2023 11:49:55 -0400 Subject: [PATCH] fixed setup-test-env --- scripts/test/setup-test-env.ts | 50 ++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/scripts/test/setup-test-env.ts b/scripts/test/setup-test-env.ts index 07e4366e..19a61996 100644 --- a/scripts/test/setup-test-env.ts +++ b/scripts/test/setup-test-env.ts @@ -87,6 +87,8 @@ async function main() { // LINK Staking + tx = await LINK_StakingPool.updateFee(0, ethers.constants.AddressZero, 0) + await tx.wait() const strategyMockLINK = (await deployUpgradeable('StrategyMock', [ linkToken.address, LINK_StakingPool.address, @@ -298,30 +300,6 @@ async function main() { ) await tx.wait() - // Account 7 - - tx = await linkToken - .connect(signers[7]) - .transferAndCall( - LINK_PriorityPool.address, - toEther(100), - ethers.utils.defaultAbiCoder.encode(['bool'], [true]) - ) - await tx.wait() - - // Account 8 - - tx = await LINK_StakingPool.transfer(accounts[8], toEther(100)) - await tx.wait() - tx = await linkToken - .connect(signers[8]) - .transferAndCall( - LINK_PriorityPool.address, - toEther(5000), - ethers.utils.defaultAbiCoder.encode(['bool'], [true]) - ) - await tx.wait() - // Reward Distributions await tx.wait() @@ -365,6 +343,30 @@ async function main() { ) await tx.wait() + // Account 7 + + tx = await linkToken + .connect(signers[7]) + .transferAndCall( + LINK_PriorityPool.address, + toEther(100), + ethers.utils.defaultAbiCoder.encode(['bool'], [true]) + ) + await tx.wait() + + // Account 8 + + tx = await LINK_StakingPool.transfer(accounts[8], toEther(100)) + await tx.wait() + tx = await linkToken + .connect(signers[8]) + .transferAndCall( + LINK_PriorityPool.address, + toEther(5000), + ethers.utils.defaultAbiCoder.encode(['bool'], [true]) + ) + await tx.wait() + tx = await strategyMockLINK.setMaxDeposits(toEther(6200)) await tx.wait() tx = await LINK_PriorityPool.depositQueuedTokens()