-
Notifications
You must be signed in to change notification settings - Fork 93
Deploy 47 - Morpho Aave strategy #1209
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
Conversation
|
Yes, I have to change |
Deployed contract matches🟥 [Edit: 🟩 Fixed] The proxy source code is not verified yet. 0xa97F983EEaa74B92a6475c71838D04238DDA394D Governance Proposalfrom world import *
v = governor.getActions(41)
[print(v[0][i],v[1][i],v[2][i],) for i in range(0, len(v)+1)]Smoke Testsfrom world import *
MORPHO_AAVE_STRAT = '0xa97f983eeaa74b92a6475c71838d04238dda394d'
sim_governor_execute(42)
# -----
before = vault_core.totalValue()
vault_admin.reallocate(MORPHO_COMP_STRAT, MORPHO_AAVE_STRAT, [USDC], [1e6 * 1e6], {'from': STRATEGIST})
after = vault_core.totalValue()
print("Profit In", c18(after-before))
vault_admin.reallocate(MORPHO_AAVE_STRAT, MORPHO_COMP_STRAT, [USDC], [1e6 * 1e6], {'from': STRATEGIST})
after2 = vault_core.totalValue()
print("Profit Almost Full Cycle", c18(after2-before))
vault_admin.withdrawAllFromStrategy(MORPHO_AAVE_STRAT, {'from': STRATEGIST})
after3 = vault_core.totalValue()
print("Profit Full Cycle", c18(after3-before)) |
DanielVF
left a comment
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.
Deploy process review complete, though we shouldn't merge until the underlying contract PR has been reviewed.
|
@DanielVF I had to redeploy the contracts due to a code change. We should also cancel the previous proposal 42, the new proposal ID is 43. Have updated the PR description with the new addresses and proposal ID. Would you mind reviewing them again? |
|
Both the original PR and this deploy one look good. I have:
this makes the fork environment identify the proposal and execute it: and run all the fork tests on top of that and they passed: Code verification MorphoAaveStrategy implementation contract deployed at 0xC72bda59E382be10bb5D71aBd01Ecc65aa16fD83 has the exact code as in our codebase. Governance proposal #43
|
sparrowDom
left a comment
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.
All checks out good job @shahthepro
* checkpoint * Revert dep on BaseCompoundStrategy * Update tests * prettier * Use migration ID 046 * lint * lint * Address review comments * Also, update `_checkBalance` method * Remove unused import * Update migration ID * Deploy 47 - Morpho Aave strategy (#1209) * Deploy Morpho Aave strategy * Update deployment files * prettify
|
✅ Second deploy looks good.
|

Related PR: #1207
Deployed contracts:
Governance Proposal ID: 42To be CancelledGovernance Proposal ID: 43
Note: Had to change
MAINNET_DEPLOYERin hardhat.config.js file to an address that I have access to before I could run the deployment. Since the governance is transferred anyway, I believe the deployer address should have no significance.If you made a contract change, make sure to complete the checklist below before merging it in master.
Refer to our documentation for more details about contract security best practices.
Contract change checklist: