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

Borrowing irm.availableToBorrow might result in an unintended revert #194

Open
lekhovitsky opened this issue Mar 30, 2024 · 0 comments
Open

Comments

@lekhovitsky
Copy link
Collaborator

availableToBorrow returns an amount that would move utilization to exactly $U_2$, but trying to borrow this amount would result in BorrowingMoreThanU2ForbiddenException because of use of incorrect sign in calcBorrowRate.

lekhovitsky added a commit that referenced this issue Jun 20, 2024
In this PR:
* Small fixes in `calcBorrowRate` and `availableToBorrow` to address #194
* Small gas optimizations like removing redundant getters and evaluating some expressions at compile time
lekhovitsky added a commit that referenced this issue Jun 24, 2024
In this PR:
* Small fixes in `calcBorrowRate` and `availableToBorrow` to address #194
* Small gas optimizations like removing redundant getters and evaluating some expressions at compile time
lekhovitsky added a commit that referenced this issue Jul 7, 2024
In this PR:
* Small fixes in `calcBorrowRate` and `availableToBorrow` to address #194
* Small gas optimizations like removing redundant getters and evaluating some expressions at compile time
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

No branches or pull requests

1 participant