Skip to content

Commit

Permalink
added asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Harvey committed Nov 9, 2023
1 parent bd83f28 commit 486f536
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/forge/unit/ERC20Pool/ERC20PoolDebtExceedsDeposit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,14 @@ contract ERC20PoolBorrowTest is ERC20HelperContract {
timeRemaining: 0
});

_assertBucket({
index: 4156,
lpBalance: 100.000000000000000000 * 1e18,
collateral: 0 * 1e18,
deposit: 100.003881020291323700 * 1e18,
exchangeRate: 1.000038810202913237 * 1e18
});

// 2b. Call settle
_settle({
from: _attacker,
Expand All @@ -512,6 +520,22 @@ contract ERC20PoolBorrowTest is ERC20HelperContract {
settledDebt: 450_320.816042659448546281 * 1e18
});

_assertBucket({
index: 4156,
lpBalance: 100.000000000000000000 * 1e18,
collateral: 0 * 1e18,
deposit: 100.003881020291323700 * 1e18,
exchangeRate: 1.000038810202913237 * 1e18
});

_assertBucket({
index: 3231,
lpBalance: 1_498_989.686783178433983167 * 1e18,
collateral: 10_400.000000000000000000 * 1e18,
deposit: 32.571937031713956323 * 1e18,
exchangeRate: 0.699608871907005698 * 1e18
});

_assertBucket({
index: 3232,
lpBalance: 0 * 1e18,
Expand Down

0 comments on commit 486f536

Please sign in to comment.