-
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
Merged
snake-poison
merged 29 commits into
master
from
aave-v3-leverage-strategy-extension-audit-feedback
Aug 14, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f3a2d4b
Test showing that settting Emode does not affect getReserveConfigurat…
ckoopmann 77244d3
Start adjusting StrategyExtension test to switcht to wsteth/eth pair
ckoopmann 51c978f
Fixing tests
ckoopmann c29adfd
Fix test
ckoopmann bebb8bb
First test case for rebalancing in e-mode
ckoopmann 5526d84
Fix handling of emode ltv / liquidationThreshold
ckoopmann aa7afc5
Add test case for wrong repay threshold
ckoopmann dba1428
Fix tests
ckoopmann 718dd42
Remove subtraction of unutilizedLeveragePercentage when delevering
ckoopmann f2eacaa
Add test for targetLeverageRatio verification
ckoopmann eeb34fb
Add verification step for targetLeverageRatio >= 1
ckoopmann 9d04e7b
Switch div / mul order in _calculateMinRepayUnits
ckoopmann 0e291b4
Switch div / mul order in calculateChunkRebalanceNotional
ckoopmann 7ab6d28
Switch to latestRoundData on chainlink call
ckoopmann 0e10200
Add check for maximum oracle price age
ckoopmann 7e3f87a
Add tests for outdated price response from oracle
ckoopmann 332caf2
Fix tests
ckoopmann edbe0b0
Add method to override noRebalanceInProgress modifier
ckoopmann d9a653f
Fix tests
ckoopmann bed0e34
Use AaveOracle instead of configured chainlink oracles
ckoopmann 87f4723
Merge branch 'master' into aave-v3-leverage-strategy-extension-audit-…
pblivin0x 5d1cc59
Get AaveOracle address from AddressProvider instead of deploy argument
ckoopmann 140f09b
Merge branch 'aave-v3-leverage-strategy-extension-audit-feedback' of …
ckoopmann 0a69def
Change to get aaveOracle address on the fly from addressProvider
ckoopmann 3b5c204
Clean up and additional code comments
ckoopmann 998fd21
fix(dependencies): Add post audit Aave V3 dependencies (#145)
pblivin0x 8ef6b7b
Updates to test (#146)
snake-poison 125323c
remove .only from test
snake-poison 0bc8b24
test: fix issues with updating block.
snake-poison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theLendingPoolAddressProvider
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:
0a69def