Skip to content

Commit

Permalink
style: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrusowsky committed Aug 7, 2023
1 parent 0ce0247 commit af79a87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gas-snapshot

This file was deleted.

2 changes: 1 addition & 1 deletion lib/solmate
6 changes: 5 additions & 1 deletion src/ClearingHouse.sol
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ contract ClearingHouse is Policy, RolesConsumer, CoolerCallback {
// Update outstanding debt owed to the Treasury upon default.
uint256 outstandingDebt = TRSRY.reserveDebt(dai, address(this));
// TRSRY debt = user debt - user interest
TRSRY.setDebt(address(this), dai, outstandingDebt - (totalDebt - totalInterest));
TRSRY.setDebt({
debtor_: address(this),
token_: dai,
amount_: outstandingDebt - (totalDebt - totalInterest)
});
// Unstake and burn the collateral of the defaulted loans.
gOHM.approve(address(staking), totalCollateral);
MINTR.burnOhm(address(this), staking.unstake(address(this), totalCollateral, false, false));
Expand Down

0 comments on commit af79a87

Please sign in to comment.