chore: assert exact eth balance at aggregate test
This commit is contained in:
@@ -479,12 +479,11 @@ contract BebopExecutorTest is Constants, Permit2TestHelper, TestUtils {
|
|||||||
totalMakerAmount,
|
totalMakerAmount,
|
||||||
"USDC should be at receiver"
|
"USDC should be at receiver"
|
||||||
);
|
);
|
||||||
// ETH balance check - the harness may have different balance due to test setup
|
// With pranking, settlement pulls ETH from taker; executor keeps msg.value
|
||||||
// Just ensure no excessive ETH is stuck
|
assertEq(
|
||||||
assertLe(
|
|
||||||
address(bebopExecutor).balance,
|
address(bebopExecutor).balance,
|
||||||
initialExecutorBalance + 1 ether,
|
totalTakerAmount,
|
||||||
"Too much ETH left in executor"
|
"Executor ETH balance should equal msg.value for aggregate ETH flow"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -625,12 +624,11 @@ contract BebopExecutorTest is Constants, Permit2TestHelper, TestUtils {
|
|||||||
expectedPartialOutput,
|
expectedPartialOutput,
|
||||||
"USDC should be at receiver"
|
"USDC should be at receiver"
|
||||||
);
|
);
|
||||||
// ETH balance check - the harness may have different balance due to test setup
|
// With pranking, settlement pulls ETH from taker; executor keeps msg.value
|
||||||
// Just ensure no excessive ETH is stuck
|
assertEq(
|
||||||
assertLe(
|
|
||||||
address(bebopExecutor).balance,
|
address(bebopExecutor).balance,
|
||||||
initialExecutorBalance + 1 ether,
|
partialFillAmount,
|
||||||
"Too much ETH left in executor"
|
"Executor ETH balance should equal msg.value for aggregate ETH flow"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user