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

only redeem as much collateral as liquidity allows during liquidate #88

Merged
merged 4 commits into from
Jul 18, 2022

Conversation

nope-finance
Copy link
Member

@nope-finance nope-finance commented May 28, 2022

this change makes is so what when there is not enough liquidity available to redeem a liquidation it falls back to giving ctokens rather than the liquidity token.

It does this by always claiming whatever liquidity is available and keeping the rest as ctokens

the ctoken portion is except from liquidation fees (the protocol fee on the liquidation bonus)

@nope-finance nope-finance changed the title only redeem as much collateral as liquidity allows only redeem as much collateral as liquidity allows during liquidate May 28, 2022
@nope-finance nope-finance merged commit 3239f56 into upcoming Jul 18, 2022
@nope-finance nope-finance deleted the liquidate_backup branch July 18, 2022 19:44
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.

2 participants