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

Add comments on lost fees due to bad debt or market forced removals #359

Merged
merged 10 commits into from
Dec 27, 2023

Conversation

Jean-Grimal
Copy link
Contributor

@Jean-Grimal Jean-Grimal commented Dec 22, 2023

@Jean-Grimal Jean-Grimal requested review from a team, adhusson, Rubilmax, QGarchery, MerlinEgalite and MathisGD and removed request for a team December 22, 2023 14:30
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: Jean-Grimal <83286814+Jean-Grimal@users.noreply.github.com>
src/interfaces/IMetaMorpho.sol Outdated Show resolved Hide resolved
src/interfaces/IMetaMorpho.sol Outdated Show resolved Hide resolved
Co-authored-by: Romain Milon <rmilon@gmail.com>
Signed-off-by: Jean-Grimal <83286814+Jean-Grimal@users.noreply.github.com>
MerlinEgalite
MerlinEgalite previously approved these changes Dec 22, 2023
src/interfaces/IMetaMorpho.sol Outdated Show resolved Hide resolved
src/interfaces/IMetaMorpho.sol Outdated Show resolved Hide resolved
Rubilmax
Rubilmax previously approved these changes Dec 22, 2023
src/interfaces/IMetaMorpho.sol Outdated Show resolved Hide resolved
Co-authored-by: Romain Milon <rmilon@gmail.com>
Signed-off-by: Jean-Grimal <83286814+Jean-Grimal@users.noreply.github.com>
Rubilmax
Rubilmax previously approved these changes Dec 22, 2023
MerlinEgalite
MerlinEgalite previously approved these changes Dec 22, 2023
@MerlinEgalite MerlinEgalite dismissed stale reviews from Rubilmax and themself via 299229e December 23, 2023 09:04
Rubilmax
Rubilmax previously approved these changes Dec 24, 2023
src/interfaces/IMetaMorpho.sol Outdated Show resolved Hide resolved
Co-authored-by: Romain Milon <rmilon@gmail.com>
Signed-off-by: Jean-Grimal <83286814+Jean-Grimal@users.noreply.github.com>
MathisGD
MathisGD previously approved these changes Dec 26, 2023
MathisGD
MathisGD previously approved these changes Dec 26, 2023
QGarchery
QGarchery previously approved these changes Dec 27, 2023
MerlinEgalite
MerlinEgalite previously approved these changes Dec 27, 2023
…bs/morpho-blue-metamorpho into feat/add-comments-on-lost-fees
@MathisGD MathisGD merged commit 7a2d3c0 into post-cantina Dec 27, 2023
6 checks passed
@MathisGD MathisGD deleted the feat/add-comments-on-lost-fees branch December 27, 2023 18:59
@Jean-Grimal Jean-Grimal mentioned this pull request Dec 28, 2023
@@ -145,6 +147,7 @@ interface IMetaMorphoBase {
/// @notice Warning: Anyone can supply on behalf of the vault so the call to `updateWithdrawQueue` that expects a
/// market to be empty can be griefed by a front-run. To circumvent this, the allocator can simply bundle a
/// reallocation that withdraws max from this market with a call to `updateWithdrawQueue`.
/// @dev Warning: Removing a market with supply will decrease the fee accrued until the next deposit/withdrawal.
Copy link

Choose a reason for hiding this comment

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

If the amount removed is bigger than the total amount of interest accrued by the other markets, the fee to accrue will be zero. It's worth mentioning it in the comment or anyway be more specific.

Copy link
Contributor

Choose a reason for hiding this comment

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

can do it yes even though I think this is the general case

@QGarchery QGarchery mentioned this pull request Jan 2, 2024
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.

7 participants