From f8151e933c9f5d7b61092fef10efd60181cc92bd Mon Sep 17 00:00:00 2001 From: Carson Date: Thu, 9 Jan 2025 13:14:46 +0700 Subject: [PATCH] fix: includes memory location for bytes in tempest decoder. Also earnETHSwell decoder --- .../EarnETHSwellDecoderAndSanitizer.sol | 28 +++++++++++++++++++ .../Protocols/TempestDecoderAndSanitizer.sol | 4 +-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 src/base/DecodersAndSanitizers/EarnETHSwellDecoderAndSanitizer.sol diff --git a/src/base/DecodersAndSanitizers/EarnETHSwellDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/EarnETHSwellDecoderAndSanitizer.sol new file mode 100644 index 0000000..1eb8587 --- /dev/null +++ b/src/base/DecodersAndSanitizers/EarnETHSwellDecoderAndSanitizer.sol @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: MIT +pragma solidity 0.8.21; + +import { BaseDecoderAndSanitizer } from "./BaseDecoderAndSanitizer.sol"; +import { NativeWrapperDecoderAndSanitizer } from "./Protocols/NativeWrapperDecoderAndSanitizer.sol"; +import { UniswapV3DecoderAndSanitizer } from "src/base/DecodersAndSanitizers/Protocols/UniswapV3DecoderAndSanitizer.sol"; +import { MasterChefV3DecoderAndSanitizer } from + "src/base/DecodersAndSanitizers/Protocols/MasterChefV3DecoderAndSanitizer.sol"; +import { PendleRouterDecoderAndSanitizer } from + "src/base/DecodersAndSanitizers/Protocols/PendleRouterDecoderAndSanitizer.sol"; + +import { TempestDecoderAndSanitizer } from "src/base/DecodersAndSanitizers/Protocols/TempestDecoderAndSanitizer.sol"; + +contract EarnETHSwellDecoderAndSanitizer is + NativeWrapperDecoderAndSanitizer, + UniswapV3DecoderAndSanitizer, + MasterChefV3DecoderAndSanitizer, + PendleRouterDecoderAndSanitizer, + TempestDecoderAndSanitizer +{ + constructor( + address _boringVault, + address _uniswapV3NonFungiblePositionManager + ) + UniswapV3DecoderAndSanitizer(_uniswapV3NonFungiblePositionManager) + BaseDecoderAndSanitizer(_boringVault) + { } +} diff --git a/src/base/DecodersAndSanitizers/Protocols/TempestDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/Protocols/TempestDecoderAndSanitizer.sol index 151138e..b2e5080 100644 --- a/src/base/DecodersAndSanitizers/Protocols/TempestDecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/Protocols/TempestDecoderAndSanitizer.sol @@ -27,7 +27,7 @@ abstract contract TempestDecoderAndSanitizer is BaseDecoderAndSanitizer { function deposit( uint256 amount, address receiver, - bytes merkleProofs + bytes memory merkleProofs ) external pure @@ -96,7 +96,7 @@ abstract contract TempestDecoderAndSanitizer is BaseDecoderAndSanitizer { uint256 shares, address receiver, address owner, - bytes merkleProofs + bytes memory merkleProofs ) external pure