Skip to content

Test/update incentive pool#11

Open
jaeboklee-modo wants to merge 6 commits intoTask/ExecuteBorrowfrom
Test/update-incentivePool
Open

Test/update incentive pool#11
jaeboklee-modo wants to merge 6 commits intoTask/ExecuteBorrowfrom
Test/update-incentivePool

Conversation

@jaeboklee-modo
Copy link
Contributor

  • Add update test cases
    Simple test cases

)) as IncentivePool__factory;

newIncentivePool = await incentivePoolFactory.deploy(
deployer.address,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donguks
When deploying new incentivePool, the moneyPool address in constructor argument should be set to the EOA account, like deployer

.connect(account0)
.deposit(elyfiContracts.underlyingAsset.address, account0.address, amount);

await elyfiContracts.moneyPool
Copy link
Contributor Author

@jaeboklee-modo jaeboklee-modo Jan 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donguks
After initialize, execute updateIncentivePool in moneyPool contract to update new incentivePool. Args should be like below.

await elyfiContracts.moneyPool
.connect(deployer)
.updateIncentivePool(elyfiContracts.underlyingAsset.address, newIncentivePool.address);
const tx = await newIncentivePool
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donguks
After deploying, execute initializeIncentivePool in incentivePool contract to initialize pool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant