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

Fix liquidation fee #15

Merged
merged 2 commits into from Dec 8, 2022
Merged

Fix liquidation fee #15

merged 2 commits into from Dec 8, 2022

Conversation

08xmt
Copy link
Contributor

@08xmt 08xmt commented Nov 9, 2022

@nourharidy
Copy link
Member

This could cause a revert if escrow.balance() is 0

@08xmt 08xmt changed the base branch from main to dev December 2, 2022 20:17
@08xmt
Copy link
Contributor Author

08xmt commented Dec 2, 2022

@nourharidy Isn't it fine to revert on 0 balance here? I suppose it'd be better to have it fail with a require and error statement though.

@nourharidy
Copy link
Member

We wouldn't want the inability to pay gov fee to prevent liquidation and cause bad debt, which is also the purpose of the if condition above.

@nourharidy nourharidy merged commit 57a8534 into dev Dec 8, 2022
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.

User can free from liquidation fee if its escrow balance is less than the calculated liquidation fee.
2 participants