Skip to content

Commit

Permalink
Merge pull request #37 from stakedotlink/fix-setup-test-env
Browse files Browse the repository at this point in the history
Fixed setup test env
  • Loading branch information
BkChoy authored Aug 29, 2023
2 parents bdac6cf + 83be819 commit dc86117
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions scripts/test/setup-test-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit dc86117

Please sign in to comment.