-
Notifications
You must be signed in to change notification settings - Fork 106
Aave V2 Library and Fixture #112
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
* Add deployment utils for AaveV2 Library and mock contract
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.
Looks pretty solid to me. Made some usability comments in the fixture. Also make sure to add parameter lists and return values to your javadoc comments
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.
Overall pretty close. Assuming we're changing all the public get calldata functions to internal functions to save gas as we discussed in DMs
* Initialize weth and dai reserves in initialize() function * Improve comments
All cost approximately the same amount of gas. Hence, we can stick to the current version, as it is comparatively cheaper to deploy than the others. |
* Move Aave V1 ABIs to external/abi/aave/v1 subfolder * Move Aave V1 contracts to external/contracts/aave/v1 subfolder * Remove unnecessary diff * Add Aave V2 ABIs and contracts * Add interfaces to interfaces/external/aave-v2 * Add AaveV2 library contract * Add AaveV2 Mock contract * Add deployment utils for AaveV2 Library and mock contract * Add AaveV2 fixture * Add AaveV2 fixture tests * Fix bug in AaveV2Mock and library contracts * Add deployWethReserve and deployDaiReserve as separate functions in fixture * Add tests for Aave V2 Library contract * * Add javadocs & other suggested changes to Library and Mock contract * Add suggested changes to fixture * Initialize weth and dai reserves in initialize() function * Improve comments * Return values from library * Add detailed javadocs to library contract * Fix tests: Remove unnecessary checks * Untabify javadocs * Remove extra line
Aave V2 Library contract:
Aave V2 Fixture:
Uses
Implementation
Further Reading
STIP: Aave Leverage Module
Note: @ncitron needs to port over the existing Aave V2 governance-related functionality from the Aave fixture to the new Aave V2 fixture.