Skip to content

Commit

Permalink
Update test to show bucket exchange rate before settles
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy committed Jun 26, 2023
1 parent ed4174c commit 7fc6c16
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ contract ERC721PoolLiquidationsSettleAuctionTest is ERC721HelperContract {
}

function testSettlePartialDebtSubsetPool() external tearDown {
_assertBucket({
index: 2500,
lpBalance: 8_000 * 1e18,
collateral: 0,
deposit: 13_734.486139425783008000 * 1e18,
exchangeRate: 1.716810767428222876 * 1e18
});

// the 2 token ids are owned by borrower before settle
assertEq(ERC721Pool(address(_pool)).borrowerTokenIds(_borrower, 0), 1);
assertEq(ERC721Pool(address(_pool)).borrowerTokenIds(_borrower, 1), 3);
Expand Down

0 comments on commit 7fc6c16

Please sign in to comment.