Revert "ENG-3406: Add new bytes parameter to swap"

This commit is contained in:
Pierre
2024-08-08 22:24:35 +02:00
committed by GitHub
parent 9ef9782451
commit b3e3672172
13 changed files with 46 additions and 114 deletions

View File

@@ -118,12 +118,10 @@ contract BalancerV2SwapAdapter is ISwapAdapter {
address sellToken,
address buyToken,
OrderSide side,
uint256 specifiedAmount,
bytes32 data
uint256 specifiedAmount
) external override returns (Trade memory trade) {
uint256 sellAmount;
IVault.SwapKind kind;
bool reduceFee = abi.decode(abi.encodePacked(data), (bool));
uint256 limit; // TODO set this slippage limit properly
if (side == OrderSide.Sell) {
kind = IVault.SwapKind.GIVEN_IN;