Skip to content

Commit b3358f4

Browse files
fix: Add checks for completeness
1 parent 6277027 commit b3358f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/Spoke/Spoke.AccrueInterest.Scenario.t.sol

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@ contract SpokeAccrueInterestScenarioTest is SpokeBase {
226226
// Check bob's drawn debt, premium debt, and supplied amounts for all assets at user, reserve, spoke, and asset level
227227
for (uint256 i = 0; i < 4; ++i) {
228228
if (testAmounts[i].originalBorrowAmount == 0) {
229+
_assertProtocolSupplyAndDebt(
230+
testAmounts[i].reserveId,
231+
testAmounts[i].name,
232+
0,
233+
0,
234+
testAmounts[i].originalSupplyAmount,
235+
MAX_SUPPLY_AMOUNT,
236+
' after second accrual'
237+
);
229238
continue;
230239
}
231240
values[i].index = _calculateExpectedDrawnIndex(

0 commit comments

Comments
 (0)