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 warning on repay/withdraw #279

Merged
merged 3 commits into from
Aug 13, 2023
Merged

Add warning on repay/withdraw #279

merged 3 commits into from
Aug 13, 2023

Conversation

MerlinEgalite
Copy link
Contributor

Fixes #93

IMO adding comments on other inputs does not bring value to the integrators

@MerlinEgalite MerlinEgalite requested review from a team, Rubilmax, pakim249CAL, Jean-Grimal, makcandrov, QGarchery, peyha and MathisGD and removed request for a team August 12, 2023 09:04
@MerlinEgalite MerlinEgalite requested a review from MathisGD August 12, 2023 12:29
MathisGD
MathisGD previously approved these changes Aug 12, 2023
pakim249CAL
pakim249CAL previously approved these changes Aug 12, 2023
src/interfaces/IMorpho.sol Outdated Show resolved Hide resolved
src/interfaces/IMorpho.sol Outdated Show resolved Hide resolved
Jean-Grimal
Jean-Grimal previously approved these changes Aug 13, 2023
@MathisGD MathisGD merged commit 8b60c0f into main Aug 13, 2023
@MathisGD MathisGD deleted the docs/math-reverts branch August 13, 2023 10:42
@@ -142,6 +144,7 @@ interface IMorpho is IFlashLender {
/// but the possibility to burn a specific amount of shares is given
/// for full compatibility and precision.
/// @dev `msg.sender` must be authorized to manage `onBehalf`'s positions.
/// @dev Borrowing a large amount can underflow and revert without any error message.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Overflow* 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fuck

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Math operations revert on large inputs
5 participants