compound-finance / compound-protocol

The Compound On-Chain Protocol
https://compound.finance/developers
BSD 3-Clause "New" or "Revised" License
1.88k stars 1.2k forks source link

Enable liquidations for all accounts in deprecated markets #123

Closed maxwolff closed 3 years ago

maxwolff commented 3 years ago

If a market is deprecated (has a collateral factor of 0%, has borrows paused, and 100% rF), we will allow borrows to be liquidated even if the account has adequate collateral. Will apply to SAI and REP.

codecov-commenter commented 3 years ago

Codecov Report

Merging #123 (13d2060) into compound/2.9 (ff9712b) will decrease coverage by 0.19%. The diff coverage is 68.75%.

:exclamation: Current head 13d2060 differs from pull request most recent head 178105a. Consider uploading reports for the commit 178105a to get more accurate results Impacted file tree graph

@@               Coverage Diff                @@
##           compound/2.9     #123      +/-   ##
================================================
- Coverage         51.45%   51.26%   -0.20%     
================================================
  Files                54       54              
  Lines              4369     4362       -7     
  Branches            529      534       +5     
================================================
- Hits               2248     2236      -12     
- Misses             2121     2126       +5     
Impacted Files Coverage Δ
contracts/Comptroller.sol 65.07% <68.75%> (+2.28%) :arrow_up:
contracts/CToken.sol 82.18% <0.00%> (-3.20%) :arrow_down:
contracts/CEther.sol 95.83% <0.00%> (-0.17%) :arrow_down:
contracts/CTokenInterfaces.sol 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fd94bb8...178105a. Read the comment docs.