Skip to content

Commit

Permalink
Merge pull request #6 from Tropykus/leverageRestriction
Browse files Browse the repository at this point in the history
Add leverage restriction
  • Loading branch information
chriss-m240 authored Sep 13, 2021
2 parents f9b2c59 + e3b1d8d commit a3e6faa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/CToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,8 @@ abstract contract CToken is CTokenInterface, Exponential, TokenErrorReporter {
);
}

require(accountBorrows[minter].principal == 0, "CT25");

MintLocalVars memory vars;

(
Expand Down

0 comments on commit a3e6faa

Please sign in to comment.