feat: Make BalancerV3Executor inherit from ICallback

Took 37 minutes
This commit is contained in:
Diana Carvalho
2025-06-05 09:58:31 +01:00
parent f173f9bed7
commit 806ce4e62c
2 changed files with 44 additions and 74 deletions

View File

@@ -13,6 +13,7 @@ contract BalancerV3ExecutorExposed is BalancerV3Executor {
external
pure
returns (
uint256 amountGiven,
IERC20 tokenIn,
IERC20 tokenOut,
address poolId,
@@ -41,6 +42,7 @@ contract BalancerV3ExecutorTest is Constants, TestUtils {
function testDecodeParams() public view {
bytes memory params = abi.encodePacked(
uint256(1 ether),
osETH_ADDR,
waEthWETH_ADDR,
WETH_osETH_pool,
@@ -49,6 +51,7 @@ contract BalancerV3ExecutorTest is Constants, TestUtils {
);
(
uint256 amountGiven,
IERC20 tokenIn,
IERC20 tokenOut,
address poolId,
@@ -56,6 +59,7 @@ contract BalancerV3ExecutorTest is Constants, TestUtils {
address receiver
) = balancerV3Exposed.decodeParams(params);
assertEq(amountGiven, 1 ether);
assertEq(address(tokenIn), osETH_ADDR);
assertEq(address(tokenOut), waEthWETH_ADDR);
assertEq(poolId, WETH_osETH_pool);