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

Add minimum purchase amount on liquidations #114

Merged
merged 3 commits into from
Nov 16, 2020
Merged

Add minimum purchase amount on liquidations #114

merged 3 commits into from
Nov 16, 2020

Conversation

alsco77
Copy link
Contributor

@alsco77 alsco77 commented Nov 6, 2020

What

The following changes have been made to ensure that a reasonable amount of USDC/mUSD is purchased when liquidating COMP:

  • require sender to be non smart contract (i.e. enforce tx.origin == msg.sender)
  • add a minimum amount of bAsset (USDC) to receive per sellToken (COMP)
  • add a fix to Curve to ensure that the rate is always >= 0.95

Deployment plan

Address: 0x35103a8fafa0c935b7a91e8356c8a05906c80210

  1. Deploy Liquidator
  2. Propose Liquidator upgrade
  3. Accept proposed upgrade

@alsco77 alsco77 merged commit ac899d1 into master Nov 16, 2020
@alsco77 alsco77 deleted the liq-fix branch November 16, 2020 13:30
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.

None yet

1 participant