Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test/update incentive pool #11

Open
wants to merge 6 commits into
base: Task/ExecuteBorrow
Choose a base branch
from

Conversation

jaeboklee-modo
Copy link
Member

  • Add update test cases
    Simple test cases

)) as IncentivePool__factory;

newIncentivePool = await incentivePoolFactory.deploy(
deployer.address,
Copy link
Member 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
Member 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
Member 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.

2 participants