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));