-
Notifications
You must be signed in to change notification settings - Fork 93
Add Morpho Aave strategy #1207
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
Add Morpho Aave strategy #1207
Conversation
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.
Great job @shahthepro. Seems solid!
I got 1 small consideration whether we should refactor the supportsAsset, _getCTokenFor into something compound and avve strategies might use. Since it seems they currently differ only in the names of the contracts.
Otherwise looks solid 💪
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.
Left some comments, but LGTM overall nice work! 🎉
| import { StableMath } from "../utils/StableMath.sol"; | ||
| import "../utils/Helpers.sol"; |
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.
I don't think it's used
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.
@shahthepro. We should go ahead and remove this line if it's not used. Will keep the codebase clean.
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.
Sure, will remove and redeploy the contracts today
* Deploy Morpho Aave strategy * Update deployment files * prettify
Adds Morpho Aave strategy. Morpho Aave doesn't distribute any reward tokens, so the rewards related functions don't do anything right now.
The deploy script uses Aave v2 tokens and have tested it on fork.
Uses migration ID 046 instead of 045 (since that's used in #1205 for LUSD).
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: