feat(adapters): decode reduceFee bool from bytes data
TODO: apply reduce fee logic
This commit is contained in:
@@ -123,6 +123,7 @@ contract BalancerV2SwapAdapter is ISwapAdapter {
|
|||||||
) external override returns (Trade memory trade) {
|
) external override returns (Trade memory trade) {
|
||||||
uint256 sellAmount;
|
uint256 sellAmount;
|
||||||
IVault.SwapKind kind;
|
IVault.SwapKind kind;
|
||||||
|
bool reduceFee = abi.decode(abi.encodePacked(data), (bool));
|
||||||
uint256 limit; // TODO set this slippage limit properly
|
uint256 limit; // TODO set this slippage limit properly
|
||||||
if (side == OrderSide.Sell) {
|
if (side == OrderSide.Sell) {
|
||||||
kind = IVault.SwapKind.GIVEN_IN;
|
kind = IVault.SwapKind.GIVEN_IN;
|
||||||
|
|||||||
Reference in New Issue
Block a user