AVAX Price: $49.38 (-1.39%)
Gas: 1.2 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Refund Celer Use...270929102023-03-06 14:48:19651 days ago1678114099IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068240426.5
Refund Celer Use...254792012023-01-27 12:00:11689 days ago1674820811IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0064757325.14273
Refund Celer Use...254584872023-01-27 0:04:46690 days ago1674777886IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068237726.5
Refund Celer Use...249148902023-01-14 4:00:26702 days ago1673668826IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068242226.5
Refund Celer Use...248525682023-01-12 17:02:21704 days ago1673542941IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063715226.5
Refund Celer Use...246128352023-01-07 0:34:39710 days ago1673051679IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063725826.5
Refund Celer Use...236204732022-12-14 10:41:11733 days ago1671014471IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068246526.5
Refund Celer Use...232547172022-12-05 18:25:33742 days ago1670264733IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0070614427.425
Refund Celer Use...231631842022-12-03 13:48:28744 days ago1670075308IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068954326.77058562
Refund Celer Use...226567202022-11-21 12:56:20756 days ago1669035380IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063781226.5
Refund Celer Use...224047732022-11-15 10:37:22762 days ago1668508642IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063761626.5
Refund Celer Use...223723392022-11-14 15:53:38763 days ago1668441218IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063776726.5
Refund Celer Use...222803972022-11-12 11:19:31765 days ago1668251971IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068238826.5
Refund Celer Use...222523092022-11-11 19:13:20766 days ago1668194000IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0064304626.71746805
Refund Celer Use...222421192022-11-11 13:31:30766 days ago1668173490IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063752126.5
Refund Celer Use...222139042022-11-10 21:25:56767 days ago1668115556IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0065018827.01802496
Refund Celer Use...222112132022-11-10 19:55:05767 days ago1668110105IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068249126.5
Refund Celer Use...222110492022-11-10 19:49:23767 days ago1668109763IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0064514826.8061488
Refund Celer Use...222096172022-11-10 19:01:05767 days ago1668106865IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068256826.5
Refund Celer Use...222092532022-11-10 18:48:33767 days ago1668106113IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063781226.5
Refund Celer Use...222076672022-11-10 17:55:31767 days ago1668102931IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063788926.5
Refund Celer Use...222068142022-11-10 17:27:47767 days ago1668101267IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0069752927.08243001
Refund Celer Use...222002832022-11-10 13:49:58767 days ago1668088198IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0068247826.5
Refund Celer Use...221659762022-11-09 18:53:26768 days ago1668020006IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0063776426.5287549
Refund Celer Use...221603232022-11-09 15:47:39768 days ago1668008859IN
Socket: Celer L1 - L2 Implementation
0 AVAX0.0106470244.25361375
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CelerImplL1L2

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 11 : Cbridge.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../../helpers/errors.sol";
import "../../ImplBase.sol";
import "../../interfaces/cbridge.sol";
import "../../helpers/Pb.sol";

/**
@title Celer L2 Implementation.
@notice This is the L2 implementation, so this is used when transferring from
l2 to supported l2s or L1.
Called by the registry if the selected bridge is Celer bridge.
@dev Follows the interface of ImplBase.
@author Socket.
*/

contract CelerImplL1L2 is ImplBase, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Pb for Pb.Buffer;
    ICBridge public immutable router;
    address immutable wethAddress;
    mapping(bytes32 => address) public transferIdAdrressMap;
    uint64 public immutable chainId;

    struct WithdrawMsg {
        uint64 chainid; // tag: 1
        uint64 seqnum; // tag: 2
        address receiver; // tag: 3
        address token; // tag: 4
        uint256 amount; // tag: 5
        bytes32 refid; // tag: 6
    }

    /**
    @notice Constructor sets the router address and registry address.
    @dev Celer Bridge address is constant. so no setter function required.
    */
    constructor(
        ICBridge _router,
        address _registry,
        address _wethAddress
    ) ImplBase(_registry) {
        router = _router;
        chainId = uint64(block.chainid);
        wethAddress = _wethAddress;
    }

    // Function to receive Ether. msg.data must be empty
    receive() external payable {}

    /**
    @notice function responsible for calling cross chain transfer using celer bridge.
    @dev the token to be passed on to the celer bridge.
    @param _amount amount to be sent.
    @param _from sender address. 
    @param _receiverAddress receivers address.
    @param _token this is the main token address on the source chain. 
    @param _toChainId destination chain Id
    @param _data data contains nonce and the maxSlippage.
    */
    function outboundTransferTo(
        uint256 _amount,
        address _from,
        address _receiverAddress,
        address _token,
        uint256 _toChainId,
        bytes memory _data
    ) external payable override onlyRegistry nonReentrant {
        (uint64 nonce, uint32 maxSlippage, address senderAddress) = abi.decode(
            _data,
            (uint64, uint32, address)
        );
        if (_token == NATIVE_TOKEN_ADDRESS) {
            require(msg.value == _amount, MovrErrors.VALUE_NOT_EQUAL_TO_AMOUNT);
            bytes32 transferId = keccak256(
                abi.encodePacked(
                    address(this),
                    _receiverAddress,
                    wethAddress,
                    _amount,
                    uint64(_toChainId),
                    nonce,
                    chainId
                )
            );
            require(
                transferIdAdrressMap[transferId] == address(0),
                "Transfer Id already exist in map"
            );
            transferIdAdrressMap[transferId] = senderAddress;
            router.sendNative{value: _amount}(
                _receiverAddress,
                _amount,
                uint64(_toChainId),
                nonce,
                maxSlippage
            );
        } else {
            require(msg.value == 0, MovrErrors.VALUE_SHOULD_BE_ZERO);
            IERC20(_token).safeTransferFrom(_from, address(this), _amount);
            IERC20(_token).safeIncreaseAllowance(address(router), _amount);
            bytes32 transferId = keccak256(
                abi.encodePacked(
                    address(this),
                    _receiverAddress,
                    _token,
                    _amount,
                    uint64(_toChainId),
                    nonce,
                    chainId
                )
            );
            require(
                transferIdAdrressMap[transferId] == address(0),
                "Transfer Id already exist in map"
            );
            transferIdAdrressMap[transferId] = senderAddress;
            router.send(
                _receiverAddress,
                _token,
                _amount,
                uint64(_toChainId),
                nonce,
                maxSlippage
            );
        }
    }

    function refundCelerUser(
        bytes calldata _request,
        bytes[] calldata _sigs,
        address[] calldata _signers,
        uint256[] calldata _powers
    ) external payable nonReentrant {
        WithdrawMsg memory request = decWithdrawMsg(_request);
        bytes32 transferId = keccak256(
            abi.encodePacked(
                request.chainid,
                request.seqnum,
                request.receiver,
                request.token,
                request.amount
            )
        );
        uint256 _initialBalanceTokenOut = address(this).balance;
        if (!router.withdraws(transferId)) {
            router.withdraw(_request, _sigs, _signers, _powers);
        }
        require(request.receiver == address(this), "Invalid refund");
        address _receiver = transferIdAdrressMap[request.refid];
        delete transferIdAdrressMap[request.refid];
        require(
            _receiver != address(0),
            "Unknown transfer id or already refunded"
        );
        if (address(this).balance > _initialBalanceTokenOut) {
            payable(_receiver).transfer(request.amount);
        } else {
            IERC20(request.token).safeTransfer(_receiver, request.amount);
        }
    }

    function decWithdrawMsg(bytes memory raw)
        internal
        pure
        returns (WithdrawMsg memory m)
    {
        Pb.Buffer memory buf = Pb.fromBytes(raw);

        uint256 tag;
        Pb.WireType wire;
        while (buf.hasMore()) {
            (tag, wire) = buf.decKey();
            if (false) {}
            // solidity has no switch/case
            else if (tag == 1) {
                m.chainid = uint64(buf.decVarint());
            } else if (tag == 2) {
                m.seqnum = uint64(buf.decVarint());
            } else if (tag == 3) {
                m.receiver = Pb._address(buf.decBytes());
            } else if (tag == 4) {
                m.token = Pb._address(buf.decBytes());
            } else if (tag == 5) {
                m.amount = Pb._uint256(buf.decBytes());
            } else if (tag == 6) {
                m.refid = Pb._bytes32(buf.decBytes());
            } else {
                buf.skipValue(wire);
            } // skip value of unknown tag
        }
    } // end decoder WithdrawMsg
}

File 2 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

File 3 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.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;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    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));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    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");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 11 : errors.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

library MovrErrors {
    string internal constant ADDRESS_0_PROVIDED = "ADDRESS_0_PROVIDED";
    string internal constant EMPTY_INPUT = "EMPTY_INPUT";
    string internal constant LENGTH_MISMATCH = "LENGTH_MISMATCH";
    string internal constant INVALID_VALUE = "INVALID_VALUE";
    string internal constant INVALID_AMT = "INVALID_AMT";

    string internal constant IMPL_NOT_FOUND = "IMPL_NOT_FOUND";
    string internal constant ROUTE_NOT_FOUND = "ROUTE_NOT_FOUND";
    string internal constant IMPL_NOT_ALLOWED = "IMPL_NOT_ALLOWED";
    string internal constant ROUTE_NOT_ALLOWED = "ROUTE_NOT_ALLOWED";
    string internal constant INVALID_CHAIN_DATA = "INVALID_CHAIN_DATA";
    string internal constant CHAIN_NOT_SUPPORTED = "CHAIN_NOT_SUPPORTED";
    string internal constant TOKEN_NOT_SUPPORTED = "TOKEN_NOT_SUPPORTED";
    string internal constant NOT_IMPLEMENTED = "NOT_IMPLEMENTED";
    string internal constant INVALID_SENDER = "INVALID_SENDER";
    string internal constant INVALID_BRIDGE_ID = "INVALID_BRIDGE_ID";
    string internal constant MIDDLEWARE_ACTION_FAILED =
        "MIDDLEWARE_ACTION_FAILED";
    string internal constant VALUE_SHOULD_BE_ZERO = "VALUE_SHOULD_BE_ZERO";
    string internal constant VALUE_SHOULD_NOT_BE_ZERO = "VALUE_SHOULD_NOT_BE_ZERO";
    string internal constant VALUE_NOT_ENOUGH = "VALUE_NOT_ENOUGH";
    string internal constant VALUE_NOT_EQUAL_TO_AMOUNT = "VALUE_NOT_EQUAL_TO_AMOUNT";
}

File 6 of 11 : ImplBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./helpers/errors.sol";

/**
@title Abstract Implementation Contract.
@notice All Bridge Implementation will follow this interface. 
*/
abstract contract ImplBase is Ownable {
    using SafeERC20 for IERC20;
    address public registry;
    address public constant NATIVE_TOKEN_ADDRESS =
        address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    event UpdateRegistryAddress(address indexed registryAddress);

    constructor(address _registry) Ownable() {
        registry = _registry;
    }

    modifier onlyRegistry() {
        require(msg.sender == registry, MovrErrors.INVALID_SENDER);
        _;
    }

    function updateRegistryAddress(address newRegistry) external onlyOwner {
        registry = newRegistry;
        emit UpdateRegistryAddress(newRegistry);
    }

    function rescueFunds(
        address token,
        address userAddress,
        uint256 amount
    ) external onlyOwner {
        IERC20(token).safeTransfer(userAddress, amount);
    }

    function rescueEther(
        address payable userAddress,
        uint256 amount
    ) external onlyOwner {
        userAddress.transfer(amount);
    }


    function outboundTransferTo(
        uint256 _amount,
        address _from,
        address _receiverAddress,
        address _token,
        uint256 _toChainId,
        bytes memory _extraData
    ) external payable virtual;
}

File 7 of 11 : cbridge.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.0;

interface ICBridge {
    function send(
        address _receiver,
        address _token,
        uint256 _amount,
        uint64 _dstChinId,
        uint64 _nonce,
        uint32 _maxSlippage
    ) external;

    function sendNative(
        address _receiver,
        uint256 _amount,
        uint64 _dstChinId,
        uint64 _nonce,
        uint32 _maxSlippage
    ) external payable;

    function withdraws(bytes32 withdrawId) external view returns (bool);

    function withdraw(
        bytes calldata _wdmsg,
        bytes[] calldata _sigs,
        address[] calldata _signers,
        uint256[] calldata _powers
    ) external;
}

File 8 of 11 : Pb.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.4;

// runtime proto sol library
library Pb {
    enum WireType {
        Varint,
        Fixed64,
        LengthDelim,
        StartGroup,
        EndGroup,
        Fixed32
    }

    struct Buffer {
        uint256 idx; // the start index of next read. when idx=b.length, we're done
        bytes b; // hold serialized proto msg, readonly
    }

    // create a new in-memory Buffer object from raw msg bytes
    function fromBytes(bytes memory raw)
        internal
        pure
        returns (Buffer memory buf)
    {
        buf.b = raw;
        buf.idx = 0;
    }

    // whether there are unread bytes
    function hasMore(Buffer memory buf) internal pure returns (bool) {
        return buf.idx < buf.b.length;
    }

    // decode current field number and wiretype
    function decKey(Buffer memory buf)
        internal
        pure
        returns (uint256 tag, WireType wiretype)
    {
        uint256 v = decVarint(buf);
        tag = v / 8;
        wiretype = WireType(v & 7);
    }

    // count tag occurrences, return an array due to no memory map support
    // have to create array for (maxtag+1) size. cnts[tag] = occurrences
    // should keep buf.idx unchanged because this is only a count function
    function cntTags(Buffer memory buf, uint256 maxtag)
        internal
        pure
        returns (uint256[] memory cnts)
    {
        uint256 originalIdx = buf.idx;
        cnts = new uint256[](maxtag + 1); // protobuf's tags are from 1 rather than 0
        uint256 tag;
        WireType wire;
        while (hasMore(buf)) {
            (tag, wire) = decKey(buf);
            cnts[tag] += 1;
            skipValue(buf, wire);
        }
        buf.idx = originalIdx;
    }

    // read varint from current buf idx, move buf.idx to next read, return the int value
    function decVarint(Buffer memory buf) internal pure returns (uint256 v) {
        bytes10 tmp; // proto int is at most 10 bytes (7 bits can be used per byte)
        bytes memory bb = buf.b; // get buf.b mem addr to use in assembly
        v = buf.idx; // use v to save one additional uint variable
        assembly {
            tmp := mload(add(add(bb, 32), v)) // load 10 bytes from buf.b[buf.idx] to tmp
        }
        uint256 b; // store current byte content
        v = 0; // reset to 0 for return value
        for (uint256 i = 0; i < 10; i++) {
            assembly {
                b := byte(i, tmp) // don't use tmp[i] because it does bound check and costs extra
            }
            v |= (b & 0x7F) << (i * 7);
            if (b & 0x80 == 0) {
                buf.idx += i + 1;
                return v;
            }
        }
        revert(); // i=10, invalid varint stream
    }

    // read length delimited field and return bytes
    function decBytes(Buffer memory buf)
        internal
        pure
        returns (bytes memory b)
    {
        uint256 len = decVarint(buf);
        uint256 end = buf.idx + len;
        require(end <= buf.b.length); // avoid overflow
        b = new bytes(len);
        bytes memory bufB = buf.b; // get buf.b mem addr to use in assembly
        uint256 bStart;
        uint256 bufBStart = buf.idx;
        assembly {
            bStart := add(b, 32)
            bufBStart := add(add(bufB, 32), bufBStart)
        }
        for (uint256 i = 0; i < len; i += 32) {
            assembly {
                mstore(add(bStart, i), mload(add(bufBStart, i)))
            }
        }
        buf.idx = end;
    }

    // return packed ints
    function decPacked(Buffer memory buf)
        internal
        pure
        returns (uint256[] memory t)
    {
        uint256 len = decVarint(buf);
        uint256 end = buf.idx + len;
        require(end <= buf.b.length); // avoid overflow
        // array in memory must be init w/ known length
        // so we have to create a tmp array w/ max possible len first
        uint256[] memory tmp = new uint256[](len);
        uint256 i = 0; // count how many ints are there
        while (buf.idx < end) {
            tmp[i] = decVarint(buf);
            i++;
        }
        t = new uint256[](i); // init t with correct length
        for (uint256 j = 0; j < i; j++) {
            t[j] = tmp[j];
        }
        return t;
    }

    // move idx pass current value field, to beginning of next tag or msg end
    function skipValue(Buffer memory buf, WireType wire) internal pure {
        if (wire == WireType.Varint) {
            decVarint(buf);
        } else if (wire == WireType.LengthDelim) {
            uint256 len = decVarint(buf);
            buf.idx += len; // skip len bytes value data
            require(buf.idx <= buf.b.length); // avoid overflow
        } else {
            revert();
        } // unsupported wiretype
    }

    // type conversion help utils
    function _bool(uint256 x) internal pure returns (bool v) {
        return x != 0;
    }

    function _uint256(bytes memory b) internal pure returns (uint256 v) {
        require(b.length <= 32); // b's length must be smaller than or equal to 32
        assembly {
            v := mload(add(b, 32))
        } // load all 32bytes to v
        v = v >> (8 * (32 - b.length)); // only first b.length is valid
    }

    function _address(bytes memory b) internal pure returns (address v) {
        v = _addressPayable(b);
    }

    function _addressPayable(bytes memory b)
        internal
        pure
        returns (address payable v)
    {
        require(b.length == 20);
        //load 32bytes then shift right 12 bytes
        assembly {
            v := div(mload(add(b, 32)), 0x1000000000000000000000000)
        }
    }

    function _bytes32(bytes memory b) internal pure returns (bytes32 v) {
        require(b.length == 32);
        assembly {
            v := mload(add(b, 32))
        }
    }

    // uint[] to uint8[]
    function uint8s(uint256[] memory arr)
        internal
        pure
        returns (uint8[] memory t)
    {
        t = new uint8[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = uint8(arr[i]);
        }
    }

    function uint32s(uint256[] memory arr)
        internal
        pure
        returns (uint32[] memory t)
    {
        t = new uint32[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = uint32(arr[i]);
        }
    }

    function uint64s(uint256[] memory arr)
        internal
        pure
        returns (uint64[] memory t)
    {
        t = new uint64[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = uint64(arr[i]);
        }
    }

    function bools(uint256[] memory arr)
        internal
        pure
        returns (bool[] memory t)
    {
        t = new bool[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = arr[i] != 0;
        }
    }
}

File 9 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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
     * ====
     *
     * [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://diligence.consensys.net/posts/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.5.11/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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 11 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ICBridge","name":"_router","type":"address"},{"internalType":"address","name":"_registry","type":"address"},{"internalType":"address","name":"_wethAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"registryAddress","type":"address"}],"name":"UpdateRegistryAddress","type":"event"},{"inputs":[],"name":"NATIVE_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_receiverAddress","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_toChainId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"outboundTransferTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_request","type":"bytes"},{"internalType":"bytes[]","name":"_sigs","type":"bytes[]"},{"internalType":"address[]","name":"_signers","type":"address[]"},{"internalType":"uint256[]","name":"_powers","type":"uint256[]"}],"name":"refundCelerUser","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"userAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract ICBridge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"transferIdAdrressMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b5060405162001ff238038062001ff28339810160408190526200003491620000e8565b81620000403362000098565b600180546001600160a01b0319166001600160a01b0392909216919091178155600255606092831b6001600160601b03199081166080524660c090811b6001600160c01b0319169052921b90911660a0525062000154565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600060608486031215620000fd578283fd5b83516200010a816200013b565b60208501519093506200011d816200013b565b604085015190925062000130816200013b565b809150509250925092565b6001600160a01b03811681146200015157600080fd5b50565b60805160601c60a05160601c60c05160c01c611e34620001be60003960008181610199015281816104af0152610725015260006104600152600081816102b7015281816105c9015281816106a70152818161084701528181610b770152610c140152611e346000f3fe6080604052600436106100d65760003560e01c8063c57a88251161007f578063e42e0ea911610059578063e42e0ea91461022f578063f2fde38b1461024f578063f44843291461026f578063f887ea40146102a557600080fd5b8063c57a8825146101d4578063c5ab4db3146101f4578063df2ebdbb1461020757600080fd5b80637b103999116100b05780637b1039991461012c5780638da5cb5b146101695780639a8a05921461018757600080fd5b8063022490c8146100e25780636ccae054146100f7578063715018a61461011757600080fd5b366100dd57005b600080fd5b6100f56100f03660046119ef565b6102d9565b005b34801561010357600080fd5b506100f5610112366004611878565b6108b7565b34801561012357600080fd5b506100f561092a565b34801561013857600080fd5b5060015461014c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017557600080fd5b506000546001600160a01b031661014c565b34801561019357600080fd5b506101bb7f000000000000000000000000000000000000000000000000000000000000000081565b60405167ffffffffffffffff9091168152602001610160565b3480156101e057600080fd5b506100f56101ef366004611831565b610990565b6100f56102023660046118f0565b610a34565b34801561021357600080fd5b5061014c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561023b57600080fd5b506100f561024a36600461184d565b610e0c565b34801561025b57600080fd5b506100f561026a366004611831565b610e9c565b34801561027b57600080fd5b5061014c61028a3660046118d8565b6003602052600090815260409020546001600160a01b031681565b3480156102b157600080fd5b5061014c7f000000000000000000000000000000000000000000000000000000000000000081565b60015460408051808201909152600e81527f494e56414c49445f53454e4445520000000000000000000000000000000000006020820152906001600160a01b031633146103425760405162461bcd60e51b81526004016103399190611cfe565b60405180910390fd5b506002805414156103955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b600280819055506000806000838060200190518101906103b59190611ae5565b919450925090506001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561062f5760408051808201909152601981527f56414c55455f4e4f545f455155414c5f544f5f414d4f554e54000000000000006020820152348a146104355760405162461bcd60e51b81526004016103399190611cfe565b506040516bffffffffffffffffffffffff1930606090811b8216602084015289811b821660348401527f0000000000000000000000000000000000000000000000000000000000000000901b166048820152605c81018a90526001600160c01b031960c087811b8216607c84015285811b821660848401527f0000000000000000000000000000000000000000000000000000000000000000901b16608c82015260009060940160408051601f198184030181529181528151602092830120600081815260039093529120549091506001600160a01b03161561055a5760405162461bcd60e51b815260206004820181905260248201527f5472616e7366657220496420616c726561647920657869737420696e206d61706044820152606401610339565b6000818152600360205260409081902080546001600160a01b0319166001600160a01b03858116919091179091559051633f2e5fc360e01b81528982166004820152602481018c905267ffffffffffffffff80891660448301528616606482015263ffffffff851660848201527f000000000000000000000000000000000000000000000000000000000000000090911690633f2e5fc3908c9060a4016000604051808303818588803b15801561061057600080fd5b505af1158015610624573d6000803e3d6000fd5b5050505050506108a7565b60408051808201909152601481527f56414c55455f53484f554c445f42455f5a45524f000000000000000000000000602082015234156106825760405162461bcd60e51b81526004016103399190611cfe565b506106986001600160a01b03871689308c610f7e565b6106cc6001600160a01b0387167f00000000000000000000000000000000000000000000000000000000000000008b61101c565b6040516bffffffffffffffffffffffff1930606090811b8216602084015289811b8216603484015288901b166048820152605c81018a90526001600160c01b031960c087811b8216607c84015285811b821660848401527f0000000000000000000000000000000000000000000000000000000000000000901b16608c82015260009060940160408051601f198184030181529181528151602092830120600081815260039093529120549091506001600160a01b0316156107d05760405162461bcd60e51b815260206004820181905260248201527f5472616e7366657220496420616c726561647920657869737420696e206d61706044820152606401610339565b6000818152600360205260409081902080546001600160a01b0319166001600160a01b0385811691909117909155905163a5977fbb60e01b815289821660048201528882166024820152604481018c905267ffffffffffffffff80891660648301528616608482015263ffffffff851660a48201527f00000000000000000000000000000000000000000000000000000000000000009091169063a5977fbb9060c401600060405180830381600087803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b50505050505b5050600160025550505050505050565b6000546001600160a01b031633146109115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6109256001600160a01b03841683836110dd565b505050565b6000546001600160a01b031633146109845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b61098e600061110d565b565b6000546001600160a01b031633146109ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fab1d989cb101ab9394f5e690844e769db62bd90dea8786bcd2cb53b1fe7d0e1090600090a250565b600280541415610a865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b600280819055506000610ace89898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061115d92505050565b9050600081600001518260200151836040015184606001518560800151604051602001610b4795949392919060c095861b6001600160c01b031990811682529490951b9093166008850152606091821b6bffffffffffffffffffffffff199081166010860152911b166024830152603882015260580190565b60408051808303601f19018152908290528051602090910120631c13568560e31b825260048201819052915047907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e09ab4289060240160206040518083038186803b158015610bc157600080fd5b505afa158015610bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf991906118b8565b610c8a57604051630144352560e71b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a21a928090610c57908e908e908e908e908e908e908e908e90600401611c1f565b600060405180830381600087803b158015610c7157600080fd5b505af1158015610c85573d6000803e3d6000fd5b505050505b60408301516001600160a01b03163014610ce65760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420726566756e640000000000000000000000000000000000006044820152606401610339565b60a0830180516000908152600360205260408082205492518252902080546001600160a01b03191690556001600160a01b031680610d8c5760405162461bcd60e51b815260206004820152602760248201527f556e6b6e6f776e207472616e73666572206964206f7220616c7265616479207260448201527f6566756e646564000000000000000000000000000000000000000000000000006064820152608401610339565b81471115610dd35760808401516040516001600160a01b0383169180156108fc02916000818181858888f19350505050158015610dcd573d6000803e3d6000fd5b50610df9565b610df981856080015186606001516001600160a01b03166110dd9092919063ffffffff16565b5050600160025550505050505050505050565b6000546001600160a01b03163314610e665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610925573d6000803e3d6000fd5b6000546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6001600160a01b038116610f725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610339565b610f7b8161110d565b50565b6040516001600160a01b03808516602483015283166044820152606481018290526110169085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526112bd565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b15801561106857600080fd5b505afa15801561107c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a091906119d7565b6110aa9190611d31565b6040516001600160a01b03851660248201526044810182905290915061101690859063095ea7b360e01b90606401610fb2565b6040516001600160a01b03831660248201526044810182905261092590849063a9059cbb60e01b90606401610fb2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905283518085019094528184528301849052909190805b602083015151835110156112b5576111bb836113a2565b909250905081600114156111e3576111d2836113ea565b67ffffffffffffffff1684526111a4565b8160021415611209576111f5836113ea565b67ffffffffffffffff1660208501526111a4565b81600314156112365761122361121e8461146c565b611537565b6001600160a01b031660408501526111a4565b816004141561125e5761124b61121e8461146c565b6001600160a01b031660608501526111a4565b8160051415611282576112786112738461146c565b611548565b60808501526111a4565b81600614156112a65761129c6112978461146c565b61157f565b60a08501526111a4565b6112b08382611597565b6111a4565b505050919050565b6000611312826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116259092919063ffffffff16565b805190915015610925578080602001905181019061133091906118b8565b6109255760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610339565b60008060006113b0846113ea565b90506113bd600882611d49565b92508060071660058111156113e257634e487b7160e01b600052602160045260246000fd5b915050915091565b602080820151825181019091015160009182805b600a8110156114665783811a9150611417816007611d69565b82607f16901b85179450816080166000141561145457611438816001611d31565b86518790611447908390611d31565b9052509395945050505050565b8061145e81611dcb565b9150506113fe565b50600080fd5b60606000611479836113ea565b9050600081846000015161148d9190611d31565b90508360200151518111156114a157600080fd5b8167ffffffffffffffff8111156114c857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114f2576020820181803683370190505b50602080860151865192955091818601919083010160005b8581101561152c578181015183820152611525602082611d31565b905061150a565b505050935250919050565b60006115428261163e565b92915050565b600060208251111561155957600080fd5b602082015190508151602061156e9190611d88565b611579906008611d69565b1c919050565b6000815160201461158f57600080fd5b506020015190565b60008160058111156115b957634e487b7160e01b600052602160045260246000fd5b14156115c857610925826113ea565b60028160058111156115ea57634e487b7160e01b600052602160045260246000fd5b14156100dd5760006115fb836113ea565b9050808360000181815161160f9190611d31565b9052506020830151518351111561092557600080fd5b60606116348484600085611666565b90505b9392505050565b6000815160141461164e57600080fd5b50602001516c01000000000000000000000000900490565b6060824710156116de5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610339565b6001600160a01b0385163b6117355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610339565b600080866001600160a01b031685876040516117519190611c03565b60006040518083038185875af1925050503d806000811461178e576040519150601f19603f3d011682016040523d82523d6000602084013e611793565b606091505b50915091506117a38282866117ae565b979650505050505050565b606083156117bd575081611637565b8251156117cd5782518084602001fd5b8160405162461bcd60e51b81526004016103399190611cfe565b60008083601f8401126117f8578182fd5b50813567ffffffffffffffff81111561180f578182fd5b6020830191508360208260051b850101111561182a57600080fd5b9250929050565b600060208284031215611842578081fd5b813561163781611e12565b6000806040838503121561185f578081fd5b823561186a81611e12565b946020939093013593505050565b60008060006060848603121561188c578081fd5b833561189781611e12565b925060208401356118a781611e12565b929592945050506040919091013590565b6000602082840312156118c9578081fd5b81518015158114611637578182fd5b6000602082840312156118e9578081fd5b5035919050565b6000806000806000806000806080898b03121561190b578384fd5b883567ffffffffffffffff80821115611922578586fd5b818b0191508b601f830112611935578586fd5b813581811115611943578687fd5b8c6020828501011115611954578687fd5b60209283019a509850908a0135908082111561196e578586fd5b61197a8c838d016117e7565b909850965060408b0135915080821115611992578586fd5b61199e8c838d016117e7565b909650945060608b01359150808211156119b6578384fd5b506119c38b828c016117e7565b999c989b5096995094979396929594505050565b6000602082840312156119e8578081fd5b5051919050565b60008060008060008060c08789031215611a07578182fd5b863595506020870135611a1981611e12565b94506040870135611a2981611e12565b93506060870135611a3981611e12565b92506080870135915060a087013567ffffffffffffffff80821115611a5c578283fd5b818901915089601f830112611a6f578283fd5b813581811115611a8157611a81611dfc565b604051601f8201601f19908116603f01168101908382118183101715611aa957611aa9611dfc565b816040528281528c6020848701011115611ac1578586fd5b82602086016020830137856020848301015280955050505050509295509295509295565b600080600060608486031215611af9578283fd5b835167ffffffffffffffff81168114611b10578384fd5b602085015190935063ffffffff81168114611b29578283fd5b6040850151909250611b3a81611e12565b809150509250925092565b81835260006020808501945082825b85811015611b82578135611b6781611e12565b6001600160a01b031687529582019590820190600101611b54565b509495945050505050565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611bbe578081fd5b8260051b80836020870137939093016020019283525090919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008251611c15818460208701611d9f565b9190910192915050565b608081526000611c33608083018a8c611bda565b82810360208401528088825260208201905060208960051b8301018a845b8b811015611cc357848303601f19018452368d9003601e1901823512611c75578586fd5b8c823501803567ffffffffffffffff811115611c8f578788fd5b8036038f1315611c9d578788fd5b611cab858260208501611bda565b60209687019690955093909301925050600101611c51565b50508481036040860152611cd881898b611b45565b925050508281036060840152611cef818587611b8d565b9b9a5050505050505050505050565b6020815260008251806020840152611d1d816040850160208701611d9f565b601f01601f19169190910160400192915050565b60008219821115611d4457611d44611de6565b500190565b600082611d6457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611d8357611d83611de6565b500290565b600082821015611d9a57611d9a611de6565b500390565b60005b83811015611dba578181015183820152602001611da2565b838111156110165750506000910152565b6000600019821415611ddf57611ddf611de6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f7b57600080fdfea164736f6c6343000804000a000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d40000000000000000000000002b42affd4b7c14d9b7c2579229495c052672ccd300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

Deployed Bytecode

0x6080604052600436106100d65760003560e01c8063c57a88251161007f578063e42e0ea911610059578063e42e0ea91461022f578063f2fde38b1461024f578063f44843291461026f578063f887ea40146102a557600080fd5b8063c57a8825146101d4578063c5ab4db3146101f4578063df2ebdbb1461020757600080fd5b80637b103999116100b05780637b1039991461012c5780638da5cb5b146101695780639a8a05921461018757600080fd5b8063022490c8146100e25780636ccae054146100f7578063715018a61461011757600080fd5b366100dd57005b600080fd5b6100f56100f03660046119ef565b6102d9565b005b34801561010357600080fd5b506100f5610112366004611878565b6108b7565b34801561012357600080fd5b506100f561092a565b34801561013857600080fd5b5060015461014c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017557600080fd5b506000546001600160a01b031661014c565b34801561019357600080fd5b506101bb7f000000000000000000000000000000000000000000000000000000000000a86a81565b60405167ffffffffffffffff9091168152602001610160565b3480156101e057600080fd5b506100f56101ef366004611831565b610990565b6100f56102023660046118f0565b610a34565b34801561021357600080fd5b5061014c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561023b57600080fd5b506100f561024a36600461184d565b610e0c565b34801561025b57600080fd5b506100f561026a366004611831565b610e9c565b34801561027b57600080fd5b5061014c61028a3660046118d8565b6003602052600090815260409020546001600160a01b031681565b3480156102b157600080fd5b5061014c7f000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d481565b60015460408051808201909152600e81527f494e56414c49445f53454e4445520000000000000000000000000000000000006020820152906001600160a01b031633146103425760405162461bcd60e51b81526004016103399190611cfe565b60405180910390fd5b506002805414156103955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b600280819055506000806000838060200190518101906103b59190611ae5565b919450925090506001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561062f5760408051808201909152601981527f56414c55455f4e4f545f455155414c5f544f5f414d4f554e54000000000000006020820152348a146104355760405162461bcd60e51b81526004016103399190611cfe565b506040516bffffffffffffffffffffffff1930606090811b8216602084015289811b821660348401527f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1901b166048820152605c81018a90526001600160c01b031960c087811b8216607c84015285811b821660848401527f000000000000000000000000000000000000000000000000000000000000a86a901b16608c82015260009060940160408051601f198184030181529181528151602092830120600081815260039093529120549091506001600160a01b03161561055a5760405162461bcd60e51b815260206004820181905260248201527f5472616e7366657220496420616c726561647920657869737420696e206d61706044820152606401610339565b6000818152600360205260409081902080546001600160a01b0319166001600160a01b03858116919091179091559051633f2e5fc360e01b81528982166004820152602481018c905267ffffffffffffffff80891660448301528616606482015263ffffffff851660848201527f000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d490911690633f2e5fc3908c9060a4016000604051808303818588803b15801561061057600080fd5b505af1158015610624573d6000803e3d6000fd5b5050505050506108a7565b60408051808201909152601481527f56414c55455f53484f554c445f42455f5a45524f000000000000000000000000602082015234156106825760405162461bcd60e51b81526004016103399190611cfe565b506106986001600160a01b03871689308c610f7e565b6106cc6001600160a01b0387167f000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d48b61101c565b6040516bffffffffffffffffffffffff1930606090811b8216602084015289811b8216603484015288901b166048820152605c81018a90526001600160c01b031960c087811b8216607c84015285811b821660848401527f000000000000000000000000000000000000000000000000000000000000a86a901b16608c82015260009060940160408051601f198184030181529181528151602092830120600081815260039093529120549091506001600160a01b0316156107d05760405162461bcd60e51b815260206004820181905260248201527f5472616e7366657220496420616c726561647920657869737420696e206d61706044820152606401610339565b6000818152600360205260409081902080546001600160a01b0319166001600160a01b0385811691909117909155905163a5977fbb60e01b815289821660048201528882166024820152604481018c905267ffffffffffffffff80891660648301528616608482015263ffffffff851660a48201527f000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d49091169063a5977fbb9060c401600060405180830381600087803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b50505050505b5050600160025550505050505050565b6000546001600160a01b031633146109115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6109256001600160a01b03841683836110dd565b505050565b6000546001600160a01b031633146109845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b61098e600061110d565b565b6000546001600160a01b031633146109ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fab1d989cb101ab9394f5e690844e769db62bd90dea8786bcd2cb53b1fe7d0e1090600090a250565b600280541415610a865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b600280819055506000610ace89898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061115d92505050565b9050600081600001518260200151836040015184606001518560800151604051602001610b4795949392919060c095861b6001600160c01b031990811682529490951b9093166008850152606091821b6bffffffffffffffffffffffff199081166010860152911b166024830152603882015260580190565b60408051808303601f19018152908290528051602090910120631c13568560e31b825260048201819052915047907f000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d46001600160a01b03169063e09ab4289060240160206040518083038186803b158015610bc157600080fd5b505afa158015610bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf991906118b8565b610c8a57604051630144352560e71b81526001600160a01b037f000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d4169063a21a928090610c57908e908e908e908e908e908e908e908e90600401611c1f565b600060405180830381600087803b158015610c7157600080fd5b505af1158015610c85573d6000803e3d6000fd5b505050505b60408301516001600160a01b03163014610ce65760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420726566756e640000000000000000000000000000000000006044820152606401610339565b60a0830180516000908152600360205260408082205492518252902080546001600160a01b03191690556001600160a01b031680610d8c5760405162461bcd60e51b815260206004820152602760248201527f556e6b6e6f776e207472616e73666572206964206f7220616c7265616479207260448201527f6566756e646564000000000000000000000000000000000000000000000000006064820152608401610339565b81471115610dd35760808401516040516001600160a01b0383169180156108fc02916000818181858888f19350505050158015610dcd573d6000803e3d6000fd5b50610df9565b610df981856080015186606001516001600160a01b03166110dd9092919063ffffffff16565b5050600160025550505050505050505050565b6000546001600160a01b03163314610e665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610925573d6000803e3d6000fd5b6000546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6001600160a01b038116610f725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610339565b610f7b8161110d565b50565b6040516001600160a01b03808516602483015283166044820152606481018290526110169085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526112bd565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b15801561106857600080fd5b505afa15801561107c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a091906119d7565b6110aa9190611d31565b6040516001600160a01b03851660248201526044810182905290915061101690859063095ea7b360e01b90606401610fb2565b6040516001600160a01b03831660248201526044810182905261092590849063a9059cbb60e01b90606401610fb2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905283518085019094528184528301849052909190805b602083015151835110156112b5576111bb836113a2565b909250905081600114156111e3576111d2836113ea565b67ffffffffffffffff1684526111a4565b8160021415611209576111f5836113ea565b67ffffffffffffffff1660208501526111a4565b81600314156112365761122361121e8461146c565b611537565b6001600160a01b031660408501526111a4565b816004141561125e5761124b61121e8461146c565b6001600160a01b031660608501526111a4565b8160051415611282576112786112738461146c565b611548565b60808501526111a4565b81600614156112a65761129c6112978461146c565b61157f565b60a08501526111a4565b6112b08382611597565b6111a4565b505050919050565b6000611312826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116259092919063ffffffff16565b805190915015610925578080602001905181019061133091906118b8565b6109255760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610339565b60008060006113b0846113ea565b90506113bd600882611d49565b92508060071660058111156113e257634e487b7160e01b600052602160045260246000fd5b915050915091565b602080820151825181019091015160009182805b600a8110156114665783811a9150611417816007611d69565b82607f16901b85179450816080166000141561145457611438816001611d31565b86518790611447908390611d31565b9052509395945050505050565b8061145e81611dcb565b9150506113fe565b50600080fd5b60606000611479836113ea565b9050600081846000015161148d9190611d31565b90508360200151518111156114a157600080fd5b8167ffffffffffffffff8111156114c857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114f2576020820181803683370190505b50602080860151865192955091818601919083010160005b8581101561152c578181015183820152611525602082611d31565b905061150a565b505050935250919050565b60006115428261163e565b92915050565b600060208251111561155957600080fd5b602082015190508151602061156e9190611d88565b611579906008611d69565b1c919050565b6000815160201461158f57600080fd5b506020015190565b60008160058111156115b957634e487b7160e01b600052602160045260246000fd5b14156115c857610925826113ea565b60028160058111156115ea57634e487b7160e01b600052602160045260246000fd5b14156100dd5760006115fb836113ea565b9050808360000181815161160f9190611d31565b9052506020830151518351111561092557600080fd5b60606116348484600085611666565b90505b9392505050565b6000815160141461164e57600080fd5b50602001516c01000000000000000000000000900490565b6060824710156116de5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610339565b6001600160a01b0385163b6117355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610339565b600080866001600160a01b031685876040516117519190611c03565b60006040518083038185875af1925050503d806000811461178e576040519150601f19603f3d011682016040523d82523d6000602084013e611793565b606091505b50915091506117a38282866117ae565b979650505050505050565b606083156117bd575081611637565b8251156117cd5782518084602001fd5b8160405162461bcd60e51b81526004016103399190611cfe565b60008083601f8401126117f8578182fd5b50813567ffffffffffffffff81111561180f578182fd5b6020830191508360208260051b850101111561182a57600080fd5b9250929050565b600060208284031215611842578081fd5b813561163781611e12565b6000806040838503121561185f578081fd5b823561186a81611e12565b946020939093013593505050565b60008060006060848603121561188c578081fd5b833561189781611e12565b925060208401356118a781611e12565b929592945050506040919091013590565b6000602082840312156118c9578081fd5b81518015158114611637578182fd5b6000602082840312156118e9578081fd5b5035919050565b6000806000806000806000806080898b03121561190b578384fd5b883567ffffffffffffffff80821115611922578586fd5b818b0191508b601f830112611935578586fd5b813581811115611943578687fd5b8c6020828501011115611954578687fd5b60209283019a509850908a0135908082111561196e578586fd5b61197a8c838d016117e7565b909850965060408b0135915080821115611992578586fd5b61199e8c838d016117e7565b909650945060608b01359150808211156119b6578384fd5b506119c38b828c016117e7565b999c989b5096995094979396929594505050565b6000602082840312156119e8578081fd5b5051919050565b60008060008060008060c08789031215611a07578182fd5b863595506020870135611a1981611e12565b94506040870135611a2981611e12565b93506060870135611a3981611e12565b92506080870135915060a087013567ffffffffffffffff80821115611a5c578283fd5b818901915089601f830112611a6f578283fd5b813581811115611a8157611a81611dfc565b604051601f8201601f19908116603f01168101908382118183101715611aa957611aa9611dfc565b816040528281528c6020848701011115611ac1578586fd5b82602086016020830137856020848301015280955050505050509295509295509295565b600080600060608486031215611af9578283fd5b835167ffffffffffffffff81168114611b10578384fd5b602085015190935063ffffffff81168114611b29578283fd5b6040850151909250611b3a81611e12565b809150509250925092565b81835260006020808501945082825b85811015611b82578135611b6781611e12565b6001600160a01b031687529582019590820190600101611b54565b509495945050505050565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611bbe578081fd5b8260051b80836020870137939093016020019283525090919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008251611c15818460208701611d9f565b9190910192915050565b608081526000611c33608083018a8c611bda565b82810360208401528088825260208201905060208960051b8301018a845b8b811015611cc357848303601f19018452368d9003601e1901823512611c75578586fd5b8c823501803567ffffffffffffffff811115611c8f578788fd5b8036038f1315611c9d578788fd5b611cab858260208501611bda565b60209687019690955093909301925050600101611c51565b50508481036040860152611cd881898b611b45565b925050508281036060840152611cef818587611b8d565b9b9a5050505050505050505050565b6020815260008251806020840152611d1d816040850160208701611d9f565b601f01601f19169190910160400192915050565b60008219821115611d4457611d44611de6565b500190565b600082611d6457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611d8357611d83611de6565b500290565b600082821015611d9a57611d9a611de6565b500390565b60005b83811015611dba578181015183820152602001611da2565b838111156110165750506000910152565b6000600019821415611ddf57611ddf611de6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f7b57600080fdfea164736f6c6343000804000a

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

000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d40000000000000000000000002b42affd4b7c14d9b7c2579229495c052672ccd300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

-----Decoded View---------------
Arg [0] : _router (address): 0xef3c714c9425a8F3697A9C969Dc1af30ba82e5d4
Arg [1] : _registry (address): 0x2b42AFFD4b7C14d9B7C2579229495c052672Ccd3
Arg [2] : _wethAddress (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000ef3c714c9425a8f3697a9c969dc1af30ba82e5d4
Arg [1] : 0000000000000000000000002b42affd4b7c14d9b7c2579229495c052672ccd3
Arg [2] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1


Block Transaction Gas Used Reward
view all blocks ##produced##

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.