ETH Price: $2,152.85 (+0.07%)

Contract

0x016a0a6eDa89671ED253De416fc5a4889114c560
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x546a6c5e235257632025-10-07 12:05:11164 days ago1759838711IN
0x016a0a6e...89114c560
0.0011927 ETH0.00010910.87242392
0x789c11e8234574252025-09-27 22:48:47174 days ago1759013327IN
0x016a0a6e...89114c560
0.0001 ETH0.000020360.17350638
0x789c11e8234235982025-09-23 5:19:35178 days ago1758604775IN
0x016a0a6e...89114c560
0.0015 ETH0.000021160.18024794
0x91efa975232288412025-08-27 0:22:11206 days ago1756254131IN
0x016a0a6e...89114c560
0 ETH0.000057150.27122888
0x789c11e8231453072025-08-15 8:41:47217 days ago1755247307IN
0x016a0a6e...89114c560
0.00000324 ETH0.00003630.78892273
0x789c11e8230416502025-07-31 21:05:59232 days ago1753995959IN
0x016a0a6e...89114c560
0.0001 ETH0.000106690.90907598
0x546a6c5e227403722025-06-19 18:39:23274 days ago1750358363IN
0x016a0a6e...89114c560
0.00064847 ETH0.000191621.53516892
0x789c11e8220769762025-03-18 23:15:23367 days ago1742339723IN
0x016a0a6e...89114c560
0.00030918 ETH0.0000730.62177329
0x789c11e8219998182025-03-08 4:37:59377 days ago1741408679IN
0x016a0a6e...89114c560
0.00008 ETH0.000190441.62319865
0x789c11e8219178282025-02-24 17:59:23389 days ago1740419963IN
0x016a0a6e...89114c560
0.00013439 ETH0.000179111.52566673
0x789c11e8219172692025-02-24 16:06:59389 days ago1740413219IN
0x016a0a6e...89114c560
0.0008162 ETH0.000418253.56191345
0x789c11e8218290452025-02-12 7:52:23401 days ago1739346743IN
0x016a0a6e...89114c560
0.0025 ETH0.000081381.23971555
0x789c11e8214708162024-12-24 7:23:23451 days ago1735025003IN
0x016a0a6e...89114c560
0.01 ETH0.000799056.80553258
0x789c11e8208842032024-10-03 9:50:35533 days ago1727949035IN
0x016a0a6e...89114c560
0.0003 ETH0.000877517.6452063
0x789c11e8207061202024-09-08 13:14:35558 days ago1725801275IN
0x016a0a6e...89114c560
0.00188803 ETH0.000075331.63368307
0x789c11e8205900802024-08-23 8:22:23574 days ago1724401343IN
0x016a0a6e...89114c560
0.00005149 ETH0.000144841.26192379
0x789c11e8205559342024-08-18 13:52:47579 days ago1723989167IN
0x016a0a6e...89114c560
0.001 ETH0.000191541.66847819
0x546a6c5e204522432024-08-04 2:37:35594 days ago1722739055IN
0x016a0a6e...89114c560
0.00035 ETH0.000354711.93046496
0x789c11e8203740252024-07-24 4:30:59604 days ago1721795459IN
0x016a0a6e...89114c560
0.000195 ETH0.000458763.9981247
0x789c11e8202664772024-07-09 4:12:59619 days ago1720498379IN
0x016a0a6e...89114c560
0.0009 ETH0.00025032.28809618
0x789c11e8202664202024-07-09 4:01:35619 days ago1720497695IN
0x016a0a6e...89114c560
0.0011 ETH0.00034493.15349978
0x789c11e8202663622024-07-09 3:49:59620 days ago1720496999IN
0x016a0a6e...89114c560
0.0008 ETH0.00032372.95965125
0x789c11e8202663132024-07-09 3:39:59620 days ago1720496399IN
0x016a0a6e...89114c560
0.0008 ETH0.00030582.7960272
0x789c11e8202662682024-07-09 3:30:59620 days ago1720495859IN
0x016a0a6e...89114c560
0.0009 ETH0.000315822.88762258
0x789c11e8199768802024-05-29 17:03:23660 days ago1717002203IN
0x016a0a6e...89114c560
0.00045048 ETH0.0027226524.88826798
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Deposit235257632025-10-07 12:05:11164 days ago1759838711
0x016a0a6e...89114c560
0.0011885 ETH
Transfer235257632025-10-07 12:05:11164 days ago1759838711
0x016a0a6e...89114c560
0.0000042 ETH
Swap With Referr...234574252025-09-27 22:48:47174 days ago1759013327
0x016a0a6e...89114c560
0.0000997 ETH
Transfer234574252025-09-27 22:48:47174 days ago1759013327
0x016a0a6e...89114c560
0.0000003 ETH
Swap With Referr...234235982025-09-23 5:19:35178 days ago1758604775
0x016a0a6e...89114c560
0.0014955 ETH
Transfer234235982025-09-23 5:19:35178 days ago1758604775
0x016a0a6e...89114c560
0.0000045 ETH
Transfer232288412025-08-27 0:22:11206 days ago1756254131
0x016a0a6e...89114c560
0.00022214 ETH
Transfer232288412025-08-27 0:22:11206 days ago1756254131
0x016a0a6e...89114c560
0.00022214 ETH
Transfer231453072025-08-15 8:41:47217 days ago1755247307
0x016a0a6e...89114c560
0.0000003 ETH
Swap With Referr...230416502025-07-31 21:05:59232 days ago1753995959
0x016a0a6e...89114c560
0.0000997 ETH
Transfer230416502025-07-31 21:05:59232 days ago1753995959
0x016a0a6e...89114c560
0.0000003 ETH
Deposit227403722025-06-19 18:39:23274 days ago1750358363
0x016a0a6e...89114c560
0.00064542 ETH
Transfer227403722025-06-19 18:39:23274 days ago1750358363
0x016a0a6e...89114c560
0.00000304 ETH
Swap With Referr...220769762025-03-18 23:15:23367 days ago1742339723
0x016a0a6e...89114c560
0.00030825 ETH
Transfer220769762025-03-18 23:15:23367 days ago1742339723
0x016a0a6e...89114c560
0.00000092 ETH
Swap With Referr...219998182025-03-08 4:37:59377 days ago1741408679
0x016a0a6e...89114c560
0.00007976 ETH
Transfer219998182025-03-08 4:37:59377 days ago1741408679
0x016a0a6e...89114c560
0.00000024 ETH
Swap With Referr...219178282025-02-24 17:59:23389 days ago1740419963
0x016a0a6e...89114c560
0.00013398 ETH
Transfer219178282025-02-24 17:59:23389 days ago1740419963
0x016a0a6e...89114c560
0.0000004 ETH
Swap With Referr...219172692025-02-24 16:06:59389 days ago1740413219
0x016a0a6e...89114c560
0.00081375 ETH
Transfer219172692025-02-24 16:06:59389 days ago1740413219
0x016a0a6e...89114c560
0.00000244 ETH
Swap Eth218290452025-02-12 7:52:23401 days ago1739346743
0x016a0a6e...89114c560
0.0024925 ETH
Transfer218290452025-02-12 7:52:23401 days ago1739346743
0x016a0a6e...89114c560
0.0000075 ETH
Swap With Referr...214708162024-12-24 7:23:23451 days ago1735025003
0x016a0a6e...89114c560
0.00997 ETH
Transfer214708162024-12-24 7:23:23451 days ago1735025003
0x016a0a6e...89114c560
0.00003 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:
RouterProxy

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, None license
File 1 of 18 : RouterProxy.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

contract RouterProxy is TransparentUpgradeableProxy {
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    ) payable TransparentUpgradeableProxy(_logic, admin_, _data) {
    }

    receive() external payable override virtual {
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol)

pragma solidity ^0.8.0;

import "../Proxy.sol";
import "./ERC1967Upgrade.sol";

/**
 * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
 * implementation address that can be changed. This address is stored in storage in the location specified by
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
 * implementation behind the proxy.
 */
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     *
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializing the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) payable {
        _upgradeToAndCall(_logic, _data, false);
    }

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal view virtual override returns (address impl) {
        return ERC1967Upgrade._getImplementation();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeacon.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967Upgrade {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overridden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/transparent/TransparentUpgradeableProxy.sol)

pragma solidity ^0.8.0;

import "../ERC1967/ERC1967Proxy.sol";

/**
 * @dev This contract implements a proxy that is upgradeable by an admin.
 *
 * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
 * clashing], which can potentially be used in an attack, this contract uses the
 * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
 * things that go hand in hand:
 *
 * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
 * that call matches one of the admin functions exposed by the proxy itself.
 * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
 * implementation. If the admin tries to call a function on the implementation it will fail with an error that says
 * "admin cannot fallback to proxy target".
 *
 * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
 * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
 * to sudden errors when trying to call a function from the proxy implementation.
 *
 * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
 * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
 */
contract TransparentUpgradeableProxy is ERC1967Proxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
     */
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    ) payable ERC1967Proxy(_logic, _data) {
        _changeAdmin(admin_);
    }

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _getAdmin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _getAdmin();
    }

    /**
     * @dev Returns the current implementation.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external virtual ifAdmin {
        _changeAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeToAndCall(newImplementation, bytes(""), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
        _upgradeToAndCall(newImplementation, data, true);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view virtual returns (address) {
        return _getAdmin();
    }

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal virtual override {
        require(msg.sender != _getAdmin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 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 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

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

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

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

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "../interfaces/IWETH.sol";
import "../libraries/TransferHelper.sol";
import "../libraries/AddressHelper.sol";
import "../interfaces/IRouter.sol";

abstract contract AbstractRouter is IRouter, Ownable {
    address public immutable override feeTo;
    address public immutable override WETH;

    constructor(address WETH_, address feeTo_){
        WETH = WETH_;
        feeTo = feeTo_;
    }

    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, 'EXPIRED');
        _;
    }

    function unwrapWETH(uint256 amount, address recipient) public payable override {
        require(amount > 0, 'UW:AMOUNT');
        uint256 balanceWETH = AddressHelper.balanceOf(WETH, address(this));
        require(balanceWETH >= amount, 'UW:WW');

        IWETH(WETH).withdraw(balanceWETH);
        TransferHelper.safeTransferETH(recipient, amount);
    }

    function swap(
        SwapParam calldata param,
        uint256 amountIn,
        uint256 deadline
    ) internal virtual ensure(deadline) returns (uint256 amount) {
        bytes memory data = abi.encodePacked(param.prefix, abi.encode(amountIn), param.suffix);
        uint256 beforeBalance = AddressHelper.balanceOf(param.tokenOut, address(this));
        Address.functionCall(param.target, data);
        amount = AddressHelper.balanceOf(param.tokenOut,  address(this)) - beforeBalance;
        require(amount != 0, "SWAP_FAILURE");
        return amount;
    }

    function cross(
        CrossParam calldata param,
        address sender,
        uint256 amount,
        uint256 deadline
    ) internal virtual ensure(deadline) {
        bytes memory data;
        uint256 value;

        if (AddressHelper.isEther(param.token)) {
            data = abi.encodePacked(param.prefix, param.suffix);
            value = amount;
        } else {
            data = abi.encodePacked(param.prefix, abi.encode(amount), param.suffix);
        }

        uint256 beforeBalance = AddressHelper.balanceOf(param.token, sender);
        Address.functionCallWithValue(param.target, data, value);
        require((beforeBalance - AddressHelper.balanceOf(param.token, sender)) == amount, "CROSS_FAILURE");
    }

    function chargeFee(address token, uint256 amount, uint256 fee) internal returns (uint256) {
        if (fee == 0) {
            return amount;
        }

        if (AddressHelper.isNative(feeTo)) {
            if (fee > 0) {
                return amount - fee;
            }

            return amount;
        } else {
            if (AddressHelper.isNative(token)) {
                require(msg.value > fee, "INVALID_VALUE");
                TransferHelper.safeTransferETH(feeTo, fee);
            } else {
                TransferHelper.safeTransferFrom(token, msg.sender, feeTo, fee);
            }
        }

        return amount - fee;
    }

    function destroy() public onlyOwner {
        selfdestruct(payable(owner()));
    }
}

pragma solidity ^0.8.0;
//import "./interfaces/ICCUniswapV3SwapCallback.sol";
import "./IWETH.sol";
import "../libraries/TransferHelper.sol";

interface IRouter {
    function feeTo() external view returns (address);
    function WETH() external view returns (address);

    function unwrapWETH(uint256 amountMinimum, address recipient) external payable;

    struct QuoteParam {
        address target;
        bytes data;
    }

    struct QuoteResult {
        uint256 index;
        bool success;
        bytes data;
    }

    struct SwapParam {
        address target;
        address tokenIn;
        address tokenOut;
        uint256 fee;
        uint256 amountOutMinimum;
        bytes prefix;
        //amountIn;
        bytes suffix;
    }

    struct CrossParam {
        address target;
        address token;
        uint256 chain;
        uint256 fee;
        bytes prefix;
        //amount;
        bytes suffix;
    }

    struct ProviderParam {
        address target;
        address token;
        uint256 id;
        uint256 amount;
        uint256 fee;
        bytes data;
    }

    function tokenSwapForToken(
        SwapParam calldata param,
        address recipient,
        uint256 amountIn,
        uint256 deadline
    ) external returns (uint256 amountOut);

    function tokenSwapForNative(
        SwapParam calldata param,
        address recipient,
        uint256 amountIn,
        uint256 deadline
    ) external returns (uint256 amountOut);

    function nativeSwapForToken(
        SwapParam calldata param,
        address recipient,
        uint256 deadline
    ) external payable returns (uint256 amountOut);

    function tokenCross(
        CrossParam calldata cross,
        uint256 amount,
        uint256 deadline
    ) external returns (uint256);

    function nativeCross(
        CrossParam calldata cross,
        uint256 deadline
    ) external payable returns (uint256);

    function tokenSwapForCross(
        SwapParam calldata swap,
        CrossParam calldata cross,
        uint256 amountIn,
        uint256 deadline
    ) external returns (uint256 amountOut);

    function nativeSwapForCross(
        SwapParam calldata swap,
        CrossParam calldata cross,
        uint256 deadline
    ) external payable returns (uint256 amountOut);

    function callProvider(
        ProviderParam calldata param,
        uint256 deadline
    ) external payable;


    event Swapped(address indexed account, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 fee, uint256 amountOut);
    event Crossed(address indexed account, address indexed token, uint256 chain, uint256 amount, uint256 fee);
    event ProviderCalled(address indexed account, address indexed token, address indexed target, uint256 id, uint256 amount, uint256 fee);
}

pragma solidity >=0.8.0;

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

interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint256) external;
}

pragma solidity ^0.8.0;

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

library AddressHelper {
    address public constant ZERO_ADDRESS = address(0x0000000000000000000000000000000000000000);
    address public constant ETHER_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);

    function isEther(address token) internal pure returns(bool) {
        return token == ETHER_ADDRESS;
    }

    function isZero(address token) internal pure returns(bool) {
        return token == ZERO_ADDRESS;
    }

    function isNative(address token)  internal pure returns(bool) {
        return isEther(token) || isZero(token);
    }

    function approveIfNeeded(address token, address spender, uint256 amount) internal {
        if (!isNative(token) && IERC20(token).allowance(address(this), spender) < amount) {
            TransferHelper.safeApprove(token, spender, amount);
        }
    }

    function balanceOf(address token, address account) internal view returns (uint256) {
        if (isNative(token)) {
            return account.balance;
        } else {
            return IERC20(token).balanceOf(account);
        }
    }
}

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TFH::SA'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TFH::ST'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TFH::STF'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TFH:STE');
    }
}

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";

import "./interfaces/IWETH.sol";
import "./libraries/TransferHelper.sol";
import "./implements/AbstractRouter.sol";

contract Router is AbstractRouter {

    constructor(address weth, address feeTo) AbstractRouter(weth, feeTo) {

    }

    function tokenSwapForToken(
        SwapParam calldata param,
        address recipient,
        uint256 amountIn,
        uint256 deadline
    ) external override returns (uint256 amountOut) {
        require(amountIn != 0, "INVALID_AMOUNT");
        require(!AddressHelper.isNative(param.tokenIn), "INVALID_TOKEN_IN");
        require(!AddressHelper.isNative(param.tokenOut), "INVALID_TOKEN_OUT");

        if (AddressHelper.isZero(recipient)) {
            recipient = msg.sender;
        }

        uint256 amountInWithFee = chargeFee(param.tokenIn, amountIn, param.fee);
        TransferHelper.safeTransferFrom(param.tokenIn, msg.sender, address(this), amountInWithFee);
        AddressHelper.approveIfNeeded(param.tokenIn, param.target, amountInWithFee);

        amountOut = swap(param, amountInWithFee, deadline);
        require(amountOut >= param.amountOutMinimum, "SWAP_TOO_LITTLE_RECEIVED");

        TransferHelper.safeTransfer(param.tokenOut, recipient, amountOut);
        emit Swapped(msg.sender, param.tokenIn, param.tokenOut, amountIn, param.fee, amountOut);
        return amountOut;
    }

    function tokenSwapForNative(
        SwapParam calldata param,
        address recipient,
        uint256 amountIn,
        uint256 deadline
    ) external override returns (uint256 amountOut) {
        require(amountIn != 0, "INVALID_AMOUNT");
        require(!AddressHelper.isNative(param.tokenIn), "INVALID_TOKEN_IN");
        require(param.tokenOut == WETH, "INVALID_TOKEN_OUT");

        if (AddressHelper.isZero(recipient)) {
            recipient = msg.sender;
        }

        uint256 amountInWithoutFee = chargeFee(param.tokenIn, amountIn, param.fee);
        TransferHelper.safeTransferFrom(param.tokenIn, msg.sender, address(this), amountInWithoutFee);
        AddressHelper.approveIfNeeded(param.tokenIn, param.target, amountInWithoutFee);

        amountOut = swap(param, amountInWithoutFee, deadline);
        require(amountOut >= param.amountOutMinimum, "SWAP_TOO_LITTLE_RECEIVED");

        unwrapWETH(amountOut, recipient);
        emit Swapped(msg.sender, param.tokenIn, param.tokenOut, amountIn, param.fee, amountOut);
        return amountOut;
    }

    function nativeSwapForToken(
        SwapParam calldata param,
        address recipient,
        uint256 deadline
    ) external override payable returns (uint256 amountOut) {
        require(msg.value > 0, "INVALID_VALUE");
        require(param.tokenIn == WETH, "INVALID_TOKEN_IN");
        require(!AddressHelper.isNative(param.tokenOut), "INVALID_TOKEN_OUT");

        if (AddressHelper.isZero(recipient)) {
            recipient = msg.sender;
        }

        uint256 amountInWithOutFee = chargeFee(AddressHelper.ETHER_ADDRESS, msg.value, param.fee);
        IWETH(WETH).deposit{value: amountInWithOutFee}();
        AddressHelper.approveIfNeeded(WETH, param.target, amountInWithOutFee);

        amountOut = AbstractRouter.swap(param, amountInWithOutFee, deadline);
        require(amountOut >= param.amountOutMinimum, "SWAP_TOO_LITTLE_RECEIVED");

        TransferHelper.safeTransfer(param.tokenOut, recipient, amountOut);
        emit Swapped(msg.sender, param.tokenIn, param.tokenOut, msg.value, param.fee, amountOut);
        return amountOut;
    }

    function tokenCross(
        CrossParam calldata param,
        uint256 amount,
        uint256 deadline
    ) external override returns (uint256) {
        require(!AddressHelper.isNative(param.token), "INVALID_TOKEN");

        uint256 amountWithOutFee = chargeFee(param.token, amount, param.fee);

        TransferHelper.safeTransferFrom(param.token, msg.sender, address(this), amountWithOutFee);
        AddressHelper.approveIfNeeded(param.token, param.target, amountWithOutFee);

        AbstractRouter.cross(param, address(this), amountWithOutFee, deadline);
        emit Crossed(msg.sender, param.token, param.chain, amount, param.fee);
        return amount;
    }

    function nativeCross(
        CrossParam calldata param,
        uint256 deadline
    ) external override payable returns (uint256) {
        require(AddressHelper.isNative(param.token), "INVALID_TOKEN");
        require(msg.value != 0, "INVALID_AMOUNT");

        uint256 amountWithOutFee = chargeFee(AddressHelper.ETHER_ADDRESS, msg.value, param.fee);
        AbstractRouter.cross(param, address(this), amountWithOutFee, deadline);
        emit Crossed(msg.sender, param.token, param.chain, msg.value, param.fee);
        return msg.value;
    }

    function tokenSwapForCross(
        SwapParam calldata swap,
        CrossParam calldata cross,
        uint256 amountIn,
        uint256 deadline
    ) external override returns (uint256 amountOut) {
        require(amountIn != 0, "INVALID_AMOUNT");
        require(!AddressHelper.isNative(swap.tokenIn), "INVALID_TOKEN_IN");
        require(!AddressHelper.isNative(swap.tokenOut), "INVALID_TOKEN_OUT");

        uint256 amountInWithoutFee = chargeFee(swap.tokenIn, amountIn, swap.fee);
        TransferHelper.safeTransferFrom(swap.tokenIn, msg.sender, address(this), amountInWithoutFee);
        AddressHelper.approveIfNeeded(swap.tokenIn, swap.target, amountInWithoutFee);

        amountOut = AbstractRouter.swap(swap, amountInWithoutFee, deadline);
        require(amountOut != 0, "INVALID_SWAP_AMOUNT");
        emit Swapped(msg.sender, swap.tokenIn, swap.tokenOut, amountIn, swap.fee, amountOut);

        AddressHelper.approveIfNeeded(cross.token, cross.target, amountOut);
        AbstractRouter.cross(cross, address(this), amountOut, deadline);
        emit Crossed(msg.sender, cross.token, cross.chain, amountOut, cross.fee);
        return amountOut;
    }

    function nativeSwapForCross(
        SwapParam calldata swap,
        CrossParam calldata cross,
        uint256 deadline
    ) external override payable returns (uint256 amountOut) {
        require(msg.value > 0, "INVALID_AMOUNT");
        require(swap.tokenIn == WETH, "INVALID_TOKEN_IN");
        require(!AddressHelper.isNative(swap.tokenOut), "INVALID_TOKEN_OUT");
        require(swap.tokenOut == cross.token, "INVALID_CROSS_TOKEN");

        uint256 amountInWithoutFee = chargeFee(AddressHelper.ETHER_ADDRESS, msg.value, swap.fee);
        IWETH(WETH).deposit{value: amountInWithoutFee}();
        AddressHelper.approveIfNeeded(WETH, swap.target, amountInWithoutFee);

        amountOut = AbstractRouter.swap(swap, amountInWithoutFee, deadline);
        require(amountOut != 0, "INVALID_SWAP_AMOUNT");
        emit Swapped(msg.sender, swap.tokenIn, swap.tokenOut, msg.value, swap.fee, amountOut);

        AddressHelper.approveIfNeeded(cross.token, cross.target, amountOut);
        AbstractRouter.cross(cross, address(this), amountOut, deadline);
        emit Crossed(msg.sender, cross.token, cross.chain, amountOut, cross.fee);
        return amountOut;
    }

    function callProvider(
        ProviderParam calldata param,
        uint256 deadline
    ) external override payable ensure(deadline) {
        require(!AddressHelper.isZero(param.target), "INVALID_TARGET");
        require(param.amount != 0, "INVALID_AMOUNT");
        uint256 value = 0;
        uint256 amountInWithFee = 0;

        if (AddressHelper.isNative(param.token)) {
            require(msg.value > 0, "INVALID_VALUE");
            amountInWithFee = chargeFee(AddressHelper.ETHER_ADDRESS, param.amount, param.fee);
            value = amountInWithFee;
        }  else {
            amountInWithFee = chargeFee(param.token, param.amount, param.fee);
            TransferHelper.safeTransferFrom(param.token, msg.sender, address(this), amountInWithFee);
            AddressHelper.approveIfNeeded(param.token, param.target, amountInWithFee);
        }

        Address.functionCallWithValue(param.target, param.data, value);
        emit ProviderCalled(msg.sender, param.token, param.target, param.id, amountInWithFee, param.fee);
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260405162000e8138038062000e8183398101604081905262000026916200045e565b8282828281620000398282600062000053565b506200004790508262000090565b505050505050620005d2565b6200005e83620000eb565b6000825111806200006c5750805b156200008b576200008983836200012d60201b6200025a1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f620000bb6200015c565b604080516001600160a01b03928316815291841660208301520160405180910390a1620000e88162000195565b50565b620000f6816200024a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606062000155838360405180606001604052806027815260200162000e5a60279139620002fe565b9392505050565b60006200018660008051602062000e3a83398151915260001b6200037d60201b620002021760201c565b546001600160a01b0316919050565b6001600160a01b038116620002005760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b806200022960008051602062000e3a83398151915260001b6200037d60201b620002021760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b62000260816200038060201b620002861760201c565b620002c45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620001f7565b80620002297f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200037d60201b620002021760201c565b6060600080856001600160a01b0316856040516200031d91906200053a565b600060405180830381855af49150503d80600081146200035a576040519150601f19603f3d011682016040523d82523d6000602084013e6200035f565b606091505b50909250905062000373868383876200038f565b9695505050505050565b90565b6001600160a01b03163b151590565b6060831562000400578251620003f857620003aa8562000380565b620003f85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620001f7565b50816200040c565b6200040c838362000414565b949350505050565b815115620004255781518083602001fd5b8060405162461bcd60e51b8152600401620001f7919062000558565b80516001600160a01b03811681146200045957600080fd5b919050565b60008060006060848603121562000473578283fd5b6200047e8462000441565b92506200048e6020850162000441565b60408501519092506001600160401b0380821115620004ab578283fd5b818601915086601f830112620004bf578283fd5b815181811115620004d457620004d4620005bc565b604051601f8201601f19908116603f01168101908382118183101715620004ff57620004ff620005bc565b8160405282815289602084870101111562000518578586fd5b6200052b8360208301602088016200058d565b80955050505050509250925092565b600082516200054e8184602087016200058d565b9190910192915050565b6020815260008251806020840152620005798160408501602087016200058d565b601f01601f19169190910160400192915050565b60005b83811015620005aa57818101518382015260200162000590565b83811115620000895750506000910152565b634e487b7160e01b600052604160045260246000fd5b61085880620005e26000396000f3fe60806040526004361061004e5760003560e01c80633659cfe61461005f5780634f1ef2861461007f5780635c60da1b146100925780638f283970146100c3578063f851a440146100e357610055565b3661005557005b61005d6100f8565b005b34801561006b57600080fd5b5061005d61007a3660046106a9565b610112565b61005d61008d3660046106c3565b610159565b34801561009e57600080fd5b506100a76101ca565b6040516001600160a01b03909116815260200160405180910390f35b3480156100cf57600080fd5b5061005d6100de3660046106a9565b610205565b3480156100ef57600080fd5b506100a761022f565b610100610295565b61011061010b610334565b61033e565b565b61011a610362565b6001600160a01b0316336001600160a01b031614156101515761014e81604051806020016040528060008152506000610383565b50565b61014e6100f8565b610161610362565b6001600160a01b0316336001600160a01b031614156101c2576101bd8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610383915050565b505050565b6101bd6100f8565b60006101d4610362565b6001600160a01b0316336001600160a01b031614156101fa576101f5610334565b905090565b6102026100f8565b90565b61020d610362565b6001600160a01b0316336001600160a01b031614156101515761014e816103ae565b6000610239610362565b6001600160a01b0316336001600160a01b031614156101fa576101f5610362565b606061027f83836040518060600160405280602781526020016107fc60279139610402565b9392505050565b6001600160a01b03163b151590565b61029d610362565b6001600160a01b0316336001600160a01b031614156101105760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101f561047a565b3660008037600080366000845af43d6000803e80801561035d573d6000f35b3d6000fd5b60006000805160206107bc8339815191525b546001600160a01b0316919050565b61038c83610490565b6000825111806103995750805b156101bd576103a8838361025a565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103d7610362565b604080516001600160a01b03928316815291841660208301520160405180910390a161014e816104d0565b6060600080856001600160a01b03168560405161041f9190610740565b600060405180830381855af49150503d806000811461045a576040519150601f19603f3d011682016040523d82523d6000602084013e61045f565b606091505b509150915061047086838387610567565b9695505050505050565b60006000805160206107dc833981519152610374565b610499816105e3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105355760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b606482015260840161032b565b806000805160206107bc8339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b606083156105d15782516105ca5761057e85610286565b6105ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161032b565b50816105db565b6105db8383610663565b949350505050565b6105ec81610286565b61064e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161032b565b806000805160206107dc833981519152610546565b8151156106735781518083602001fd5b8060405162461bcd60e51b815260040161032b919061075c565b80356001600160a01b03811681146106a457600080fd5b919050565b6000602082840312156106ba578081fd5b61027f8261068d565b6000806000604084860312156106d7578182fd5b6106e08461068d565b925060208401356001600160401b03808211156106fb578384fd5b818601915086601f83011261070e578384fd5b81358181111561071c578485fd5b87602082850101111561072d578485fd5b6020830194508093505050509250925092565b6000825161075281846020870161078f565b9190910192915050565b602081526000825180602084015261077b81604085016020870161078f565b601f01601f19169190910160400192915050565b60005b838110156107aa578181015183820152602001610792565b838111156103a8575050600091015256feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201050285068987cae706e3087dbd08f866c5634fd33fc0e9502ccc9bde569158164736f6c63430008040033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000276a0f59e034388c442b2698574837d3827bd020000000000000000000000000b326de22b7487094a323bed28431c9dd8ec4bbd100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061004e5760003560e01c80633659cfe61461005f5780634f1ef2861461007f5780635c60da1b146100925780638f283970146100c3578063f851a440146100e357610055565b3661005557005b61005d6100f8565b005b34801561006b57600080fd5b5061005d61007a3660046106a9565b610112565b61005d61008d3660046106c3565b610159565b34801561009e57600080fd5b506100a76101ca565b6040516001600160a01b03909116815260200160405180910390f35b3480156100cf57600080fd5b5061005d6100de3660046106a9565b610205565b3480156100ef57600080fd5b506100a761022f565b610100610295565b61011061010b610334565b61033e565b565b61011a610362565b6001600160a01b0316336001600160a01b031614156101515761014e81604051806020016040528060008152506000610383565b50565b61014e6100f8565b610161610362565b6001600160a01b0316336001600160a01b031614156101c2576101bd8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610383915050565b505050565b6101bd6100f8565b60006101d4610362565b6001600160a01b0316336001600160a01b031614156101fa576101f5610334565b905090565b6102026100f8565b90565b61020d610362565b6001600160a01b0316336001600160a01b031614156101515761014e816103ae565b6000610239610362565b6001600160a01b0316336001600160a01b031614156101fa576101f5610362565b606061027f83836040518060600160405280602781526020016107fc60279139610402565b9392505050565b6001600160a01b03163b151590565b61029d610362565b6001600160a01b0316336001600160a01b031614156101105760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101f561047a565b3660008037600080366000845af43d6000803e80801561035d573d6000f35b3d6000fd5b60006000805160206107bc8339815191525b546001600160a01b0316919050565b61038c83610490565b6000825111806103995750805b156101bd576103a8838361025a565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103d7610362565b604080516001600160a01b03928316815291841660208301520160405180910390a161014e816104d0565b6060600080856001600160a01b03168560405161041f9190610740565b600060405180830381855af49150503d806000811461045a576040519150601f19603f3d011682016040523d82523d6000602084013e61045f565b606091505b509150915061047086838387610567565b9695505050505050565b60006000805160206107dc833981519152610374565b610499816105e3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105355760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b606482015260840161032b565b806000805160206107bc8339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b606083156105d15782516105ca5761057e85610286565b6105ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161032b565b50816105db565b6105db8383610663565b949350505050565b6105ec81610286565b61064e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161032b565b806000805160206107dc833981519152610546565b8151156106735781518083602001fd5b8060405162461bcd60e51b815260040161032b919061075c565b80356001600160a01b03811681146106a457600080fd5b919050565b6000602082840312156106ba578081fd5b61027f8261068d565b6000806000604084860312156106d7578182fd5b6106e08461068d565b925060208401356001600160401b03808211156106fb578384fd5b818601915086601f83011261070e578384fd5b81358181111561071c578485fd5b87602082850101111561072d578485fd5b6020830194508093505050509250925092565b6000825161075281846020870161078f565b9190910192915050565b602081526000825180602084015261077b81604085016020870161078f565b601f01601f19169190910160400192915050565b60005b838110156107aa578181015183820152602001610792565b838111156103a8575050600091015256feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201050285068987cae706e3087dbd08f866c5634fd33fc0e9502ccc9bde569158164736f6c63430008040033

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

000000000000000000000000276a0f59e034388c442b2698574837d3827bd020000000000000000000000000b326de22b7487094a323bed28431c9dd8ec4bbd100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _logic (address): 0x276A0f59e034388C442b2698574837d3827bD020
Arg [1] : admin_ (address): 0xB326de22B7487094A323bEd28431C9dD8eC4bBd1
Arg [2] : _data (bytes): 0x

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000276a0f59e034388c442b2698574837d3827bd020
Arg [1] : 000000000000000000000000b326de22b7487094a323bed28431c9dd8ec4bbd1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

110:277:12:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2675:11:4;:9;:11::i;:::-;110:277:12;3960:134:6;;;;;;;;;;-1:-1:-1;3960:134:6;;;;;:::i;:::-;;:::i;4470:164::-;;;;;;:::i;:::-;;:::i;3363:129::-;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;1556:32:18;;;1538:51;;1526:2;1511:18;3363:129:6;;;;;;;3697:103;;;;;;;;;;-1:-1:-1;3697:103:6;;;;;:::i;:::-;;:::i;2807:96::-;;;;;;;;;;;;;:::i;2322:110:4:-;2370:17;:15;:17::i;:::-;2397:28;2407:17;:15;:17::i;:::-;2397:9;:28::i;:::-;2322:110::o;3960:134:6:-;2278:11;:9;:11::i;:::-;-1:-1:-1;;;;;2264:25:6;:10;-1:-1:-1;;;;;2264:25:6;;2260:99;;;4033:54:::1;4051:17;4070:9;;;;;;;;;;;::::0;4081:5:::1;4033:17;:54::i;:::-;3960:134:::0;:::o;2260:99::-;2337:11;:9;:11::i;4470:164::-;2278:11;:9;:11::i;:::-;-1:-1:-1;;;;;2264:25:6;:10;-1:-1:-1;;;;;2264:25:6;;2260:99;;;4579:48:::1;4597:17;4616:4;;4579:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;4622:4:6::1;::::0;-1:-1:-1;4579:17:6::1;::::0;-1:-1:-1;;4579:48:6:i:1;:::-;4470:164:::0;;;:::o;2260:99::-;2337:11;:9;:11::i;3363:129::-;3415:23;2278:11;:9;:11::i;:::-;-1:-1:-1;;;;;2264:25:6;:10;-1:-1:-1;;;;;2264:25:6;;2260:99;;;3468:17:::1;:15;:17::i;:::-;3450:35;;3363:129:::0;:::o;2260:99::-;2337:11;:9;:11::i;:::-;3363:129;:::o;3697:103::-;2278:11;:9;:11::i;:::-;-1:-1:-1;;;;;2264:25:6;:10;-1:-1:-1;;;;;2264:25:6;;2260:99;;;3771:22:::1;3784:8;3771:12;:22::i;2807:96::-:0;2850:14;2278:11;:9;:11::i;:::-;-1:-1:-1;;;;;2264:25:6;:10;-1:-1:-1;;;;;2264:25:6;;2260:99;;;2885:11:::1;:9;:11::i;6469:198:8:-:0;6552:12;6583:77;6604:6;6612:4;6583:77;;;;;;;;;;;;;;;;;:20;:77::i;:::-;6576:84;6469:198;-1:-1:-1;;;6469:198:8:o;1175:320::-;-1:-1:-1;;;;;1465:19:8;;:23;;;1175:320::o;4909:207:6:-;4994:11;:9;:11::i;:::-;-1:-1:-1;;;;;4980:25:6;:10;-1:-1:-1;;;;;4980:25:6;;;4972:104;;;;-1:-1:-1;;;4972:104:6;;3678:2:18;4972:104:6;;;3660:21:18;3717:2;3697:18;;;3690:30;3756:34;3736:18;;;3729:62;3827:34;3807:18;;;3800:62;-1:-1:-1;;;3878:19:18;;;3871:33;3921:19;;4972:104:6;;;;;;;;1148:140:2;1215:12;1246:35;:33;:35::i;948:895:4:-;1286:14;1283:1;1280;1267:34;1500:1;1497;1481:14;1478:1;1462:14;1455:5;1442:60;1576:16;1573:1;1570;1555:38;1614:6;1681:66;;;;1796:16;1793:1;1786:27;1681:66;1716:16;1713:1;1706:27;4108:122:3;4152:7;-1:-1:-1;;;;;;;;;;;4178:39:3;:45;-1:-1:-1;;;;;4178:45:3;;4108:122;-1:-1:-1;4108:122:3:o;2183:295::-;2321:29;2332:17;2321:10;:29::i;:::-;2378:1;2364:4;:11;:15;:28;;;;2383:9;2364:28;2360:112;;;2408:53;2437:17;2456:4;2408:28;:53::i;:::-;;2183:295;;;:::o;4624:135::-;4688:35;4701:11;:9;:11::i;:::-;4688:35;;;-1:-1:-1;;;;;1830:15:18;;;1812:34;;1882:15;;;1877:2;1862:18;;1855:43;1747:18;4688:35:3;;;;;;;4733:19;4743:8;4733:9;:19::i;6853:325:8:-;6994:12;7019;7033:23;7060:6;-1:-1:-1;;;;;7060:19:8;7080:4;7060:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7018:67;;;;7102:69;7129:6;7137:7;7146:10;7158:12;7102:26;:69::i;:::-;7095:76;6853:325;-1:-1:-1;;;;;;6853:325:8:o;1301:140:3:-;1354:7;-1:-1:-1;;;;;;;;;;;1380:48:3;1760:38:10;1897:152:3;1963:37;1982:17;1963:18;:37::i;:::-;2015:27;;-1:-1:-1;;;;;2015:27:3;;;;;;;;1897:152;:::o;4312:201::-;-1:-1:-1;;;;;4375:22:3;;4367:73;;;;-1:-1:-1;;;4367:73:3;;2499:2:18;4367:73:3;;;2481:21:18;2538:2;2518:18;;;2511:30;2577:34;2557:18;;;2550:62;-1:-1:-1;;;2628:18:18;;;2621:36;2674:19;;4367:73:3;2471:228:18;4367:73:3;4498:8;-1:-1:-1;;;;;;;;;;;4450:39:3;:56;;-1:-1:-1;;;;;;4450:56:3;-1:-1:-1;;;;;4450:56:3;;;;;;;;;;-1:-1:-1;4312:201:3:o;7466:628:8:-;7646:12;7674:7;7670:418;;;7701:17;;7697:286;;7916:18;7927:6;7916:10;:18::i;:::-;7908:60;;;;-1:-1:-1;;;7908:60:8;;3320:2:18;7908:60:8;;;3302:21:18;3359:2;3339:18;;;3332:30;3398:31;3378:18;;;3371:59;3447:18;;7908:60:8;3292:179:18;7908:60:8;-1:-1:-1;8003:10:8;7996:17;;7670:418;8044:33;8052:10;8064:12;8044:7;:33::i;:::-;7466:628;;;;;;:::o;1532:259:3:-;1613:37;1632:17;1613:18;:37::i;:::-;1605:95;;;;-1:-1:-1;;;1605:95:3;;2906:2:18;1605:95:3;;;2888:21:18;2945:2;2925:18;;;2918:30;2984:34;2964:18;;;2957:62;-1:-1:-1;;;3035:18:18;;;3028:43;3088:19;;1605:95:3;2878:235:18;1605:95:3;1767:17;-1:-1:-1;;;;;;;;;;;1710:48:3;1760:38:10;8616:540:8;8775:17;;:21;8771:379;;9003:10;8997:17;9059:15;9046:10;9042:2;9038:19;9031:44;8956:133;9126:12;9119:20;;-1:-1:-1;;;9119:20:8;;;;;;;;:::i;14:173:18:-;82:20;;-1:-1:-1;;;;;131:31:18;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;393:715::-;472:6;480;488;541:2;529:9;520:7;516:23;512:32;509:2;;;562:6;554;547:22;509:2;590:29;609:9;590:29;:::i;:::-;580:39;-1:-1:-1;670:2:18;655:18;;642:32;-1:-1:-1;;;;;723:14:18;;;720:2;;;755:6;747;740:22;720:2;798:6;787:9;783:22;773:32;;843:7;836:4;832:2;828:13;824:27;814:2;;870:6;862;855:22;814:2;915;902:16;941:2;933:6;930:14;927:2;;;962:6;954;947:22;927:2;1012:7;1007:2;998:6;994:2;990:15;986:24;983:37;980:2;;;1038:6;1030;1023:22;980:2;1074;1070;1066:11;1056:21;;1096:6;1086:16;;;;;499:609;;;;;:::o;1113:274::-;1242:3;1280:6;1274:13;1296:53;1342:6;1337:3;1330:4;1322:6;1318:17;1296:53;:::i;:::-;1365:16;;;;;1250:137;-1:-1:-1;;1250:137:18:o;1909:383::-;2058:2;2047:9;2040:21;2021:4;2090:6;2084:13;2133:6;2128:2;2117:9;2113:18;2106:34;2149:66;2208:6;2203:2;2192:9;2188:18;2183:2;2175:6;2171:15;2149:66;:::i;:::-;2276:2;2255:15;-1:-1:-1;;2251:29:18;2236:45;;;;2283:2;2232:54;;2030:262;-1:-1:-1;;2030:262:18:o;3951:258::-;4023:1;4033:113;4047:6;4044:1;4041:13;4033:113;;;4123:11;;;4117:18;4104:11;;;4097:39;4069:2;4062:10;4033:113;;;4164:6;4161:1;4158:13;4155:2;;;-1:-1:-1;;4199:1:18;4181:16;;4174:27;4004:205::o

Swarm Source

ipfs://1050285068987cae706e3087dbd08f866c5634fd33fc0e9502ccc9bde5691581

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.