chore: create internal _swap method for harness usage

This commit is contained in:
pedrobergamini
2025-08-04 14:51:58 -03:00
parent 3c7a846ff4
commit 7ef587575a
2 changed files with 69 additions and 116 deletions

View File

@@ -97,6 +97,13 @@ contract BebopExecutor is IExecutor, IExecutorErrors, RestrictTransferFrom {
virtual
override
returns (uint256 calculatedAmount)
{
calculatedAmount = _swap(givenAmount, data);
}
function _swap(uint256 givenAmount, bytes calldata data)
internal
returns (uint256 calculatedAmount)
{
// Decode the packed data
(