-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP: Code tweaks #5
Conversation
ultrasecreth
commented
Jul 30, 2023
- Use a struct fro the meta params in the aave wrapper
- Use a struct fro the meta params in the balancer wrapper
- Use a struct fro the meta params in the uniswap wrapper
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.
Only minor issues related to natspec and function naming.
@@ -57,97 +80,44 @@ contract UniswapV3Wrapper is IERC3156PPFlashLender, IUniswapV3FlashCallback { | |||
* @return The amount of `asset` to be charged for the loan, on top of the returned principal. | |||
*/ | |||
function flashFee(IERC20 asset, uint256 amount) public view override returns (uint256) { | |||
address pool = address(getPool(asset)); |
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 natspec above can be copied from a wrapper that has it correct.
|
||
bytes internal _callbackResult; | ||
|
||
/// @inheritdoc IERC3156PPFlashLender |
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.
We should @inheritdoc from the ERC7399 interface when possible, I think.
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.
Where does that interface lives? I can't see it in the deps