From af79a8714accf951108a03efd617538fc81c0284 Mon Sep 17 00:00:00 2001 From: 0xrusowsky <0xrusowsky@proton.me> Date: Mon, 7 Aug 2023 23:52:16 +0200 Subject: [PATCH] style: linting --- .gas-snapshot | 2 -- lib/solmate | 2 +- src/ClearingHouse.sol | 6 +++++- 3 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 .gas-snapshot diff --git a/.gas-snapshot b/.gas-snapshot deleted file mode 100644 index b43f8dd..0000000 --- a/.gas-snapshot +++ /dev/null @@ -1,2 +0,0 @@ -LockTest:test_smartLock() (gas: 7940) -LockTest:test_stdLock() (gas: 7672) \ No newline at end of file diff --git a/lib/solmate b/lib/solmate index bfc9c25..b5c9aed 160000 --- a/lib/solmate +++ b/lib/solmate @@ -1 +1 @@ -Subproject commit bfc9c25865a274a7827fea5abf6e4fb64fc64e6c +Subproject commit b5c9aedc24577ede91d8974323ac7a9d7f88ecbd diff --git a/src/ClearingHouse.sol b/src/ClearingHouse.sol index 8333c07..9dcac4c 100644 --- a/src/ClearingHouse.sol +++ b/src/ClearingHouse.sol @@ -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));