ETH Price: $2,868.09 (-2.55%)

Contract

0x4518f95Bd1aB24B73aeB6AeaFd1567e1e04894Ea
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Remove Bridge Ro...173632952025-04-01 19:40:05299 days ago1743536405IN
0x4518f95B...1e04894Ea
0 ETH0.000000080.00136305
Set Bridge Route...137372232025-01-07 21:11:01383 days ago1736284261IN
0x4518f95B...1e04894Ea
0 ETH0.00000070.00029168

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
136849382025-01-06 16:08:11384 days ago1736179691  Contract Creation0 ETH

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DaimoPayAcrossBridger

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 999999 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.12;

import "openzeppelin-contracts/contracts/access/Ownable2Step.sol";
import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

import "../interfaces/IDaimoPayBridger.sol";
import "../../vendor/across/V3SpokePoolInterface.sol";

/// @title Bridger implementation for Across Protocol
/// @author The Daimo team
/// @custom:security-contact [email protected]
///
/// @dev Bridges assets to a destination chain using Across Protocol. Makes the
/// assumption that the local token is an ERC20 token and has a 1 to 1 price
/// with the corresponding destination token.
contract DaimoPayAcrossBridger is IDaimoPayBridger, Ownable2Step {
    using SafeERC20 for IERC20;

    struct AcrossBridgeRoute {
        address bridgeTokenIn;
        address bridgeTokenOut;
        // Minimum percentage fee to pay the Across relayer. The input amount should
        // be at least this much larger than the output amount
        // 1% is represented as 1e16, 100% is 1e18, 50% is 5e17. This is how Across
        // represents percentage fees.
        uint256 pctFee;
        // Minimum flat fee to pay the Across relayer. The input amount should be at
        // least this much larger than the output amount
        uint256 flatFee;
    }

    struct ExtraData {
        address exclusiveRelayer;
        uint32 quoteTimestamp;
        uint32 fillDeadline;
        uint32 exclusivityDeadline;
        bytes message;
    }

    uint256 public immutable ONE_HUNDRED_PERCENT = 1e18;

    // SpokePool contract address for this chain.
    V3SpokePoolInterface public immutable spokePool;

    // Mapping destination chainId to the corresponding token on the current
    // chain and fees associated with the bridge.
    mapping(uint256 toChainId => AcrossBridgeRoute bridgeRoute)
        public bridgeRouteMapping;

    event BridgeRouteAdded(
        uint256 indexed toChainId,
        AcrossBridgeRoute bridgeRoute
    );

    event BridgeRouteRemoved(
        uint256 indexed toChainId,
        AcrossBridgeRoute bridgeRoute
    );

    /// Specify the localToken mapping to destination chains and tokens
    constructor(
        address _owner,
        V3SpokePoolInterface _spokePool,
        uint256[] memory _toChainIds,
        AcrossBridgeRoute[] memory _bridgeRoutes
    ) Ownable(_owner) {
        spokePool = _spokePool;
        _setBridgeRoutes({
            toChainIds: _toChainIds,
            bridgeRoutes: _bridgeRoutes
        });
    }

    // ----- ADMIN FUNCTIONS -----

    /// Map destination chainId to the corresponding token on the current chain
    /// and fees associated with the bridge.
    /// Assumes the local token has a 1 to 1 price with the corresponding
    /// destination token.
    function setBridgeRoutes(
        uint256[] memory toChainIds,
        AcrossBridgeRoute[] memory bridgeRoutes
    ) public onlyOwner {
        _setBridgeRoutes({toChainIds: toChainIds, bridgeRoutes: bridgeRoutes});
    }

    function _setBridgeRoutes(
        uint256[] memory toChainIds,
        AcrossBridgeRoute[] memory bridgeRoutes
    ) private {
        uint256 n = toChainIds.length;
        require(n == bridgeRoutes.length, "DPAB: wrong bridgeRoutes length");

        for (uint256 i = 0; i < n; ++i) {
            bridgeRouteMapping[toChainIds[i]] = bridgeRoutes[i];
            emit BridgeRouteAdded({
                toChainId: toChainIds[i],
                bridgeRoute: bridgeRoutes[i]
            });
        }
    }

    function removeBridgeRoutes(uint256[] memory toChainIds) public onlyOwner {
        for (uint256 i = 0; i < toChainIds.length; ++i) {
            AcrossBridgeRoute memory bridgeRoute = bridgeRouteMapping[
                toChainIds[i]
            ];
            delete bridgeRouteMapping[toChainIds[i]];
            emit BridgeRouteRemoved({
                toChainId: toChainIds[i],
                bridgeRoute: bridgeRoute
            });
        }
    }

    // ----- BRIDGING FUNCTIONS -----

    /// Given a list of bridge token options, find the index of the bridge token
    /// that matches the correct bridge token out. Return the length of the array
    /// if no match is found.
    function _findBridgeTokenOut(
        TokenAmount[] memory bridgeTokenOutOptions,
        address bridgeTokenOut
    ) internal pure returns (uint256 index) {
        uint256 n = bridgeTokenOutOptions.length;
        for (uint256 i = 0; i < n; ++i) {
            if (address(bridgeTokenOutOptions[i].token) == bridgeTokenOut) {
                return i;
            }
        }
        return n;
    }

    /// Get the input token that corresponds to the destination token. Get the
    /// minimum input amount for a given output amount. The input amount must
    /// cover the max of the percentage fee and the flat fee.
    function _getBridgeData(
        uint256 toChainId,
        TokenAmount[] memory bridgeTokenOutOptions
    )
        internal
        view
        returns (
            address inToken,
            uint256 inAmount,
            address outToken,
            uint256 outAmount
        )
    {
        AcrossBridgeRoute memory bridgeRoute = bridgeRouteMapping[toChainId];
        require(
            bridgeRoute.bridgeTokenOut != address(0),
            "DPAB: bridge route not found"
        );

        uint256 index = _findBridgeTokenOut(
            bridgeTokenOutOptions,
            bridgeRoute.bridgeTokenOut
        );
        // If the index is the length of the array, then the bridge token out
        // was not found in the list of options.
        require(index < bridgeTokenOutOptions.length, "DPAB: bad bridge token");

        // Calculate the amount that must be deposited to cover the fees.
        uint256 toAmount = bridgeTokenOutOptions[index].amount;
        uint256 amtWithPctFee = (toAmount *
            (ONE_HUNDRED_PERCENT + bridgeRoute.pctFee)) / ONE_HUNDRED_PERCENT;
        uint256 amtWithFlatFee = toAmount + bridgeRoute.flatFee;

        inToken = bridgeRoute.bridgeTokenIn;
        // Return the larger of the two amounts
        inAmount = amtWithPctFee > amtWithFlatFee
            ? amtWithPctFee
            : amtWithFlatFee;

        outToken = bridgeRoute.bridgeTokenOut;
        outAmount = bridgeTokenOutOptions[index].amount;
    }

    function getBridgeTokenIn(
        uint256 toChainId,
        TokenAmount[] memory bridgeTokenOutOptions
    ) public view returns (address bridgeTokenIn, uint256 inAmount) {
        (bridgeTokenIn, inAmount, , ) = _getBridgeData(
            toChainId,
            bridgeTokenOutOptions
        );
    }

    /// Initiate a bridge to a destination chain using Across Protocol.
    function sendToChain(
        uint256 toChainId,
        address toAddress,
        TokenAmount[] memory bridgeTokenOutOptions,
        bytes calldata extraData
    ) public {
        require(toChainId != block.chainid, "DPAB: same chain");

        (
            address inToken,
            uint256 inAmount,
            address outToken,
            uint256 outAmount
        ) = _getBridgeData({
                toChainId: toChainId,
                bridgeTokenOutOptions: bridgeTokenOutOptions
            });
        require(outAmount > 0, "DPAB: zero amount");

        // Parse remaining arguments from extraData
        ExtraData memory extra;
        extra = abi.decode(extraData, (ExtraData));

        // Move input token from caller to this contract and approve the
        // SpokePool contract.
        IERC20(inToken).safeTransferFrom({
            from: msg.sender,
            to: address(this),
            value: inAmount
        });
        IERC20(inToken).forceApprove({
            spender: address(spokePool),
            value: inAmount
        });

        spokePool.depositV3({
            depositor: address(this),
            recipient: toAddress,
            inputToken: inToken,
            outputToken: outToken,
            inputAmount: inAmount,
            outputAmount: outAmount,
            destinationChainId: toChainId,
            exclusiveRelayer: extra.exclusiveRelayer,
            quoteTimestamp: extra.quoteTimestamp,
            fillDeadline: extra.fillDeadline,
            exclusivityDeadline: extra.exclusivityDeadline,
            message: extra.message
        });

        emit BridgeInitiated({
            fromAddress: msg.sender,
            fromToken: inToken,
            fromAmount: inAmount,
            toChainId: toChainId,
            toAddress: toAddress,
            toToken: outToken,
            toAmount: outAmount
        });
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Returns the address of the pending owner.
     */
    function pendingOwner() public view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

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

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

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

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 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 {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @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 {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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.
     */
    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.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), 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 data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), 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 data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.12;

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

import "../pay/TokenUtils.sol";

/// @notice Bridges assets automatically. Specifically, it lets any market maker
/// initiate a bridge transaction to another chain.
interface IDaimoPayBridger {
    /// @notice Emitted when a bridge transaction is initiated
    event BridgeInitiated(
        address fromAddress,
        address fromToken,
        uint256 fromAmount,
        uint256 toChainId,
        address toAddress,
        address toToken,
        uint256 toAmount
    );

    /// @dev Get the bridge route for the given output token options on
    ///      destination chain.
    function getBridgeTokenIn(
        uint256 toChainId,
        TokenAmount[] memory bridgeTokenOutOptions
    ) external view returns (address bridgeTokenIn, uint256 inAmount);

    /// @dev Initiate a bridge. Guarantees that one of the bridge token options
    ///      (bridgeTokenOut, outAmount) shows up in (toAddress) on (toChainId).
    ///      Otherwise, reverts.
    function sendToChain(
        uint256 toChainId,
        address toAddress,
        TokenAmount[] memory bridgeTokenOutOptions,
        bytes calldata extraData
    ) external;
}

// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

// Contains structs and functions used by SpokePool contracts to facilitate universal settlement.
interface V3SpokePoolInterface {
    /**************************************
     *              ENUMS                 *
     **************************************/

    // Fill status tracks on-chain state of deposit, uniquely identified by relayHash.
    enum FillStatus {
        Unfilled,
        RequestedSlowFill,
        Filled
    }
    // Fill type is emitted in the FilledRelay event to assist Dataworker with determining which types of
    // fills to refund (e.g. only fast fills) and whether a fast fill created a sow fill excess.
    enum FillType {
        FastFill,
        // Fast fills are normal fills that do not replace a slow fill request.
        ReplacedSlowFill,
        // Replaced slow fills are fast fills that replace a slow fill request. This type is used by the Dataworker
        // to know when to send excess funds from the SpokePool to the HubPool because they can no longer be used
        // for a slow fill execution.
        SlowFill
        // Slow fills are requested via requestSlowFill and executed by executeSlowRelayLeaf after a bundle containing
        // the slow fill is validated.
    }

    /**************************************
     *              STRUCTS               *
     **************************************/

    // This struct represents the data to fully specify a **unique** relay submitted on this chain.
    // This data is hashed with the chainId() and saved by the SpokePool to prevent collisions and protect against
    // replay attacks on other chains. If any portion of this data differs, the relay is considered to be
    // completely distinct.
    struct V3RelayData {
        // The address that made the deposit on the origin chain.
        address depositor;
        // The recipient address on the destination chain.
        address recipient;
        // This is the exclusive relayer who can fill the deposit before the exclusivity deadline.
        address exclusiveRelayer;
        // Token that is deposited on origin chain by depositor.
        address inputToken;
        // Token that is received on destination chain by recipient.
        address outputToken;
        // The amount of input token deposited by depositor.
        uint256 inputAmount;
        // The amount of output token to be received by recipient.
        uint256 outputAmount;
        // Origin chain id.
        uint256 originChainId;
        // The id uniquely identifying this deposit on the origin chain.
        uint32 depositId;
        // The timestamp on the destination chain after which this deposit can no longer be filled.
        uint32 fillDeadline;
        // The timestamp on the destination chain after which any relayer can fill the deposit.
        uint32 exclusivityDeadline;
        // Data that is forwarded to the recipient.
        bytes message;
    }

    // Contains parameters passed in by someone who wants to execute a slow relay leaf.
    struct V3SlowFill {
        V3RelayData relayData;
        uint256 chainId;
        uint256 updatedOutputAmount;
    }

    // Contains information about a relay to be sent along with additional information that is not unique to the
    // relay itself but is required to know how to process the relay. For example, "updatedX" fields can be used
    // by the relayer to modify fields of the relay with the depositor's permission, and "repaymentChainId" is specified
    // by the relayer to determine where to take a relayer refund, but doesn't affect the uniqueness of the relay.
    struct V3RelayExecutionParams {
        V3RelayData relay;
        bytes32 relayHash;
        uint256 updatedOutputAmount;
        address updatedRecipient;
        bytes updatedMessage;
        uint256 repaymentChainId;
    }

    // Packs together parameters emitted in FilledV3Relay because there are too many emitted otherwise.
    // Similar to V3RelayExecutionParams, these parameters are not used to uniquely identify the deposit being
    // filled so they don't have to be unpacked by all clients.
    struct V3RelayExecutionEventInfo {
        address updatedRecipient;
        bytes updatedMessage;
        uint256 updatedOutputAmount;
        FillType fillType;
    }

    /**************************************
     *              EVENTS                *
     **************************************/

    event V3FundsDeposited(
        address inputToken,
        address outputToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 indexed destinationChainId,
        uint32 indexed depositId,
        uint32 quoteTimestamp,
        uint32 fillDeadline,
        uint32 exclusivityDeadline,
        address indexed depositor,
        address recipient,
        address exclusiveRelayer,
        bytes message
    );

    event RequestedSpeedUpV3Deposit(
        uint256 updatedOutputAmount,
        uint32 indexed depositId,
        address indexed depositor,
        address updatedRecipient,
        bytes updatedMessage,
        bytes depositorSignature
    );

    event FilledV3Relay(
        address inputToken,
        address outputToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 repaymentChainId,
        uint256 indexed originChainId,
        uint32 indexed depositId,
        uint32 fillDeadline,
        uint32 exclusivityDeadline,
        address exclusiveRelayer,
        address indexed relayer,
        address depositor,
        address recipient,
        bytes message,
        V3RelayExecutionEventInfo relayExecutionInfo
    );

    event RequestedV3SlowFill(
        address inputToken,
        address outputToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 indexed originChainId,
        uint32 indexed depositId,
        uint32 fillDeadline,
        uint32 exclusivityDeadline,
        address exclusiveRelayer,
        address depositor,
        address recipient,
        bytes message
    );

    /**************************************
     *              FUNCTIONS             *
     **************************************/

    function depositV3(
        address depositor,
        address recipient,
        address inputToken,
        address outputToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 destinationChainId,
        address exclusiveRelayer,
        uint32 quoteTimestamp,
        uint32 fillDeadline,
        uint32 exclusivityDeadline,
        bytes calldata message
    ) external payable;

    function depositV3Now(
        address depositor,
        address recipient,
        address inputToken,
        address outputToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 destinationChainId,
        address exclusiveRelayer,
        uint32 fillDeadlineOffset,
        uint32 exclusivityDeadline,
        bytes calldata message
    ) external payable;

    function speedUpV3Deposit(
        address depositor,
        uint32 depositId,
        uint256 updatedOutputAmount,
        address updatedRecipient,
        bytes calldata updatedMessage,
        bytes calldata depositorSignature
    ) external;

    function fillV3Relay(V3RelayData calldata relayData, uint256 repaymentChainId) external;

    function fillV3RelayWithUpdatedDeposit(
        V3RelayData calldata relayData,
        uint256 repaymentChainId,
        uint256 updatedOutputAmount,
        address updatedRecipient,
        bytes calldata updatedMessage,
        bytes calldata depositorSignature
    ) external;

    function requestV3SlowFill(V3RelayData calldata relayData) external;

    function executeV3SlowRelayLeaf(
        V3SlowFill calldata slowFillLeaf,
        uint32 rootBundleId,
        bytes32[] calldata proof
    ) external;

    /**************************************
     *              ERRORS                *
     **************************************/

    error DisabledRoute();
    error InvalidQuoteTimestamp();
    error InvalidFillDeadline();
    error InvalidExclusiveRelayer();
    error InvalidExclusivityDeadline();
    error MsgValueDoesNotMatchInputAmount();
    error NotExclusiveRelayer();
    error NoSlowFillsInExclusivityWindow();
    error RelayFilled();
    error InvalidSlowFillRequest();
    error ExpiredFillDeadline();
    error InvalidMerkleProof();
    error InvalidChainId();
    error InvalidMerkleLeaf();
    error ClaimedMerkleLeaf();
    error InvalidPayoutAdjustmentPct();
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

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

    /**
     * @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 AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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
     * {FailedInnerCall} 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 AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @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, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @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, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @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 {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // 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 (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @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 {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.12;

import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

/// @dev Asset amount, e.g. $100 USDC or 0.1 ETH
struct TokenAmount {
    /// @dev Zero address = native asset, e.g. ETH
    IERC20 token;
    uint256 amount;
}

/// @dev Represents a destination address + optional arbitrary contract call
struct Call {
    /// @dev Destination receiving address or contract
    address to;
    /// @dev Native token amount for call, or 0
    uint256 value;
    /// @dev Calldata for call, or empty = no contract call
    bytes data;
}

/** Utility functions that work for both ERC20 and native tokens. */
library TokenUtils {
    using SafeERC20 for IERC20;

    /** Returns ERC20 or ETH balance. */
    function getBalanceOf(
        IERC20 token,
        address addr
    ) internal view returns (uint256) {
        if (address(token) == address(0)) {
            return addr.balance;
        } else {
            return token.balanceOf(addr);
        }
    }

    /** Approves a token transfer. */
    function approve(IERC20 token, address spender, uint256 amount) internal {
        if (address(token) != address(0)) {
            token.approve({spender: spender, value: amount});
        } // Do nothing for native token.
    }

    /** Sends an ERC20 or ETH transfer. For ETH, verify call success. */
    function transfer(
        IERC20 token,
        address payable recipient,
        uint256 amount
    ) internal {
        if (address(token) != address(0)) {
            token.safeTransfer({to: recipient, value: amount});
        } else {
            // Native token transfer
            (bool success, ) = recipient.call{value: amount}("");
            require(success, "TokenUtils: ETH transfer failed");
        }
    }

    function transferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        require(
            address(token) != address(0),
            "TokenUtils: ETH transferFrom must be caller"
        );
        token.safeTransferFrom({from: from, to: to, value: amount});
    }

    /// Sends any token balance in the contract to the recipient.
    function transferBalance(
        IERC20 token,
        address payable recipient
    ) internal returns (uint256) {
        uint256 balance = getBalanceOf({token: token, addr: address(this)});
        if (balance > 0) {
            transfer({token: token, recipient: recipient, amount: balance});
        }
        return balance;
    }
}

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

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

Settings
{
  "remappings": [
    "account-abstraction/=lib/account-abstraction/contracts/",
    "@axelar-network/=lib/axelar-gmp-sdk-solidity/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "p256-verifier/=lib/p256-verifier/src/",
    "@uniswap/v3-core/=lib/v3-core/",
    "@uniswap/v3-periphery/=lib/v3-periphery/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "axelar-gmp-sdk-solidity/=lib/axelar-gmp-sdk-solidity/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "solmate/=lib/solmate/src/",
    "v3-core/=lib/v3-core/contracts/",
    "v3-periphery/=lib/v3-periphery/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract V3SpokePoolInterface","name":"_spokePool","type":"address"},{"internalType":"uint256[]","name":"_toChainIds","type":"uint256[]"},{"components":[{"internalType":"address","name":"bridgeTokenIn","type":"address"},{"internalType":"address","name":"bridgeTokenOut","type":"address"},{"internalType":"uint256","name":"pctFee","type":"uint256"},{"internalType":"uint256","name":"flatFee","type":"uint256"}],"internalType":"struct DaimoPayAcrossBridger.AcrossBridgeRoute[]","name":"_bridgeRoutes","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"address","name":"fromToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toChainId","type":"uint256"},{"indexed":false,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"toAmount","type":"uint256"}],"name":"BridgeInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"toChainId","type":"uint256"},{"components":[{"internalType":"address","name":"bridgeTokenIn","type":"address"},{"internalType":"address","name":"bridgeTokenOut","type":"address"},{"internalType":"uint256","name":"pctFee","type":"uint256"},{"internalType":"uint256","name":"flatFee","type":"uint256"}],"indexed":false,"internalType":"struct DaimoPayAcrossBridger.AcrossBridgeRoute","name":"bridgeRoute","type":"tuple"}],"name":"BridgeRouteAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"toChainId","type":"uint256"},{"components":[{"internalType":"address","name":"bridgeTokenIn","type":"address"},{"internalType":"address","name":"bridgeTokenOut","type":"address"},{"internalType":"uint256","name":"pctFee","type":"uint256"},{"internalType":"uint256","name":"flatFee","type":"uint256"}],"indexed":false,"internalType":"struct DaimoPayAcrossBridger.AcrossBridgeRoute","name":"bridgeRoute","type":"tuple"}],"name":"BridgeRouteRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ONE_HUNDRED_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"toChainId","type":"uint256"}],"name":"bridgeRouteMapping","outputs":[{"internalType":"address","name":"bridgeTokenIn","type":"address"},{"internalType":"address","name":"bridgeTokenOut","type":"address"},{"internalType":"uint256","name":"pctFee","type":"uint256"},{"internalType":"uint256","name":"flatFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"toChainId","type":"uint256"},{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenAmount[]","name":"bridgeTokenOutOptions","type":"tuple[]"}],"name":"getBridgeTokenIn","outputs":[{"internalType":"address","name":"bridgeTokenIn","type":"address"},{"internalType":"uint256","name":"inAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"toChainIds","type":"uint256[]"}],"name":"removeBridgeRoutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"toChainId","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"},{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenAmount[]","name":"bridgeTokenOutOptions","type":"tuple[]"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"sendToChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"toChainIds","type":"uint256[]"},{"components":[{"internalType":"address","name":"bridgeTokenIn","type":"address"},{"internalType":"address","name":"bridgeTokenOut","type":"address"},{"internalType":"uint256","name":"pctFee","type":"uint256"},{"internalType":"uint256","name":"flatFee","type":"uint256"}],"internalType":"struct DaimoPayAcrossBridger.AcrossBridgeRoute[]","name":"bridgeRoutes","type":"tuple[]"}],"name":"setBridgeRoutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spokePool","outputs":[{"internalType":"contract V3SpokePoolInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523461037757611d11803803806100198161038c565b928339810160808282031261037757610031826103b1565b602083015191906001600160a01b03831683036103775760408401516001600160401b0381116103775784019382601f860112156103775784519461007d610078876103c5565b61038c565b9560208088838152019160051b8301019185831161037757602001905b82821061037c575050506060810151906001600160401b038211610377570182601f82011215610377578051906100d3610078836103c5565b9360208086858152019360071b8301019181831161037757602001925b8284106102fa575050505060018060a01b03169182156102e457600180546001600160a01b0319908116909155600080549182168517815560405194916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3670de0b6b3a764000060805260a052825191815183036102a2575060005b8281106101c45760405161190a9081610407823960805181818161027c0152611534015260a0518181816102ea01528181610c6301528181610d3201528181610e510152610fb20152f35b806101d1600192846103dc565b516101dc82876103dc565b516000908152600260208181526040928390208451815460a089901b8990038019918216928116929092178355928601518883018054909416911617909155918301519082015560609091015160039091015561023981866103dc565b517fe96aa79026770fec7012b5a3e3cb07618568662b405b5281ac10973d85165afd608061026784876103dc565b51606060405191878060a01b038151168352878060a01b0360208201511660208401526040810151604084015201516060820152a201610179565b62461bcd60e51b815260206004820152601f60248201527f445041423a2077726f6e6720627269646765526f75746573206c656e677468006044820152606490fd5b631e4fbdf760e01b600052600060045260246000fd5b608084830312610377576040519060808201906001600160401b0382118383101761036157608092602092604052610331876103b1565b815261033e8388016103b1565b8382015260408701516040820152606087015160608201528152019301926100f0565b634e487b7160e01b600052604160045260246000fd5b600080fd5b815181526020918201910161009a565b6040519190601f01601f191682016001600160401b0381118382101761036157604052565b51906001600160a01b038216820361037757565b6001600160401b0381116103615760051b60200190565b80518210156103f05760209160051b010190565b634e487b7160e01b600052603260045260246000fdfe608080604052600436101561001357600080fd5b600090813560e01c90816302443a6c1461112d575080631c59e972146109c45780635943e590146106c557806359cfc1cc1461052d578063715018a61461046957806379ba50971461035f5780638da5cb5b1461030e578063afdac3d61461029f578063dd0081c714610246578063e30c3978146101f4578063f2fde38b1461012e5763f80e0a42146100a557600080fd5b3461012b5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b576024359067ffffffffffffffff821161012b576100ff6100f736600485016112a6565b60043561147f565b50506040805173ffffffffffffffffffffffffffffffffffffffff939093168352602083019190915290f35b80fd5b503461012b5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760043573ffffffffffffffffffffffffffffffffffffffff81168091036101f0576101876116ab565b807fffffffffffffffffffffffff0000000000000000000000000000000000000000600154161760015573ffffffffffffffffffffffffffffffffffffffff8254167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b5080fd5b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b57602073ffffffffffffffffffffffffffffffffffffffff60015416604051908152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5773ffffffffffffffffffffffffffffffffffffffff6020915416604051908152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b573373ffffffffffffffffffffffffffffffffffffffff600154160361043d577fffffffffffffffffffffffff0000000000000000000000000000000000000000600154166001558054337fffffffffffffffffffffffff0000000000000000000000000000000000000000821617825573ffffffffffffffffffffffffffffffffffffffff3391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b807f118cdaa7000000000000000000000000000000000000000000000000000000006024925233600452fd5b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b576104a06116ab565b7fffffffffffffffffffffffff0000000000000000000000000000000000000000600154166001558073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461012b5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760043567ffffffffffffffff81116101f05761057d903690600401611358565b6105856116ab565b815b81518110156106c1578061059d60019284611400565b5184526002602052604084206003604051916105b883611231565b73ffffffffffffffffffffffffffffffffffffffff815416835273ffffffffffffffffffffffffffffffffffffffff85820154166020840152600281015460408401520154606082015261060c8285611400565b518552600260205284600360408220828155828682015582600282015501557fb7cf1af1ce5c625df9b41e62238d1cb5fecefcb07414ad535b885df37fccd13b6106b86106598487611400565b519260405191829182919091606080608083019473ffffffffffffffffffffffffffffffffffffffff815116845273ffffffffffffffffffffffffffffffffffffffff6020820151166020850152604081015160408501520151910152565b0390a201610587565b8280f35b503461012b5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760043567ffffffffffffffff81116101f057610715903690600401611358565b60243567ffffffffffffffff81116109c057366023820112156109c05780600401356107408161128e565b9161074e604051938461124d565b8183526024602084019260071b820101903682116109bc57602401915b8183106109685750505061077d6116ab565b8151918151830361090a57835b838110610795578480f35b806107a260019285611400565b516107ad8285611400565b518752600260205260036060604089209273ffffffffffffffffffffffffffffffffffffffff80825116167fffffffffffffffffffffffff000000000000000000000000000000000000000085541617845573ffffffffffffffffffffffffffffffffffffffff60208201511673ffffffffffffffffffffffffffffffffffffffff87860191167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556040810151600285015501519101556108748184611400565b517fe96aa79026770fec7012b5a3e3cb07618568662b405b5281ac10973d85165afd6109016108a38488611400565b5160405191829182919091606080608083019473ffffffffffffffffffffffffffffffffffffffff815116845273ffffffffffffffffffffffffffffffffffffffff6020820151166020850152604081015160408501520151910152565b0390a20161078a565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f445041423a2077726f6e6720627269646765526f75746573206c656e677468006044820152fd5b6080833603126109bc57602060809160405161098381611231565b61098c866111c0565b81526109998387016111c0565b83820152604086013560408201526060860135606082015281520192019161076b565b8580fd5b8280fd5b503461012b5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760243573ffffffffffffffffffffffffffffffffffffffff811681036101f05760443567ffffffffffffffff81116109c057610a349036906004016112a6565b6064359167ffffffffffffffff8311611129573660238401121561112957826004013567ffffffffffffffff81116111255783019060248201923684116109bc5746600435146110c757610a8a9060043561147f565b959091929686156110695760606080604051610aa5816111e6565b8b81528b60208201528b60408201528b83820152015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc602483890301011261106557602481013567ffffffffffffffff811161106157019460a0908690031261105d578760405195610b19876111e6565b610b25602482016111c0565b8752610b33604482016113b5565b6020880152610b44606482016113b5565b6040880152610b55608482016113b5565b606088015260a481013567ffffffffffffffff81116109c057602491010182601f820112156101f0578035610b89816113c6565b93610b97604051958661124d565b818552602082840101116109c05780602080930183860137830101526080850152610c216040517f23b872dd00000000000000000000000000000000000000000000000000000000602082015233602482015230604482015283606482015260648152610c0560848261124d565b73ffffffffffffffffffffffffffffffffffffffff8816611772565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248301526044808301859052825288908190610ca160648561124d565b8351908273ffffffffffffffffffffffffffffffffffffffff8c165af1610cc6611807565b8161102e575b508061100e575b15610f6b575b5073ffffffffffffffffffffffffffffffffffffffff8451169363ffffffff6020820151169063ffffffff604082015116608063ffffffff6060840151169201519273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163b15610f6757918a93918a9373ffffffffffffffffffffffffffffffffffffffff80976040519889977f7b9392320000000000000000000000000000000000000000000000000000000089523060048a0152818d1660248a015216604488015216998a60648701528860848701528b60a487015260043560c487015260e486015261010485015261012484015261014483015261018061016483015280519081610184840152835b828110610f4b575050817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83866101a4809686010152011681010301818373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165af18015610f4057610eeb575b509173ffffffffffffffffffffffffffffffffffffffff60e094927f7a1aaa549d494a115465b34eba936c63fadb6c733c73b1aa66b46ff791df5847969482604051963388521660208701526040860152600435606086015216608084015260a083015260c0820152a180f35b60e0949287610f337f7a1aaa549d494a115465b34eba936c63fadb6c733c73b1aa66b46ff791df58479896949973ffffffffffffffffffffffffffffffffffffffff9461124d565b9792949650929450610e7e565b6040513d89823e3d90fd5b60208183018101516101a488840101528c955086945001610dfa565b8a80fd5b61100890610c056040517f095ea7b300000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248201528a604482015260448152610fec60648261124d565b73ffffffffffffffffffffffffffffffffffffffff8a16611772565b38610cd9565b5073ffffffffffffffffffffffffffffffffffffffff87163b1515610cd3565b8051801592508215611043575b505038610ccc565b611056925060208091830101910161175a565b388061103b565b8780fd5b8980fd5b8880fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f445041423a207a65726f20616d6f756e740000000000000000000000000000006044820152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f445041423a2073616d6520636861696e000000000000000000000000000000006044820152fd5b8480fd5b8380fd5b9050346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576040608092600435815260026020522073ffffffffffffffffffffffffffffffffffffffff8154169073ffffffffffffffffffffffffffffffffffffffff60018201541660036002830154920154928452602084015260408301526060820152f35b359073ffffffffffffffffffffffffffffffffffffffff821682036111e157565b600080fd5b60a0810190811067ffffffffffffffff82111761120257604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff82111761120257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761120257604052565b67ffffffffffffffff81116112025760051b60200190565b81601f820112156111e1578035906112bd8261128e565b926112cb604051948561124d565b82845260208085019360061b830101918183116111e157602001925b8284106112f5575050505090565b6040848303126111e157604051906040820182811067ffffffffffffffff8211176112025760405284359073ffffffffffffffffffffffffffffffffffffffff821682036111e157826020926040945282870135838201528152019301926112e7565b9080601f830112156111e157813561136f8161128e565b9261137d604051948561124d565b81845260208085019260051b8201019283116111e157602001905b8282106113a55750505090565b8135815260209182019101611398565b359063ffffffff821682036111e157565b67ffffffffffffffff811161120257601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b80518210156114145760209160051b010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9190820180921161145057565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60005260026020526040600020906040519261149a84611231565b73ffffffffffffffffffffffffffffffffffffffff835416845273ffffffffffffffffffffffffffffffffffffffff600184015416926020850193808552600360028301549260408801938452015490606087019182521561164d5761151773ffffffffffffffffffffffffffffffffffffffff865116856116fa565b84518110156115ef57602061152c8287611400565b51015161155b7f0000000000000000000000000000000000000000000000000000000000000000945185611443565b928382029382850414821517156114505784156115c05773ffffffffffffffffffffffffffffffffffffffff61159c81936020976115b39704935190611443565b99511698808211156115b957505b96511694611400565b51015190565b90506115aa565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f445041423a206261642062726964676520746f6b656e000000000000000000006044820152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f445041423a2062726964676520726f757465206e6f7420666f756e64000000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff6000541633036116cc57565b7f118cdaa7000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b80519160005b83811061170d5750505090565b73ffffffffffffffffffffffffffffffffffffffff61172c8285611400565b51511673ffffffffffffffffffffffffffffffffffffffff83161461175357600101611700565b9250505090565b908160209103126111e1575180151581036111e15790565b60008073ffffffffffffffffffffffffffffffffffffffff6117a993169360208151910182865af16117a2611807565b9083611837565b80519081151591826117ec575b50506117bf5750565b7f5274afe70000000000000000000000000000000000000000000000000000000060005260045260246000fd5b6117ff925060208091830101910161175a565b1538806117b6565b3d15611832573d90611818826113c6565b91611826604051938461124d565b82523d6000602084013e565b606090565b90611876575080511561184c57805190602001fd5b7f1425ea420000000000000000000000000000000000000000000000000000000060005260046000fd5b815115806118cb575b611887575090565b73ffffffffffffffffffffffffffffffffffffffff907f9996b315000000000000000000000000000000000000000000000000000000006000521660045260246000fd5b50803b1561187f56fea26469706673582212205e46e7bbdb122f2b745c18cd0cd391a42d83550f3496bdc98ac25860270263ad64736f6c634300081a00330000000000000000000000002f321372e8a9755cd2ca6114eb8da32a14f8100b0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000a4b100000000000000000000000000000000000000000000000000000000000021050000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000e708000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008900000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000007000000000000000000000000430000000000000000000000000000000000000400000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000ddb07829fc0000000000000000000000000000000000000000000000000000000fc6f9eae99d400000000000000000000000043000000000000000000000000000000000000040000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000c1448303c80000000000000000000000000000000000000000000000000000000dc59d8698c780000000000000000000000004300000000000000000000000000000000000004000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000011a70d42ba4c000000000000000000000000000000000000000000000000000000e883d948a763a0000000000000000000000004300000000000000000000000000000000000004000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f0000000000000000000000000000000000000000000000000009f295cd5f00000000000000000000000000000000000000000000000000000000b325a1b0490200000000000000000000000043000000000000000000000000000000000000040000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000d343ec2048d800000000000000000000000043000000000000000000000000000000000000040000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000000000000000000000000000000000088b160bf0d8c00000000000000000000000043000000000000000000000000000000000000040000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000aa87bee5380000000000000000000000000000000000000000000000000000000c8ea2e07caaa

Deployed Bytecode

0x608080604052600436101561001357600080fd5b600090813560e01c90816302443a6c1461112d575080631c59e972146109c45780635943e590146106c557806359cfc1cc1461052d578063715018a61461046957806379ba50971461035f5780638da5cb5b1461030e578063afdac3d61461029f578063dd0081c714610246578063e30c3978146101f4578063f2fde38b1461012e5763f80e0a42146100a557600080fd5b3461012b5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b576024359067ffffffffffffffff821161012b576100ff6100f736600485016112a6565b60043561147f565b50506040805173ffffffffffffffffffffffffffffffffffffffff939093168352602083019190915290f35b80fd5b503461012b5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760043573ffffffffffffffffffffffffffffffffffffffff81168091036101f0576101876116ab565b807fffffffffffffffffffffffff0000000000000000000000000000000000000000600154161760015573ffffffffffffffffffffffffffffffffffffffff8254167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b5080fd5b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b57602073ffffffffffffffffffffffffffffffffffffffff60015416604051908152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760206040517f0000000000000000000000000000000000000000000000000de0b6b3a76400008152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e1168152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5773ffffffffffffffffffffffffffffffffffffffff6020915416604051908152f35b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b573373ffffffffffffffffffffffffffffffffffffffff600154160361043d577fffffffffffffffffffffffff0000000000000000000000000000000000000000600154166001558054337fffffffffffffffffffffffff0000000000000000000000000000000000000000821617825573ffffffffffffffffffffffffffffffffffffffff3391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b807f118cdaa7000000000000000000000000000000000000000000000000000000006024925233600452fd5b503461012b57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b576104a06116ab565b7fffffffffffffffffffffffff0000000000000000000000000000000000000000600154166001558073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461012b5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760043567ffffffffffffffff81116101f05761057d903690600401611358565b6105856116ab565b815b81518110156106c1578061059d60019284611400565b5184526002602052604084206003604051916105b883611231565b73ffffffffffffffffffffffffffffffffffffffff815416835273ffffffffffffffffffffffffffffffffffffffff85820154166020840152600281015460408401520154606082015261060c8285611400565b518552600260205284600360408220828155828682015582600282015501557fb7cf1af1ce5c625df9b41e62238d1cb5fecefcb07414ad535b885df37fccd13b6106b86106598487611400565b519260405191829182919091606080608083019473ffffffffffffffffffffffffffffffffffffffff815116845273ffffffffffffffffffffffffffffffffffffffff6020820151166020850152604081015160408501520151910152565b0390a201610587565b8280f35b503461012b5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760043567ffffffffffffffff81116101f057610715903690600401611358565b60243567ffffffffffffffff81116109c057366023820112156109c05780600401356107408161128e565b9161074e604051938461124d565b8183526024602084019260071b820101903682116109bc57602401915b8183106109685750505061077d6116ab565b8151918151830361090a57835b838110610795578480f35b806107a260019285611400565b516107ad8285611400565b518752600260205260036060604089209273ffffffffffffffffffffffffffffffffffffffff80825116167fffffffffffffffffffffffff000000000000000000000000000000000000000085541617845573ffffffffffffffffffffffffffffffffffffffff60208201511673ffffffffffffffffffffffffffffffffffffffff87860191167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556040810151600285015501519101556108748184611400565b517fe96aa79026770fec7012b5a3e3cb07618568662b405b5281ac10973d85165afd6109016108a38488611400565b5160405191829182919091606080608083019473ffffffffffffffffffffffffffffffffffffffff815116845273ffffffffffffffffffffffffffffffffffffffff6020820151166020850152604081015160408501520151910152565b0390a20161078a565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f445041423a2077726f6e6720627269646765526f75746573206c656e677468006044820152fd5b6080833603126109bc57602060809160405161098381611231565b61098c866111c0565b81526109998387016111c0565b83820152604086013560408201526060860135606082015281520192019161076b565b8580fd5b8280fd5b503461012b5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012b5760243573ffffffffffffffffffffffffffffffffffffffff811681036101f05760443567ffffffffffffffff81116109c057610a349036906004016112a6565b6064359167ffffffffffffffff8311611129573660238401121561112957826004013567ffffffffffffffff81116111255783019060248201923684116109bc5746600435146110c757610a8a9060043561147f565b959091929686156110695760606080604051610aa5816111e6565b8b81528b60208201528b60408201528b83820152015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc602483890301011261106557602481013567ffffffffffffffff811161106157019460a0908690031261105d578760405195610b19876111e6565b610b25602482016111c0565b8752610b33604482016113b5565b6020880152610b44606482016113b5565b6040880152610b55608482016113b5565b606088015260a481013567ffffffffffffffff81116109c057602491010182601f820112156101f0578035610b89816113c6565b93610b97604051958661124d565b818552602082840101116109c05780602080930183860137830101526080850152610c216040517f23b872dd00000000000000000000000000000000000000000000000000000000602082015233602482015230604482015283606482015260648152610c0560848261124d565b73ffffffffffffffffffffffffffffffffffffffff8816611772565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e11660248301526044808301859052825288908190610ca160648561124d565b8351908273ffffffffffffffffffffffffffffffffffffffff8c165af1610cc6611807565b8161102e575b508061100e575b15610f6b575b5073ffffffffffffffffffffffffffffffffffffffff8451169363ffffffff6020820151169063ffffffff604082015116608063ffffffff6060840151169201519273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e1163b15610f6757918a93918a9373ffffffffffffffffffffffffffffffffffffffff80976040519889977f7b9392320000000000000000000000000000000000000000000000000000000089523060048a0152818d1660248a015216604488015216998a60648701528860848701528b60a487015260043560c487015260e486015261010485015261012484015261014483015261018061016483015280519081610184840152835b828110610f4b575050817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83866101a4809686010152011681010301818373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e1165af18015610f4057610eeb575b509173ffffffffffffffffffffffffffffffffffffffff60e094927f7a1aaa549d494a115465b34eba936c63fadb6c733c73b1aa66b46ff791df5847969482604051963388521660208701526040860152600435606086015216608084015260a083015260c0820152a180f35b60e0949287610f337f7a1aaa549d494a115465b34eba936c63fadb6c733c73b1aa66b46ff791df58479896949973ffffffffffffffffffffffffffffffffffffffff9461124d565b9792949650929450610e7e565b6040513d89823e3d90fd5b60208183018101516101a488840101528c955086945001610dfa565b8a80fd5b61100890610c056040517f095ea7b300000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e11660248201528a604482015260448152610fec60648261124d565b73ffffffffffffffffffffffffffffffffffffffff8a16611772565b38610cd9565b5073ffffffffffffffffffffffffffffffffffffffff87163b1515610cd3565b8051801592508215611043575b505038610ccc565b611056925060208091830101910161175a565b388061103b565b8780fd5b8980fd5b8880fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f445041423a207a65726f20616d6f756e740000000000000000000000000000006044820152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f445041423a2073616d6520636861696e000000000000000000000000000000006044820152fd5b8480fd5b8380fd5b9050346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576040608092600435815260026020522073ffffffffffffffffffffffffffffffffffffffff8154169073ffffffffffffffffffffffffffffffffffffffff60018201541660036002830154920154928452602084015260408301526060820152f35b359073ffffffffffffffffffffffffffffffffffffffff821682036111e157565b600080fd5b60a0810190811067ffffffffffffffff82111761120257604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff82111761120257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761120257604052565b67ffffffffffffffff81116112025760051b60200190565b81601f820112156111e1578035906112bd8261128e565b926112cb604051948561124d565b82845260208085019360061b830101918183116111e157602001925b8284106112f5575050505090565b6040848303126111e157604051906040820182811067ffffffffffffffff8211176112025760405284359073ffffffffffffffffffffffffffffffffffffffff821682036111e157826020926040945282870135838201528152019301926112e7565b9080601f830112156111e157813561136f8161128e565b9261137d604051948561124d565b81845260208085019260051b8201019283116111e157602001905b8282106113a55750505090565b8135815260209182019101611398565b359063ffffffff821682036111e157565b67ffffffffffffffff811161120257601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b80518210156114145760209160051b010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9190820180921161145057565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60005260026020526040600020906040519261149a84611231565b73ffffffffffffffffffffffffffffffffffffffff835416845273ffffffffffffffffffffffffffffffffffffffff600184015416926020850193808552600360028301549260408801938452015490606087019182521561164d5761151773ffffffffffffffffffffffffffffffffffffffff865116856116fa565b84518110156115ef57602061152c8287611400565b51015161155b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000945185611443565b928382029382850414821517156114505784156115c05773ffffffffffffffffffffffffffffffffffffffff61159c81936020976115b39704935190611443565b99511698808211156115b957505b96511694611400565b51015190565b90506115aa565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f445041423a206261642062726964676520746f6b656e000000000000000000006044820152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f445041423a2062726964676520726f757465206e6f7420666f756e64000000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff6000541633036116cc57565b7f118cdaa7000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b80519160005b83811061170d5750505090565b73ffffffffffffffffffffffffffffffffffffffff61172c8285611400565b51511673ffffffffffffffffffffffffffffffffffffffff83161461175357600101611700565b9250505090565b908160209103126111e1575180151581036111e15790565b60008073ffffffffffffffffffffffffffffffffffffffff6117a993169360208151910182865af16117a2611807565b9083611837565b80519081151591826117ec575b50506117bf5750565b7f5274afe70000000000000000000000000000000000000000000000000000000060005260045260246000fd5b6117ff925060208091830101910161175a565b1538806117b6565b3d15611832573d90611818826113c6565b91611826604051938461124d565b82523d6000602084013e565b606090565b90611876575080511561184c57805190602001fd5b7f1425ea420000000000000000000000000000000000000000000000000000000060005260046000fd5b815115806118cb575b611887575090565b73ffffffffffffffffffffffffffffffffffffffff907f9996b315000000000000000000000000000000000000000000000000000000006000521660045260246000fd5b50803b1561187f56fea26469706673582212205e46e7bbdb122f2b745c18cd0cd391a42d83550f3496bdc98ac25860270263ad64736f6c634300081a0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000002f321372e8a9755cd2ca6114eb8da32a14f8100b0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000a4b100000000000000000000000000000000000000000000000000000000000021050000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000e708000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008900000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000007000000000000000000000000430000000000000000000000000000000000000400000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000ddb07829fc0000000000000000000000000000000000000000000000000000000fc6f9eae99d400000000000000000000000043000000000000000000000000000000000000040000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000c1448303c80000000000000000000000000000000000000000000000000000000dc59d8698c780000000000000000000000004300000000000000000000000000000000000004000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000011a70d42ba4c000000000000000000000000000000000000000000000000000000e883d948a763a0000000000000000000000004300000000000000000000000000000000000004000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f0000000000000000000000000000000000000000000000000009f295cd5f00000000000000000000000000000000000000000000000000000000b325a1b0490200000000000000000000000043000000000000000000000000000000000000040000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000d343ec2048d800000000000000000000000043000000000000000000000000000000000000040000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000000000000000000000000000000000088b160bf0d8c00000000000000000000000043000000000000000000000000000000000000040000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000aa87bee5380000000000000000000000000000000000000000000000000000000c8ea2e07caaa

-----Decoded View---------------
Arg [0] : _owner (address): 0x2F321372E8A9755CD2Ca6114eB8da32A14F8100b
Arg [1] : _spokePool (address): 0x2D509190Ed0172ba588407D4c2df918F955Cc6E1
Arg [2] : _toChainIds (uint256[]): 42161,8453,1,59144,10,137,480
Arg [3] : _bridgeRoutes (tuple[]):
Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
Arg [3] : pctFee (uint256): 3900000000000000
Arg [4] : flatFee (uint256): 277556333812180

Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0x4200000000000000000000000000000000000006
Arg [3] : pctFee (uint256): 3400000000000000
Arg [4] : flatFee (uint256): 242278440995960

Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [3] : pctFee (uint256): 79500000000000000
Arg [4] : flatFee (uint256): 4090447740433978

Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
Arg [3] : pctFee (uint256): 2800000000000000
Arg [4] : flatFee (uint256): 196974207846658

Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0x4200000000000000000000000000000000000006
Arg [3] : pctFee (uint256): 3200000000000000
Arg [4] : flatFee (uint256): 232288677808344

Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619
Arg [3] : pctFee (uint256): 1600000000000000
Arg [4] : flatFee (uint256): 150295413722508

Arg [1] : bridgeTokenIn (address): 0x4300000000000000000000000000000000000004
Arg [2] : bridgeTokenOut (address): 0x4200000000000000000000000000000000000006
Arg [3] : pctFee (uint256): 3000000000000000
Arg [4] : flatFee (uint256): 220908120165034


-----Encoded View---------------
41 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f321372e8a9755cd2ca6114eb8da32a14f8100b
Arg [1] : 0000000000000000000000002d509190ed0172ba588407d4c2df918f955cc6e1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 000000000000000000000000000000000000000000000000000000000000a4b1
Arg [6] : 0000000000000000000000000000000000000000000000000000000000002105
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 000000000000000000000000000000000000000000000000000000000000e708
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000089
Arg [11] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [13] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [14] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
Arg [15] : 000000000000000000000000000000000000000000000000000ddb07829fc000
Arg [16] : 0000000000000000000000000000000000000000000000000000fc6f9eae99d4
Arg [17] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [18] : 0000000000000000000000004200000000000000000000000000000000000006
Arg [19] : 000000000000000000000000000000000000000000000000000c1448303c8000
Arg [20] : 0000000000000000000000000000000000000000000000000000dc59d8698c78
Arg [21] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [22] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [23] : 000000000000000000000000000000000000000000000000011a70d42ba4c000
Arg [24] : 000000000000000000000000000000000000000000000000000e883d948a763a
Arg [25] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [26] : 000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f
Arg [27] : 0000000000000000000000000000000000000000000000000009f295cd5f0000
Arg [28] : 0000000000000000000000000000000000000000000000000000b325a1b04902
Arg [29] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [30] : 0000000000000000000000004200000000000000000000000000000000000006
Arg [31] : 000000000000000000000000000000000000000000000000000b5e620f480000
Arg [32] : 0000000000000000000000000000000000000000000000000000d343ec2048d8
Arg [33] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [34] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [35] : 0000000000000000000000000000000000000000000000000005af3107a40000
Arg [36] : 000000000000000000000000000000000000000000000000000088b160bf0d8c
Arg [37] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [38] : 0000000000000000000000004200000000000000000000000000000000000006
Arg [39] : 000000000000000000000000000000000000000000000000000aa87bee538000
Arg [40] : 0000000000000000000000000000000000000000000000000000c8ea2e07caaa


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.