AVAX Price: $22.76 (+11.66%)
Gas: 1.7 nAVAX
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Collect Rubic Fe...466783092024-06-13 19:28:32313 days ago1718306912IN
0x454C1447...cD31F7002
0 AVAX0.0018150927.35225
Collect Rubic Fe...466783022024-06-13 19:28:18313 days ago1718306898IN
0x454C1447...cD31F7002
0 AVAX0.0017585426.5
Collect Rubic Fe...466782942024-06-13 19:28:02313 days ago1718306882IN
0x454C1447...cD31F7002
0 AVAX0.0017585426.5
Collect Rubic Fe...466782722024-06-13 19:27:18313 days ago1718306838IN
0x454C1447...cD31F7002
0 AVAX0.0019886326.5
Collect Rubic Fe...466782662024-06-13 19:27:06313 days ago1718306826IN
0x454C1447...cD31F7002
0 AVAX0.0017585426.5
Transfer Admin241829022022-12-27 18:35:09847 days ago1672166109IN
0x454C1447...cD31F7002
0 AVAX0.0014011426
Pause Execution241828952022-12-27 18:34:53847 days ago1672166093IN
0x454C1447...cD31F7002
0 AVAX0.0008337426
Collect Rubic Fe...218694882022-11-02 18:44:44902 days ago1667414684IN
0x454C1447...cD31F7002
0 AVAX0.0017253626
Collect Rubic Fe...218694832022-11-02 18:44:34902 days ago1667414674IN
0x454C1447...cD31F7002
0 AVAX0.0017253626
Collect Rubic Fe...218694772022-11-02 18:44:18902 days ago1667414658IN
0x454C1447...cD31F7002
0 AVAX0.0017016226
Collect Rubic Fe...218694692022-11-02 18:44:05902 days ago1667414645IN
0x454C1447...cD31F7002
0 AVAX0.0020651526
Collect Rubic Fe...218694612022-11-02 18:43:48902 days ago1667414628IN
0x454C1447...cD31F7002
0 AVAX0.0009941326
Symbiosis Call191063842022-08-25 15:25:51971 days ago1661441151IN
0x454C1447...cD31F7002
0 AVAX0.0204249231.12971218
Symbiosis Call190680492022-08-24 17:42:51972 days ago1661362971IN
0x454C1447...cD31F7002
0 AVAX0.013580627.5
Symbiosis Call W...188385262022-08-19 8:59:58978 days ago1660899598IN
0x454C1447...cD31F7002
5.34 AVAX0.0176752427.5
Symbiosis Call W...188099302022-08-18 16:45:48978 days ago1660841148IN
0x454C1447...cD31F7002
17 AVAX0.0345191827.5
Symbiosis Call W...183320182022-08-07 12:31:55989 days ago1659875515IN
0x454C1447...cD31F7002
2 AVAX0.0172227.5
Symbiosis Call180900392022-08-01 20:17:09995 days ago1659385029IN
0x454C1447...cD31F7002
0 AVAX0.0252886127.5
Symbiosis Call W...180355212022-07-31 12:56:45996 days ago1659272205IN
0x454C1447...cD31F7002
3 AVAX0.0169562227.5
Symbiosis Call178264402022-07-26 12:19:131001 days ago1658837953IN
0x454C1447...cD31F7002
0 AVAX0.0183105225
Symbiosis Call178202062022-07-26 8:42:161002 days ago1658824936IN
0x454C1447...cD31F7002
0 AVAX0.0173816525
Symbiosis Call178199532022-07-26 8:33:261002 days ago1658824406IN
0x454C1447...cD31F7002
0 AVAX0.0192681525
Symbiosis Call W...178147342022-07-26 5:30:281002 days ago1658813428IN
0x454C1447...cD31F7002
6.5 AVAX0.0159179225
Symbiosis Call178111472022-07-26 3:25:061002 days ago1658805906IN
0x454C1447...cD31F7002
0 AVAX0.016187525
Symbiosis Call178100832022-07-26 2:48:221002 days ago1658803702IN
0x454C1447...cD31F7002
0 AVAX0.0192111225
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
218694612022-11-02 18:43:48902 days ago1667414628
0x454C1447...cD31F7002
10.68475709 AVAX
188385262022-08-19 8:59:58978 days ago1660899598
0x454C1447...cD31F7002
5.32398 AVAX
188099302022-08-18 16:45:48978 days ago1660841148
0x454C1447...cD31F7002
16.949 AVAX
183320182022-08-07 12:31:55989 days ago1659875515
0x454C1447...cD31F7002
1.994 AVAX
180355212022-07-31 12:56:45996 days ago1659272205
0x454C1447...cD31F7002
2.991 AVAX
178147342022-07-26 5:30:281002 days ago1658813428
0x454C1447...cD31F7002
6.49025 AVAX
178085762022-07-26 1:56:121002 days ago1658800572
0x454C1447...cD31F7002
2.9955 AVAX
178084512022-07-26 1:51:531002 days ago1658800313
0x454C1447...cD31F7002
258.6115 AVAX
178061082022-07-26 0:30:071002 days ago1658795407
0x454C1447...cD31F7002
44.9325 AVAX
178032162022-07-25 22:49:541002 days ago1658789394
0x454C1447...cD31F7002
33.44975 AVAX
178029042022-07-25 22:39:171002 days ago1658788757
0x454C1447...cD31F7002
17.423825 AVAX
178018822022-07-25 22:04:051002 days ago1658786645
0x454C1447...cD31F7002
47.01111926 AVAX
177942112022-07-25 17:38:151002 days ago1658770695
0x454C1447...cD31F7002
4.9925 AVAX
177924252022-07-25 16:36:281002 days ago1658766988
0x454C1447...cD31F7002
68.8965 AVAX
177923022022-07-25 16:32:161002 days ago1658766736
0x454C1447...cD31F7002
2.9955 AVAX
177842742022-07-25 11:53:021002 days ago1658749982
0x454C1447...cD31F7002
5.03960569 AVAX
177764612022-07-25 7:20:321003 days ago1658733632
0x454C1447...cD31F7002
14.3784 AVAX
177671242022-07-25 1:59:091003 days ago1658714349
0x454C1447...cD31F7002
1.49775 AVAX
177637532022-07-25 0:02:501003 days ago1658707370
0x454C1447...cD31F7002
4.9925 AVAX
177614392022-07-24 22:42:361003 days ago1658702556
0x454C1447...cD31F7002
4.9925 AVAX
177554582022-07-24 19:15:371003 days ago1658690137
0x454C1447...cD31F7002
12.4229578 AVAX
177493072022-07-24 15:42:201003 days ago1658677340
0x454C1447...cD31F7002
2.07688 AVAX
177455302022-07-24 13:31:001003 days ago1658669460
0x454C1447...cD31F7002
11.982 AVAX
177444562022-07-24 12:54:031003 days ago1658667243
0x454C1447...cD31F7002
17.63838663 AVAX
177425822022-07-24 11:49:431003 days ago1658663383
0x454C1447...cD31F7002
34.9475 AVAX
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RubicSymbiosisProxy

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 13 : RubicSymbiosisProxy.sol
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/security/Pausable.sol';

import './libraries/FullMath.sol';

contract RubicSymbiosisProxy is ReentrancyGuard, AccessControl, Pausable {
    using SafeERC20 for IERC20;

    bytes32 public constant MANAGER_ROLE = keccak256('MANAGER_ROLE');

    address public metaRouter;
    address public gateway;
    uint256 public RubicFee;
    mapping(address => uint256) public availableRubicFee;

    mapping(address => mapping(address => uint256)) public amountOfIntegrator;
    mapping(address => uint256) public integratorFee;
    mapping(address => uint256) public platformShare;

    modifier onlyAdmin() {
        require(isAdmin(msg.sender), 'RubicSymbiosisProxy: Caller is not in admin role');
        _;
    }

    modifier onlyManager() {
        require(isManager(msg.sender) || isAdmin(msg.sender), 'RubicSymbiosisProxy: Caller is not in manager role');
        _;
    }

    modifier onlyEOA() {
        require(msg.sender == tx.origin, 'RubicSymbiosisProxy: only EOA');
        _;
    }

    constructor(
        uint256 _fee,
        address _metaRouter,
        address _gateway
    ) {
        require(_fee <= 1e6);

        RubicFee = _fee;
        metaRouter = _metaRouter;
        gateway = _gateway;

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    function SymbiosisCall(
        IERC20 inputToken,
        uint256 totalInputAmount,
        address integrator,
        bytes memory data
    ) external onlyEOA whenNotPaused {
        inputToken.safeTransferFrom(msg.sender, address(this), totalInputAmount);

        uint256 inputAmount = _calculateFee(integrator, totalInputAmount, address(inputToken));

        uint256 _allowance = inputToken.allowance(address(this), gateway);
        if (_allowance < totalInputAmount) {
            if (_allowance == 0) {
                inputToken.safeApprove(gateway, type(uint256).max);
            } else {
                try inputToken.approve(gateway, type(uint256).max) returns (bool res) {
                    require(res == true, 'RubicSymbiosisProxy: approve failed');
                } catch {
                    inputToken.safeApprove(gateway, 0);
                    inputToken.safeApprove(gateway, type(uint256).max);
                }
            }
        }

        uint256 balanceBefore = inputToken.balanceOf(address(this));

        Address.functionCall(metaRouter, data);

        require(
            (balanceBefore - inputToken.balanceOf(address(this))) == inputAmount,
            'RubicSymbiosisProxy: different amount spent'
        );
    }

    function SymbiosisCallWithNative(address integrator, bytes memory data) external payable onlyEOA whenNotPaused {
        uint256 inputAmount = _calculateFee(integrator, msg.value, address(0));

        Address.functionCallWithValue(metaRouter, data, inputAmount);
    }

    function setRubicFee(uint256 _fee) external onlyManager {
        require(_fee <= 1e6);
        RubicFee = _fee;
    }

    function setMetaRouter(address _metaRouter) external onlyManager {
        require(_metaRouter != address(0));

        metaRouter = _metaRouter;
    }

    function setGateway(address _gateway) external onlyManager {
        require(_gateway != address(0));

        gateway = _gateway;
    }

    function setIntegratorFee(
        address _provider,
        uint256 _fee,
        uint256 _platformShare
    ) external onlyManager {
        require(_fee <= 1000000, 'RubicSymbiosisProxy: fee too high');

        integratorFee[_provider] = _fee;
        platformShare[_provider] = _platformShare;
    }

    function transferAdmin(address _newAdmin) external onlyAdmin {
        _revokeRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(DEFAULT_ADMIN_ROLE, _newAdmin);
    }

    function collectIntegratorFee(address _token) external nonReentrant {
        uint256 amount = amountOfIntegrator[_token][msg.sender];
        require(amount > 0, 'RubicSymbiosisProxy: amount is zero');

        amountOfIntegrator[_token][msg.sender] = 0;

        if (_token == address(0)) {
            Address.sendValue(payable(msg.sender), amount);
        } else {
            IERC20(_token).transfer(msg.sender, amount);
        }
    }

    function collectIntegratorFee(address _token, address _provider) external onlyManager {
        uint256 amount = amountOfIntegrator[_token][_provider];
        require(amount > 0, 'RubicSymbiosisProxy: amount is zero');

        amountOfIntegrator[_token][_provider] = 0;

        if (_token == address(0)) {
            Address.sendValue(payable(_provider), amount);
        } else {
            IERC20(_token).safeTransfer(_provider, amount);
        }
    }

    function collectRubicFee(address _token) external onlyManager {
        uint256 amount = availableRubicFee[_token];
        require(amount > 0, 'RubicSymbiosisProxy: amount is zero');

        availableRubicFee[_token] = 0;

        if (_token == address(0)) {
            Address.sendValue(payable(msg.sender), amount);
        } else {
            IERC20(_token).safeTransfer(msg.sender, amount);
        }
    }

    function pauseExecution() external onlyManager {
        _pause();
    }

    function unpauseExecution() external onlyManager {
        _unpause();
    }

    function isManager(address _who) public view returns (bool) {
        return (hasRole(MANAGER_ROLE, _who));
    }

    function isAdmin(address _who) public view returns (bool) {
        return (hasRole(DEFAULT_ADMIN_ROLE, _who));
    }

    function _calculateFee(
        address integrator,
        uint256 amountWithFee,
        address token
    ) private returns (uint256 amountWithoutFee) {
        if (integrator != address(0)) {
            uint256 integratorPercent = integratorFee[integrator];

            if (integratorPercent > 0) {
                uint256 platformPercent = platformShare[integrator];

                uint256 _integratorAndProtocolFee = FullMath.mulDiv(amountWithFee, integratorPercent, 1e6);

                uint256 _platformFee = FullMath.mulDiv(_integratorAndProtocolFee, platformPercent, 1e6);

                amountOfIntegrator[token][integrator] += _integratorAndProtocolFee - _platformFee;
                availableRubicFee[token] += _platformFee;

                amountWithoutFee = amountWithFee - _integratorAndProtocolFee;
            } else {
                amountWithoutFee = amountWithFee;
            }
        } else {
            amountWithoutFee = FullMath.mulDiv(amountWithFee, 1e6 - RubicFee, 1e6);

            availableRubicFee[token] += amountWithFee - amountWithoutFee;
        }
    }
}

File 2 of 13 : 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 3 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 13 : FullMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.0;

/// @title Contains 512-bit math functions
/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
/// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        // 512-bit multiply [prod1 prod0] = a * b
        // Compute the product mod 2**256 and mod 2**256 - 1
        // then use the Chinese Remainder Theorem to reconstruct
        // the 512 bit result. The result is stored in two 256
        // variables such that product = prod1 * 2**256 + prod0
        uint256 prod0; // Least significant 256 bits of the product
        uint256 prod1; // Most significant 256 bits of the product
        assembly {
            let mm := mulmod(a, b, not(0))
            prod0 := mul(a, b)
            prod1 := sub(sub(mm, prod0), lt(mm, prod0))
        }

        // Handle non-overflow cases, 256 by 256 division
        if (prod1 == 0) {
            require(denominator > 0);
            assembly {
                result := div(prod0, denominator)
            }
            return result;
        }

        // Make sure the result is less than 2**256.
        // Also prevents denominator == 0
        require(denominator > prod1);

        ///////////////////////////////////////////////
        // 512 by 256 division.
        ///////////////////////////////////////////////

        // Make division exact by subtracting the remainder from [prod1 prod0]
        // Compute remainder using mulmod
        uint256 remainder;
        assembly {
            remainder := mulmod(a, b, denominator)
        }
        // Subtract 256 bit number from 512 bit number
        assembly {
            prod1 := sub(prod1, gt(remainder, prod0))
            prod0 := sub(prod0, remainder)
        }

        // Factor powers of two out of denominator
        // Compute largest power of two divisor of denominator.
        // Always >= 1.
        uint256 twos = (type(uint256).max - denominator + 1) & denominator;
        // Divide denominator by power of two
        assembly {
            denominator := div(denominator, twos)
        }

        // Divide [prod1 prod0] by the factors of two
        assembly {
            prod0 := div(prod0, twos)
        }
        // Shift in bits from prod1 into prod0. For this we need
        // to flip `twos` such that it is 2**256 / twos.
        // If twos is zero, then it becomes one
        assembly {
            twos := add(div(sub(0, twos), twos), 1)
        }
        prod0 |= prod1 * twos;

        // Invert denominator mod 2**256
        // Now that denominator is an odd number, it has an inverse
        // modulo 2**256 such that denominator * inv = 1 mod 2**256.
        // Compute the inverse by starting with a seed that is correct
        // correct for four bits. That is, denominator * inv = 1 mod 2**4
        uint256 inv = (3 * denominator) ^ 2;
        // Now use Newton-Raphson iteration to improve the precision.
        // Thanks to Hensel's lifting lemma, this also works in modular
        // arithmetic, doubling the correct bits in each step.
        inv *= 2 - denominator * inv; // inverse mod 2**8
        inv *= 2 - denominator * inv; // inverse mod 2**16
        inv *= 2 - denominator * inv; // inverse mod 2**32
        inv *= 2 - denominator * inv; // inverse mod 2**64
        inv *= 2 - denominator * inv; // inverse mod 2**128
        inv *= 2 - denominator * inv; // inverse mod 2**256

        // Because the division is now exact we can divide by multiplying
        // with the modular inverse of denominator. This will give us the
        // correct result modulo 2**256. Since the precoditions guarantee
        // that the outcome is less than 2**256, this is the final result.
        // We don't need to compute the high bits of the result and prod1
        // is no longer required.
        result = prod0 * inv;
        return result;
    }
}

File 7 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 8 of 13 : 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 9 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 10 of 13 : 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 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_metaRouter","type":"address"},{"internalType":"address","name":"_gateway","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RubicFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"inputToken","type":"address"},{"internalType":"uint256","name":"totalInputAmount","type":"uint256"},{"internalType":"address","name":"integrator","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"SymbiosisCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"integrator","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"SymbiosisCallWithNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"amountOfIntegrator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"availableRubicFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"collectIntegratorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_provider","type":"address"}],"name":"collectIntegratorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"collectRubicFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gateway","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"integratorFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_who","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_who","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metaRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseExecution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"platformShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gateway","type":"address"}],"name":"setGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_provider","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_platformShare","type":"uint256"}],"name":"setIntegratorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_metaRouter","type":"address"}],"name":"setMetaRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setRubicFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseExecution","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620033c4380380620033c483398101604081905262000034916200016a565b60016000556002805460ff19169055620f42408311156200005457600080fd5b600483905560028054610100600160a81b0319166101006001600160a01b038581169190910291909117909155600380546001600160a01b031916918316919091179055620000ac6000620000a63390565b620000b5565b505050620001ab565b620000c18282620000c5565b5050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620000c15760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b80516001600160a01b03811681146200016557600080fd5b919050565b6000806000606084860312156200018057600080fd5b8351925062000192602085016200014d565b9150620001a2604085016200014d565b90509250925092565b61320980620001bb6000396000f3fe6080604052600436106101cd5760003560e01c8063859806cc116100f7578063d547741f11610095578063e469020b11610064578063e469020b146105be578063eadd5c34146105de578063ec87621c146105fe578063f3ae24151461063257600080fd5b8063d547741f1461051f578063dbec15bb1461053f578063df197df714610571578063e39ba4f01461059e57600080fd5b8063a217fddf116100d1578063a217fddf146104a7578063aaa55fb4146104bc578063beea8df8146104e9578063cc888d431461050957600080fd5b8063859806cc1461041f57806390646b4a1461043457806391d148541461045457600080fd5b8063248a9ca31161016f57806336568abe1161013e57806336568abe1461039a5780635c975abb146103ba57806375829def146103d257806379ec8cc7146103f257600080fd5b8063248a9ca31461030957806324d7806c1461033a5780632f2ff15d1461035a578063362a4ee61461037a57600080fd5b8063116191b6116101ab578063116191b61461026f57806313c5e21b146102c1578063162dfb0d146102d45780631f041ec6146102f457600080fd5b806301ffc9a7146101d257806304ff657e1461020757806307598f621461024d575b600080fd5b3480156101de57600080fd5b506101f26101ed366004612cbc565b610652565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061023f610222366004612d20565b600660209081526000928352604080842090915290825290205481565b6040519081526020016101fe565b34801561025957600080fd5b5061026d610268366004612d59565b6106eb565b005b34801561027b57600080fd5b5060035461029c9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101fe565b61026d6102cf366004612e50565b610914565b3480156102e057600080fd5b5061026d6102ef366004612d20565b610a2a565b34801561030057600080fd5b5061026d610bfa565b34801561031557600080fd5b5061023f610324366004612ea0565b6000908152600160208190526040909120015490565b34801561034657600080fd5b506101f2610355366004612d59565b610ca8565b34801561036657600080fd5b5061026d610375366004612eb9565b610cf5565b34801561038657600080fd5b5061026d610395366004612ede565b610d1c565b3480156103a657600080fd5b5061026d6103b5366004612eb9565b610e88565b3480156103c657600080fd5b5060025460ff166101f2565b3480156103de57600080fd5b5061026d6103ed366004612d59565b610f3b565b3480156103fe57600080fd5b5061023f61040d366004612d59565b60086020526000908152604090205481565b34801561042b57600080fd5b5061026d610fe9565b34801561044057600080fd5b5061026d61044f366004612d59565b611095565b34801561046057600080fd5b506101f261046f366004612eb9565b600091825260016020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156104b357600080fd5b5061023f600081565b3480156104c857600080fd5b5061023f6104d7366004612d59565b60076020526000908152604090205481565b3480156104f557600080fd5b5061026d610504366004612d59565b6111a0565b34801561051557600080fd5b5061023f60045481565b34801561052b57600080fd5b5061026d61053a366004612eb9565b61134c565b34801561054b57600080fd5b5060025461029c90610100900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561057d57600080fd5b5061023f61058c366004612d59565b60056020526000908152604090205481565b3480156105aa57600080fd5b5061026d6105b9366004612f13565b611373565b3480156105ca57600080fd5b5061026d6105d9366004612ea0565b611975565b3480156105ea57600080fd5b5061026d6105f9366004612d59565b611a2e565b34801561060a57600080fd5b5061023f7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b34801561063e57600080fd5b506101f261064d366004612d59565b611b3e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106e557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6002600054141561075d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600090815573ffffffffffffffffffffffffffffffffffffffff821681526006602090815260408083203384529091529020548061081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20616d6f756e74206973207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff821660008181526006602090815260408083203384529091528120556108635761085e3382611b8b565b61090b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b1580156108d157600080fd5b505af11580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109099190612f7f565b505b50506001600055565b33321461097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f527562696353796d62696f73697350726f78793a206f6e6c7920454f410000006044820152606401610754565b60025460ff16156109ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610754565b60006109f883346000611ce5565b600254909150610a2490610100900473ffffffffffffffffffffffffffffffffffffffff168383611e90565b50505050565b610a3333611b3e565b80610a425750610a4233610ca8565b610ace576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526006602090815260408083209385168352929052205480610b8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20616d6f756e74206973207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152600660209081526040808320948716835293905291822091909155610bd957610bd48282611b8b565b505050565b610bd473ffffffffffffffffffffffffffffffffffffffff84168383611ebe565b610c0333611b3e565b80610c125750610c1233610ca8565b610c9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b610ca6611f92565b565b73ffffffffffffffffffffffffffffffffffffffff811660009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205460ff166106e5565b60008281526001602081905260409091200154610d12813361207c565b610bd4838361214e565b610d2533611b3e565b80610d345750610d3433610ca8565b610dc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b620f4240821115610e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f527562696353796d62696f73697350726f78793a2066656520746f6f2068696760448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260076020908152604080832093909355600890522055565b73ffffffffffffffffffffffffffffffffffffffff81163314610f2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610754565b610f37828261220d565b5050565b610f4433610ca8565b610fd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e2061646d696e20726f6c65000000000000000000000000000000006064820152608401610754565b610fdb60003361220d565b610fe660008261214e565b50565b610ff233611b3e565b80611001575061100133610ca8565b61108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b610ca66122c8565b61109e33611b3e565b806110ad57506110ad33610ca8565b611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff811661115957600080fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6111a933611b3e565b806111b857506111b833610ca8565b611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040902054806112f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20616d6f756e74206973207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff821660008181526005602052604081205561132b57610f373382611b8b565b610f3773ffffffffffffffffffffffffffffffffffffffff83163383611ebe565b60008281526001602081905260409091200154611369813361207c565b610bd4838361220d565b3332146113dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f527562696353796d62696f73697350726f78793a206f6e6c7920454f410000006044820152606401610754565b60025460ff1615611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610754565b61146b73ffffffffffffffffffffffffffffffffffffffff8516333086612383565b6000611478838587611ce5565b6003546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91821660248201529192506000919087169063dd62ed3e9060440160206040518083038186803b1580156114ef57600080fd5b505afa158015611503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115279190612fa1565b90508481101561176a57806115825760035461157d9073ffffffffffffffffffffffffffffffffffffffff88811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6123e1565b61176a565b6003546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60248201529087169063095ea7b390604401602060405180830381600087803b15801561161557600080fd5b505af1925050508015611663575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261166091810190612f7f565b60015b6116d65760035461168f9073ffffffffffffffffffffffffffffffffffffffff888116911660006123e1565b60035461157d9073ffffffffffffffffffffffffffffffffffffffff88811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6123e1565b600181151514611768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20617070726f76652066616960448201527f6c656400000000000000000000000000000000000000000000000000000000006064820152608401610754565b505b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8816906370a082319060240160206040518083038186803b1580156117d257600080fd5b505afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a9190612fa1565b60025490915061183590610100900473ffffffffffffffffffffffffffffffffffffffff1685612572565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152839073ffffffffffffffffffffffffffffffffffffffff8916906370a082319060240160206040518083038186803b15801561189d57600080fd5b505afa1580156118b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d59190612fa1565b6118df9083612fe9565b1461196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f527562696353796d62696f73697350726f78793a20646966666572656e74206160448201527f6d6f756e74207370656e740000000000000000000000000000000000000000006064820152608401610754565b50505050505050565b61197e33611b3e565b8061198d575061198d33610ca8565b611a19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b620f4240811115611a2957600080fd5b600455565b611a3733611b3e565b80611a465750611a4633610ca8565b611ad2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff8116611af257600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081527ffdb122eb892c6b3193f8499f050265ce5458caab5f6480270d8972921f24f429602052604081205460ff166106e5565b80471015611bf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610754565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611c4f576040519150601f19603f3d011682016040523d82523d6000602084013e611c54565b606091505b5050905080610bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610754565b600073ffffffffffffffffffffffffffffffffffffffff841615611e245773ffffffffffffffffffffffffffffffffffffffff84166000908152600760205260409020548015611e1a5773ffffffffffffffffffffffffffffffffffffffff851660009081526008602052604081205490611d648684620f42406125b4565b90506000611d768284620f42406125b4565b9050611d828183612fe9565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600660209081526040808320938d1683529290529081208054909190611dc6908490613000565b909155505073ffffffffffffffffffffffffffffffffffffffff861660009081526005602052604081208054839290611e00908490613000565b90915550611e1090508288612fe9565b9450505050611e1e565b8391505b50611e89565b611e4283600454620f4240611e399190612fe9565b620f42406125b4565b9050611e4e8184612fe9565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604081208054909190611e83908490613000565b90915550505b9392505050565b6060611eb68484846040518060600160405280602981526020016131d460299139612775565b949350505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610bd49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261290b565b60025460ff1615611fff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610754565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120523390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610f37576120d48173ffffffffffffffffffffffffffffffffffffffff166014612a17565b6120df836020612a17565b6040516020016120f0929190613044565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610754916004016130c5565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610f3757600082815260016020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610f3757600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60025460ff16612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610754565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612052565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a249085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611f10565b80158061249057506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561245657600080fd5b505afa15801561246a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248e9190612fa1565b155b61251c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610754565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610bd49084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611f10565b6060611e8983836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250612c5a565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff858709858702925082811083820303915050806000141561260c576000841161260157600080fd5b508290049050611e89565b80841161261857600080fd5b600084868809808403938111909203919050600085612657817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612fe9565b612662906001613000565b169586900495938490049360008190030460010190506126828184613116565b909317926000612693876003613116565b60021890506126a28188613116565b6126ad906002612fe9565b6126b79082613116565b90506126c38188613116565b6126ce906002612fe9565b6126d89082613116565b90506126e48188613116565b6126ef906002612fe9565b6126f99082613116565b90506127058188613116565b612710906002612fe9565b61271a9082613116565b90506127268188613116565b612731906002612fe9565b61273b9082613116565b90506127478188613116565b612752906002612fe9565b61275c9082613116565b90506127688186613116565b9998505050505050505050565b606082471015612807576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff85163b612885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610754565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516128ae9190613153565b60006040518083038185875af1925050503d80600081146128eb576040519150601f19603f3d011682016040523d82523d6000602084013e6128f0565b606091505b5091509150612900828286612c69565b979650505050505050565b600061296d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612c5a9092919063ffffffff16565b805190915015610bd4578080602001905181019061298b9190612f7f565b610bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610754565b60606000612a26836002613116565b612a31906002613000565b67ffffffffffffffff811115612a4957612a49612d76565b6040519080825280601f01601f191660200182016040528015612a73576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612aaa57612aaa61316f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612b0d57612b0d61316f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612b49846002613116565b612b54906001613000565b90505b6001811115612bf1577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b9557612b9561316f565b1a60f81b828281518110612bab57612bab61316f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612bea8161319e565b9050612b57565b508315611e89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610754565b6060611eb68484600085612775565b60608315612c78575081611e89565b825115612c885782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075491906130c5565b600060208284031215612cce57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611e8957600080fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610fe657600080fd5b60008060408385031215612d3357600080fd5b8235612d3e81612cfe565b91506020830135612d4e81612cfe565b809150509250929050565b600060208284031215612d6b57600080fd5b8135611e8981612cfe565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112612db657600080fd5b813567ffffffffffffffff80821115612dd157612dd1612d76565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612e1757612e17612d76565b81604052838152866020858801011115612e3057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215612e6357600080fd5b8235612e6e81612cfe565b9150602083013567ffffffffffffffff811115612e8a57600080fd5b612e9685828601612da5565b9150509250929050565b600060208284031215612eb257600080fd5b5035919050565b60008060408385031215612ecc57600080fd5b823591506020830135612d4e81612cfe565b600080600060608486031215612ef357600080fd5b8335612efe81612cfe565b95602085013595506040909401359392505050565b60008060008060808587031215612f2957600080fd5b8435612f3481612cfe565b9350602085013592506040850135612f4b81612cfe565b9150606085013567ffffffffffffffff811115612f6757600080fd5b612f7387828801612da5565b91505092959194509250565b600060208284031215612f9157600080fd5b81518015158114611e8957600080fd5b600060208284031215612fb357600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015612ffb57612ffb612fba565b500390565b6000821982111561301357613013612fba565b500190565b60005b8381101561303357818101518382015260200161301b565b83811115610a245750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161307c816017850160208801613018565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516130b9816028840160208801613018565b01602801949350505050565b60208152600082518060208401526130e4816040850160208701613018565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561314e5761314e612fba565b500290565b60008251613165818460208701613018565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000816131ad576131ad612fba565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a164736f6c6343000809000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e5e68630b5b759e6c701b70892aa8324b71e6e2000000000000000000000000025821a21c2e3455967229cadca9b6fdd4a80a40b

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c8063859806cc116100f7578063d547741f11610095578063e469020b11610064578063e469020b146105be578063eadd5c34146105de578063ec87621c146105fe578063f3ae24151461063257600080fd5b8063d547741f1461051f578063dbec15bb1461053f578063df197df714610571578063e39ba4f01461059e57600080fd5b8063a217fddf116100d1578063a217fddf146104a7578063aaa55fb4146104bc578063beea8df8146104e9578063cc888d431461050957600080fd5b8063859806cc1461041f57806390646b4a1461043457806391d148541461045457600080fd5b8063248a9ca31161016f57806336568abe1161013e57806336568abe1461039a5780635c975abb146103ba57806375829def146103d257806379ec8cc7146103f257600080fd5b8063248a9ca31461030957806324d7806c1461033a5780632f2ff15d1461035a578063362a4ee61461037a57600080fd5b8063116191b6116101ab578063116191b61461026f57806313c5e21b146102c1578063162dfb0d146102d45780631f041ec6146102f457600080fd5b806301ffc9a7146101d257806304ff657e1461020757806307598f621461024d575b600080fd5b3480156101de57600080fd5b506101f26101ed366004612cbc565b610652565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061023f610222366004612d20565b600660209081526000928352604080842090915290825290205481565b6040519081526020016101fe565b34801561025957600080fd5b5061026d610268366004612d59565b6106eb565b005b34801561027b57600080fd5b5060035461029c9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101fe565b61026d6102cf366004612e50565b610914565b3480156102e057600080fd5b5061026d6102ef366004612d20565b610a2a565b34801561030057600080fd5b5061026d610bfa565b34801561031557600080fd5b5061023f610324366004612ea0565b6000908152600160208190526040909120015490565b34801561034657600080fd5b506101f2610355366004612d59565b610ca8565b34801561036657600080fd5b5061026d610375366004612eb9565b610cf5565b34801561038657600080fd5b5061026d610395366004612ede565b610d1c565b3480156103a657600080fd5b5061026d6103b5366004612eb9565b610e88565b3480156103c657600080fd5b5060025460ff166101f2565b3480156103de57600080fd5b5061026d6103ed366004612d59565b610f3b565b3480156103fe57600080fd5b5061023f61040d366004612d59565b60086020526000908152604090205481565b34801561042b57600080fd5b5061026d610fe9565b34801561044057600080fd5b5061026d61044f366004612d59565b611095565b34801561046057600080fd5b506101f261046f366004612eb9565b600091825260016020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156104b357600080fd5b5061023f600081565b3480156104c857600080fd5b5061023f6104d7366004612d59565b60076020526000908152604090205481565b3480156104f557600080fd5b5061026d610504366004612d59565b6111a0565b34801561051557600080fd5b5061023f60045481565b34801561052b57600080fd5b5061026d61053a366004612eb9565b61134c565b34801561054b57600080fd5b5060025461029c90610100900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561057d57600080fd5b5061023f61058c366004612d59565b60056020526000908152604090205481565b3480156105aa57600080fd5b5061026d6105b9366004612f13565b611373565b3480156105ca57600080fd5b5061026d6105d9366004612ea0565b611975565b3480156105ea57600080fd5b5061026d6105f9366004612d59565b611a2e565b34801561060a57600080fd5b5061023f7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b34801561063e57600080fd5b506101f261064d366004612d59565b611b3e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106e557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6002600054141561075d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600090815573ffffffffffffffffffffffffffffffffffffffff821681526006602090815260408083203384529091529020548061081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20616d6f756e74206973207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff821660008181526006602090815260408083203384529091528120556108635761085e3382611b8b565b61090b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b1580156108d157600080fd5b505af11580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109099190612f7f565b505b50506001600055565b33321461097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f527562696353796d62696f73697350726f78793a206f6e6c7920454f410000006044820152606401610754565b60025460ff16156109ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610754565b60006109f883346000611ce5565b600254909150610a2490610100900473ffffffffffffffffffffffffffffffffffffffff168383611e90565b50505050565b610a3333611b3e565b80610a425750610a4233610ca8565b610ace576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526006602090815260408083209385168352929052205480610b8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20616d6f756e74206973207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152600660209081526040808320948716835293905291822091909155610bd957610bd48282611b8b565b505050565b610bd473ffffffffffffffffffffffffffffffffffffffff84168383611ebe565b610c0333611b3e565b80610c125750610c1233610ca8565b610c9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b610ca6611f92565b565b73ffffffffffffffffffffffffffffffffffffffff811660009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205460ff166106e5565b60008281526001602081905260409091200154610d12813361207c565b610bd4838361214e565b610d2533611b3e565b80610d345750610d3433610ca8565b610dc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b620f4240821115610e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f527562696353796d62696f73697350726f78793a2066656520746f6f2068696760448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260076020908152604080832093909355600890522055565b73ffffffffffffffffffffffffffffffffffffffff81163314610f2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610754565b610f37828261220d565b5050565b610f4433610ca8565b610fd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e2061646d696e20726f6c65000000000000000000000000000000006064820152608401610754565b610fdb60003361220d565b610fe660008261214e565b50565b610ff233611b3e565b80611001575061100133610ca8565b61108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b610ca66122c8565b61109e33611b3e565b806110ad57506110ad33610ca8565b611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff811661115957600080fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6111a933611b3e565b806111b857506111b833610ca8565b611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040902054806112f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20616d6f756e74206973207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff821660008181526005602052604081205561132b57610f373382611b8b565b610f3773ffffffffffffffffffffffffffffffffffffffff83163383611ebe565b60008281526001602081905260409091200154611369813361207c565b610bd4838361220d565b3332146113dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f527562696353796d62696f73697350726f78793a206f6e6c7920454f410000006044820152606401610754565b60025460ff1615611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610754565b61146b73ffffffffffffffffffffffffffffffffffffffff8516333086612383565b6000611478838587611ce5565b6003546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91821660248201529192506000919087169063dd62ed3e9060440160206040518083038186803b1580156114ef57600080fd5b505afa158015611503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115279190612fa1565b90508481101561176a57806115825760035461157d9073ffffffffffffffffffffffffffffffffffffffff88811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6123e1565b61176a565b6003546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60248201529087169063095ea7b390604401602060405180830381600087803b15801561161557600080fd5b505af1925050508015611663575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261166091810190612f7f565b60015b6116d65760035461168f9073ffffffffffffffffffffffffffffffffffffffff888116911660006123e1565b60035461157d9073ffffffffffffffffffffffffffffffffffffffff88811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6123e1565b600181151514611768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f527562696353796d62696f73697350726f78793a20617070726f76652066616960448201527f6c656400000000000000000000000000000000000000000000000000000000006064820152608401610754565b505b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8816906370a082319060240160206040518083038186803b1580156117d257600080fd5b505afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a9190612fa1565b60025490915061183590610100900473ffffffffffffffffffffffffffffffffffffffff1685612572565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152839073ffffffffffffffffffffffffffffffffffffffff8916906370a082319060240160206040518083038186803b15801561189d57600080fd5b505afa1580156118b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d59190612fa1565b6118df9083612fe9565b1461196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f527562696353796d62696f73697350726f78793a20646966666572656e74206160448201527f6d6f756e74207370656e740000000000000000000000000000000000000000006064820152608401610754565b50505050505050565b61197e33611b3e565b8061198d575061198d33610ca8565b611a19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b620f4240811115611a2957600080fd5b600455565b611a3733611b3e565b80611a465750611a4633610ca8565b611ad2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f527562696353796d62696f73697350726f78793a2043616c6c6572206973206e60448201527f6f7420696e206d616e6167657220726f6c6500000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff8116611af257600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081527ffdb122eb892c6b3193f8499f050265ce5458caab5f6480270d8972921f24f429602052604081205460ff166106e5565b80471015611bf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610754565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611c4f576040519150601f19603f3d011682016040523d82523d6000602084013e611c54565b606091505b5050905080610bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610754565b600073ffffffffffffffffffffffffffffffffffffffff841615611e245773ffffffffffffffffffffffffffffffffffffffff84166000908152600760205260409020548015611e1a5773ffffffffffffffffffffffffffffffffffffffff851660009081526008602052604081205490611d648684620f42406125b4565b90506000611d768284620f42406125b4565b9050611d828183612fe9565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600660209081526040808320938d1683529290529081208054909190611dc6908490613000565b909155505073ffffffffffffffffffffffffffffffffffffffff861660009081526005602052604081208054839290611e00908490613000565b90915550611e1090508288612fe9565b9450505050611e1e565b8391505b50611e89565b611e4283600454620f4240611e399190612fe9565b620f42406125b4565b9050611e4e8184612fe9565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604081208054909190611e83908490613000565b90915550505b9392505050565b6060611eb68484846040518060600160405280602981526020016131d460299139612775565b949350505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610bd49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261290b565b60025460ff1615611fff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610754565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120523390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610f37576120d48173ffffffffffffffffffffffffffffffffffffffff166014612a17565b6120df836020612a17565b6040516020016120f0929190613044565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610754916004016130c5565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610f3757600082815260016020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610f3757600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60025460ff16612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610754565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612052565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a249085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611f10565b80158061249057506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561245657600080fd5b505afa15801561246a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248e9190612fa1565b155b61251c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610754565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610bd49084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611f10565b6060611e8983836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250612c5a565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff858709858702925082811083820303915050806000141561260c576000841161260157600080fd5b508290049050611e89565b80841161261857600080fd5b600084868809808403938111909203919050600085612657817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612fe9565b612662906001613000565b169586900495938490049360008190030460010190506126828184613116565b909317926000612693876003613116565b60021890506126a28188613116565b6126ad906002612fe9565b6126b79082613116565b90506126c38188613116565b6126ce906002612fe9565b6126d89082613116565b90506126e48188613116565b6126ef906002612fe9565b6126f99082613116565b90506127058188613116565b612710906002612fe9565b61271a9082613116565b90506127268188613116565b612731906002612fe9565b61273b9082613116565b90506127478188613116565b612752906002612fe9565b61275c9082613116565b90506127688186613116565b9998505050505050505050565b606082471015612807576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff85163b612885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610754565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516128ae9190613153565b60006040518083038185875af1925050503d80600081146128eb576040519150601f19603f3d011682016040523d82523d6000602084013e6128f0565b606091505b5091509150612900828286612c69565b979650505050505050565b600061296d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612c5a9092919063ffffffff16565b805190915015610bd4578080602001905181019061298b9190612f7f565b610bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610754565b60606000612a26836002613116565b612a31906002613000565b67ffffffffffffffff811115612a4957612a49612d76565b6040519080825280601f01601f191660200182016040528015612a73576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612aaa57612aaa61316f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612b0d57612b0d61316f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612b49846002613116565b612b54906001613000565b90505b6001811115612bf1577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b9557612b9561316f565b1a60f81b828281518110612bab57612bab61316f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612bea8161319e565b9050612b57565b508315611e89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610754565b6060611eb68484600085612775565b60608315612c78575081611e89565b825115612c885782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075491906130c5565b600060208284031215612cce57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611e8957600080fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610fe657600080fd5b60008060408385031215612d3357600080fd5b8235612d3e81612cfe565b91506020830135612d4e81612cfe565b809150509250929050565b600060208284031215612d6b57600080fd5b8135611e8981612cfe565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112612db657600080fd5b813567ffffffffffffffff80821115612dd157612dd1612d76565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612e1757612e17612d76565b81604052838152866020858801011115612e3057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215612e6357600080fd5b8235612e6e81612cfe565b9150602083013567ffffffffffffffff811115612e8a57600080fd5b612e9685828601612da5565b9150509250929050565b600060208284031215612eb257600080fd5b5035919050565b60008060408385031215612ecc57600080fd5b823591506020830135612d4e81612cfe565b600080600060608486031215612ef357600080fd5b8335612efe81612cfe565b95602085013595506040909401359392505050565b60008060008060808587031215612f2957600080fd5b8435612f3481612cfe565b9350602085013592506040850135612f4b81612cfe565b9150606085013567ffffffffffffffff811115612f6757600080fd5b612f7387828801612da5565b91505092959194509250565b600060208284031215612f9157600080fd5b81518015158114611e8957600080fd5b600060208284031215612fb357600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015612ffb57612ffb612fba565b500390565b6000821982111561301357613013612fba565b500190565b60005b8381101561303357818101518382015260200161301b565b83811115610a245750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161307c816017850160208801613018565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516130b9816028840160208801613018565b01602801949350505050565b60208152600082518060208401526130e4816040850160208701613018565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561314e5761314e612fba565b500290565b60008251613165818460208701613018565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000816131ad576131ad612fba565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a164736f6c6343000809000a

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

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e5e68630b5b759e6c701b70892aa8324b71e6e2000000000000000000000000025821a21c2e3455967229cadca9b6fdd4a80a40b

-----Decoded View---------------
Arg [0] : _fee (uint256): 0
Arg [1] : _metaRouter (address): 0xE5E68630B5B759e6C701B70892AA8324b71e6e20
Arg [2] : _gateway (address): 0x25821A21C2E3455967229cADCA9b6fdd4A80a40b

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 000000000000000000000000e5e68630b5b759e6c701b70892aa8324b71e6e20
Arg [2] : 00000000000000000000000025821a21c2e3455967229cadca9b6fdd4a80a40b


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

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

Validator Index Block Amount
View All Withdrawals

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