-
Notifications
You must be signed in to change notification settings - Fork 47
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
AaveV3LeverageStrategyExtension audit feedback #142
AaveV3LeverageStrategyExtension audit feedback #142
Conversation
|
||
constructor( | ||
IBaseManager _manager, | ||
IAaveOracle _aaveOracle, |
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.
The aaveOracle should come from calling getPriceOracle
on the LendingPoolAddressProvider
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.
Good point, thanks. Will adjust 👍
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.
Adjusted in:
5d1cc59
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.
In fact I went one step further and just read the address anew from the addressProvider everytime when I call the oracle.
Thereby we don't get rugged if for some reason the AaveOracle address changes:
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 changes here LGTM 💯
Before final approval and merge, lets make sure all dependencies in our integration tests are up to date with the index-protocol audit fixes IndexCoop/index-protocol@520a9cf
-
AaveV3LeverageModule
-
DebtIssuanceModuleV2
-
Invoke
…github.com:IndexCoop/index-coop-smart-contracts into aave-v3-leverage-strategy-extension-audit-feedback
In the integration tests for the StrategyExtension I am testing against deployed contracts. (DebtIssuanceModule, SetTokenCreator etc.) Basically we will have to update the addresses here and also adjust the test such that it just uses the new A3LM deployment instead of redeploying the module. |
Changes implemented here #145 |
update post audit contracts for integration tests Co-authored-by: Pranav Bhardwaj <[email protected]>
Noted that in the linked PR only the A3LM json-file / bytecode is updated. I guess technically we would also want to update the DIM and other modules that use the invoke library. But this is nothing that should necessarily block us from merging this I guess. |
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.
LGTM 💯
Noting the open pr for test additions in #146
* remove test filter on FlashMintLeveraged. * chore: update current block * test: updates to deployment of leverage module. * Fix failing tests for AaveV3LeverageStrategyExtension (#147) * Fix failing tests * Adjust test message for ripcord test --------- Co-authored-by: christn <[email protected]>
Made deadline on uniswap router swaps less brittle.
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.
LGTM!
🎉 This PR is included in version 0.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Verifying and fixing issues identified by auditors in the AaveV3LeverageStrategyExtension contract.
Issues to be fixed:
latestAnswer
(optional) - fixIssues not to be fixed