Skip to content
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

docs(fee): add acknowledegement #344

Merged
merged 1 commit into from
Dec 20, 2023
Merged

docs(fee): add acknowledegement #344

merged 1 commit into from
Dec 20, 2023

Conversation

Rubilmax
Copy link
Contributor

@Rubilmax Rubilmax marked this pull request as ready for review December 12, 2023 13:11
@Rubilmax Rubilmax merged commit d261b27 into post-cantina Dec 20, 2023
6 checks passed
@Rubilmax Rubilmax deleted the docs/interest-fee branch December 20, 2023 11:28
@Jean-Grimal Jean-Grimal mentioned this pull request Dec 28, 2023
@@ -916,6 +916,7 @@ contract MetaMorpho is ERC4626, ERC20Permit, Ownable2Step, Multicall, IMetaMorph

uint256 totalInterest = newTotalAssets.zeroFloorSub(lastTotalAssets);
if (totalInterest != 0 && fee != 0) {
// It is acknowledged that `feeAssets` may be rounded down to 0 if `totalInterest * fee < WAD`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it also (or moved) documented in the function's natspec as well with a warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants