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

Ensure that clutchable collateral is sufficient #1

Open
PaulRBerg opened this issue Jan 17, 2021 · 0 comments
Open

Ensure that clutchable collateral is sufficient #1

PaulRBerg opened this issue Jan 17, 2021 · 0 comments
Labels
enhancement Improvement for an existing feature or system

Comments

@PaulRBerg
Copy link
Contributor

Calling liquidateBorrow on the fyToken reverts when the price of the collateral has fallen so much that the liquidator cannot receive their 10% share of the deal (an economic risk that we were well aware of when we wrote the protocol).

Before liquidating the user via the Uniswap V2 pair, we should call the getClutchableCollateral function on the BalanceSheet and compare it to the currently locked collateral in the vault.

@PaulRBerg PaulRBerg added the enhancement Improvement for an existing feature or system label Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement for an existing feature or system
Projects
None yet
Development

No branches or pull requests

1 participant