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

Use MaxCollateralUtilization or MinCollateralLiquidity in interest rate calculation #1037

Closed
4 tasks
robert-zaremba opened this issue Jun 20, 2022 · 2 comments
Closed
4 tasks
Milestone

Comments

@robert-zaremba
Copy link
Member

robert-zaremba commented Jun 20, 2022

Depends on:

Summary

In #940 we introduced MaxCollateralUtilization and decided to use it for interest rates instead for supply utilization.

  • update algorithm
  • update tests
  • make sure borrows are not possible if collateral utilization goes above max collateral utilization

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@robert-zaremba robert-zaremba added this to the Calypso milestone Jun 20, 2022
@toteki
Copy link
Member

toteki commented Jul 2, 2022

This can be closed - interest rates will still be based on borrow utilization, not collateral utilization.

Even assets with collateral weight = 0 (cannot be collateralized) need dynamic interest rates.

@robert-zaremba
Copy link
Member Author

Today we have supply_utilization not borrow_utilization.

I think we should consider changing interest rates base on borrow_utilization (the new model)

@robert-zaremba robert-zaremba changed the title Use MaxCollateralUtilization in interest rate calculation Use MaxCollateralUtilization or MinCollateralLiquidity in interest rate calculation Jul 26, 2022
@toteki toteki closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants