-
Notifications
You must be signed in to change notification settings - Fork 61
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
Implement lLTV
tiers
#42
Comments
Here's how I did it: https://github.com/morpho-labs/blue/blob/63e8da9592869a8935a4dadba3b73063db19302f/src/MarketBase.sol#L20-L21 As noted in the comment, it could be inlined with a bunch of if/else if the tranche spacing is immutable. |
I had something like that in mind. So you check it for each interaction ? Isn't it more efficient to list markets, and then to check a slot that you would need to read in any case for each interaction.
It will very probably not be, but good point yes. |
Indeed, adding a boolean flag to the storage to specific liquidationLtvs upon market creation would be cleaner and probably cheaper |
Related to this discussion, and I'm for adding this into the createMarket function to remove gas overhead for users |
Not all LLTVs can be opened. Similarly to UniV3's fee tiers, the governance lists a set of LLTVs (that can be expended but not reduced).
The text was updated successfully, but these errors were encountered: