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

Issue 46 - Return 0 if sub would underflow #80

Open
wants to merge 1 commit into
base: merge-train-r5
Choose a base branch
from

Conversation

ethereumdegen
Copy link
Collaborator

No description provided.

@ethereumdegen
Copy link
Collaborator Author

hash:

Fixed the underflow issue. But the excess repaid amount will not be withdrawable by the other lenders. This should be ok though if the lenders are only being guarenteed their deposited amount. One thing to note is that this amount will still be borrowable. And if liquidation of it occurs and goes negative, PoolTotalEstimatedValue can go to negative (underflow is handled) and this amount would be taken from the newer depositors rather than the actually available extra amount

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant