ETH Price: $1,948.59 (-0.73%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Swap Tokens244543782026-02-14 10:17:3515 days ago1771064255IN
Stargate Finance: Widget Swap
0.00048494 ETH0.000733431.72412274
Swap Tokens244543742026-02-14 10:16:4715 days ago1771064207IN
Stargate Finance: Widget Swap
0.00048494 ETH0.000671741.57911281
Swap ETH244498382026-02-13 19:06:1116 days ago1771009571IN
Stargate Finance: Widget Swap
0.00162224 ETH0.000040230.09764902
Swap ETH244071942026-02-07 20:00:1122 days ago1770494411IN
Stargate Finance: Widget Swap
0.00058257 ETH0.001188042.83556104
Swap ETH243826942026-02-04 9:48:5925 days ago1770198539IN
Stargate Finance: Widget Swap
0.0005416 ETH0.000860652.05409825
Swap ETH243785852026-02-03 20:02:4726 days ago1770148967IN
Stargate Finance: Widget Swap
0.00381392 ETH0.00143163.41657456
Swap ETH243768172026-02-03 14:06:1126 days ago1770127571IN
Stargate Finance: Widget Swap
0.00056892 ETH0.001049792.50551088
Swap Tokens243719002026-02-02 21:36:5927 days ago1770068219IN
Stargate Finance: Widget Swap
0.00043724 ETH0.000563311.32753193
Swap ETH243694042026-02-02 13:14:4727 days ago1770038087IN
Stargate Finance: Widget Swap
0.00242691 ETH0.001552993.70627859
Swap ETH243410542026-01-29 14:17:3531 days ago1769696255IN
Stargate Finance: Widget Swap
0.00065644 ETH0.00123442.94593654
Swap ETH243401922026-01-29 11:24:3531 days ago1769685875IN
Stargate Finance: Widget Swap
0.00045644 ETH0.000626171.49448388
Swap ETH243401882026-01-29 11:23:4731 days ago1769685827IN
Stargate Finance: Widget Swap
0.00045644 ETH0.00074041.76710303
Swap ETH243401782026-01-29 11:21:4731 days ago1769685707IN
Stargate Finance: Widget Swap
0.00045644 ETH0.000652011.55613704
Swap Tokens243128772026-01-25 15:58:5935 days ago1769356739IN
Stargate Finance: Widget Swap
0.00034396 ETH0.000794011.89328768
Swap ETH242570302026-01-17 21:03:1143 days ago1768683791IN
Stargate Finance: Widget Swap
0.0003995 ETH0.000575571.37375041
Swap ETH242347532026-01-14 18:32:1146 days ago1768415531IN
Stargate Finance: Widget Swap
0.0003795 ETH0.001156322.75976999
Swap ETH242147702026-01-11 23:31:2349 days ago1768174283IN
Stargate Finance: Widget Swap
0.0004895 ETH0.000415240.99105156
Swap ETH242045442026-01-10 13:17:3550 days ago1768051055IN
Stargate Finance: Widget Swap
0.0004695 ETH0.000645261.54002809
Swap ETH241980682026-01-09 15:37:5951 days ago1767973079IN
Stargate Finance: Widget Swap
0.0005195 ETH0.001245282.97208271
Swap Tokens241829732026-01-07 13:02:4753 days ago1767790967IN
Stargate Finance: Widget Swap
0.00032062 ETH0.000713281.70089747
Swap Tokens241772182026-01-06 17:46:2354 days ago1767721583IN
Stargate Finance: Widget Swap
0.00033636 ETH0.001043842.48912634
Swap Tokens241338772025-12-31 16:43:1160 days ago1767199391IN
Stargate Finance: Widget Swap
0.00035005 ETH0.001292023.00669129
Swap ETH241267492025-12-30 16:49:5961 days ago1767113399IN
Stargate Finance: Widget Swap
0.0004266 ETH0.000037090.08854095
Swap ETH241221142025-12-30 1:15:2361 days ago1767057323IN
Stargate Finance: Widget Swap
0.00038844 ETH0.000017710.04227282
Swap ETH241220862025-12-30 1:09:4761 days ago1767056987IN
Stargate Finance: Widget Swap
0.00038844 ETH0.000016990.04056462
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Swap244543782026-02-14 10:17:3515 days ago1771064255
Stargate Finance: Widget Swap
0.00048494 ETH
Swap244543742026-02-14 10:16:4715 days ago1771064207
Stargate Finance: Widget Swap
0.00048494 ETH
Swap ETH244498382026-02-13 19:06:1116 days ago1771009571
Stargate Finance: Widget Swap
0.00162214 ETH
Transfer244498382026-02-13 19:06:1116 days ago1771009571
Stargate Finance: Widget Swap
0.0000001 ETH
Swap ETH244071942026-02-07 20:00:1122 days ago1770494411
Stargate Finance: Widget Swap
0.00058157 ETH
Transfer244071942026-02-07 20:00:1122 days ago1770494411
Stargate Finance: Widget Swap
0.000001 ETH
Swap ETH243826942026-02-04 9:48:5925 days ago1770198539
Stargate Finance: Widget Swap
0.0005406 ETH
Transfer243826942026-02-04 9:48:5925 days ago1770198539
Stargate Finance: Widget Swap
0.000001 ETH
Swap ETH243785852026-02-03 20:02:4726 days ago1770148967
Stargate Finance: Widget Swap
0.00378052 ETH
Transfer243785852026-02-03 20:02:4726 days ago1770148967
Stargate Finance: Widget Swap
0.0000334 ETH
Swap ETH243768172026-02-03 14:06:1126 days ago1770127571
Stargate Finance: Widget Swap
0.00056762 ETH
Transfer243768172026-02-03 14:06:1126 days ago1770127571
Stargate Finance: Widget Swap
0.0000013 ETH
Swap243719002026-02-02 21:36:5927 days ago1770068219
Stargate Finance: Widget Swap
0.00043724 ETH
Swap ETH243694042026-02-02 13:14:4727 days ago1770038087
Stargate Finance: Widget Swap
0.00240731 ETH
Transfer243694042026-02-02 13:14:4727 days ago1770038087
Stargate Finance: Widget Swap
0.0000196 ETH
Swap ETH243410542026-01-29 14:17:3531 days ago1769696255
Stargate Finance: Widget Swap
0.00065334 ETH
Transfer243410542026-01-29 14:17:3531 days ago1769696255
Stargate Finance: Widget Swap
0.0000031 ETH
Swap ETH243401922026-01-29 11:24:3531 days ago1769685875
Stargate Finance: Widget Swap
0.00045534 ETH
Transfer243401922026-01-29 11:24:3531 days ago1769685875
Stargate Finance: Widget Swap
0.0000011 ETH
Swap ETH243401882026-01-29 11:23:4731 days ago1769685827
Stargate Finance: Widget Swap
0.00045534 ETH
Transfer243401882026-01-29 11:23:4731 days ago1769685827
Stargate Finance: Widget Swap
0.0000011 ETH
Swap ETH243401782026-01-29 11:21:4731 days ago1769685707
Stargate Finance: Widget Swap
0.00045534 ETH
Transfer243401782026-01-29 11:21:4731 days ago1769685707
Stargate Finance: Widget Swap
0.0000011 ETH
Swap243128772026-01-25 15:58:5935 days ago1769356739
Stargate Finance: Widget Swap
0.00034396 ETH
Swap ETH242570302026-01-17 21:03:1143 days ago1768683791
Stargate Finance: Widget Swap
0.0003987 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WidgetSwap

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;
pragma abicoder v2;

import "@openzeppelin-8/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin-8/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IStargateRouter.sol";
import "./interfaces/IStargateRouterETH.sol";
import "./interfaces/IStargateFactory.sol";
import "./interfaces/IStargateWidget.sol";

contract WidgetSwap is ReentrancyGuard, IStargateWidget {
    using SafeERC20 for IERC20;

    IStargateRouter public immutable stargateRouter;
    IStargateRouterETH public immutable stargateRouterETH;
    IStargateFactory public immutable stargateFactory;
    uint256 public constant TENTH_BPS_DENOMINATOR = 100000;
    uint256 public constant MAX_UINT = 2**256 - 1;
    mapping(address => bool) public tokenApproved;

    constructor(address _stargateRouter, address _stargateRouterETH, address _stargateFactory) {
        stargateRouter = IStargateRouter(_stargateRouter);
        stargateRouterETH = IStargateRouterETH(_stargateRouterETH);
        stargateFactory = IStargateFactory(_stargateFactory);
    }

    // allow anyone to emit this msg alongside their stargate tx so they can get credited for their referral
    // to get credit this event must be emitted in the same tx as a stargate swap event
    function partnerSwap(bytes2 _partnerId) external override {
        emit PartnerSwap(_partnerId);
    }

    function swapTokens(
        uint16 _dstChainId,
        uint16 _srcPoolId,
        uint16 _dstPoolId,
        uint256 _amountLD,
        uint256 _minAmountLD,
        IStargateRouter.lzTxObj calldata _lzTxParams,
        bytes calldata _to,
        bytes2 _partnerId,
        FeeObj calldata _feeObj
    ) external override nonReentrant payable {
        uint256 widgetFee = _getAndPayWidgetFee(_srcPoolId, _amountLD, _feeObj);

        stargateRouter.swap{value:msg.value}(
            _dstChainId,
            _srcPoolId,
            _dstPoolId,
            payable(msg.sender),
            _amountLD - widgetFee,
            _minAmountLD,
            _lzTxParams,
            _to,
            ""
        );

        emit WidgetSwapped(_partnerId, _feeObj.tenthBps, widgetFee);
    }

    function swapETH(
        uint16 _dstChainId,
        uint256 _amountLD,
        uint256 _minAmountLD,
        bytes calldata _to,
        bytes2 _partnerId,
        FeeObj calldata _feeObj
    ) external override nonReentrant payable {
        // allows us to deploy same contract on non eth chains
        require(address(stargateRouterETH) != address(0x0), "WidgetSwap: func not available");

        uint256 widgetFee = _getAndPayWidgetFeeETH(_amountLD, _feeObj);

        // "value:" contains the amount of eth to swap and the stargate/layerZero fees, minus the widget fee
        stargateRouterETH.swapETH{value:msg.value - widgetFee}(
            _dstChainId,
            payable(msg.sender),
            _to,
            _amountLD - widgetFee,
            _minAmountLD
        );

        emit WidgetSwapped(_partnerId, _feeObj.tenthBps, widgetFee);
    }


    function _getAndPayWidgetFee(
        uint16 _srcPoolId,
        uint256 _amountLD,
        FeeObj calldata _feeObj
    ) internal returns (uint256 widgetFee) {
        // corresponding token to the poolId
        address token = stargateFactory.getPool(_srcPoolId).token();

        // move all the tokens to this contract
        IERC20(token).safeTransferFrom(msg.sender, address(this), _amountLD);

        // calculate the widgetFee
        widgetFee = _amountLD * _feeObj.tenthBps / TENTH_BPS_DENOMINATOR;

        // pay the widget fee
        IERC20(token).safeTransfer(_feeObj.feeCollector, widgetFee);

        // only call max approval once
        if (!tokenApproved[token]) {
            tokenApproved[token] = true;
            // allow stargateRouter to spend the tokens to be transferred
            IERC20(token).safeApprove(address(stargateRouter), MAX_UINT);
        }

        return widgetFee;
    }

    function _getAndPayWidgetFeeETH(
        uint256 _amountLD,
        FeeObj calldata _feeObj
    ) internal returns (uint256 widgetFee) {
        // calculate the widgetFee
        widgetFee = _amountLD * _feeObj.tenthBps / TENTH_BPS_DENOMINATOR;
        require(msg.value > widgetFee, "WidgetSwap: not enough eth for widgetFee");

        // verify theres enough eth to cover the amount to swap
        require(msg.value - widgetFee > _amountLD, "WidgetSwap: not enough eth for swap");

        // pay the widget fee
        (bool success, ) = _feeObj.feeCollector.call{value: widgetFee}("");
        require(success, "WidgetSwap: failed to transfer widgetFee");

        return widgetFee;
    }
}

File 2 of 11 : IStargatePool.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;

interface IStargatePool {
    function token() external returns (address);
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

/**
 * @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.
 */
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].
     */
    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 v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @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, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * 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.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @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`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../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 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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 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);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @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.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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.isContract(address(token));
    }
}

// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.7.6 <=0.8.4;
pragma abicoder v2;

interface IStargateRouter {
    struct lzTxObj {
        uint256 dstGasForCall;
        uint256 dstNativeAmount;
        bytes dstNativeAddr;
    }

    function addLiquidity(
        uint256 _poolId,
        uint256 _amountLD,
        address _to
    ) external;

    function swap(
        uint16 _dstChainId,
        uint256 _srcPoolId,
        uint256 _dstPoolId,
        address payable _refundAddress,
        uint256 _amountLD,
        uint256 _minAmountLD,
        lzTxObj memory _lzTxParams,
        bytes calldata _to,
        bytes calldata _payload
    ) external payable;

    function redeemRemote(
        uint16 _dstChainId,
        uint256 _srcPoolId,
        uint256 _dstPoolId,
        address payable _refundAddress,
        uint256 _amountLP,
        uint256 _minAmountLD,
        bytes calldata _to,
        lzTxObj memory _lzTxParams
    ) external payable;

    function instantRedeemLocal(
        uint16 _srcPoolId,
        uint256 _amountLP,
        address _to
    ) external returns (uint256);

    function redeemLocal(
        uint16 _dstChainId,
        uint256 _srcPoolId,
        uint256 _dstPoolId,
        address payable _refundAddress,
        uint256 _amountLP,
        bytes calldata _to,
        lzTxObj memory _lzTxParams
    ) external payable;

    function sendCredits(
        uint16 _dstChainId,
        uint256 _srcPoolId,
        uint256 _dstPoolId,
        address payable _refundAddress
    ) external payable;

    function quoteLayerZeroFee(
        uint16 _dstChainId,
        uint8 _functionType,
        bytes calldata _toAddress,
        bytes calldata _transferAndCallPayload,
        lzTxObj memory _lzTxParams
    ) external view returns (uint256, uint256);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;
pragma abicoder v2;

interface IStargateRouterETH {
    function addLiquidityETH() external payable;

    function swapETH(
        uint16 dstChainId,
        address payable refundAddress,
        bytes calldata to,
        uint256 amountLD,
        uint256 minAmountLD
    ) external payable;
}

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

import "./IStargatePool.sol";

interface IStargateFactory {
    function getPool(uint256 _srcPoolId) external returns (IStargatePool);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;
pragma abicoder v2;

import "../interfaces/IStargateRouter.sol";

interface IStargateWidget {
    struct FeeObj {
        uint256 tenthBps; // bps is to an extra decimal place
        address feeCollector;
    }

    event WidgetSwapped(bytes2 indexed partnerId, uint256 tenthBps, uint256 widgetFee);
    event PartnerSwap(bytes2 indexed partnerId);

    function partnerSwap(bytes2 _partnerId) external;

    function swapTokens(
        uint16 _dstChainId,
        uint16 _srcPoolId,
        uint16 _dstPoolId,
        uint256 _amountLD,
        uint256 _minAmountLD,
        IStargateRouter.lzTxObj calldata _lzTxParams,
        bytes calldata _to,
        bytes2 _partnerId,
        FeeObj calldata _feeObj
    ) external payable;


    function swapETH(
        uint16 _dstChainId,
        uint256 _amountLD,
        uint256 _minAmountLD,
        bytes calldata _to,
        bytes2 _partnerId,
        FeeObj calldata _feeObj
    ) external payable;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_stargateRouter","type":"address"},{"internalType":"address","name":"_stargateRouterETH","type":"address"},{"internalType":"address","name":"_stargateFactory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"name":"PartnerSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes2","name":"partnerId","type":"bytes2"},{"indexed":false,"internalType":"uint256","name":"tenthBps","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"widgetFee","type":"uint256"}],"name":"WidgetSwapped","type":"event"},{"inputs":[],"name":"MAX_UINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TENTH_BPS_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes2","name":"_partnerId","type":"bytes2"}],"name":"partnerSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stargateFactory","outputs":[{"internalType":"contract IStargateFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateRouter","outputs":[{"internalType":"contract IStargateRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateRouterETH","outputs":[{"internalType":"contract IStargateRouterETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_amountLD","type":"uint256"},{"internalType":"uint256","name":"_minAmountLD","type":"uint256"},{"internalType":"bytes","name":"_to","type":"bytes"},{"internalType":"bytes2","name":"_partnerId","type":"bytes2"},{"components":[{"internalType":"uint256","name":"tenthBps","type":"uint256"},{"internalType":"address","name":"feeCollector","type":"address"}],"internalType":"struct IStargateWidget.FeeObj","name":"_feeObj","type":"tuple"}],"name":"swapETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_srcPoolId","type":"uint16"},{"internalType":"uint16","name":"_dstPoolId","type":"uint16"},{"internalType":"uint256","name":"_amountLD","type":"uint256"},{"internalType":"uint256","name":"_minAmountLD","type":"uint256"},{"components":[{"internalType":"uint256","name":"dstGasForCall","type":"uint256"},{"internalType":"uint256","name":"dstNativeAmount","type":"uint256"},{"internalType":"bytes","name":"dstNativeAddr","type":"bytes"}],"internalType":"struct IStargateRouter.lzTxObj","name":"_lzTxParams","type":"tuple"},{"internalType":"bytes","name":"_to","type":"bytes"},{"internalType":"bytes2","name":"_partnerId","type":"bytes2"},{"components":[{"internalType":"uint256","name":"tenthBps","type":"uint256"},{"internalType":"address","name":"feeCollector","type":"address"}],"internalType":"struct IStargateWidget.FeeObj","name":"_feeObj","type":"tuple"}],"name":"swapTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60e060405234801561001057600080fd5b506040516112fc3803806112fc83398101604081905261002f91610077565b60016000556001600160601b0319606093841b811660805291831b821660a05290911b1660c0526100b9565b80516001600160a01b038116811461007257600080fd5b919050565b60008060006060848603121561008b578283fd5b6100948461005b565b92506100a26020850161005b565b91506100b06040850161005b565b90509250925092565b60805160601c60a05160601c60c05160601c6111e96101136000396000818160f701526105550152600081816101430152818161032001526103b10152600081816101aa0152818161022001526106e501526111e96000f3fe6080604052600436106100865760003560e01c8063919d763711610059578063919d763714610165578063a87376e914610178578063a9e56f3c14610198578063beaeb55a146101cc578063e5b5019a146101f157600080fd5b8063170e2b8a1461008b5780632d62fc1a146100d057806330e7a49b146100e55780638e0f64d314610131575b600080fd5b34801561009757600080fd5b506100bb6100a6366004610d78565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6100e36100de366004610df1565b610207565b005b3480156100f157600080fd5b506101197f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100c7565b34801561013d57600080fd5b506101197f000000000000000000000000000000000000000000000000000000000000000081565b6100e3610173366004610ec8565b610316565b34801561018457600080fd5b506100e3610193366004610dd7565b61049d565b3480156101a457600080fd5b506101197f000000000000000000000000000000000000000000000000000000000000000081565b3480156101d857600080fd5b506101e3620186a081565b6040519081526020016100c7565b3480156101fd57600080fd5b506101e360001981565b61020f6104d5565b600061021c8a898461052f565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639fbf10fc348d8d8d33878f61025e9190611142565b8e8e8e8e6040518b63ffffffff1660e01b815260040161028699989796959493929190611024565b6000604051808303818588803b15801561029f57600080fd5b505af11580156102b3573d6000803e3d6000fd5b50506040805186358152602081018690526001600160f01b0319881694507fe005092a469280dafcad91e38921cc6f96eac91d73413489fd8719634163345e935001905060405180910390a25061030a6001600055565b50505050505050505050565b61031e6104d5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103995760405162461bcd60e51b815260206004820152601e60248201527f576964676574537761703a2066756e63206e6f7420617661696c61626c65000060448201526064015b60405180910390fd5b60006103a58783610714565b90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016631114cd2a6103e08334611142565b8a3389896103ee888f611142565b8d6040518863ffffffff1660e01b815260040161041096959493929190610fe0565b6000604051808303818588803b15801561042957600080fd5b505af115801561043d573d6000803e3d6000fd5b50506040805186358152602081018690526001600160f01b0319881694507fe005092a469280dafcad91e38921cc6f96eac91d73413489fd8719634163345e935001905060405180910390a2506104946001600055565b50505050505050565b6040516001600160f01b03198216907f85ce809fd9fd62b920fadc9d3a3a8e642d3969bf635276bfbdde866acce409fc90600090a250565b600260005414156105285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610390565b6002600055565b60405163068bcd8d60e01b815261ffff8416600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063068bcd8d90602401602060405180830381600087803b15801561059957600080fd5b505af11580156105ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d19190610d9b565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561060b57600080fd5b505af115801561061f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106439190610d9b565b905061065a6001600160a01b0382163330876108bf565b620186a0610669843586611123565b6106739190611103565b91506106996106886040850160208601610d78565b6001600160a01b0383169084610930565b6001600160a01b03811660009081526001602052604090205460ff1661070c576001600160a01b0381166000818152600160208190526040909120805460ff1916909117905561070c907f0000000000000000000000000000000000000000000000000000000000000000600019610965565b509392505050565b6000620186a0610725833585611123565b61072f9190611103565b90508034116107915760405162461bcd60e51b815260206004820152602860248201527f576964676574537761703a206e6f7420656e6f7567682065746820666f722077604482015267696467657446656560c01b6064820152608401610390565b8261079c8234611142565b116107f55760405162461bcd60e51b815260206004820152602360248201527f576964676574537761703a206e6f7420656e6f7567682065746820666f72207360448201526207761760ec1b6064820152608401610390565b60006108076040840160208501610d78565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610851576040519150601f19603f3d011682016040523d82523d6000602084013e610856565b606091505b50509050806108b85760405162461bcd60e51b815260206004820152602860248201527f576964676574537761703a206661696c656420746f207472616e736665722077604482015267696467657446656560c01b6064820152608401610390565b5092915050565b6040516001600160a01b038085166024830152831660448201526064810182905261092a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610a89565b50505050565b6040516001600160a01b03831660248201526044810182905261096090849063a9059cbb60e01b906064016108f3565b505050565b8015806109ee5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156109b457600080fd5b505afa1580156109c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ec9190610f50565b155b610a595760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610390565b6040516001600160a01b03831660248201526044810182905261096090849063095ea7b360e01b906064016108f3565b6000610ade826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b5e9092919063ffffffff16565b9050805160001480610aff575080806020019051810190610aff9190610db7565b6109605760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610390565b6060610b6d8484600085610b75565b949350505050565b606082471015610bd65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610390565b600080866001600160a01b03168587604051610bf29190610f91565b60006040518083038185875af1925050503d8060008114610c2f576040519150601f19603f3d011682016040523d82523d6000602084013e610c34565b606091505b5091509150610c4587838387610c50565b979650505050505050565b60608315610cbc578251610cb5576001600160a01b0385163b610cb55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610390565b5081610b6d565b610b6d8383815115610cd15781518083602001fd5b8060405162461bcd60e51b81526004016103909190610fad565b80356001600160f01b031981168114610d0357600080fd5b919050565b60008083601f840112610d19578182fd5b50813567ffffffffffffffff811115610d30578182fd5b602083019150836020828501011115610d4857600080fd5b9250929050565b600060408284031215610d60578081fd5b50919050565b803561ffff81168114610d0357600080fd5b600060208284031215610d89578081fd5b8135610d948161119b565b9392505050565b600060208284031215610dac578081fd5b8151610d948161119b565b600060208284031215610dc8578081fd5b81518015158114610d94578182fd5b600060208284031215610de8578081fd5b610d9482610ceb565b6000806000806000806000806000806101408b8d031215610e10578586fd5b610e198b610d66565b9950610e2760208c01610d66565b9850610e3560408c01610d66565b975060608b0135965060808b0135955060a08b013567ffffffffffffffff80821115610e5f578687fd5b908c01906060828f031215610e72578687fd5b90955060c08c01359080821115610e87578586fd5b50610e948d828e01610d08565b9095509350610ea7905060e08c01610ceb565b9150610eb78c6101008d01610d4f565b90509295989b9194979a5092959850565b600080600080600080600060e0888a031215610ee2578283fd5b610eeb88610d66565b96506020880135955060408801359450606088013567ffffffffffffffff811115610f14578384fd5b610f208a828b01610d08565b9095509350610f33905060808901610ceb565b9150610f428960a08a01610d4f565b905092959891949750929550565b600060208284031215610f61578081fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008251610fa3818460208701611159565b9190910192915050565b6020815260008251806020840152610fcc816040850160208701611159565b601f01601f19169190910160400192915050565b61ffff871681526001600160a01b038616602082015260a06040820181905260009061100f9083018688610f68565b60608301949094525060800152949350505050565b600061012061ffff808d168452808c166020850152808b1660408501525060018060a01b03891660608401528760808401528660a08401528060c08401528535818401525060208501356101408301526040850135601e1986360301811261108a578182fd5b8501803567ffffffffffffffff8111156110a2578283fd5b8036038713156110b0578283fd5b60606101608501526110ca61018085018260208501610f68565b91505082810360e08401526110e0818587610f68565b838103610100850152600081529050602081019c9b505050505050505050505050565b60008261111e57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561113d5761113d611185565b500290565b60008282101561115457611154611185565b500390565b60005b8381101561117457818101518382015260200161115c565b8381111561092a5750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146111b057600080fd5b5056fea264697066735822122094fb178accb673ae3c029f5b2318b082003c24fd330c57eabfb669939421e50c64736f6c634300080400330000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e98000000000000000000000000150f94b44927f078737562f0fcf3c95c01cc237600000000000000000000000006d538690af257da524f25d0cd52fd85b1c2173e

Deployed Bytecode

0x6080604052600436106100865760003560e01c8063919d763711610059578063919d763714610165578063a87376e914610178578063a9e56f3c14610198578063beaeb55a146101cc578063e5b5019a146101f157600080fd5b8063170e2b8a1461008b5780632d62fc1a146100d057806330e7a49b146100e55780638e0f64d314610131575b600080fd5b34801561009757600080fd5b506100bb6100a6366004610d78565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6100e36100de366004610df1565b610207565b005b3480156100f157600080fd5b506101197f00000000000000000000000006d538690af257da524f25d0cd52fd85b1c2173e81565b6040516001600160a01b0390911681526020016100c7565b34801561013d57600080fd5b506101197f000000000000000000000000150f94b44927f078737562f0fcf3c95c01cc237681565b6100e3610173366004610ec8565b610316565b34801561018457600080fd5b506100e3610193366004610dd7565b61049d565b3480156101a457600080fd5b506101197f0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e9881565b3480156101d857600080fd5b506101e3620186a081565b6040519081526020016100c7565b3480156101fd57600080fd5b506101e360001981565b61020f6104d5565b600061021c8a898461052f565b90507f0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e986001600160a01b0316639fbf10fc348d8d8d33878f61025e9190611142565b8e8e8e8e6040518b63ffffffff1660e01b815260040161028699989796959493929190611024565b6000604051808303818588803b15801561029f57600080fd5b505af11580156102b3573d6000803e3d6000fd5b50506040805186358152602081018690526001600160f01b0319881694507fe005092a469280dafcad91e38921cc6f96eac91d73413489fd8719634163345e935001905060405180910390a25061030a6001600055565b50505050505050505050565b61031e6104d5565b7f000000000000000000000000150f94b44927f078737562f0fcf3c95c01cc23766001600160a01b03166103995760405162461bcd60e51b815260206004820152601e60248201527f576964676574537761703a2066756e63206e6f7420617661696c61626c65000060448201526064015b60405180910390fd5b60006103a58783610714565b90506001600160a01b037f000000000000000000000000150f94b44927f078737562f0fcf3c95c01cc237616631114cd2a6103e08334611142565b8a3389896103ee888f611142565b8d6040518863ffffffff1660e01b815260040161041096959493929190610fe0565b6000604051808303818588803b15801561042957600080fd5b505af115801561043d573d6000803e3d6000fd5b50506040805186358152602081018690526001600160f01b0319881694507fe005092a469280dafcad91e38921cc6f96eac91d73413489fd8719634163345e935001905060405180910390a2506104946001600055565b50505050505050565b6040516001600160f01b03198216907f85ce809fd9fd62b920fadc9d3a3a8e642d3969bf635276bfbdde866acce409fc90600090a250565b600260005414156105285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610390565b6002600055565b60405163068bcd8d60e01b815261ffff8416600482015260009081906001600160a01b037f00000000000000000000000006d538690af257da524f25d0cd52fd85b1c2173e169063068bcd8d90602401602060405180830381600087803b15801561059957600080fd5b505af11580156105ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d19190610d9b565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561060b57600080fd5b505af115801561061f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106439190610d9b565b905061065a6001600160a01b0382163330876108bf565b620186a0610669843586611123565b6106739190611103565b91506106996106886040850160208601610d78565b6001600160a01b0383169084610930565b6001600160a01b03811660009081526001602052604090205460ff1661070c576001600160a01b0381166000818152600160208190526040909120805460ff1916909117905561070c907f0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e98600019610965565b509392505050565b6000620186a0610725833585611123565b61072f9190611103565b90508034116107915760405162461bcd60e51b815260206004820152602860248201527f576964676574537761703a206e6f7420656e6f7567682065746820666f722077604482015267696467657446656560c01b6064820152608401610390565b8261079c8234611142565b116107f55760405162461bcd60e51b815260206004820152602360248201527f576964676574537761703a206e6f7420656e6f7567682065746820666f72207360448201526207761760ec1b6064820152608401610390565b60006108076040840160208501610d78565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610851576040519150601f19603f3d011682016040523d82523d6000602084013e610856565b606091505b50509050806108b85760405162461bcd60e51b815260206004820152602860248201527f576964676574537761703a206661696c656420746f207472616e736665722077604482015267696467657446656560c01b6064820152608401610390565b5092915050565b6040516001600160a01b038085166024830152831660448201526064810182905261092a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610a89565b50505050565b6040516001600160a01b03831660248201526044810182905261096090849063a9059cbb60e01b906064016108f3565b505050565b8015806109ee5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156109b457600080fd5b505afa1580156109c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ec9190610f50565b155b610a595760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610390565b6040516001600160a01b03831660248201526044810182905261096090849063095ea7b360e01b906064016108f3565b6000610ade826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b5e9092919063ffffffff16565b9050805160001480610aff575080806020019051810190610aff9190610db7565b6109605760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610390565b6060610b6d8484600085610b75565b949350505050565b606082471015610bd65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610390565b600080866001600160a01b03168587604051610bf29190610f91565b60006040518083038185875af1925050503d8060008114610c2f576040519150601f19603f3d011682016040523d82523d6000602084013e610c34565b606091505b5091509150610c4587838387610c50565b979650505050505050565b60608315610cbc578251610cb5576001600160a01b0385163b610cb55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610390565b5081610b6d565b610b6d8383815115610cd15781518083602001fd5b8060405162461bcd60e51b81526004016103909190610fad565b80356001600160f01b031981168114610d0357600080fd5b919050565b60008083601f840112610d19578182fd5b50813567ffffffffffffffff811115610d30578182fd5b602083019150836020828501011115610d4857600080fd5b9250929050565b600060408284031215610d60578081fd5b50919050565b803561ffff81168114610d0357600080fd5b600060208284031215610d89578081fd5b8135610d948161119b565b9392505050565b600060208284031215610dac578081fd5b8151610d948161119b565b600060208284031215610dc8578081fd5b81518015158114610d94578182fd5b600060208284031215610de8578081fd5b610d9482610ceb565b6000806000806000806000806000806101408b8d031215610e10578586fd5b610e198b610d66565b9950610e2760208c01610d66565b9850610e3560408c01610d66565b975060608b0135965060808b0135955060a08b013567ffffffffffffffff80821115610e5f578687fd5b908c01906060828f031215610e72578687fd5b90955060c08c01359080821115610e87578586fd5b50610e948d828e01610d08565b9095509350610ea7905060e08c01610ceb565b9150610eb78c6101008d01610d4f565b90509295989b9194979a5092959850565b600080600080600080600060e0888a031215610ee2578283fd5b610eeb88610d66565b96506020880135955060408801359450606088013567ffffffffffffffff811115610f14578384fd5b610f208a828b01610d08565b9095509350610f33905060808901610ceb565b9150610f428960a08a01610d4f565b905092959891949750929550565b600060208284031215610f61578081fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008251610fa3818460208701611159565b9190910192915050565b6020815260008251806020840152610fcc816040850160208701611159565b601f01601f19169190910160400192915050565b61ffff871681526001600160a01b038616602082015260a06040820181905260009061100f9083018688610f68565b60608301949094525060800152949350505050565b600061012061ffff808d168452808c166020850152808b1660408501525060018060a01b03891660608401528760808401528660a08401528060c08401528535818401525060208501356101408301526040850135601e1986360301811261108a578182fd5b8501803567ffffffffffffffff8111156110a2578283fd5b8036038713156110b0578283fd5b60606101608501526110ca61018085018260208501610f68565b91505082810360e08401526110e0818587610f68565b838103610100850152600081529050602081019c9b505050505050505050505050565b60008261111e57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561113d5761113d611185565b500290565b60008282101561115457611154611185565b500390565b60005b8381101561117457818101518382015260200161115c565b8381111561092a5750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146111b057600080fd5b5056fea264697066735822122094fb178accb673ae3c029f5b2318b082003c24fd330c57eabfb669939421e50c64736f6c63430008040033

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

0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e98000000000000000000000000150f94b44927f078737562f0fcf3c95c01cc237600000000000000000000000006d538690af257da524f25d0cd52fd85b1c2173e

-----Decoded View---------------
Arg [0] : _stargateRouter (address): 0x8731d54E9D02c286767d56ac03e8037C07e01e98
Arg [1] : _stargateRouterETH (address): 0x150f94B44927F078737562f0fcF3C95c01Cc2376
Arg [2] : _stargateFactory (address): 0x06D538690AF257Da524f25D0CD52fD85b1c2173E

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e98
Arg [1] : 000000000000000000000000150f94b44927f078737562f0fcf3c95c01cc2376
Arg [2] : 00000000000000000000000006d538690af257da524f25d0cd52fd85b1c2173e


Deployed Bytecode Sourcemap

387:4309:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;760:45;;;;;;;;;;-1:-1:-1;760:45:5;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6443:14:11;;6436:22;6418:41;;6406:2;6391:18;760:45:5;;;;;;;;1411:786;;;;;;:::i;:::-;;:::i;:::-;;594:49;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6659:32:11;;;6641:51;;6629:2;6614:18;594:49:5;6596:102:11;535:53:5;;;;;;;;;;;;;;;2203:863;;;;;;:::i;:::-;;:::i;1302:103::-;;;;;;;;;;-1:-1:-1;1302:103:5;;;;;:::i;:::-;;:::i;482:47::-;;;;;;;;;;;;;;;649:54;;;;;;;;;;;;697:6;649:54;;;;;13826:25:11;;;13814:2;13799:18;649:54:5;13781:76:11;709:45:5;;;;;;;;;;;;-1:-1:-1;;709:45:5;;1411:786;2261:21:0;:19;:21::i;:::-;1767:17:5::1;1787:51;1807:10;1819:9;1830:7;1787:19;:51::i;:::-;1767:71;;1849:14;-1:-1:-1::0;;;;;1849:19:5::1;;1875:9;1899:11;1924:10;1948;1980;2017:9;2005;:21;;;;:::i;:::-;2040:12;2066:11;2091:3;;1849:271;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;2136:54:5::1;::::0;;2162:16;::::1;14036:25:11::0;;14092:2;14077:18;;14070:34;;;-1:-1:-1;;;;;;2136:54:5;::::1;::::0;-1:-1:-1;2136:54:5::1;::::0;-1:-1:-1;14009:18:11;;-1:-1:-1;2136:54:5::1;;;;;;;2292:1:0;2303:20:::0;1716:1;2809:7;:22;2629:209;2303:20;1411:786:5;;;;;;;;;;:::o;2203:863::-;2261:21:0;:19;:21::i;:::-;2527:17:5::1;-1:-1:-1::0;;;;;2519:42:5::1;2511:85;;;::::0;-1:-1:-1;;;2511:85:5;;8167:2:11;2511:85:5::1;::::0;::::1;8149:21:11::0;8206:2;8186:18;;;8179:30;8245:32;8225:18;;;8218:60;8295:18;;2511:85:5::1;;;;;;;;;2607:17;2627:42;2650:9;2661:7;2627:22;:42::i;:::-;2607:62:::0;-1:-1:-1;;;;;;2789:17:5::1;:25;;2821:21;2607:62:::0;2821:9:::1;:21;:::i;:::-;2857:11:::0;2890:10:::1;2915:3:::0;;2932:21:::1;2944:9:::0;2932;:21:::1;:::i;:::-;2967:12;2789:200;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;3005:54:5::1;::::0;;3031:16;::::1;14036:25:11::0;;14092:2;14077:18;;14070:34;;;-1:-1:-1;;;;;;3005:54:5;::::1;::::0;-1:-1:-1;3005:54:5::1;::::0;-1:-1:-1;14009:18:11;;-1:-1:-1;3005:54:5::1;;;;;;;2292:1:0;2303:20:::0;1716:1;2809:7;:22;2629:209;2303:20;2203:863:5;;;;;;;:::o;1302:103::-;1375:23;;-1:-1:-1;;;;;;1375:23:5;;;;;;;;1302:103;:::o;2336:287:0:-;1759:1;2468:7;;:19;;2460:63;;;;-1:-1:-1;;;2460:63:0;;10517:2:11;2460:63:0;;;10499:21:11;10556:2;10536:18;;;10529:30;10595:33;10575:18;;;10568:61;10646:18;;2460:63:0;10489:181:11;2460:63:0;1759:1;2598:7;:18;2336:287::o;3073:920:5:-;3303:35;;-1:-1:-1;;;3303:35:5;;11273:6:11;11261:19;;3303:35:5;;;11243:38:11;3213:17:5;;;;-1:-1:-1;;;;;3303:15:5;:23;;;;11216:18:11;;3303:35:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;3303:41:5;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3287:59;-1:-1:-1;3405:68:5;-1:-1:-1;;;;;3405:30:5;;3436:10;3456:4;3463:9;3405:30;:68::i;:::-;697:6;3531:28;3543:16;;3531:9;:28;:::i;:::-;:52;;;;:::i;:::-;3519:64;-1:-1:-1;3624:59:5;3651:20;;;;;;;;:::i;:::-;-1:-1:-1;;;;;3624:26:5;;;3673:9;3624:26;:59::i;:::-;-1:-1:-1;;;;;3738:20:5;;;;;;:13;:20;;;;;;;;3733:227;;-1:-1:-1;;;;;3774:20:5;;;;;;3797:4;3774:20;;;;;;;;:27;;-1:-1:-1;;3774:27:5;;;;;;3889:60;;3923:14;-1:-1:-1;;3889:25:5;:60::i;:::-;3970:16;3073:920;;;;;:::o;3999:695::-;4115:17;697:6;4191:28;4203:16;;4191:9;:28;:::i;:::-;:52;;;;:::i;:::-;4179:64;;4273:9;4261;:21;4253:74;;;;-1:-1:-1;;;4253:74:5;;10108:2:11;4253:74:5;;;10090:21:11;10147:2;10127:18;;;10120:30;10186:34;10166:18;;;10159:62;-1:-1:-1;;;10237:18:11;;;10230:38;10285:19;;4253:74:5;10080:230:11;4253:74:5;4434:9;4410:21;4422:9;4410;:21;:::i;:::-;:33;4402:81;;;;-1:-1:-1;;;4402:81:5;;8526:2:11;4402:81:5;;;8508:21:11;8565:2;8545:18;;;8538:30;8604:34;8584:18;;;8577:62;-1:-1:-1;;;8655:18:11;;;8648:33;8698:19;;4402:81:5;8498:225:11;4402:81:5;4525:12;4543:20;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4543:25:5;4576:9;4543:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4524:66;;;4608:7;4600:60;;;;-1:-1:-1;;;4600:60:5;;8930:2:11;4600:60:5;;;8912:21:11;8969:2;8949:18;;;8942:30;9008:34;8988:18;;;8981:62;-1:-1:-1;;;9059:18:11;;;9052:38;9107:19;;4600:60:5;8902:230:11;4600:60:5;4671:16;3999:695;;;;:::o;1355:203:3:-;1482:68;;-1:-1:-1;;;;;5877:15:11;;;1482:68:3;;;5859:34:11;5929:15;;5909:18;;;5902:43;5961:18;;;5954:34;;;1455:96:3;;1475:5;;-1:-1:-1;;;1505:27:3;5794:18:11;;1482:68:3;;;;-1:-1:-1;;1482:68:3;;;;;;;;;;;;;;-1:-1:-1;;;;;1482:68:3;-1:-1:-1;;;;;;1482:68:3;;;;;;;;;;1455:19;:96::i;:::-;1355:203;;;;:::o;941:175::-;1050:58;;-1:-1:-1;;;;;6191:32:11;;1050:58:3;;;6173:51:11;6240:18;;;6233:34;;;1023:86:3;;1043:5;;-1:-1:-1;;;1073:23:3;6146:18:11;;1050:58:3;6128:145:11;1023:86:3;941:175;;;:::o;1818:573::-;2143:10;;;2142:62;;-1:-1:-1;2159:39:3;;-1:-1:-1;;;2159:39:3;;2183:4;2159:39;;;5522:34:11;-1:-1:-1;;;;;5592:15:11;;;5572:18;;;5565:43;2159:15:3;;;;;5457:18:11;;2159:39:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;2142:62;2121:163;;;;-1:-1:-1;;;2121:163:3;;10877:2:11;2121:163:3;;;10859:21:11;10916:2;10896:18;;;10889:30;10955:34;10935:18;;;10928:62;-1:-1:-1;;;11006:18:11;;;10999:52;11068:19;;2121:163:3;10849:244:11;2121:163:3;2321:62;;-1:-1:-1;;;;;6191:32:11;;2321:62:3;;;6173:51:11;6240:18;;;6233:34;;;2294:90:3;;2314:5;;-1:-1:-1;;;2344:22:3;6146:18:11;;2321:62:3;6128:145:11;5196:642:3;5615:23;5641:69;5669:4;5641:69;;;;;;;;;;;;;;;;;5649:5;-1:-1:-1;;;;;5641:27:3;;;:69;;;;;:::i;:::-;5615:95;;5728:10;:17;5749:1;5728:22;:56;;;;5765:10;5754:30;;;;;;;;;;;;:::i;:::-;5720:111;;;;-1:-1:-1;;;5720:111:3;;9697:2:11;5720:111:3;;;9679:21:11;9736:2;9716:18;;;9709:30;9775:34;9755:18;;;9748:62;-1:-1:-1;;;9826:18:11;;;9819:40;9876:19;;5720:111:3;9669:232:11;4108:223:4;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;:::-;4265:59;4108:223;-1:-1:-1;;;;4108:223:4:o;5165:446::-;5330:12;5387:5;5362:21;:30;;5354:81;;;;-1:-1:-1;;;5354:81:4;;7760:2:11;5354:81:4;;;7742:21:11;7799:2;7779:18;;;7772:30;7838:34;7818:18;;;7811:62;-1:-1:-1;;;7889:18:11;;;7882:36;7935:19;;5354:81:4;7732:228:11;5354:81:4;5446:12;5460:23;5487:6;-1:-1:-1;;;;;5487:11:4;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;5165:446;-1:-1:-1;;;;;;;5165:446:4:o;7671:628::-;7851:12;7879:7;7875:418;;;7906:17;;7902:286;;-1:-1:-1;;;;;1702:19:4;;;8113:60;;;;-1:-1:-1;;;8113:60:4;;9339:2:11;8113:60:4;;;9321:21:11;9378:2;9358:18;;;9351:30;9417:31;9397:18;;;9390:59;9466:18;;8113:60:4;9311:179:11;8113:60:4;-1:-1:-1;8208:10:4;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;9161:133;9331:12;9324:20;;-1:-1:-1;;;9324:20:4;;;;;;;;:::i;14:168:11:-;81:20;;-1:-1:-1;;;;;;130:27:11;;120:38;;110:2;;172:1;169;162:12;110:2;62:120;;;:::o;187:375::-;238:8;248:6;302:3;295:4;287:6;283:17;279:27;269:2;;327:8;317;310:26;269:2;-1:-1:-1;357:20:11;;400:18;389:30;;386:2;;;439:8;429;422:26;386:2;483:4;475:6;471:17;459:29;;535:3;528:4;519:6;511;507:19;503:30;500:39;497:2;;;552:1;549;542:12;497:2;259:303;;;;;:::o;567:162::-;626:5;671:2;662:6;657:3;653:16;649:25;646:2;;;691:5;684;677:20;646:2;-1:-1:-1;717:6:11;636:93;-1:-1:-1;636:93:11:o;734:159::-;801:20;;861:6;850:18;;840:29;;830:2;;883:1;880;873:12;898:257;957:6;1010:2;998:9;989:7;985:23;981:32;978:2;;;1031:6;1023;1016:22;978:2;1075:9;1062:23;1094:31;1119:5;1094:31;:::i;:::-;1144:5;968:187;-1:-1:-1;;;968:187:11:o;1160:261::-;1230:6;1283:2;1271:9;1262:7;1258:23;1254:32;1251:2;;;1304:6;1296;1289:22;1251:2;1341:9;1335:16;1360:31;1385:5;1360:31;:::i;1426:297::-;1493:6;1546:2;1534:9;1525:7;1521:23;1517:32;1514:2;;;1567:6;1559;1552:22;1514:2;1604:9;1598:16;1657:5;1650:13;1643:21;1636:5;1633:32;1623:2;;1684:6;1676;1669:22;1728:194;1786:6;1839:2;1827:9;1818:7;1814:23;1810:32;1807:2;;;1860:6;1852;1845:22;1807:2;1888:28;1906:9;1888:28;:::i;2215:1288::-;2406:6;2414;2422;2430;2438;2446;2454;2462;2470;2478;2531:3;2519:9;2510:7;2506:23;2502:33;2499:2;;;2553:6;2545;2538:22;2499:2;2581:28;2599:9;2581:28;:::i;:::-;2571:38;;2628:37;2661:2;2650:9;2646:18;2628:37;:::i;:::-;2618:47;;2684:37;2717:2;2706:9;2702:18;2684:37;:::i;:::-;2674:47;;2768:2;2757:9;2753:18;2740:32;2730:42;;2819:3;2808:9;2804:19;2791:33;2781:43;;2875:3;2864:9;2860:19;2847:33;2899:18;2940:2;2932:6;2929:14;2926:2;;;2961:6;2953;2946:22;2926:2;2989:22;;;;3045:2;3027:16;;;3023:25;3020:2;;;3066:6;3058;3051:22;3020:2;3094;;-1:-1:-1;3149:3:11;3134:19;;3121:33;;3166:16;;;3163:2;;;3200:6;3192;3185:22;3163:2;;3244:60;3296:7;3285:8;3274:9;3270:24;3244:60;:::i;:::-;3323:8;;-1:-1:-1;3218:86:11;-1:-1:-1;3377:38:11;;-1:-1:-1;3410:3:11;3395:19;;3377:38;:::i;:::-;3367:48;;3434:63;3489:7;3483:3;3472:9;3468:19;3434:63;:::i;:::-;3424:73;;2489:1014;;;;;;;;;;;;;:::o;3508:836::-;3647:6;3655;3663;3671;3679;3687;3695;3748:3;3736:9;3727:7;3723:23;3719:33;3716:2;;;3770:6;3762;3755:22;3716:2;3798:28;3816:9;3798:28;:::i;:::-;3788:38;;3873:2;3862:9;3858:18;3845:32;3835:42;;3924:2;3913:9;3909:18;3896:32;3886:42;;3979:2;3968:9;3964:18;3951:32;4006:18;3998:6;3995:30;3992:2;;;4043:6;4035;4028:22;3992:2;4087:58;4137:7;4128:6;4117:9;4113:22;4087:58;:::i;:::-;4164:8;;-1:-1:-1;4061:84:11;-1:-1:-1;4218:38:11;;-1:-1:-1;4251:3:11;4236:19;;4218:38;:::i;:::-;4208:48;;4275:63;4330:7;4324:3;4313:9;4309:19;4275:63;:::i;:::-;4265:73;;3706:638;;;;;;;;;;:::o;4349:194::-;4419:6;4472:2;4460:9;4451:7;4447:23;4443:32;4440:2;;;4493:6;4485;4478:22;4440:2;-1:-1:-1;4521:16:11;;4430:113;-1:-1:-1;4430:113:11:o;4548:268::-;4636:6;4631:3;4624:19;4688:6;4681:5;4674:4;4669:3;4665:14;4652:43;-1:-1:-1;4606:3:11;4715:16;;;4733:4;4711:27;;;4704:40;;;;4798:2;4777:15;;;-1:-1:-1;;4773:29:11;4764:39;;;4760:50;;4614:202::o;4821:274::-;4950:3;4988:6;4982:13;5004:53;5050:6;5045:3;5038:4;5030:6;5026:17;5004:53;:::i;:::-;5073:16;;;;;4958:137;-1:-1:-1;;4958:137:11:o;7170:383::-;7319:2;7308:9;7301:21;7282:4;7351:6;7345:13;7394:6;7389:2;7378:9;7374:18;7367:34;7410:66;7469:6;7464:2;7453:9;7449:18;7444:2;7436:6;7432:15;7410:66;:::i;:::-;7537:2;7516:15;-1:-1:-1;;7512:29:11;7497:45;;;;7544:2;7493:54;;7291:262;-1:-1:-1;;7291:262:11:o;11292:584::-;11587:6;11575:19;;11557:38;;-1:-1:-1;;;;;11631:32:11;;11626:2;11611:18;;11604:60;11651:3;11695:2;11680:18;;11673:31;;;-1:-1:-1;;11721:62:11;;11763:19;;11755:6;11747;11721:62;:::i;:::-;11814:2;11799:18;;11792:34;;;;-1:-1:-1;11857:3:11;11842:19;11835:35;11713:70;11547:329;-1:-1:-1;;;;11547:329:11:o;11881:1794::-;12361:4;12390:3;12412:6;12457:2;12449:6;12445:15;12434:9;12427:34;12509:2;12501:6;12497:15;12492:2;12481:9;12477:18;12470:43;12561:2;12553:6;12549:15;12544:2;12533:9;12529:18;12522:43;;12630:1;12626;12621:3;12617:11;12613:19;12605:6;12601:32;12596:2;12585:9;12581:18;12574:60;12671:6;12665:3;12654:9;12650:19;12643:35;12715:6;12709:3;12698:9;12694:19;12687:35;12759:2;12753:3;12742:9;12738:19;12731:31;12811:6;12798:20;12793:2;12782:9;12778:18;12771:48;;12881:2;12873:6;12869:15;12856:29;12850:3;12839:9;12835:19;12828:58;12946:2;12938:6;12934:15;12921:29;13030:2;13026:7;13017:6;13001:14;12997:27;12993:41;12973:18;12969:66;12959:2;;13052:4;13046;13039:18;12959:2;13081:31;;13135:19;;13177:18;13166:30;;13163:2;;;13212:4;13206;13199:18;13163:2;13263:6;13247:14;13243:27;13235:6;13231:40;13228:2;;;13287:4;13281;13274:18;13228:2;13331;13325:3;13314:9;13310:19;13303:31;13354:70;13419:3;13408:9;13404:19;13396:6;13391:2;13384:5;13380:14;13354:70;:::i;:::-;13343:81;;;13470:9;13465:3;13461:19;13455:3;13444:9;13440:19;13433:48;13504:46;13546:3;13538:6;13530;13504:46;:::i;:::-;13587:22;;;13581:3;13566:19;;13559:51;14167:11;14193:24;;13490:60;-1:-1:-1;14250:4:11;14241:14;;13619:50;12370:1305;-1:-1:-1;;;;;;;;;;;;12370:1305:11:o;14266:217::-;14306:1;14332;14322:2;;-1:-1:-1;;;14357:31:11;;14411:4;14408:1;14401:15;14439:4;14364:1;14429:15;14322:2;-1:-1:-1;14468:9:11;;14312:171::o;14488:168::-;14528:7;14594:1;14590;14586:6;14582:14;14579:1;14576:21;14571:1;14564:9;14557:17;14553:45;14550:2;;;14601:18;;:::i;:::-;-1:-1:-1;14641:9:11;;14540:116::o;14661:125::-;14701:4;14729:1;14726;14723:8;14720:2;;;14734:18;;:::i;:::-;-1:-1:-1;14771:9:11;;14710:76::o;14791:258::-;14863:1;14873:113;14887:6;14884:1;14881:13;14873:113;;;14963:11;;;14957:18;14944:11;;;14937:39;14909:2;14902:10;14873:113;;;15004:6;15001:1;14998:13;14995:2;;;-1:-1:-1;;15039:1:11;15021:16;;15014:27;14844:205::o;15054:127::-;15115:10;15110:3;15106:20;15103:1;15096:31;15146:4;15143:1;15136:15;15170:4;15167:1;15160:15;15186:131;-1:-1:-1;;;;;15261:31:11;;15251:42;;15241:2;;15307:1;15304;15297:12;15241:2;15231:86;:::o

Swarm Source

ipfs://94fb178accb673ae3c029f5b2318b082003c24fd330c57eabfb669939421e50c

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.