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(metamorpho): comment forced market removal #354

Merged
merged 11 commits into from
Dec 28, 2023
6 changes: 5 additions & 1 deletion src/interfaces/IMetaMorpho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ interface IMetaMorphoBase {
/// @notice Revokes the pending cap of the market defined by `id`.
function revokePendingCap(Id id) external;

/// @notice Submits a forced market removal from the vault, potentially losing all funds supplied to the market.
/// @notice Submits a forced market removal from the vault, losing all funds supplied to the market.
Rubilmax marked this conversation as resolved.
Show resolved Hide resolved
Rubilmax marked this conversation as resolved.
Show resolved Hide resolved
/// @notice This forced removal is expected to be used as an emergency process in case a market constantly reverts.
/// To softly remove a sane market, the curator role is expected to bundle a reallocation that empties the market
/// first (using `reallocate`), followed by the removal of the market (using `updateWithdrawQueue`).
/// @dev Warning: Submitting a forced removal will overwrite the timestamp at which the market will be removable.
Rubilmax marked this conversation as resolved.
Show resolved Hide resolved
/// @dev Warning: Removing a market with non-zero supply will instantly impact the vault's price per share.
MathisGD marked this conversation as resolved.
Show resolved Hide resolved
function submitMarketRemoval(Id id) external;

/// @notice Revokes the pending removal of the market defined by `id`.
Expand Down