-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: Task/ExecuteBorrow
Are you sure you want to change the base?
Conversation
)) as IncentivePool__factory; | ||
|
||
newIncentivePool = await incentivePoolFactory.deploy( | ||
deployer.address, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Simple test cases