chore: fix _getActualFilledTakerAmount return value

This commit is contained in:
pedrobergamini
2025-06-18 13:08:50 -03:00
parent 033a4bfe9f
commit 4c7f33d81b
2 changed files with 15 additions and 2 deletions

View File

@@ -54,6 +54,19 @@ contract BebopExecutorHarness is BebopExecutor, Test {
return _decodeData(data);
}
// Expose the internal getActualFilledTakerAmount function for testing
function exposed_getActualFilledTakerAmount(
uint256 givenAmount,
uint256 orderTakerAmount,
uint256 filledTakerAmount
) external pure returns (uint256 actualFilledTakerAmount) {
return _getActualFilledTakerAmount(
givenAmount,
orderTakerAmount,
filledTakerAmount
);
}
// Override to prank the taker address before calling the real settlement
function _executeSingleRFQ(
address tokenIn,