Skip to content

Commit

Permalink
fix: includes memory location for bytes in tempest decoder. Also earn…
Browse files Browse the repository at this point in the history
…ETHSwell decoder
  • Loading branch information
CarsonCase committed Jan 9, 2025
1 parent c169888 commit f8151e9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions src/base/DecodersAndSanitizers/EarnETHSwellDecoderAndSanitizer.sol
Original file line number Diff line number Diff line change
@@ -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)
{ }
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract contract TempestDecoderAndSanitizer is BaseDecoderAndSanitizer {
function deposit(
uint256 amount,
address receiver,
bytes merkleProofs
bytes memory merkleProofs
)
external
pure
Expand Down Expand Up @@ -96,7 +96,7 @@ abstract contract TempestDecoderAndSanitizer is BaseDecoderAndSanitizer {
uint256 shares,
address receiver,
address owner,
bytes merkleProofs
bytes memory merkleProofs
)
external
pure
Expand Down

0 comments on commit f8151e9

Please sign in to comment.