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

remove idle supply #260

Merged
merged 36 commits into from
Nov 15, 2023
Merged

remove idle supply #260

merged 36 commits into from
Nov 15, 2023

Conversation

MathisGD
Copy link
Contributor

@MathisGD MathisGD commented Oct 23, 2023

fixes #254
Fixes #301

@MerlinEgalite

This comment was marked as outdated.

@MathisGD MathisGD marked this pull request as draft October 23, 2023 18:42
@MathisGD MathisGD changed the base branch from main to test/fix-is-allocator October 23, 2023 20:54
@MathisGD MathisGD self-assigned this Oct 23, 2023
Base automatically changed from test/fix-is-allocator to main October 24, 2023 07:23
@MathisGD MathisGD marked this pull request as ready for review October 24, 2023 12:38
src/MetaMorpho.sol Outdated Show resolved Hide resolved
src/MetaMorpho.sol Show resolved Hide resolved
src/MetaMorpho.sol Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
src/libraries/ErrorsLib.sol Show resolved Hide resolved
test/forge/ReallocateWithdrawTest.sol Outdated Show resolved Hide resolved
test/hardhat/MetaMorpho.spec.ts Outdated Show resolved Hide resolved
@MerlinEgalite MerlinEgalite linked an issue Oct 27, 2023 that may be closed by this pull request
Signed-off-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
@MerlinEgalite MerlinEgalite marked this pull request as draft October 27, 2023 12:53
foundry.toml Outdated Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
src/MetaMorpho.sol Show resolved Hide resolved
test/forge/ReallocateIdleTest.sol Outdated Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
@MerlinEgalite MerlinEgalite self-assigned this Oct 27, 2023
@MerlinEgalite
Copy link
Contributor

The CI is failing though

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
test/forge/ReallocateWithdrawTest.sol Outdated Show resolved Hide resolved
test/metamorpho_tests.tree Outdated Show resolved Hide resolved
Base automatically changed from test/permit to main November 14, 2023 17:02
Copy link
Contributor

@Jean-Grimal Jean-Grimal left a comment

Choose a reason for hiding this comment

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

lgtm

README.md Outdated
- The vault's asset as loan token.
- No collateral token (`address(0)`).
- An arbitrary IRM.
- No oracle (`address(0)`).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
- No oracle (`address(0)`).
- An arbitrary oracle.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can I still suggest address(0)? I think it's interesting to have at least the maximum nb of parameters standard for idle markets

Copy link
Contributor Author

Choose a reason for hiding this comment

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

README.md Show resolved Hide resolved
src/MetaMorpho.sol Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/MetaMorpho.sol Show resolved Hide resolved
src/MetaMorpho.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@QGarchery QGarchery left a comment

Choose a reason for hiding this comment

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

Was a tough one to review, not 100% confident about it.

Still I think it's good to go, except for the ERC4626 compliance in maxDeposit and maxMint

src/MetaMorpho.sol Show resolved Hide resolved
src/libraries/ErrorsLib.sol Outdated Show resolved Hide resolved
Copy link
Contributor Author

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor Author

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

LGTM

@MerlinEgalite MerlinEgalite merged commit 3c5a959 into main Nov 15, 2023
6 checks passed
@MerlinEgalite MerlinEgalite deleted the feat/remove-idle branch November 15, 2023 15:58
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.

L-08 maxWithdraw and maxRedeem Functions Can Revert Systematically remove idle mechanism
5 participants