Skip to content
Verified contractPartialGPL-3.0-only

MulticallStrategy

Address0x7560f0d8df5c0310af3d16e02a2ec44628866f74
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.8.27

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.27+commit.40a35a09
Language
solidity
Optimization
Yes, 1,000 runs
EVM version
prague
Via IR
yes
License
GPL-3.0-only
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,349,721
Creation transaction
0x51ec1b6556…4fa6cb1650

src/strategy/MulticallStrategy.sol

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./IStrategy.sol";

/// @title Multicall Strategy
/// @notice This contract is called by a Gateway Onramp contract cand allows a user to specify a series of calls
/// that should be made using the tokens they have received from the LP.
/// @dev Very heavily based on the MulticallHandler contract from Across, with some modifications:
/// https://github.com/across-protocol/contracts/blob/may-14-audit/contracts/handlers/MulticallHandler.sol
contract MulticallStrategy is IStrategy, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address payable;

    struct Call {
        address target;
        bytes callData;
        uint256 value;
    }

    /// @dev This is a unique identifier that should be used when injecting a timestamp in place of the replacement token address
    address constant TIMESTAMP_INJECTION_ID = address(uint160(uint256(keccak256("TIMESTAMP_INJECTION"))));

    struct Replacement {
        address token;
        uint96 offset;
    }

    // Emitted when there are leftover tokens that are sent to the recipient directly.
    event DrainedTokens(address indexed recipient, address indexed token, uint256 indexed amount);

    // Errors
    error CallReverted(uint256 index, Call[] calls, bytes returnData);
    error NotSelf();
    error InvalidCall(uint256 index, Call[] calls);
    error CalldataTooShort(uint256 callDataLength, uint256 offset);
    error InvalidReplacement(Replacement[] replacements);
    error InvalidRecipient();

    modifier onlySelf() {
        _requireSelf();
        _;
    }

    /// @notice Main entrypoint for the handler called by the SpokePool contract.
    /// @dev This will execute all calls encoded in the msg. The caller is responsible for making sure all tokens are
    /// drained from this contract by the end of the series of calls. If not, they can be stolen.
    /// A drainLeftoverTokens call can be included as a way to drain any remaining tokens from this contract.
    /// @param recipient The recipient address passed to the strategy, must be a valid EVM address
    /// @param message abi encoded array of Call structs, containing a target, callData, and value for each call that
    /// the contract should make.
    function handleGatewayMessage(IERC20 tokenSent, uint256 amountIn, bytes32 recipient, bytes memory message)
        external
        nonReentrant
    {
        // Check that the recipient is a valid EVM address
        if (uint256(recipient) > type(uint160).max) revert InvalidRecipient();

        // Transferring the tokens to the strategy, the calling gateway contract will handle the approval
        IERC20(tokenSent).safeTransferFrom(msg.sender, address(this), amountIn);

        Call[] memory calls = abi.decode(message, (Call[]));
        // Attempt to execute the calls and revert if any of the calls revert.
        this.attemptCalls(calls);

        // If there are leftover tokens even after the calls have been executed, send them to the recipient
        _drainRemainingTokens(address(tokenSent), payable(address(uint160(uint256(recipient)))));
    }

    function attemptCalls(Call[] memory calls) external onlySelf {
        uint256 length = calls.length;
        for (uint256 i = 0; i < length; ++i) {
            Call memory call = calls[i];

            // If we are calling an EOA with calldata, assume target was incorrectly specified and revert.
            if (call.callData.length > 0 && call.target.code.length == 0) {
                revert InvalidCall(i, calls);
            }

            (bool success,) = call.target.call{value: call.value}(call.callData);
            if (!success) {
                // Copied only on failure so the happy path never pays for a `returndatacopy`.
                revert CallReverted(i, calls, _returnData());
            }
        }
    }

    function drainLeftoverTokens(address token, address payable destination) external onlySelf {
        _drainRemainingTokens(token, destination);
    }

    function _drainRemainingTokens(address token, address payable destination) internal {
        if (token != address(0)) {
            // ERC20 token.
            uint256 amount = IERC20(token).balanceOf(address(this));
            if (amount > 0) {
                IERC20(token).safeTransfer(destination, amount);
                emit DrainedTokens(destination, token, amount);
            }
        } else {
            // Send native token
            uint256 amount = address(this).balance;
            if (amount > 0) {
                destination.sendValue(amount);
            }
        }
    }

    function makeCallWithInjection(
        address target,
        bytes memory callData,
        uint256 value,
        Replacement[] memory replacement
    ) external onlySelf {
        for (uint256 i = 0; i < replacement.length; i++) {
            uint256 inj = 0;
            if (replacement[i].token == TIMESTAMP_INJECTION_ID) {
                inj = block.timestamp;
            } else if (replacement[i].token != address(0)) {
                inj = IERC20(replacement[i].token).balanceOf(address(this));
            } else {
                inj = address(this).balance;

                // If we're using the native balance, we assume that the caller wants to send the full value to the target.
                value = inj;
            }

            // If the calldata is empty then we dont inject anything into the calldata
            if (callData.length > 0) {
                // + 32 to skip the length of the calldata
                uint256 offset = replacement[i].offset + 32;

                // 32 has already been added to the offset, and the replacement value is 32 bytes long, so
                // we don't need to add 32 here. We just directly compare the offset with the length of the calldata.
                if (offset > callData.length) revert CalldataTooShort(callData.length, offset);
                assembly ("memory-safe") {
                    // Get the pointer to the offset that the caller wants to overwrite.
                    let ptr := add(callData, offset)
                    // Get the current value at the offset.
                    let current := mload(ptr)
                    // Or the current value with the new value.
                    // Reasoning:
                    // - caller should 0-out any portion that they want overwritten.
                    // - if the caller is representing the balance in a smaller integer, like a uint160 or uint128,
                    //   the higher bits will be 0 and not overwrite any other data in the calldata assuming
                    //   the balance is small enough to fit in the smaller integer.
                    // - The catch: the smaller integer where they want to store the balance must end no
                    //   earlier than the 32nd byte in their calldata. Otherwise, this would require a
                    //   negative offset, which is not possible.
                    let val := or(inj, current)
                    // Store the new value at the offset.
                    mstore(ptr, val)
                }
            }
        }

        (bool success,) = target.call{value: value}(callData);
        if (!success) {
            // Bubble the failed call's revert verbatim. `attemptCalls` re-wraps it in
            // `CallReverted(i, calls, ...)`, and `calls[i]` already carries this `callData`, so a
            // dedicated error here would only re-encode the payload a second time.
            bytes memory returnData = _returnData();
            assembly ("memory-safe") {
                revert(add(returnData, 0x20), mload(returnData))
            }
        }
    }

    /// @dev Copies the most recent call's revert payload. Only call this on the failure path.
    function _returnData() private pure returns (bytes memory returnData) {
        assembly ("memory-safe") {
            let size := returndatasize()
            returnData := mload(0x40)
            mstore(returnData, size)
            returndatacopy(add(returnData, 0x20), 0, size)
            mstore(0x40, add(returnData, and(add(size, 0x3f), not(0x1f))))
        }
    }

    function _requireSelf() internal view {
        // Must be called by this contract to ensure that this cannot be triggered without the explicit consent of the
        // depositor (for a valid relay).
        if (msg.sender != address(this)) revert NotSelf();
    }

    // Used if the caller is trying to unwrap the native token to this contract.
    receive() external payable {}
}

dependencies/@openzeppelin-contracts-5.5.0/interfaces/IERC1363.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

dependencies/@openzeppelin-contracts-5.5.0/interfaces/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";

dependencies/@openzeppelin-contracts-5.5.0/interfaces/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

import {IERC20} from "../token/ERC20/IERC20.sol";

dependencies/@openzeppelin-contracts-5.5.0/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

dependencies/@openzeppelin-contracts-5.5.0/token/ERC20/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_safeTransfer(token, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        if (!_safeTransferFrom(token, from, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _safeTransfer(token, to, value, false);
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _safeTransferFrom(token, from, to, value, false);
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        if (!_safeApprove(token, spender, value, false)) {
            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));
            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the
     * return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.transfer.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(to, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }

    /**
     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return
     * value: the return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param from The sender of the tokens
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value,
        bool bubble
    ) private returns (bool success) {
        bytes4 selector = IERC20.transferFrom.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(from, shr(96, not(0))))
            mstore(0x24, and(to, shr(96, not(0))))
            mstore(0x44, value)
            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
            mstore(0x60, 0)
        }
    }

    /**
     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:
     * the return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param spender The spender of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.approve.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(spender, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }
}

dependencies/@openzeppelin-contracts-5.5.0/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/Address.sol)

pragma solidity ^0.8.20;

import {Errors} from "./Errors.sol";
import {LowLevelCall} from "./LowLevelCall.sol";

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert Errors.InsufficientBalance(address(this).balance, amount);
        }
        if (LowLevelCall.callNoReturn(recipient, amount, "")) {
            // call successful, nothing to do
            return;
        } else if (LowLevelCall.returnDataSize() > 0) {
            LowLevelCall.bubbleRevert();
        } else {
            revert Errors.FailedCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {Errors.FailedCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert Errors.InsufficientBalance(address(this).balance, value);
        }
        bool success = LowLevelCall.callNoReturn(target, value, data);
        if (success && (LowLevelCall.returnDataSize() > 0 || target.code.length > 0)) {
            return LowLevelCall.returnData();
        } else if (success) {
            revert AddressEmptyCode(target);
        } else if (LowLevelCall.returnDataSize() > 0) {
            LowLevelCall.bubbleRevert();
        } else {
            revert Errors.FailedCall();
        }
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        bool success = LowLevelCall.staticcallNoReturn(target, data);
        if (success && (LowLevelCall.returnDataSize() > 0 || target.code.length > 0)) {
            return LowLevelCall.returnData();
        } else if (success) {
            revert AddressEmptyCode(target);
        } else if (LowLevelCall.returnDataSize() > 0) {
            LowLevelCall.bubbleRevert();
        } else {
            revert Errors.FailedCall();
        }
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        bool success = LowLevelCall.delegatecallNoReturn(target, data);
        if (success && (LowLevelCall.returnDataSize() > 0 || target.code.length > 0)) {
            return LowLevelCall.returnData();
        } else if (success) {
            revert AddressEmptyCode(target);
        } else if (LowLevelCall.returnDataSize() > 0) {
            LowLevelCall.bubbleRevert();
        } else {
            revert Errors.FailedCall();
        }
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
     * of an unsuccessful call.
     *
     * NOTE: This function is DEPRECATED and may be removed in the next major release.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        // only check if target is a contract if the call was successful and the return data is empty
        // otherwise we already know that it was a contract
        if (success && (returndata.length > 0 || target.code.length > 0)) {
            return returndata;
        } else if (success) {
            revert AddressEmptyCode(target);
        } else if (returndata.length > 0) {
            LowLevelCall.bubbleRevert(returndata);
        } else {
            revert Errors.FailedCall();
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {Errors.FailedCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else if (returndata.length > 0) {
            LowLevelCall.bubbleRevert(returndata);
        } else {
            revert Errors.FailedCall();
        }
    }
}

dependencies/@openzeppelin-contracts-5.5.0/utils/Errors.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedCall();

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}

dependencies/@openzeppelin-contracts-5.5.0/utils/LowLevelCall.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/LowLevelCall.sol)

pragma solidity ^0.8.20;

/**
 * @dev Library of low level call functions that implement different calling strategies to deal with the return data.
 *
 * WARNING: Using this library requires an advanced understanding of Solidity and how the EVM works. It is recommended
 * to use the {Address} library instead.
 */
library LowLevelCall {
    /// @dev Performs a Solidity function call using a low level `call` and ignoring the return data.
    function callNoReturn(address target, bytes memory data) internal returns (bool success) {
        return callNoReturn(target, 0, data);
    }

    /// @dev Same as {callNoReturn}, but allows to specify the value to be sent in the call.
    function callNoReturn(address target, uint256 value, bytes memory data) internal returns (bool success) {
        assembly ("memory-safe") {
            success := call(gas(), target, value, add(data, 0x20), mload(data), 0x00, 0x00)
        }
    }

    /// @dev Performs a Solidity function call using a low level `call` and returns the first 64 bytes of the result
    /// in the scratch space of memory. Useful for functions that return a tuple of single-word values.
    ///
    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated
    /// and this function doesn't zero it out.
    function callReturn64Bytes(
        address target,
        bytes memory data
    ) internal returns (bool success, bytes32 result1, bytes32 result2) {
        return callReturn64Bytes(target, 0, data);
    }

    /// @dev Same as {callReturnBytes32Pair}, but allows to specify the value to be sent in the call.
    function callReturn64Bytes(
        address target,
        uint256 value,
        bytes memory data
    ) internal returns (bool success, bytes32 result1, bytes32 result2) {
        assembly ("memory-safe") {
            success := call(gas(), target, value, add(data, 0x20), mload(data), 0x00, 0x40)
            result1 := mload(0x00)
            result2 := mload(0x20)
        }
    }

    /// @dev Performs a Solidity function call using a low level `staticcall` and ignoring the return data.
    function staticcallNoReturn(address target, bytes memory data) internal view returns (bool success) {
        assembly ("memory-safe") {
            success := staticcall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x00)
        }
    }

    /// @dev Performs a Solidity function call using a low level `staticcall` and returns the first 64 bytes of the result
    /// in the scratch space of memory. Useful for functions that return a tuple of single-word values.
    ///
    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated
    /// and this function doesn't zero it out.
    function staticcallReturn64Bytes(
        address target,
        bytes memory data
    ) internal view returns (bool success, bytes32 result1, bytes32 result2) {
        assembly ("memory-safe") {
            success := staticcall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x40)
            result1 := mload(0x00)
            result2 := mload(0x20)
        }
    }

    /// @dev Performs a Solidity function call using a low level `delegatecall` and ignoring the return data.
    function delegatecallNoReturn(address target, bytes memory data) internal returns (bool success) {
        assembly ("memory-safe") {
            success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x00)
        }
    }

    /// @dev Performs a Solidity function call using a low level `delegatecall` and returns the first 64 bytes of the result
    /// in the scratch space of memory. Useful for functions that return a tuple of single-word values.
    ///
    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated
    /// and this function doesn't zero it out.
    function delegatecallReturn64Bytes(
        address target,
        bytes memory data
    ) internal returns (bool success, bytes32 result1, bytes32 result2) {
        assembly ("memory-safe") {
            success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x40)
            result1 := mload(0x00)
            result2 := mload(0x20)
        }
    }

    /// @dev Returns the size of the return data buffer.
    function returnDataSize() internal pure returns (uint256 size) {
        assembly ("memory-safe") {
            size := returndatasize()
        }
    }

    /// @dev Returns a buffer containing the return data from the last call.
    function returnData() internal pure returns (bytes memory result) {
        assembly ("memory-safe") {
            result := mload(0x40)
            mstore(result, returndatasize())
            returndatacopy(add(result, 0x20), 0x00, returndatasize())
            mstore(0x40, add(result, add(0x20, returndatasize())))
        }
    }

    /// @dev Revert with the return data from the last call.
    function bubbleRevert() internal pure {
        assembly ("memory-safe") {
            let fmp := mload(0x40)
            returndatacopy(fmp, 0x00, returndatasize())
            revert(fmp, returndatasize())
        }
    }

    function bubbleRevert(bytes memory returndata) internal pure {
        assembly ("memory-safe") {
            revert(add(returndata, 0x20), mload(returndata))
        }
    }
}

dependencies/@openzeppelin-contracts-5.5.0/utils/ReentrancyGuard.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
 * by the {ReentrancyGuardTransient} variant in v6.0.
 *
 * @custom:stateless
 */
abstract contract ReentrancyGuard {
    using StorageSlot for bytes32;

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant REENTRANCY_GUARD_STORAGE =
        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;

    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    /**
     * @dev A `view` only version of {nonReentrant}. Use to block view functions
     * from being called, preventing reading from inconsistent contract state.
     *
     * CAUTION: This is a "view" modifier and does not change the reentrancy
     * status. Use it only on view functions. For payable or non-payable functions,
     * use the standard {nonReentrant} modifier instead.
     */
    modifier nonReentrantView() {
        _nonReentrantBeforeView();
        _;
    }

    function _nonReentrantBeforeView() private view {
        if (_reentrancyGuardEntered()) {
            revert ReentrancyGuardReentrantCall();
        }
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        _nonReentrantBeforeView();

        // Any calls to nonReentrant after this point will fail
        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;
    }

    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {
        return REENTRANCY_GUARD_STORAGE;
    }
}

dependencies/@openzeppelin-contracts-5.5.0/utils/StorageSlot.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns a `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }
}

dependencies/@openzeppelin-contracts-5.5.0/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

src/strategy/IStrategy.sol

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title Strategy Interface
interface IStrategy {
    event TokenOutput(address tokenReceived, uint256 amountOut);

    function handleGatewayMessage(IERC20 tokenSent, uint256 amountIn, bytes32 recipient, bytes memory message) external;
}

abstract contract IStrategyWithSlippageArgs is IStrategy {
    function handleGatewayMessageWithSlippageArgs(
        IERC20 tokenSent,
        uint256 amountIn,
        bytes32 recipient,
        StrategySlippageArgs memory args
    ) public virtual;

    function handleGatewayMessage(IERC20 tokenSent, uint256 amountIn, bytes32 recipient, bytes memory message)
        external
    {
        StrategySlippageArgs memory args = abi.decode(message, (StrategySlippageArgs));

        handleGatewayMessageWithSlippageArgs(tokenSent, amountIn, recipient, args);
    }
}

struct StrategySlippageArgs {
    uint256 amountOutMin;
}
Compiler settingsShow
{
  "viaIR": true,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 1000,
    "enabled": true
  },
  "evmVersion": "prague",
  "remappings": [
    "@0x/settler-v1/=dependencies/@0x-settler-v1/",
    "@ERC4337/=dependencies/@rhinestone-core-modules-v1/node_modules/@ERC4337/",
    "@bob-collective/bitcoin-spv/=dependencies/@bob-collective-bitcoin-spv-v1/src/",
    "@bob-collective/bob/=dependencies/@bob-collective-bob-v1/contracts/src/",
    "@layerzerolabs/lz-evm-messagelib-v2/=dependencies/@layerzerolabs-layerzero-v2-v1/packages/layerzero-v2/evm/messagelib/",
    "@layerzerolabs/lz-evm-protocol-v2/=dependencies/@layerzerolabs-layerzero-v2-v1/packages/layerzero-v2/evm/protocol/",
    "@layerzerolabs/oapp/=dependencies/@layerzerolabs-layerzero-v2-v1/packages/layerzero-v2/evm/oapp/",
    "@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.5.0/",
    "@prb/math/=dependencies/@rhinestone-core-modules-v1/node_modules/@prb/math/src/",
    "@rhinestone/core-modules/=dependencies/@rhinestone-core-modules-v1/",
    "@rhinestone/modulekit-v1/=dependencies/@rhinestone-modulekit-v1/",
    "@rhinestone/modulekit/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/modulekit/src/",
    "@uniswap/swap-router-contracts/=dependencies/@uniswap-swap-router-contracts-v1/",
    "@uniswap/v3-core/=dependencies/@uniswap-v3-core-v1/",
    "@uniswap/v3-periphery/=dependencies/@uniswap-v3-periphery-v1/",
    "ExcessivelySafeCall/=dependencies/@rhinestone-core-modules-v1/node_modules/excessively-safe-call/src/",
    "account-abstraction-v0.6/=dependencies/@rhinestone-core-modules-v1/node_modules/@ERC4337/account-abstraction-v0.6/contracts/",
    "account-abstraction/=dependencies/@rhinestone-core-modules-v1/node_modules/@ERC4337/account-abstraction/contracts/",
    "erc4337-validation/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/erc4337-validation/src/",
    "erc7579-implementation/=dependencies/@erc7579-implementation-v1/",
    "forge-std/=dependencies/forge-std-1.14.0/src/",
    "modulekit/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/modulekit/src/",
    "sentinellist/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/sentinellist/src/",
    "solady/=dependencies/@rhinestone-core-modules-v1/node_modules/solady/src/",
    "solarray/=dependencies/@rhinestone-core-modules-v1/node_modules/solarray/src/",
    "solidity-bytes-utils/=dependencies/@solidity-bytes-utils-v1/",
    "node_modules/webauthn-sol/src/:openzeppelin-contracts/=dependencies/@rhinestone-core-modules-v1/node_modules/@openzeppelin/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/:solmate/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/:solmate/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-gas-snapshot/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/forge-gas-snapshot/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/:solmate/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/:solmate/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/:solmate/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/:solmate/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/:ethereum-vault-connector/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/:ethereum-vault-connector/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/ethereum-vault-connector/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/openzeppelin-contracts/contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/:permit2/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/:permit2/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/lib/permit2/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/:halmos-cheatcodes/=dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/:halmos-cheatcodes/=dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/:permit2/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/:permit2/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/permit2/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/:v4-core/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/:v4-core/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/src/",
    "dependencies/@0x-settler-v1/lib/permit2/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/permit2/lib/forge-std/:ds-test/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/permit2/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/permit2/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/permit2/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/permit2/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/v4-core/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/v4-core/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/euler-swap/lib/openzeppelin-contracts/contracts/",
    "dependencies/@0x-settler-v1/lib/euler-swap/:ethereum-vault-connector/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/src/",
    "dependencies/@0x-settler-v1/lib/euler-swap/:ethereum-vault-connector/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/src/",
    "dependencies/@0x-settler-v1/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/openzeppelin-contracts/:erc4626-tests/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "dependencies/@0x-settler-v1/lib/openzeppelin-contracts/:halmos-cheatcodes/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "dependencies/@0x-settler-v1/lib/openzeppelin-contracts/:halmos-cheatcodes/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "dependencies/@0x-settler-v1/lib/permit2/:solmate/=dependencies/@0x-settler-v1/lib/permit2/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/permit2/:solmate/=dependencies/@0x-settler-v1/lib/permit2/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/permit2/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/src/",
    "dependencies/@0x-settler-v1/lib/permit2/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/src/",
    "dependencies/@0x-settler-v1/lib/permit2/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/permit2/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/permit2/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/permit2/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/solmate/:ds-test/=dependencies/@0x-settler-v1/lib/solmate/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/lib/v4-core/:solmate/=dependencies/@0x-settler-v1/lib/v4-core/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/v4-core/:solmate/=dependencies/@0x-settler-v1/lib/v4-core/lib/solmate/",
    "dependencies/@0x-settler-v1/lib/v4-core/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/",
    "dependencies/@0x-settler-v1/lib/v4-core/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/v4-core/lib/openzeppelin-contracts/",
    "dependencies/@bob-collective-bitcoin-spv-v1/lib/forge-std/:ds-test/=dependencies/@bob-collective-bitcoin-spv-v1/lib/forge-std/lib/ds-test/src/",
    "dependencies/@bob-collective-bitcoin-spv-v1/lib/forge-std/:ds-test/=dependencies/@bob-collective-bitcoin-spv-v1/lib/forge-std/lib/ds-test/src/",
    "dependencies/@layerzerolabs-layerzero-v2-v1/lib/forge-std/:ds-test/=dependencies/@layerzerolabs-layerzero-v2-v1/lib/forge-std/lib/ds-test/src/",
    "dependencies/@layerzerolabs-layerzero-v2-v1/lib/forge-std/:ds-test/=dependencies/@layerzerolabs-layerzero-v2-v1/lib/forge-std/lib/ds-test/src/",
    "dependencies/@solidity-bytes-utils-v1/lib/forge-std/:ds-test/=dependencies/@solidity-bytes-utils-v1/lib/forge-std/lib/ds-test/src/",
    "dependencies/@solidity-bytes-utils-v1/lib/forge-std/:ds-test/=dependencies/@solidity-bytes-utils-v1/lib/forge-std/lib/ds-test/src/",
    "dependencies/@0x-settler-v1/:solmate/=dependencies/@0x-settler-v1/lib/solmate/",
    "dependencies/@0x-settler-v1/:solmate/=dependencies/@0x-settler-v1/lib/solmate/",
    "dependencies/@0x-settler-v1/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/contracts/",
    "dependencies/@0x-settler-v1/:openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/contracts/",
    "dependencies/@0x-settler-v1/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/forge-gas-snapshot/",
    "dependencies/@0x-settler-v1/:forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/forge-gas-snapshot/",
    "dependencies/@0x-settler-v1/:permit2/=dependencies/@0x-settler-v1/lib/permit2/",
    "dependencies/@0x-settler-v1/:permit2/=dependencies/@0x-settler-v1/lib/permit2/",
    "dependencies/@0x-settler-v1/:v4-core/=dependencies/@0x-settler-v1/lib/v4-core/src/",
    "dependencies/@0x-settler-v1/:v4-core/=dependencies/@0x-settler-v1/lib/v4-core/src/",
    "dependencies/@rhinestone-core-modules-v1/:@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.5.0/",
    "dependencies/@rhinestone-core-modules-v1/:@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.5.0/",
    "dependencies/@rhinestone-core-modules-v1/:@openzeppelin/=dependencies/@rhinestone-core-modules-v1/node_modules/@openzeppelin/",
    "dependencies/@rhinestone-core-modules-v1/:@openzeppelin/=dependencies/@rhinestone-core-modules-v1/node_modules/@openzeppelin/",
    "dependencies/@rhinestone-core-modules-v1/:ds-test/=dependencies/@rhinestone-core-modules-v1/node_modules/ds-test/src/",
    "dependencies/@rhinestone-core-modules-v1/:ds-test/=dependencies/@rhinestone-core-modules-v1/node_modules/ds-test/src/",
    "dependencies/@rhinestone-core-modules-v1/:solmate/=dependencies/@rhinestone-core-modules-v1/node_modules/solmate/src/",
    "dependencies/@rhinestone-core-modules-v1/:solmate/=dependencies/@rhinestone-core-modules-v1/node_modules/solmate/src/",
    "@0x-settler-v1/=dependencies/@0x-settler-v1/",
    "@bob-collective-bitcoin-spv-v1/=dependencies/@bob-collective-bitcoin-spv-v1/",
    "@bob-collective-bob-v1/=dependencies/@bob-collective-bob-v1/",
    "@ensdomains/=dependencies/@0x-settler-v1/lib/v4-core/node_modules/@ensdomains/",
    "@erc7579-implementation-v1/=dependencies/@erc7579-implementation-v1/src/",
    "@erc7579/=dependencies/@rhinestone-core-modules-v1/node_modules/@erc7579/enumerablemap4337/src/",
    "@eulerswap/=dependencies/@0x-settler-v1/lib/euler-swap/src/",
    "@forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/forge-gas-snapshot/src/",
    "@forge-std/=dependencies/@0x-settler-v1/lib/forge-std/src/",
    "@gnosis.pm/=dependencies/@rhinestone-core-modules-v1/node_modules/@gnosis.pm/",
    "@layerzerolabs-layerzero-v2-v1/=dependencies/@layerzerolabs-layerzero-v2-v1/",
    "@openzeppelin-contracts-5.5.0/=dependencies/@openzeppelin-contracts-5.5.0/",
    "@openzeppelin/=dependencies/@erc7579-implementation-v1/node_modules/@openzeppelin/",
    "@permit2/=dependencies/@0x-settler-v1/lib/permit2/src/",
    "@prb/=dependencies/@rhinestone-core-modules-v1/node_modules/@prb/math/src/",
    "@rhinestone-core-modules-v1/=dependencies/@rhinestone-core-modules-v1/",
    "@rhinestone-modulekit-v1/=dependencies/@rhinestone-modulekit-v1/src/",
    "@rhinestone/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/",
    "@safe-global/=dependencies/@rhinestone-core-modules-v1/node_modules/@safe-global/",
    "@solidity-bytes-utils-v1/=dependencies/@solidity-bytes-utils-v1/contracts/",
    "@solmate/=dependencies/@0x-settler-v1/lib/solmate/src/",
    "@uniswap-swap-router-contracts-v1/=dependencies/@uniswap-swap-router-contracts-v1/contracts/",
    "@uniswap-v3-core-v1/=dependencies/@uniswap-v3-core-v1/",
    "@uniswap-v3-periphery-v1/=dependencies/@uniswap-v3-periphery-v1/contracts/",
    "@uniswap/v4-core/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/lib/v4-core/",
    "@uniswapv4/=dependencies/@0x-settler-v1/lib/v4-core/src/",
    "@webauthn/=dependencies/@rhinestone-core-modules-v1/node_modules/webauthn-sol/src/",
    "FreshCryptoLib/=dependencies/@rhinestone-core-modules-v1/node_modules/FreshCryptoLib/solidity/src/",
    "checknsignatures/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/checknsignatures/src/",
    "ds-test/=dependencies/@erc7579-implementation-v1/node_modules/ds-test/src/",
    "erc4626-tests/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "ethereum-vault-connector/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/",
    "euler-swap/=dependencies/@0x-settler-v1/lib/euler-swap/",
    "euler-vault-kit/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/",
    "evc/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/src/",
    "evk-test/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/test/",
    "evk/=dependencies/@0x-settler-v1/lib/euler-swap/lib/euler-vault-kit/src/",
    "excessively-safe-call/=dependencies/@rhinestone-core-modules-v1/node_modules/excessively-safe-call/src/",
    "flatbytes/=dependencies/@rhinestone-core-modules-v1/node_modules/@rhinestone/flatbytes/src/",
    "forge-gas-snapshot/=dependencies/@0x-settler-v1/lib/permit2/lib/forge-gas-snapshot/src/",
    "forge-std-1.14.0/=dependencies/forge-std-1.14.0/src/",
    "halmos-cheatcodes/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "hardhat-deploy/=dependencies/@rhinestone-core-modules-v1/node_modules/hardhat-deploy/",
    "hardhat/=dependencies/@rhinestone-core-modules-v1/node_modules/hardhat/",
    "openzeppelin-contracts/=dependencies/@0x-settler-v1/lib/openzeppelin-contracts/",
    "openzeppelin/=dependencies/@0x-settler-v1/lib/euler-swap/lib/ethereum-vault-connector/lib/openzeppelin-contracts/contracts/",
    "permit2/=dependencies/@0x-settler-v1/lib/permit2/",
    "solmate/=dependencies/@0x-settler-v1/lib/solmate/",
    "v4-core/=dependencies/@0x-settler-v1/lib/v4-core/src/",
    "v4-periphery/=dependencies/@0x-settler-v1/lib/euler-swap/lib/v4-periphery/",
    "webauthn-sol/=dependencies/@rhinestone-core-modules-v1/node_modules/webauthn-sol/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.