Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daopunk committed May 25, 2024
1 parent ac14e71 commit a92a57e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/e2e/E2ELiquidationFee.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ contract E2ELiquidationFeeTest is E2ELiquidationFeeSetup {
systemCoin.approve(bobProxy, USER_AMOUNT);
}

/**
* @notice with the SAME amount of debt that the liquidated vault held,
* bob is able to buy 125 / 185 ether worth of collateral on auction
*/
function test_buyCollateral1() public {
// bob's non-deposited collateral balance before collateral auction
uint256 _externalCollateralBefore = collateral[SOC].balanceOf(bob);
Expand All @@ -160,6 +164,10 @@ contract E2ELiquidationFeeTest is E2ELiquidationFeeSetup {
emit log_named_uint('_externalCollateralGain -------', _externalCollateralGain);
}

/**
* @notice with DOUBLE the amount of debt that the liquidated vault held,
* bob is able to buy 137.5 / 185 ether worth of collateral on auction
*/
function test_buyCollateral2() public {
uint256 _externalCollateralBefore = collateral[SOC].balanceOf(bob);

Expand All @@ -171,6 +179,10 @@ contract E2ELiquidationFeeTest is E2ELiquidationFeeSetup {
emit log_named_uint('_externalCollateralGain -------', _externalCollateralGain);
}

/**
* @notice with DOUBLE the amount of debt that the liquidated vault held,
* bob is able to buy 137.5 / 185 ether worth of collateral on auction
*/
function test_buyCollateral3() public {
uint256 _externalCollateralBefore = collateral[SOC].balanceOf(bob);

Expand Down

0 comments on commit a92a57e

Please sign in to comment.