Contract 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c4 4

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd255a4440b5ee82adb1750ce9ed1fed7290d2993d6063d35791ceaf2eb5048f4Swap And Send735688382024-06-25 19:12:493 mins ago0xd31b3df3befdd1aa07954d8a80a82d12e7351c5d IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.002857594135704 ETH0.00000244 0.01
0x65ee04c80ac0dcfb2631c0150dd64b060180099b9c00f043db536ed9d17a29daSwap And Send735688312024-06-25 19:12:073 mins ago0x317833f839c9a58706f12eb5d54d407b018eba77 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.0022 ETH0.00000243 0.01
0xcb7deaffa69ea88f48f42aaa521671b87649a42c1cc8854fa06bae747696a61fSwap And Send735685792024-06-25 18:59:2316 mins ago0x0208ddbc05a91e1b937e8b3140b62ef22a274c95 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00021281215026 ETH0.000002440.01
0x272f9060d9989c22754192c997c8cd3953c0bda0d535410a30ca38bcef8d9945Swap And Send735685302024-06-25 18:56:1019 mins ago0xd5dcff602bcbfd2e5d7b2cdd84eee083921ede7a IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00396813056 ETH0.00000244 0.01
0x561c846aafc8b8f01705611a2c5f6bdaf4a0cc69531f2755f6d29ba9d06f84b6Swap And Send735680542024-06-25 18:31:3744 mins ago0x83437e7573239bfec2b759373129338e41c91aec IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.002849988973088 ETH0.00000244 0.01
0xbcb943201653e2525797ae6aeaa05353080e12209604246cc5af2955b5aa8ae6Swap And Send735678792024-06-25 18:21:3754 mins ago0xe6fe61bf2597615d1d88a979e44b6fc78643feca IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00272 ETH0.00000244 0.01
0xdda736c81ad578e4d01c868abe829bb668bc57d793d0e07966ea388b31228c05Swap And Send735678702024-06-25 18:21:1654 mins ago0x94e3bc5ca5630fcb81350fa878675f8659f2ec4c IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x11525d5bc1a20a613e9ad1fc9eed3eb1adc9497047fff6104dbdf67e96c35535Swap And Send735678622024-06-25 18:20:5255 mins ago0xec1e5afba542f408b5a00aaf2f60fbdfd70b8d70 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00272 ETH0.00000243 0.01
0x48bfade7482dff9c0e72a40357fef950c92aa9b62ef9c381caff9013017eb360Swap And Send735678552024-06-25 18:20:2755 mins ago0xb2454e1daeca264c81931c728316e0ddab22fc75 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00272 ETH0.00000244 0.01
0xcfb74d439554f7ee838103cc41a6eca04d96e92122bb543e1df9d4dcc3c72cb0Swap And Send735678382024-06-25 18:20:0255 mins ago0x9aa51bc297637e49b9210238ba816b6a806b2ba8 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00272 ETH0.00000244 0.01
0x577946ff360513c29d4a1235192fe02afb202fc1955678fe810a7e6623810a7cSwap And Send735677532024-06-25 18:14:141 hr 1 min ago0xd03544ad7e7ab0833a059dd80ac9b8b972383a15 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.002742 ETH0.00000244 0.01
0xd497f281d69d35e1ab881b26653f55f25f02f2eb99100db768d38a0eb32c3b06Swap And Send735677372024-06-25 18:12:461 hr 3 mins ago0x7b0b5b7c964ff14820ca9a857dd3a04e20a88279 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x5c7e78847fd601bd8dd9f94506c46a7c2ce92fd94580338fb96f0002d8096ed2Swap And Send735677202024-06-25 18:11:161 hr 4 mins ago0x601b8d6097bd638d17074400993fc57571792f50 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000243 0.01
0x16267919167ff76c41136f0260af59792058be52b55f33770fbbbe87d68ff82eSwap And Send735677152024-06-25 18:10:531 hr 5 mins ago0x5262e8b9868f32411ccd552cd9afb79ef06f627a IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x789dc10edc07b132368281282cdd15fa1fc3858b96fb64c24c1b2b05e242e9d7Swap And Send735677112024-06-25 18:10:321 hr 5 mins ago0x3a0da36c0760de7d7977f48abce396966b472863 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x8ba623bd32c5c3188f23996993b62535539a125644995e33ab1ad69f4cc27aa7Swap And Send735676982024-06-25 18:09:191 hr 6 mins ago0xc834bea2284351f150073984227f556e83e0a662 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x9e96823ffa45c766e01f1d861fc41e3cf3850b6920259f801ff8b3b15a118285Swap And Send735676952024-06-25 18:08:571 hr 7 mins ago0x195035bbaaf0c837cde26d8aab58431d7c7636c3 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00273 ETH0.00000244 0.01
0xe97204203cec745e41d48215bb078e600181a7e762b0a0ca31d481210709d1b6Swap And Send735676902024-06-25 18:08:351 hr 7 mins ago0xaf2824888c94cd29a843ae75e9b5d881dc442642 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x76001d65cdc866ce6b01f516ba690ddf1c3d2ca64bb1a8b0898daf66757f1cc3Swap And Send735676862024-06-25 18:08:151 hr 7 mins ago0x1bb4619674cd0694236b78e5300f15b72b5238b1 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00273 ETH0.00000244 0.01
0x75de9bc79154ea8e0837935d5c70aba22bffc3c3956163d050ea2499a35ae8b9Swap And Send735676782024-06-25 18:07:491 hr 8 mins ago0x26ff2b2d0c535d0bfb38529122218cd585fde2f9 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00262 ETH0.00000244 0.01
0x14e982744772362cdb08f453ec8a7c298a919d758d57ce4bf14cae20fbe5edc1Swap And Send735676672024-06-25 18:06:181 hr 9 mins ago0x94b92ab6e0ef32327b266d26aebcd070bbaa488f IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.001233748910439 ETH0.000002440.01
0x9ff8c7c181169ca87e8878e6371efe8bbd09808948ab14ebb2112feb6b1817bfSwap And Send735676662024-06-25 18:06:171 hr 9 mins ago0xe18858c92cb9e4f9fba41e5ec96372539ad3026a IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0xa26109be6427f54694c37d120e0011dc36bf8b155028ef2d390c59717bb8b3ffSwap And Send735676632024-06-25 18:05:501 hr 10 mins ago0x2186f6143e46cb7c07203fb5676ca98e98e970c3 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
0x8ffe49b6659522155dcf785095306012564d701889fb916e4f45a20f78bdfa3cSwap And Send735676452024-06-25 18:04:381 hr 11 mins ago0x619d96842a515d8892061e03bce516fa6a9fd54d IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00273 ETH0.00000244 0.01
0xf1560aee9e9e7362341c071ced7f6027f15d87ada550acd69b43bcffed04d098Swap And Send735676412024-06-25 18:04:151 hr 11 mins ago0xe1a03fdf647b8521b9093f6cf4874f58a2709810 IN  0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00274 ETH0.00000244 0.01
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd255a4440b5ee82adb1750ce9ed1fed7290d2993d6063d35791ceaf2eb5048f4735688382024-06-25 19:12:493 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c4 Wrapped Ether: WETH Token0.002857594135704925 ETH
0x3d5c976ff2f6a4bc9e73e0c7270dc339cfb3ae04ff92f82cf1b1b1175e3ac2af735688322024-06-25 19:12:173 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40x77550cfd14ffae7c4ae1f9de4638a7ec864059800.000920756448880437 ETH
0x3d5c976ff2f6a4bc9e73e0c7270dc339cfb3ae04ff92f82cf1b1b1175e3ac2af735688322024-06-25 19:12:173 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000920756448880437 ETH
0x65ee04c80ac0dcfb2631c0150dd64b060180099b9c00f043db536ed9d17a29da735688312024-06-25 19:12:073 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c4 Wrapped Ether: WETH Token0.0022 ETH
0xabe1ec4eb51ca3dba9bc5f7e14b1891fb06de9b2abb1f2a719758d5ec2484cc3735687442024-06-25 19:07:488 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40x6889b320e7f3624dc1e4c5249e4338328d9b0bb50.000620587905499516 ETH
0xabe1ec4eb51ca3dba9bc5f7e14b1891fb06de9b2abb1f2a719758d5ec2484cc3735687442024-06-25 19:07:488 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000620587905499516 ETH
0x860a97b206a7c23c110a8090957f23771ac84afcb4d67d30bf92e67108078b14735686092024-06-25 19:01:0214 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40xa669bf23193b40c0f29b2bed5797a17a263d0dbc0.000850973381104552 ETH
0x860a97b206a7c23c110a8090957f23771ac84afcb4d67d30bf92e67108078b14735686092024-06-25 19:01:0214 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000850973381104552 ETH
0xcb7deaffa69ea88f48f42aaa521671b87649a42c1cc8854fa06bae747696a61f735685792024-06-25 18:59:2316 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c4 Wrapped Ether: WETH Token0.000212812150260358 ETH
0x272f9060d9989c22754192c997c8cd3953c0bda0d535410a30ca38bcef8d9945735685302024-06-25 18:56:1019 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c4 Wrapped Ether: WETH Token0.00396813056 ETH
0x07fab0ec70baf534451a433df21e2f6fb7934b366bee6e2bef3323eb6b1cd055735684242024-06-25 18:49:0726 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40x794baf41d58e1fed51e720410c86a6edd1d2bb490.00012023336769618 ETH
0x07fab0ec70baf534451a433df21e2f6fb7934b366bee6e2bef3323eb6b1cd055735684242024-06-25 18:49:0726 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00012023336769618 ETH
0xdefbab273a63da2b5e6bcf75a2d79ef014be8c487933d35e5affcaba3ecff8c7735683812024-06-25 18:46:3129 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40xaf7018949329da2b09a273e1268d9f38615f92a50.000420410436709574 ETH
0xdefbab273a63da2b5e6bcf75a2d79ef014be8c487933d35e5affcaba3ecff8c7735683812024-06-25 18:46:3129 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000420410436709574 ETH
0x514427fb08d1738961790b13c9dfb6204985343b7a038c8b8c1225f6cc4a3ea2735683692024-06-25 18:46:0129 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40xaf7018949329da2b09a273e1268d9f38615f92a50.000420261345710685 ETH
0x514427fb08d1738961790b13c9dfb6204985343b7a038c8b8c1225f6cc4a3ea2735683692024-06-25 18:46:0129 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000420261345710685 ETH
0x399e186e4fc8f738d2a29665e0e8a72165138dc7009dfce8840bae951edbeca7735682882024-06-25 18:42:3333 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40x0208ddbc05a91e1b937e8b3140b62ef22a274c950.000220303210260358 ETH
0x399e186e4fc8f738d2a29665e0e8a72165138dc7009dfce8840bae951edbeca7735682882024-06-25 18:42:3333 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000220303210260358 ETH
0x7f85655234cc2f37e847a2dd178da0c685fbe96a5614f857801259d28229d0e9735682062024-06-25 18:39:0036 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40xa844ebcb9a50b7d2015c22d476b50bbb5095a2720.000020217935855274 ETH
0x7f85655234cc2f37e847a2dd178da0c685fbe96a5614f857801259d28229d0e9735682062024-06-25 18:39:0036 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.000020217935855274 ETH
0x4ea80ca743066e8041a45cb080212b3c48a263eb7b9cddc6d3854c2ba142e985735681192024-06-25 18:34:2641 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40x1662bb30a6848359b7da073147e4ba41bcece05d0.190017783095051504 ETH
0x4ea80ca743066e8041a45cb080212b3c48a263eb7b9cddc6d3854c2ba142e985735681192024-06-25 18:34:2641 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.190017783095051504 ETH
0x561c846aafc8b8f01705611a2c5f6bdaf4a0cc69531f2755f6d29ba9d06f84b6735680542024-06-25 18:31:3744 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c4 Wrapped Ether: WETH Token0.002849988973088739 ETH
0x2a65b2521fc269185d878cb3a7fd0ce6d345c55ba86d51856a069067c76c69f7735680362024-06-25 18:30:5345 mins ago 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40x59cdc116f8048860f85b707a33899233eacc91b90.00008132375260484 ETH
0x2a65b2521fc269185d878cb3a7fd0ce6d345c55ba86d51856a069067c76c69f7735680362024-06-25 18:30:5345 mins ago Wrapped Ether: WETH Token 0xd6bfb71b5ad5fd378cac15c72d8652e3b8d542c40.00008132375260484 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x1CD391bd1D915D189dE162F0F1963C07E60E4CD6
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
L2_AmmWrapper

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 50000 runs

Other Settings:
default evmVersion
File 1 of 3 : L2_AmmWrapper.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;

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

interface ISwap {
    function swap(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx,
        uint256 minDy,
        uint256 deadline
    ) external returns (uint256);
}

interface IL2_Bridge {
    function send(
        uint256 chainId,
        address recipient,
        uint256 amount,
        uint256 bonderFee,
        uint256 amountOutMin,
        uint256 deadline
    ) external;
}

contract L2_AmmWrapper {

    IL2_Bridge public immutable bridge;
    IERC20 public immutable l2CanonicalToken;
    bool public immutable l2CanonicalTokenIsEth;
    IERC20 public immutable hToken;
    ISwap public immutable exchangeAddress;

    /// @notice When l2CanonicalTokenIsEth is true, l2CanonicalToken should be set to the WETH address
    constructor(
        IL2_Bridge _bridge,
        IERC20 _l2CanonicalToken,
        bool _l2CanonicalTokenIsEth,
        IERC20 _hToken,
        ISwap _exchangeAddress
    )
        public
    {
        bridge = _bridge;
        l2CanonicalToken = _l2CanonicalToken;
        l2CanonicalTokenIsEth = _l2CanonicalTokenIsEth;
        hToken = _hToken;
        exchangeAddress = _exchangeAddress;
    }

    receive() external payable {}

    /// @notice amount is the amount the user wants to send plus the Bonder fee
    function swapAndSend(
        uint256 chainId,
        address recipient,
        uint256 amount,
        uint256 bonderFee,
        uint256 amountOutMin,
        uint256 deadline,
        uint256 destinationAmountOutMin,
        uint256 destinationDeadline
    )
        public
        payable
    {
        require(amount >= bonderFee, "L2_AMM_W: Bonder fee cannot exceed amount");

        if (l2CanonicalTokenIsEth) {
            require(msg.value == amount, "L2_AMM_W: Value does not match amount");
            IWETH(address(l2CanonicalToken)).deposit{value: amount}();
        } else {
            require(l2CanonicalToken.transferFrom(msg.sender, address(this), amount), "L2_AMM_W: TransferFrom failed");
        }

        require(l2CanonicalToken.approve(address(exchangeAddress), amount), "L2_AMM_W: Approve failed");
        uint256 swapAmount = exchangeAddress.swap(
            0,
            1,
            amount,
            amountOutMin,
            deadline
        );

        bridge.send(chainId, recipient, swapAmount, bonderFee, destinationAmountOutMin, destinationDeadline);
    }

    function attemptSwap(
        address recipient,
        uint256 amount,
        uint256 amountOutMin,
        uint256 deadline
    )
        external
    {
        require(hToken.transferFrom(msg.sender, address(this), amount), "L2_AMM_W: TransferFrom failed");
        require(hToken.approve(address(exchangeAddress), amount), "L2_AMM_W: Approve failed");

        uint256 amountOut = 0;
        try exchangeAddress.swap(
            1,
            0,
            amount,
            amountOutMin,
            deadline
        ) returns (uint256 _amountOut) {
            amountOut = _amountOut;
        } catch {}

        if (amountOut == 0) {
            // Transfer hToken to recipient if swap fails
            require(hToken.transfer(recipient, amount), "L2_AMM_W: Transfer failed");
            return;
        }

        if (l2CanonicalTokenIsEth) {
            IWETH(address(l2CanonicalToken)).withdraw(amountOut);
            (bool success, ) = recipient.call{value: amountOut}(new bytes(0));
            require(success, 'L2_AMM_W: ETH transfer failed');
        } else {
            require(l2CanonicalToken.transfer(recipient, amountOut), "L2_AMM_W: Transfer failed");
        }
    }
}

File 2 of 3 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @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);
}

File 3 of 3 : IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.12 <=0.7.6;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 50000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"contract IL2_Bridge","name":"_bridge","type":"address"},{"internalType":"contract IERC20","name":"_l2CanonicalToken","type":"address"},{"internalType":"bool","name":"_l2CanonicalTokenIsEth","type":"bool"},{"internalType":"contract IERC20","name":"_hToken","type":"address"},{"internalType":"contract ISwap","name":"_exchangeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"attemptSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"contract IL2_Bridge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchangeAddress","outputs":[{"internalType":"contract ISwap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2CanonicalToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2CanonicalTokenIsEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"bonderFee","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"destinationAmountOutMin","type":"uint256"},{"internalType":"uint256","name":"destinationDeadline","type":"uint256"}],"name":"swapAndSend","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100745760003560e01c80639cd016051161004e5780639cd01605146100ef578063e78cea9214610104578063eea0d7b214610119578063fc6e3b3b1461012c5761007b565b80631ee1bf671461008057806328555125146100ab578063676c5ef6146100cd5761007b565b3661007b57005b600080fd5b34801561008c57600080fd5b50610095610141565b6040516100a29190610ef7565b60405180910390f35b3480156100b757600080fd5b506100c0610165565b6040516100a29190610eec565b3480156100d957600080fd5b506100ed6100e8366004610d86565b610189565b005b3480156100fb57600080fd5b5061009561082c565b34801561011057600080fd5b50610095610850565b6100ed610127366004610dfd565b610874565b34801561013857600080fd5b50610095610d39565b7f000000000000000000000000722e8bdd2ce80a4422e880164f2079488e11536581565b7f000000000000000000000000000000000000000000000000000000000000000181565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba9d3040e79ec1e27c67fe8b184f552fe9398f0716906323b872dd906101ff90339030908890600401610e95565b602060405180830381600087803b15801561021957600080fd5b505af115801561022d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102519190610dbe565b610290576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161028790610f43565b60405180910390fd5b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba9d3040e79ec1e27c67fe8b184f552fe9398f07169063095ea7b390610324907f0000000000000000000000009908109e51d093cf17ef945df2c62cb17cb877c4908790600401610ec6565b602060405180830381600087803b15801561033e57600080fd5b505af1158015610352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103769190610dbe565b6103ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610287906110a2565b6040517f9169558600000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000009908109e51d093cf17ef945df2c62cb17cb877c4169063916955869061042a906001908590899089908990600401610f18565b602060405180830381600087803b15801561044457600080fd5b505af1925050508015610492575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261048f91810190610de5565b60015b61049b5761049e565b90505b806105a5576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba9d3040e79ec1e27c67fe8b184f552fe9398f07169063a9059cbb906105179088908890600401610ec6565b602060405180830381600087803b15801561053157600080fd5b505af1158015610545573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105699190610dbe565b61059f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102879061100e565b50610826565b7f000000000000000000000000000000000000000000000000000000000000000115610728576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000722e8bdd2ce80a4422e880164f2079488e1153651690632e1a7d4d9061063d9084906004016110d9565b600060405180830381600087803b15801561065757600080fd5b505af115801561066b573d6000803e3d6000fd5b50506040805160008082526020820192839052935073ffffffffffffffffffffffffffffffffffffffff8916925084916106a59190610e5c565b60006040518083038185875af1925050503d80600081146106e2576040519150601f19603f3d011682016040523d82523d6000602084013e6106e7565b606091505b5050905080610722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161028790610f7a565b50610824565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365169063a9059cbb9061079c9088908590600401610ec6565b602060405180830381600087803b1580156107b657600080fd5b505af11580156107ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ee9190610dbe565b610824576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102879061100e565b505b50505050565b7f0000000000000000000000009908109e51d093cf17ef945df2c62cb17cb877c481565b7f0000000000000000000000008796860ca1677bf5d54ce5a348fe4b779a8212f381565b848610156108ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161028790611045565b7f0000000000000000000000000000000000000000000000000000000000000001156109935785341461090d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161028790610fb1565b7f000000000000000000000000722e8bdd2ce80a4422e880164f2079488e11536573ffffffffffffffffffffffffffffffffffffffff1663d0e30db0876040518263ffffffff1660e01b81526004016000604051808303818588803b15801561097557600080fd5b505af1158015610989573d6000803e3d6000fd5b5050505050610a91565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000722e8bdd2ce80a4422e880164f2079488e11536516906323b872dd90610a0990339030908b90600401610e95565b602060405180830381600087803b158015610a2357600080fd5b505af1158015610a37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5b9190610dbe565b610a91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161028790610f43565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365169063095ea7b390610b25907f0000000000000000000000009908109e51d093cf17ef945df2c62cb17cb877c4908a90600401610ec6565b602060405180830381600087803b158015610b3f57600080fd5b505af1158015610b53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b779190610dbe565b610bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610287906110a2565b6040517f9169558600000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000009908109e51d093cf17ef945df2c62cb17cb877c41690639169558690610c2b9084906001908c908b908b90600401610f18565b602060405180830381600087803b158015610c4557600080fd5b505af1158015610c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7d9190610de5565b6040517fa6bd1b3300000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008796860ca1677bf5d54ce5a348fe4b779a8212f3169063a6bd1b3390610cfc908c908c9086908c908a908a906004016110e2565b600060405180830381600087803b158015610d1657600080fd5b505af1158015610d2a573d6000803e3d6000fd5b50505050505050505050505050565b7f000000000000000000000000ba9d3040e79ec1e27c67fe8b184f552fe9398f0781565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d8157600080fd5b919050565b60008060008060808587031215610d9b578384fd5b610da485610d5d565b966020860135965060408601359560600135945092505050565b600060208284031215610dcf578081fd5b81518015158114610dde578182fd5b9392505050565b600060208284031215610df6578081fd5b5051919050565b600080600080600080600080610100898b031215610e19578384fd5b88359750610e2960208a01610d5d565b979a9799505050506040860135956060810135956080820135955060a0820135945060c0820135935060e0909101359150565b60008251815b81811015610e7c5760208186018101518583015201610e62565b81811115610e8a5782828501525b509190910192915050565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b901515815260200190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b60ff958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6020808252601d908201527f4c325f414d4d5f573a205472616e7366657246726f6d206661696c6564000000604082015260600190565b6020808252601d908201527f4c325f414d4d5f573a20455448207472616e73666572206661696c6564000000604082015260600190565b60208082526025908201527f4c325f414d4d5f573a2056616c756520646f6573206e6f74206d61746368206160408201527f6d6f756e74000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4c325f414d4d5f573a205472616e73666572206661696c656400000000000000604082015260600190565b60208082526029908201527f4c325f414d4d5f573a20426f6e646572206665652063616e6e6f74206578636560408201527f656420616d6f756e740000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c325f414d4d5f573a20417070726f7665206661696c65640000000000000000604082015260600190565b90815260200190565b95865273ffffffffffffffffffffffffffffffffffffffff94909416602086015260408501929092526060840152608083015260a082015260c0019056fea26469706673582212205fed1a0b58c665b58ab760e191e8fc20321a1cdeb964a2c4bdf9f9f89e44ee1a64736f6c63430007060033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.