Skip to content

Commit

Permalink
Merge pull request #592 from morpho-org/docs/document-inflation-attack
Browse files Browse the repository at this point in the history
docs: document inflation attack (spearbit 40)
  • Loading branch information
MerlinEgalite authored Nov 13, 2023
2 parents 560c176 + c88ff83 commit 06f0f65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interfaces/IMorpho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ interface IMorphoBase {
/// `liquidate` from being used under certain market conditions.
/// - A very high price returned by the oracle can make the computation of `maxBorrow` in `_isHealthy` overflow, or
/// the computation of `assetsRepaid` in `liquidate` overflow.
/// @dev The borrow share price of a market with less than 1e4 assets borrowed can be decreased by manipulations, to
/// the point where `totalBorrowShares` is very large and borrowing overflows.
function createMarket(MarketParams memory marketParams) external;

/// @notice Supplies `assets` or `shares` on behalf of `onBehalf`, optionally calling back the caller's
Expand Down

0 comments on commit 06f0f65

Please sign in to comment.