Skip to content

Commit

Permalink
test: check balances
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Sep 9, 2024
1 parent 3453fb9 commit fedb233
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/Accounting.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -606,5 +606,11 @@ contract AccountingTest is Setup {

// Should just deposit the available amount.
checkStrategyTotals(strategy, _amount, _amount, 0, _amount);

assertEq(asset.balanceOf(_address), 0);
assertEq(strategy.balanceOf(_address), _amount);
assertEq(asset.balanceOf(address(strategy)), 0);

assertEq(asset.balanceOf(address(yieldSource)), _amount);
}
}

0 comments on commit fedb233

Please sign in to comment.