ETH Price: $3,746.72 (+0.95%)
Gas: 4 Gwei

Contract

0x422b1179b63F9327BEdedeA64B75C942744dFaC8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Register Proxy199312252024-05-23 7:55:112 days ago1716450911IN
0x422b1179...2744dFaC8
0 ETH0.0019759812.58446579
Register Proxy199268402024-05-22 17:13:592 days ago1716398039IN
0x422b1179...2744dFaC8
0 ETH0.0031403620
Register Proxy199251872024-05-22 11:41:233 days ago1716378083IN
0x422b1179...2744dFaC8
0 ETH0.001359648.65915831
Register Proxy198905422024-05-17 15:19:477 days ago1715959187IN
0x422b1179...2744dFaC8
0 ETH0.0016446310.47418564
Register Proxy198004432024-05-05 0:52:5920 days ago1714870379IN
0x422b1179...2744dFaC8
0 ETH0.00067814.31865898
Register Proxy197671172024-04-30 9:04:5925 days ago1714467899IN
0x422b1179...2744dFaC8
0 ETH0.0020831513.26698975
Register Proxy197670382024-04-30 8:49:1125 days ago1714466951IN
0x422b1179...2744dFaC8
0 ETH0.0020173212.84775962
Register Proxy197382712024-04-26 8:13:1129 days ago1714119191IN
0x422b1179...2744dFaC8
0 ETH0.001215547.7414396
Register Proxy197104432024-04-22 10:48:5933 days ago1713782939IN
0x422b1179...2744dFaC8
0 ETH0.001362678.67847644
Register Proxy196679842024-04-16 12:16:4738 days ago1713269807IN
0x422b1179...2744dFaC8
0 ETH0.0017802411.33781588
Register Proxy196617382024-04-15 15:15:2339 days ago1713194123IN
0x422b1179...2744dFaC8
0 ETH0.0049066731.24915172
Register Proxy196613782024-04-15 14:02:4739 days ago1713189767IN
0x422b1179...2744dFaC8
0 ETH0.0040061725.51409446
Register Proxy196552502024-04-14 17:25:4740 days ago1713115547IN
0x422b1179...2744dFaC8
0 ETH0.0039113324.91012856
Register Proxy196551182024-04-14 16:59:1140 days ago1713113951IN
0x422b1179...2744dFaC8
0 ETH0.0017685111.26316543
Register Proxy195703572024-04-02 20:02:5952 days ago1712088179IN
0x422b1179...2744dFaC8
0 ETH0.0085062254.17358839
Register Proxy195637682024-04-01 21:51:1153 days ago1712008271IN
0x422b1179...2744dFaC8
0 ETH0.0035444622.57359749
Register Proxy195422302024-03-29 21:08:5956 days ago1711746539IN
0x422b1179...2744dFaC8
0 ETH0.0039856125.38315737
Register Proxy195378862024-03-29 6:30:1157 days ago1711693811IN
0x422b1179...2744dFaC8
0 ETH0.0031226519.88723765
Register Proxy195299802024-03-28 3:37:1158 days ago1711597031IN
0x422b1179...2744dFaC8
0 ETH0.0040175725.58673963
Register Proxy194479652024-03-16 14:11:2369 days ago1710598283IN
0x422b1179...2744dFaC8
0 ETH0.0067769943.16064141
Register Proxy194293712024-03-13 23:22:3572 days ago1710372155IN
0x422b1179...2744dFaC8
0 ETH0.008126251.75331271
Register Proxy194290302024-03-13 22:13:3572 days ago1710368015IN
0x422b1179...2744dFaC8
0 ETH0.0107250768.30472047
Register Proxy194269292024-03-13 15:05:2372 days ago1710342323IN
0x422b1179...2744dFaC8
0 ETH0.0112012371.33726652
Register Proxy194240012024-03-13 5:15:4773 days ago1710306947IN
0x422b1179...2744dFaC8
0 ETH0.0088509656.36912805
Register Proxy194233342024-03-13 3:00:1173 days ago1710298811IN
0x422b1179...2744dFaC8
0 ETH0.0059734138.04283779
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
199312252024-05-23 7:55:112 days ago1716450911
0x422b1179...2744dFaC8
 Contract Creation0 ETH
199268402024-05-22 17:13:592 days ago1716398039
0x422b1179...2744dFaC8
 Contract Creation0 ETH
199251872024-05-22 11:41:233 days ago1716378083
0x422b1179...2744dFaC8
 Contract Creation0 ETH
198905422024-05-17 15:19:477 days ago1715959187
0x422b1179...2744dFaC8
 Contract Creation0 ETH
198004432024-05-05 0:52:5920 days ago1714870379
0x422b1179...2744dFaC8
 Contract Creation0 ETH
197671172024-04-30 9:04:5925 days ago1714467899
0x422b1179...2744dFaC8
 Contract Creation0 ETH
197670382024-04-30 8:49:1125 days ago1714466951
0x422b1179...2744dFaC8
 Contract Creation0 ETH
197382712024-04-26 8:13:1129 days ago1714119191
0x422b1179...2744dFaC8
 Contract Creation0 ETH
197104432024-04-22 10:48:5933 days ago1713782939
0x422b1179...2744dFaC8
 Contract Creation0 ETH
196679842024-04-16 12:16:4738 days ago1713269807
0x422b1179...2744dFaC8
 Contract Creation0 ETH
196617382024-04-15 15:15:2339 days ago1713194123
0x422b1179...2744dFaC8
 Contract Creation0 ETH
196613782024-04-15 14:02:4739 days ago1713189767
0x422b1179...2744dFaC8
 Contract Creation0 ETH
196552502024-04-14 17:25:4740 days ago1713115547
0x422b1179...2744dFaC8
 Contract Creation0 ETH
196551182024-04-14 16:59:1140 days ago1713113951
0x422b1179...2744dFaC8
 Contract Creation0 ETH
195703572024-04-02 20:02:5952 days ago1712088179
0x422b1179...2744dFaC8
 Contract Creation0 ETH
195637682024-04-01 21:51:1153 days ago1712008271
0x422b1179...2744dFaC8
 Contract Creation0 ETH
195422302024-03-29 21:08:5956 days ago1711746539
0x422b1179...2744dFaC8
 Contract Creation0 ETH
195378862024-03-29 6:30:1157 days ago1711693811
0x422b1179...2744dFaC8
 Contract Creation0 ETH
195299802024-03-28 3:37:1158 days ago1711597031
0x422b1179...2744dFaC8
 Contract Creation0 ETH
194479652024-03-16 14:11:2369 days ago1710598283
0x422b1179...2744dFaC8
 Contract Creation0 ETH
194293712024-03-13 23:22:3572 days ago1710372155
0x422b1179...2744dFaC8
 Contract Creation0 ETH
194290302024-03-13 22:13:3572 days ago1710368015
0x422b1179...2744dFaC8
 Contract Creation0 ETH
194269292024-03-13 15:05:2372 days ago1710342323
0x422b1179...2744dFaC8
 Contract Creation0 ETH
194240012024-03-13 5:15:4773 days ago1710306947
0x422b1179...2744dFaC8
 Contract Creation0 ETH
194233342024-03-13 3:00:1173 days ago1710298811
0x422b1179...2744dFaC8
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuthorizationManager

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 888888 runs

Other Settings:
default evmVersion
File 1 of 12 : AuthorizationManager.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.9;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol";

import {IAuthorizationManager, IAuthenticatedProxy} from "../interfaces/IAuthorizationManager.sol";
import {AuthenticatedProxy} from "./AuthenticatedProxy.sol";

contract AuthorizationManager is Ownable, IAuthorizationManager {
    using Clones for address;

    mapping(address => address) public override proxies;
    address public immutable override authorizedAddress;
    address public immutable WETH;
    bool public override revoked;
    address public immutable proxyImplemention;

    event Revoked();

    constructor(address _WETH, address _authorizedAddress) {
        WETH = _WETH;
        authorizedAddress = _authorizedAddress;
        proxyImplemention = address(new AuthenticatedProxy());
    }

    function revoke() external override onlyOwner {
        revoked = true;
        emit Revoked();
    }

    function registerProxy() external override returns (address) {
        return _registerProxyFor(msg.sender);
    }

    function _registerProxyFor(address user) internal returns (address) {
        require(address(proxies[user]) == address(0), "Authorization: user already has a proxy");
        address proxy = proxyImplemention.clone();
        IAuthenticatedProxy(proxy).initialize(user, address(this), WETH);
        proxies[user] = proxy;
        return proxy;
    }
}

File 3 of 12 : 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 4 of 12 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

File 5 of 12 : IAuthorizationManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

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

interface IAuthorizationManager {
    function revoked() external returns (bool);

    function authorizedAddress() external returns (address);

    function proxies(address owner) external returns (address);

    function revoke() external;

    function registerProxy() external returns (address);
}

File 6 of 12 : AuthenticatedProxy.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.9;

import {IAuthenticatedProxy} from "../interfaces/IAuthenticatedProxy.sol";
import {IAuthorizationManager} from "../interfaces/IAuthorizationManager.sol";
import {IWETH} from "../interfaces/IWETH.sol";
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";

contract AuthenticatedProxy is IAuthenticatedProxy, Initializable {
    using SafeERC20 for IERC20;
    address public owner;
    IAuthorizationManager public authorizationManager;
    address public WETH;
    bool public revoked;

    event Revoked(bool revoked);

    modifier onlyOwnerOrAuthed() {
        require(
            msg.sender == owner ||
                (!revoked && !authorizationManager.revoked() && msg.sender == authorizationManager.authorizedAddress()),
            "Proxy: permission denied"
        );
        _;
    }

    modifier onlyAuthed() {
        require(
            !revoked && !authorizationManager.revoked() && msg.sender == authorizationManager.authorizedAddress(),
            "Proxy: permission denied"
        );
        _;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Proxy: permission denied");
        _;
    }

    function initialize(
        address _owner,
        address _authorizationManager,
        address _WETH
    ) external initializer {
        owner = _owner;
        authorizationManager = IAuthorizationManager(_authorizationManager);
        WETH = _WETH;
    }

    // only owner
    function setRevoke(bool revoke) external override onlyOwner {
        revoked = revoke;
        emit Revoked(revoke);
    }

    // only authed
    function safeTransfer(
        address token,
        address to,
        uint256 amount
    ) external override onlyAuthed {
        IERC20(token).safeTransferFrom(owner, to, amount);
    }

    function delegatecall(address dest, bytes memory data)
        external
        override
        onlyAuthed
        returns (bool success, bytes memory returndata)
    {
        (success, returndata) = dest.delegatecall(data);
    }

    // only owner or authed
    function withdrawETH() external override onlyOwnerOrAuthed {
        uint256 amount = IWETH(WETH).balanceOf(address(this));
        IWETH(WETH).withdraw(amount);
        Address.sendValue(payable(owner), amount);
    }

    function withdrawToken(address token) external override onlyOwnerOrAuthed {
        uint256 amount = IERC20(token).balanceOf(address(this));
        IERC20(token).safeTransfer(owner, amount);
    }

    receive() external payable {
        require(msg.sender == address(WETH), "Receive not allowed");
    }
}

File 7 of 12 : 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;
    }
}

File 8 of 12 : IAuthenticatedProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IAuthenticatedProxy {
    function initialize(
        address _owner,
        address _authorizationManager,
        address _WETH
    ) external;

    function setRevoke(bool revoke) external;

    function safeTransfer(
        address token,
        address to,
        uint256 amount
    ) external;

    function withdrawETH() external;

    function withdrawToken(address token) external;

    function delegatecall(address dest, bytes memory data) external returns (bool, bytes memory);
}

File 9 of 12 : IWETH.sol
// SPDX-License-Identifier: GNU
pragma solidity 0.8.9;

interface IWETH {
    function balanceOf(address) external view returns (uint256);

    function deposit() external payable;

    function transfer(address to, uint256 value) external returns (bool);

    function withdraw(uint256) external;
}

File 10 of 12 : 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 11 of 12 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/Address.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !Address.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 12 of 12 : 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 13 of 12 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"address","name":"_authorizedAddress","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":[],"name":"Revoked","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"authorizedAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyImplemention","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registerProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e060405234801561001057600080fd5b506040516124fa3803806124fa83398101604081905261002f91610101565b61003833610088565b6001600160a01b0380831660a0528116608052604051610057906100d8565b604051809103906000f080158015610073573d6000803e3d6000fd5b506001600160a01b031660c052506101349050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611b14806109e683390190565b80516001600160a01b03811681146100fc57600080fd5b919050565b6000806040838503121561011457600080fd5b61011d836100e5565b915061012b602084016100e5565b90509250929050565b60805160a05160c051610876610170600039600081816101de01526105dc01526000818161015e01526106610152600060c801526108766000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063b6549f7511610076578063ddd81f821161005b578063ddd81f82146101be578063f2fde38b146101c6578063fb1ff618146101d957600080fd5b8063b6549f7514610180578063c45527911461018857600080fd5b8063715018a6116100a7578063715018a6146101315780638da5cb5b1461013b578063ad5c46481461015957600080fd5b80635539d400146100c357806363d256ce14610114575b600080fd5b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6002546101219060ff1681565b604051901515815260200161010b565b610139610200565b005b60005473ffffffffffffffffffffffffffffffffffffffff166100ea565b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b610139610292565b6100ea610196366004610803565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6100ea610369565b6101396101d4366004610803565b610379565b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff163314610286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61029060006104a9565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161027d565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee690600090a1565b60006103743361051e565b905090565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161027d565b73ffffffffffffffffffffffffffffffffffffffff811661049d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161027d565b6104a6816104a9565b50565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff818116600090815260016020526040812054909116156105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f417574686f72697a6174696f6e3a207573657220616c7265616479206861732060448201527f612070726f787900000000000000000000000000000000000000000000000000606482015260840161027d565b60006106167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610721565b6040517fc0c53b8b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000811660448301529192509082169063c0c53b8b90606401600060405180830381600087803b1580156106b157600080fd5b505af11580156106c5573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff928316600090815260016020526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938216939093179092555090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff81166107fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015260640161027d565b919050565b60006020828403121561081557600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461083957600080fd5b939250505056fea26469706673582212204634154249cf658b5758ce74dd3b538b7b30d5aee9db9e6aca0836051a9e0c4964736f6c63430008090033608060405234801561001057600080fd5b50611af4806100206000396000f3fe6080604052600436106100b55760003560e01c80638da5cb5b11610069578063c0c53b8b1161004e578063c0c53b8b146102ae578063d1660f99146102ce578063e086e5ec146102ee57600080fd5b80638da5cb5b1461024e578063ad5c46481461028157600080fd5b80636e0aacf71161009a5780636e0aacf7146101ae57806389476069146101dc5780638cfa228c146101fc57600080fd5b80634c93505f1461014757806363d256ce1461016757600080fd5b366101425760025473ffffffffffffffffffffffffffffffffffffffff163314610140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f52656365697665206e6f7420616c6c6f7765640000000000000000000000000060448201526064015b60405180910390fd5b005b600080fd5b34801561015357600080fd5b506101406101623660046117b2565b610303565b34801561017357600080fd5b506002546101999074010000000000000000000000000000000000000000900460ff1681565b60405190151581526020015b60405180910390f35b3480156101ba57600080fd5b506101ce6101c9366004611820565b61040e565b6040516101a5929190611978565b3480156101e857600080fd5b506101406101f7366004611993565b61068d565b34801561020857600080fd5b506001546102299073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a5565b34801561025a57600080fd5b506000546102299062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561028d57600080fd5b506002546102299073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102ba57600080fd5b506101406102c93660046119b0565b610990565b3480156102da57600080fd5b506101406102e93660046119fb565b610ac6565b3480156102fa57600080fd5b50610140610d01565b60005462010000900473ffffffffffffffffffffffffffffffffffffffff16331461038a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f78793a207065726d697373696f6e2064656e69656400000000000000006044820152606401610137565b6002805482151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517f2165014523a6f4135deffed62d70149aad59b64de5aac51e3abbcbe2a83e2f7e9061040390831515815260200190565b60405180910390a150565b60025460009060609074010000000000000000000000000000000000000000900460ff161580156104de5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166363d256ce6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156104a457600080fd5b505af11580156104b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dc9190611a3c565b155b80156105b65750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635539d4006040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561054f57600080fd5b505af1158015610563573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105879190611a59565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61061c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f78793a207065726d697373696f6e2064656e69656400000000000000006044820152606401610137565b8373ffffffffffffffffffffffffffffffffffffffff16836040516106419190611a76565b600060405180830381855af49150503d806000811461067c576040519150601f19603f3d011682016040523d82523d6000602084013e610681565b606091505b50909590945092505050565b60005462010000900473ffffffffffffffffffffffffffffffffffffffff16331480610856575060025474010000000000000000000000000000000000000000900460ff1615801561077e5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166363d256ce6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561074457600080fd5b505af1158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c9190611a3c565b155b80156108565750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635539d4006040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156107ef57600080fd5b505af1158015610803573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108279190611a59565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6108bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f78793a207065726d697373696f6e2064656e69656400000000000000006044820152606401610137565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b15801561092457600080fd5b505afa158015610938573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095c9190611a92565b60005490915061098c9073ffffffffffffffffffffffffffffffffffffffff848116916201000090041683611084565b5050565b600061099c6001611158565b905080156109d157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6000805473ffffffffffffffffffffffffffffffffffffffff80871662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff90921691909117909155600180548583167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560028054928516929091169190911790558015610ac057600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b60025474010000000000000000000000000000000000000000900460ff16158015610b905750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166363d256ce6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610b5657600080fd5b505af1158015610b6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8e9190611a3c565b155b8015610c685750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635539d4006040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610c0157600080fd5b505af1158015610c15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c399190611a59565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f78793a207065726d697373696f6e2064656e69656400000000000000006044820152606401610137565b600054610cfc9073ffffffffffffffffffffffffffffffffffffffff858116916201000090041684846112de565b505050565b60005462010000900473ffffffffffffffffffffffffffffffffffffffff16331480610eca575060025474010000000000000000000000000000000000000000900460ff16158015610df25750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166363d256ce6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610db857600080fd5b505af1158015610dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df09190611a3c565b155b8015610eca5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635539d4006040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e6357600080fd5b505af1158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b9190611a59565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f78793a207065726d697373696f6e2064656e69656400000000000000006044820152606401610137565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015610f9a57600080fd5b505afa158015610fae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd29190611a92565b6002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905291925073ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b15801561103f57600080fd5b505af1158015611053573d6000803e3d6000fd5b5050600054611081925062010000900473ffffffffffffffffffffffffffffffffffffffff1690508261133c565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610cfc9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611496565b60008054610100900460ff161561120f578160ff16600114801561117b5750303b155b611207576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610137565b506000919050565b60005460ff8084169116106112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610137565b50600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055600190565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610ac09085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016110d6565b804710156113a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610137565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611400576040519150601f19603f3d011682016040523d82523d6000602084013e611405565b606091505b5050905080610cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610137565b60006114f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115a29092919063ffffffff16565b805190915015610cfc57808060200190518101906115169190611a3c565b610cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610137565b60606115b184846000856115bb565b90505b9392505050565b60608247101561164d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610137565b73ffffffffffffffffffffffffffffffffffffffff85163b6116cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610137565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116f49190611a76565b60006040518083038185875af1925050503d8060008114611731576040519150601f19603f3d011682016040523d82523d6000602084013e611736565b606091505b5091509150611746828286611751565b979650505050505050565b606083156117605750816115b4565b8251156117705782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101379190611aab565b801515811461108157600080fd5b6000602082840312156117c457600080fd5b81356115b4816117a4565b73ffffffffffffffffffffffffffffffffffffffff8116811461108157600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561183357600080fd5b823561183e816117cf565b9150602083013567ffffffffffffffff8082111561185b57600080fd5b818501915085601f83011261186f57600080fd5b813581811115611881576118816117f1565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156118c7576118c76117f1565b816040528281528860208487010111156118e057600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b8381101561191d578181015183820152602001611905565b83811115610ac05750506000910152565b60008151808452611946816020860160208601611902565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b82151581526040602082015260006115b1604083018461192e565b6000602082840312156119a557600080fd5b81356115b4816117cf565b6000806000606084860312156119c557600080fd5b83356119d0816117cf565b925060208401356119e0816117cf565b915060408401356119f0816117cf565b809150509250925092565b600080600060608486031215611a1057600080fd5b8335611a1b816117cf565b92506020840135611a2b816117cf565b929592945050506040919091013590565b600060208284031215611a4e57600080fd5b81516115b4816117a4565b600060208284031215611a6b57600080fd5b81516115b4816117cf565b60008251611a88818460208701611902565b9190910192915050565b600060208284031215611aa457600080fd5b5051919050565b6020815260006115b4602083018461192e56fea2646970667358221220da1b88f8bc95d04a78c5b4116f3c6072f46e98afdad921dd0050fa7c5d509d4864736f6c63430008090033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007e832ec8ad6f66e6c9ece63acd94516dd7fc537a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063b6549f7511610076578063ddd81f821161005b578063ddd81f82146101be578063f2fde38b146101c6578063fb1ff618146101d957600080fd5b8063b6549f7514610180578063c45527911461018857600080fd5b8063715018a6116100a7578063715018a6146101315780638da5cb5b1461013b578063ad5c46481461015957600080fd5b80635539d400146100c357806363d256ce14610114575b600080fd5b6100ea7f0000000000000000000000007e832ec8ad6f66e6c9ece63acd94516dd7fc537a81565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6002546101219060ff1681565b604051901515815260200161010b565b610139610200565b005b60005473ffffffffffffffffffffffffffffffffffffffff166100ea565b6100ea7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b610139610292565b6100ea610196366004610803565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6100ea610369565b6101396101d4366004610803565b610379565b6100ea7f0000000000000000000000008747e34d0b4f2e04000b1951990a9c9e3c2eba6381565b60005473ffffffffffffffffffffffffffffffffffffffff163314610286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61029060006104a9565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161027d565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee690600090a1565b60006103743361051e565b905090565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161027d565b73ffffffffffffffffffffffffffffffffffffffff811661049d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161027d565b6104a6816104a9565b50565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff818116600090815260016020526040812054909116156105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f417574686f72697a6174696f6e3a207573657220616c7265616479206861732060448201527f612070726f787900000000000000000000000000000000000000000000000000606482015260840161027d565b60006106167f0000000000000000000000008747e34d0b4f2e04000b1951990a9c9e3c2eba6373ffffffffffffffffffffffffffffffffffffffff16610721565b6040517fc0c53b8b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2811660448301529192509082169063c0c53b8b90606401600060405180830381600087803b1580156106b157600080fd5b505af11580156106c5573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff928316600090815260016020526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938216939093179092555090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff81166107fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015260640161027d565b919050565b60006020828403121561081557600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461083957600080fd5b939250505056fea26469706673582212204634154249cf658b5758ce74dd3b538b7b30d5aee9db9e6aca0836051a9e0c4964736f6c63430008090033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007e832ec8ad6f66e6c9ece63acd94516dd7fc537a

-----Decoded View---------------
Arg [0] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _authorizedAddress (address): 0x7e832eC8ad6F66E6C9ECE63acD94516Dd7fC537A

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 0000000000000000000000007e832ec8ad6f66e6c9ece63acd94516dd7fc537a


Block Transaction Difficulty 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
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.