Skip to content

Commit

Permalink
✅ adjust depositCollateralETH test with new _amount parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Oct 18, 2024
1 parent 01b1903 commit a219363
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Collateral.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ contract DepositCollateral is CollateralTest {

engine.depositCollateralETH{value: SMALLER_AMOUNT}({
_accountId: accountId,
_amount: SMALLER_AMOUNT,
_tolerance: SMALLER_AMOUNT
});

Expand All @@ -290,6 +291,7 @@ contract DepositCollateral is CollateralTest {

engine.depositCollateralETH{value: amount}({
_accountId: accountId,
_amount: amount,
_tolerance: amount * 97 / 100
});

Expand Down Expand Up @@ -526,6 +528,7 @@ contract WithdrawCollateral is CollateralTest {

engine.depositCollateralETH{value: SMALLER_AMOUNT}({
_accountId: accountId,
_amount: SMALLER_AMOUNT,
_tolerance: SMALLER_AMOUNT
});

Expand Down Expand Up @@ -556,6 +559,7 @@ contract WithdrawCollateral is CollateralTest {

engine.depositCollateralETH{value: amount}({
_accountId: accountId,
_amount: amount,
_tolerance: amount * 97 / 100
});

Expand All @@ -581,6 +585,7 @@ contract WithdrawCollateral is CollateralTest {

engine.depositCollateralETH{value: SMALLER_AMOUNT}({
_accountId: accountId,
_amount: SMALLER_AMOUNT,
_tolerance: SMALLER_AMOUNT
});

Expand Down

0 comments on commit a219363

Please sign in to comment.