ETH Price: $2,907.56 (-1.04%)

Contract

0x4F2D04581b9c418CfbacefB9c8ab2B0e64362D0D
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Router_set Token...6734462024-03-11 11:31:47686 days ago1710156707IN
0x4F2D0458...e64362D0D
0 ETH0.000133820.00000026
Referrals_boost ...6286452024-03-10 10:38:25687 days ago1710067105IN
0x4F2D0458...e64362D0D
0 ETH0.000097480.00000026
Points_summit Te...4549662024-03-06 10:09:07691 days ago1709719747IN
0x4F2D0458...e64362D0D
0 ETH0.000176461.5001286
Points_summit Te...4549062024-03-06 10:07:07691 days ago1709719627IN
0x4F2D0458...e64362D0D
0 ETH0.000188251.50012799
Grant Role3452532024-03-03 21:12:01693 days ago1709500321IN
0x4F2D0458...e64362D0D
0 ETH0.000196061.50000027
Referrals_overri...3394912024-03-03 17:59:57693 days ago1709488797IN
0x4F2D0458...e64362D0D
0 ETH0.000252461.5000003
Router_set Token...3394692024-03-03 17:59:13693 days ago1709488753IN
0x4F2D0458...e64362D0D
0 ETH0.000201351.5000003
Router_set Token...3394462024-03-03 17:58:27693 days ago1709488707IN
0x4F2D0458...e64362D0D
0 ETH0.000206681.5000003
Referrals_boost ...3393912024-03-03 17:56:37693 days ago1709488597IN
0x4F2D0458...e64362D0D
0 ETH0.00016221.50000031
Referrals_boost ...3393712024-03-03 17:55:57693 days ago1709488557IN
0x4F2D0458...e64362D0D
0 ETH0.00016431.50000031
Referrals_boost ...3393512024-03-03 17:55:17693 days ago1709488517IN
0x4F2D0458...e64362D0D
0 ETH0.000163961.50000031
Referrals_boost ...3393372024-03-03 17:54:49693 days ago1709488489IN
0x4F2D0458...e64362D0D
0 ETH0.000168421.50000031
Referrals_boost ...3393072024-03-03 17:53:49693 days ago1709488429IN
0x4F2D0458...e64362D0D
0 ETH0.000170551.50000031
Referrals_boost ...3392532024-03-03 17:52:01693 days ago1709488321IN
0x4F2D0458...e64362D0D
0 ETH0.000178241.5000003
Add Maintainer3388002024-03-03 17:36:55693 days ago1709487415IN
0x4F2D0458...e64362D0D
0 ETH0.00015291.00000029
Add Maintainer3387942024-03-03 17:36:43693 days ago1709487403IN
0x4F2D0458...e64362D0D
0 ETH0.000157061.00000029
Add Maintainer3387882024-03-03 17:36:31693 days ago1709487391IN
0x4F2D0458...e64362D0D
0 ETH0.000153271.00000029
Add Maintainer3387822024-03-03 17:36:19693 days ago1709487379IN
0x4F2D0458...e64362D0D
0 ETH0.000157031.00000029
Initialize3387702024-03-03 17:35:55693 days ago1709487355IN
0x4F2D0458...e64362D0D
0 ETH0.000221661.00000029

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SummitAdmin

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999 runs

Other Settings:
default evmVersion
//
//            __               ___ ___    __            _  
//           (_  | | |\/| |\/|  |   |    (_ \    / /\  |_) 
//           __) |_| |  | |  | _|_  |    __) \/\/ /--\ |   
//

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

import "./interface/ISummitRouter.sol";
import "./interface/ISummitReferrals.sol";
import "./interface/ISummitPoints.sol";
import "./interface/IBlast.sol";
import "./lib/Maintainable.sol";

interface ISummitRouterExt {
  function setTokenVolumeMultipliers(address[] memory _tokens, uint256[] memory _volumeMultipliers) external;
  function setTokenBonusMultipliers(address[] memory _tokens, uint256[] memory _multipliers) external;
}


contract SummitAdmin is Maintainable {

  ISummitRouterExt public router;
  ISummitReferrals public referrals;
  ISummitPoints public points;


  constructor(address _router, address _referrals, address _points) {
    router = ISummitRouterExt(_router);
    referrals = ISummitReferrals(_referrals);
    points = ISummitPoints(_points);
  }

  error AlreadyInitialized();
  bool public initialized = false;
  address public governor;
  function initialize(address _governor) public onlyMaintainer {
      if (initialized) revert AlreadyInitialized();
      initialized = true;

      IBlast blast = IBlast(0x4300000000000000000000000000000000000002);
      blast.configureClaimableGas();
      blast.configureGovernor(_governor);

      governor = _governor;
  }

  // Router

  function router_setTokenVolumeMultipliers(address[] memory _tokens, uint256[] memory _mults) public onlyMaintainer {
    router.setTokenVolumeMultipliers(_tokens,_mults);
  }
  function router_setTokenBonusMultipliers(address[] memory _tokens, uint256[] memory _mults) public onlyMaintainer {
    router.setTokenBonusMultipliers(_tokens,_mults);
  }

  // Referrals

  function referrals_overrideReferralCode(address _add, string memory _code) public onlyMaintainer {
    referrals.maintainerSetReferralCode(_add, _code);
  }
  function referrals_boostReferrer(address _referrer, uint8 _boostLevel) public onlyMaintainer {
    referrals.boostReferrer(_referrer, _boostLevel);
  }

  // Points

  function points_setBlacklisted(address _add, bool _blacklisted) public onlyMaintainer {
    points.setBlacklisted(_add, _blacklisted);
  }
  function points_setGlobalBoost(uint256 _boost) public onlyMaintainer {
    points.setGlobalBoost(_boost);
  }
  function points_summitTeamGivePoints(address _add, uint256 _points) public onlyMaintainer {
    points.summitTeamGivePoints(_add, _points);
  }
  function points_addVolume(address _add, uint256 _points) public onlyMaintainer {
    points.addVolume(_add, _points);
  }
  function points_addAdapterVolume(address _add, uint256 _points) public onlyMaintainer {
    points.addAdapterVolume(_add, _points);
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
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);
        _;
    }

    /**
     * @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 `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @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(account),
                        " 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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // 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(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            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 for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the 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.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // 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 preconditions 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 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16;

interface IBlast {
    enum GasMode {
        VOID,
        CLAIMABLE
    }

    function configureClaimableGas() external;
    function configureGovernor(address governor) external;

    function claimAllGas(
        address contractAddress,
        address recipientOfGas
    ) external returns (uint256);

    function claimGasAtMinClaimRate(
        address contractAddress,
        address recipientOfGas,
        uint256 minClaimRateBips
    ) external returns (uint256);

    function claimMaxGas(
        address contractAddress,
        address recipientOfGas
    ) external returns (uint256);

    function claimGas(
        address contractAddress,
        address recipientOfGas,
        uint256 gasToClaim,
        uint256 gasSecondsToConsume
    ) external returns (uint256);

    function readGasParams(
        address contractAddress
    )
        external
        view
        returns (
            uint256 etherSeconds,
            uint256 etherBalance,
            uint256 lastUpdated,
            GasMode
        );
}

//
//            __               ___ ___    __            _  
//           (_  | | |\/| |\/|  |   |    (_ \    / /\  |_) 
//           __) |_| |  | |  | _|_  |    __) \/\/ /--\ |   
//

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

interface ISummitPoints {
  event UpdatedVolumeAdapter(address indexed _volumeAdapter);
  event UpdatedReferralsContract(address indexed _referrals);
  event UpdatedGlobalBoost(uint256 _boost);
  event UpdatedVolumeScalers(uint256 _refVolumeScaler, uint256 _adapterVolumeScaler);
  event UpdatedBlacklisted(address _add,bool _blacklisted);
  event AddedUserVolume(address indexed _user, uint256 _volume);
  event AddedReferrerVolume(address indexed _referrer, address indexed _user, uint256 _volume);
  event AddedAdapterVolume(address indexed _adapter, uint256 _volume);
  event TransferredVolume(address indexed _caller, address indexed _from, address indexed _to, uint256 _selfVolume, uint256 _refVolume, uint256 _adapterVolume);
  event UpdatedDelegate(address indexed _caller, address indexed _user, address indexed _delegate);
  event UpdatedAdapterDelegate(address indexed _adapter, address indexed _delegate);
  event SummitTeamGivenPoints(address indexed _user, uint256 _volume);

  function setVolumeAdapter(address _volumeAdapter) external;
  function setReferralsContract(address _referrals) external;
  function setGlobalBoost(uint256 _boost) external;
  function setBlacklisted(address _add, bool _blacklisted) external;
  function summitTeamGivePoints(address _add, uint256 _volume) external;
  function setVolumeScalers(uint256 _refVolumeScaler, uint256 _adapterVolumeScaler) external;
  function setDelegate(address _user, address _delegate) external;
  function setAdapterDelegate(address _adapter, address _delegate) external;
  function addVolume(address _add, uint256 _volume) external;
  function addAdapterVolume(address _adapter, uint256 _volume) external;
  function transferVolume(address _from, address _to, uint256 _selfVolume, uint256 _refVolume, uint256 _adapterVolume) external;
  function getVolume(address _add) external view returns (uint256 selfVolume, uint256 refVolume, uint256 adapterVolume);
  function getPoints(address _add) external view returns (uint256 pointsFromSelf, uint256 pointsFromRef, uint256 pointsFromAdapter, uint256 pointsTotal);
}

//
//            __               ___ ___    __            _  
//           (_  | | |\/| |\/|  |   |    (_ \    / /\  |_) 
//           __) |_| |  | |  | _|_  |    __) \/\/ /--\ |   
//

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ISummitReferrals {

  event UpdatedPointsContract(address indexed _pointsContract);
  event BoostedReferrer(address indexed referrer, uint8 _boostLevel);
  event BoostedReferrers(address[] referrer, uint8[] _boostLevel);
  event UpdatedReferrer(address indexed _add, address indexed _referrer);
  event UpdatedLevelData(uint256[] _refPointsReq, uint256[] _selfPointsReq, uint256[] _refsReq, uint256[] _multRew, uint256 _hasReferrerBonusMult);
  event UpdatedReferralCode(address indexed _caller, address indexed _user, string _code);

  function setPointsContract(address _pointsContract) external;
  function setReferrer(address _referrer, string memory _code) external;
  function setReferralCode(string memory _code) external;
  function maintainerSetReferralCode(address _add, string memory _code) external;
  function boostReferrer(address _referrer, uint8 _boostLevel) external;
  function boostReferrers(address[] memory _referrers, uint8[] memory _boostLevels) external;
  function setLevelData(uint256[] memory _refPointsReq, uint256[] memory _selfPointsReq, uint256[] memory _refsReq, uint256[] memory _multRew, uint256 _hasReferrerBonusMult) external;
  function getReferrer(address _add) external view returns (address);
  function getReferrerCode(address _add) external view returns (string memory);
  function getRefsCount(address _add) external view returns (uint256);
  function getReferrerLevelWithoutBoost(address _add) external view returns (uint8);
  function getReferrerLevel(address _add) external view returns (uint8);
  function getLevelRequirements(uint8 _level) external view returns (uint256 selfVolume, uint256 refVolume, uint256 refsCount);
  function getUserNextLevelRequirements(address _add) external view returns (uint256 selfVolume, uint256 refVolume, uint256 refsCount);
  function getRefVolumeBonusMultiplier(address _add) external view returns (uint256);
  function getSelfVolumeMultiplier(address _add) external view returns (uint256);
}

//
//            __               ___ ___    __            _  
//           (_  | | |\/| |\/|  |   |    (_ \    / /\  |_) 
//           __) |_| |  | |  | _|_  |    __) \/\/ /--\ |   
//

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


struct Query {
    address adapter;
    address tokenIn;
    address tokenOut;
    uint256 amountOut;
}
struct Offer {
    bytes amounts;
    bytes adapters;
    bytes path;
    uint256 gasEstimate;
}
struct FormattedOffer {
    uint256[] amounts;
    address[] adapters;
    address[] path;
    uint256 gasEstimate;
}
struct Trade {
    uint256 amountIn;
    uint256 amountOut;
    address[] path;
    address[] adapters;
}

interface ISummitRouter {

    event UpdatedTrustedTokens(address[] _newTrustedTokens);
    event UpdatedTokenVolumeMultipliers(address[] _tokens, uint256[] _pointMultipliers);
    event UpdatedTokenBonusMultipliers(address [] _tokens, uint256[] _multipliers);
    event UpdatedAdapters(address[] _newAdapters);
    event UpdatedVolumeAdapter(address _volumeAdapter);
    event UpdatedMinFee(uint256 _oldMinFee, uint256 _newMinFee);
    event UpdatedFeeClaimer(address _oldFeeClaimer, address _newFeeClaimer);
    event SummitSwap(address indexed _tokenIn, address indexed _tokenOut, uint256 _amountIn, uint256 _amountOut);

    // admin
    function setTrustedTokens(address[] memory _trustedTokens) external;
    function setAdapters(address[] memory _adapters) external;
    function setVolumeAdapter(address _volumeAdapter) external;
    function setFeeClaimer(address _claimer) external;
    function setMinFee(uint256 _fee) external;

    // misc
    function trustedTokensCount() external view returns (uint256);
    function adaptersCount() external view returns (uint256);
    function getTokenBonus(address _token) external view returns (uint256);

    // query

    function queryAdapter(
        uint256 _amountIn,
        address _tokenIn,
        address _tokenOut,
        uint8 _index
    ) external returns (uint256);

    function queryNoSplit(
        uint256 _amountIn,
        address _tokenIn,
        address _tokenOut,
        uint8[] calldata _options
    ) external view returns (Query memory);

    function queryNoSplit(
        uint256 _amountIn,
        address _tokenIn,
        address _tokenOut
    ) external view returns (Query memory);

    function findBestPathWithGas(
        uint256 _amountIn,
        address _tokenIn,
        address _tokenOut,
        uint256 _maxSteps,
        uint256 _gasPrice
    ) external view returns (FormattedOffer memory);

    function findBestPath(
        uint256 _amountIn,
        address _tokenIn,
        address _tokenOut,
        uint256 _maxSteps
    ) external view returns (FormattedOffer memory);

    // swap

    function swapNoSplit(
        Trade calldata _trade,
        address _to,
        uint256 _fee
    ) external;

    function swapNoSplitFromNATIVE(
        Trade calldata _trade,
        address _to,
        uint256 _fee
    ) external payable;

    function swapNoSplitToNATIVE(
        Trade calldata _trade,
        address _to,
        uint256 _fee
    ) external; 

    function swapNoSplitWithPermit(
        Trade calldata _trade,
        address _to,
        uint256 _fee,
        uint256 _deadline,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) external;

    function swapNoSplitToNATIVEWithPermit(
        Trade calldata _trade,
        address _to,
        uint256 _fee,
        uint256 _deadline,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) external;

}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControl.sol";

/**
 * @dev Contract module which extends the basic access control mechanism of Ownable
 * to include many maintainers, whom only the owner (DEFAULT_ADMIN_ROLE) may add and
 * remove.
 *
 * By default, the owner account will be the one that deploys the contract. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available this modifier:
 * `onlyMaintainer`, which can be applied to your functions to restrict their use to
 * the accounts with the role of maintainer.
 */

abstract contract Maintainable is AccessControl {
    bytes32 public constant MAINTAINER_ROLE = keccak256("MAINTAINER_ROLE");

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(MAINTAINER_ROLE, msg.sender);
    }

    function addMaintainer(address addedMaintainer) public virtual {
        grantRole(MAINTAINER_ROLE, addedMaintainer);
    }

    function removeMaintainer(address removedMaintainer) public virtual {
        revokeRole(MAINTAINER_ROLE, removedMaintainer);
    }

    function renounceRole(bytes32 role) public virtual {
        renounceRole(role, msg.sender);
    }

    function transferOwnership(address newOwner) public virtual {
        grantRole(DEFAULT_ADMIN_ROLE, newOwner);
        renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    modifier onlyMaintainer() {
        require(hasRole(MAINTAINER_ROLE, msg.sender), "Maintainable: Caller is not a maintainer");
        _;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_referrals","type":"address"},{"internalType":"address","name":"_points","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAINTAINER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addedMaintainer","type":"address"}],"name":"addMaintainer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_governor","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"points","outputs":[{"internalType":"contract ISummitPoints","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"uint256","name":"_points","type":"uint256"}],"name":"points_addAdapterVolume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"uint256","name":"_points","type":"uint256"}],"name":"points_addVolume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"bool","name":"_blacklisted","type":"bool"}],"name":"points_setBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boost","type":"uint256"}],"name":"points_setGlobalBoost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"uint256","name":"_points","type":"uint256"}],"name":"points_summitTeamGivePoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"referrals","outputs":[{"internalType":"contract ISummitReferrals","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"uint8","name":"_boostLevel","type":"uint8"}],"name":"referrals_boostReferrer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"string","name":"_code","type":"string"}],"name":"referrals_overrideReferralCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"removedMaintainer","type":"address"}],"name":"removeMaintainer","outputs":[],"stateMutability":"nonpayable","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"}],"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":[],"name":"router","outputs":[{"internalType":"contract ISummitRouterExt","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_mults","type":"uint256[]"}],"name":"router_setTokenBonusMultipliers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_mults","type":"uint256[]"}],"name":"router_setTokenVolumeMultipliers","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526003805460ff60a01b191690553480156200001e57600080fd5b5060405162001bfa38038062001bfa83398101604081905262000041916200018a565b6200004e600033620000bd565b6200007a7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9533620000bd565b600180546001600160a01b039485166001600160a01b031991821617909155600280549385169382169390931790925560038054919093169116179055620001d3565b620000c98282620000cd565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000c9576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001293390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516001600160a01b03811681146200018557600080fd5b919050565b6000806000606084860312156200019f578283fd5b620001aa846200016d565b9250620001ba602085016200016d565b9150620001ca604085016200016d565b90509250925092565b611a1780620001e36000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c806398aa74e7116100f9578063d8baf7cf11610097578063f874225411610071578063f8742254146103da578063f887ea4014610401578063f89c10ac14610414578063fd82e1f21461042757600080fd5b8063d8baf7cf146103a1578063e48a68a1146103b4578063f2fde38b146103c757600080fd5b8063a7575297116100d3578063a757529714610355578063c4d66de814610368578063d3dc75391461037b578063d547741f1461038e57600080fd5b806398aa74e71461032757806399a9ae641461033a578063a217fddf1461034d57600080fd5b806334684a1e116101665780636b453c1f116101405780636b453c1f146102b757806376a692c8146102ca5780638bb9c5bf146102dd57806391d14854146102f057600080fd5b806334684a1e1461027e57806336568abe1461029157806367cf3163146102a457600080fd5b80631be6dd64116101975780631be6dd6414610225578063248a9ca3146102385780632f2ff15d1461026957600080fd5b806301ffc9a7146101be5780630c340a24146101e6578063158ef93e14610211575b600080fd5b6101d16101cc366004611742565b61043a565b60405190151581526020015b60405180910390f35b6004546101f9906001600160a01b031681565b6040516001600160a01b0390911681526020016101dd565b6003546101d190600160a01b900460ff1681565b6003546101f9906001600160a01b031681565b61025b6102463660046116ff565b60009081526020819052604090206001015490565b6040519081526020016101dd565b61027c610277366004611717565b6104d3565b005b61027c61028c3660046115e5565b6104fd565b61027c61029f366004611717565b610615565b61027c6102b236600461160e565b6106a1565b61027c6102c53660046114f1565b610784565b61027c6102d836600461150b565b6107b1565b61027c6102eb3660046116ff565b610893565b6101d16102fe366004611717565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61027c6103353660046115e5565b61089d565b61027c61034836600461163e565b61097e565b61025b600081565b61027c61036336600461163e565b610a58565b61027c6103763660046114f1565b610b32565b6002546101f9906001600160a01b031681565b61027c61039c366004611717565b610d63565b61027c6103af3660046114f1565b610d88565b61027c6103c2366004611545565b610db2565b61027c6103d53660046114f1565b610e8c565b61025b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9581565b6001546101f9906001600160a01b031681565b61027c6104223660046115e5565b610ea2565b61027c6104353660046116ff565b610f83565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806104cd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546104ee8161108c565b6104f88383611096565b505050565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166105915760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b60648201526084015b60405180910390fd5b6003546040517fc9d0529b0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018490529091169063c9d0529b906044015b600060405180830381600087803b1580156105f957600080fd5b505af115801561060d573d6000803e3d6000fd5b505050505050565b6001600160a01b03811633146106935760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610588565b61069d8282611134565b5050565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166107305760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6002546040517f4c10fb250000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260ff8416602483015290911690634c10fb25906044016105df565b6107ae7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95826104d3565b50565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166108405760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517fd01dd6d20000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015283151560248301529091169063d01dd6d2906044016105df565b6107ae8133610615565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff1661092c5760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517f557b18640000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018490529091169063557b1864906044016105df565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610a0d5760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6001546040517feadb18ff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063eadb18ff906105df9085908590600401611859565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610ae75760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6001546040517f8d2195ad0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690638d2195ad906105df9085908590600401611859565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610bc15760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b600354600160a01b900460ff1615610c05576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055604080517f4e606c470000000000000000000000000000000000000000000000000000000081529051734300000000000000000000000000000000000002918291634e606c479160048082019260009290919082900301818387803b158015610c9b57600080fd5b505af1158015610caf573d6000803e3d6000fd5b50506040517feb8646980000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528416925063eb8646989150602401600060405180830381600087803b158015610d0f57600080fd5b505af1158015610d23573d6000803e3d6000fd5b5050600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039590951694909417909355505050565b600082815260208190526040902060010154610d7e8161108c565b6104f88383611134565b6107ae7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9582610d63565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610e415760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6002546040517fba32aa150000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063ba32aa15906105df908590859060040161182f565b610e976000826104d3565b6107ae600033610615565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610f315760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517f32102e3b0000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260248201849052909116906332102e3b906044016105df565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166110125760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517f50d935c4000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906350d935c490602401600060405180830381600087803b15801561107157600080fd5b505af1158015611085573d6000803e3d6000fd5b5050505050565b6107ae81336111b3565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661069d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556110f03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561069d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661069d576111e481611226565b6111ef836020611238565b6040516020016112009291906117ae565b60408051601f198184030181529082905262461bcd60e51b8252610588916004016118cf565b60606104cd6001600160a01b03831660145b6060600061124783600261194f565b611252906002611937565b67ffffffffffffffff81111561127857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156112a2576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106112e757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061134057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061136484600261194f565b61136f906001611937565b90505b6001811115611410577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106113be57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106113e257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936114098161199e565b9050611372565b50831561145f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610588565b9392505050565b80356001600160a01b038116811461147d57600080fd5b919050565b600082601f830112611492578081fd5b813560206114a76114a283611913565b6118e2565b80838252828201915082860187848660051b89010111156114c6578586fd5b855b858110156114e4578135845292840192908401906001016114c8565b5090979650505050505050565b600060208284031215611502578081fd5b61145f82611466565b6000806040838503121561151d578081fd5b61152683611466565b91506020830135801515811461153a578182fd5b809150509250929050565b60008060408385031215611557578182fd5b61156083611466565b915060208084013567ffffffffffffffff8082111561157d578384fd5b818601915086601f830112611590578384fd5b8135818111156115a2576115a26119cb565b6115b4601f8201601f191685016118e2565b915080825287848285010111156115c9578485fd5b8084840185840137810190920192909252919491935090915050565b600080604083850312156115f7578182fd5b61160083611466565b946020939093013593505050565b60008060408385031215611620578182fd5b61162983611466565b9150602083013560ff8116811461153a578182fd5b60008060408385031215611650578182fd5b823567ffffffffffffffff80821115611667578384fd5b818501915085601f83011261167a578384fd5b8135602061168a6114a283611913565b8083825282820191508286018a848660051b89010111156116a9578889fd5b8896505b848710156116d2576116be81611466565b8352600196909601959183019183016116ad565b50965050860135925050808211156116e8578283fd5b506116f585828601611482565b9150509250929050565b600060208284031215611710578081fd5b5035919050565b60008060408385031215611729578182fd5b8235915061173960208401611466565b90509250929050565b600060208284031215611753578081fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461145f578182fd5b6000815180845261179a81602086016020860161196e565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516117e681601785016020880161196e565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161182381602884016020880161196e565b01602801949350505050565b6001600160a01b03831681526040602082015260006118516040830184611782565b949350505050565b604080825283519082018190526000906020906060840190828701845b8281101561189b5781516001600160a01b031684529284019290840190600101611876565b50505083810382850152845180825285830191830190845b818110156114e4578351835292840192918401916001016118b3565b60208152600061145f6020830184611782565b604051601f8201601f1916810167ffffffffffffffff8111828210171561190b5761190b6119cb565b604052919050565b600067ffffffffffffffff82111561192d5761192d6119cb565b5060051b60200190565b6000821982111561194a5761194a6119b5565b500190565b6000816000190483118215151615611969576119696119b5565b500290565b60005b83811015611989578181015183820152602001611971565b83811115611998576000848401525b50505050565b6000816119ad576119ad6119b5565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220065cc5a6c9d426a9ecd59581471e14c9c658f9d57988603340e2238a79059f9564736f6c6343000804003300000000000000000000000087aa9f75a54858c32f189c3b60d12d754e7c7b4900000000000000000000000057bb1ff6376d8c0ad39cc2091d3065fdb2a28c120000000000000000000000000d5fb48134f42cace14e9242ffcdf2002d16a943

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101b95760003560e01c806398aa74e7116100f9578063d8baf7cf11610097578063f874225411610071578063f8742254146103da578063f887ea4014610401578063f89c10ac14610414578063fd82e1f21461042757600080fd5b8063d8baf7cf146103a1578063e48a68a1146103b4578063f2fde38b146103c757600080fd5b8063a7575297116100d3578063a757529714610355578063c4d66de814610368578063d3dc75391461037b578063d547741f1461038e57600080fd5b806398aa74e71461032757806399a9ae641461033a578063a217fddf1461034d57600080fd5b806334684a1e116101665780636b453c1f116101405780636b453c1f146102b757806376a692c8146102ca5780638bb9c5bf146102dd57806391d14854146102f057600080fd5b806334684a1e1461027e57806336568abe1461029157806367cf3163146102a457600080fd5b80631be6dd64116101975780631be6dd6414610225578063248a9ca3146102385780632f2ff15d1461026957600080fd5b806301ffc9a7146101be5780630c340a24146101e6578063158ef93e14610211575b600080fd5b6101d16101cc366004611742565b61043a565b60405190151581526020015b60405180910390f35b6004546101f9906001600160a01b031681565b6040516001600160a01b0390911681526020016101dd565b6003546101d190600160a01b900460ff1681565b6003546101f9906001600160a01b031681565b61025b6102463660046116ff565b60009081526020819052604090206001015490565b6040519081526020016101dd565b61027c610277366004611717565b6104d3565b005b61027c61028c3660046115e5565b6104fd565b61027c61029f366004611717565b610615565b61027c6102b236600461160e565b6106a1565b61027c6102c53660046114f1565b610784565b61027c6102d836600461150b565b6107b1565b61027c6102eb3660046116ff565b610893565b6101d16102fe366004611717565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61027c6103353660046115e5565b61089d565b61027c61034836600461163e565b61097e565b61025b600081565b61027c61036336600461163e565b610a58565b61027c6103763660046114f1565b610b32565b6002546101f9906001600160a01b031681565b61027c61039c366004611717565b610d63565b61027c6103af3660046114f1565b610d88565b61027c6103c2366004611545565b610db2565b61027c6103d53660046114f1565b610e8c565b61025b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9581565b6001546101f9906001600160a01b031681565b61027c6104223660046115e5565b610ea2565b61027c6104353660046116ff565b610f83565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806104cd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546104ee8161108c565b6104f88383611096565b505050565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166105915760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b60648201526084015b60405180910390fd5b6003546040517fc9d0529b0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018490529091169063c9d0529b906044015b600060405180830381600087803b1580156105f957600080fd5b505af115801561060d573d6000803e3d6000fd5b505050505050565b6001600160a01b03811633146106935760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610588565b61069d8282611134565b5050565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166107305760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6002546040517f4c10fb250000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260ff8416602483015290911690634c10fb25906044016105df565b6107ae7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95826104d3565b50565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166108405760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517fd01dd6d20000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015283151560248301529091169063d01dd6d2906044016105df565b6107ae8133610615565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff1661092c5760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517f557b18640000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018490529091169063557b1864906044016105df565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610a0d5760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6001546040517feadb18ff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063eadb18ff906105df9085908590600401611859565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610ae75760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6001546040517f8d2195ad0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690638d2195ad906105df9085908590600401611859565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610bc15760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b600354600160a01b900460ff1615610c05576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055604080517f4e606c470000000000000000000000000000000000000000000000000000000081529051734300000000000000000000000000000000000002918291634e606c479160048082019260009290919082900301818387803b158015610c9b57600080fd5b505af1158015610caf573d6000803e3d6000fd5b50506040517feb8646980000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528416925063eb8646989150602401600060405180830381600087803b158015610d0f57600080fd5b505af1158015610d23573d6000803e3d6000fd5b5050600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039590951694909417909355505050565b600082815260208190526040902060010154610d7e8161108c565b6104f88383611134565b6107ae7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9582610d63565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610e415760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6002546040517fba32aa150000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063ba32aa15906105df908590859060040161182f565b610e976000826104d3565b6107ae600033610615565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff16610f315760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517f32102e3b0000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260248201849052909116906332102e3b906044016105df565b3360009081527fa54247010af6b3693b80aceddfad12e077c5de3571e6243fada502635f0d7d39602052604090205460ff166110125760405162461bcd60e51b815260206004820152602860248201527f4d61696e7461696e61626c653a2043616c6c6572206973206e6f742061206d6160448201526734b73a30b4b732b960c11b6064820152608401610588565b6003546040517f50d935c4000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906350d935c490602401600060405180830381600087803b15801561107157600080fd5b505af1158015611085573d6000803e3d6000fd5b5050505050565b6107ae81336111b3565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661069d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556110f03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561069d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661069d576111e481611226565b6111ef836020611238565b6040516020016112009291906117ae565b60408051601f198184030181529082905262461bcd60e51b8252610588916004016118cf565b60606104cd6001600160a01b03831660145b6060600061124783600261194f565b611252906002611937565b67ffffffffffffffff81111561127857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156112a2576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106112e757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061134057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061136484600261194f565b61136f906001611937565b90505b6001811115611410577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106113be57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106113e257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936114098161199e565b9050611372565b50831561145f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610588565b9392505050565b80356001600160a01b038116811461147d57600080fd5b919050565b600082601f830112611492578081fd5b813560206114a76114a283611913565b6118e2565b80838252828201915082860187848660051b89010111156114c6578586fd5b855b858110156114e4578135845292840192908401906001016114c8565b5090979650505050505050565b600060208284031215611502578081fd5b61145f82611466565b6000806040838503121561151d578081fd5b61152683611466565b91506020830135801515811461153a578182fd5b809150509250929050565b60008060408385031215611557578182fd5b61156083611466565b915060208084013567ffffffffffffffff8082111561157d578384fd5b818601915086601f830112611590578384fd5b8135818111156115a2576115a26119cb565b6115b4601f8201601f191685016118e2565b915080825287848285010111156115c9578485fd5b8084840185840137810190920192909252919491935090915050565b600080604083850312156115f7578182fd5b61160083611466565b946020939093013593505050565b60008060408385031215611620578182fd5b61162983611466565b9150602083013560ff8116811461153a578182fd5b60008060408385031215611650578182fd5b823567ffffffffffffffff80821115611667578384fd5b818501915085601f83011261167a578384fd5b8135602061168a6114a283611913565b8083825282820191508286018a848660051b89010111156116a9578889fd5b8896505b848710156116d2576116be81611466565b8352600196909601959183019183016116ad565b50965050860135925050808211156116e8578283fd5b506116f585828601611482565b9150509250929050565b600060208284031215611710578081fd5b5035919050565b60008060408385031215611729578182fd5b8235915061173960208401611466565b90509250929050565b600060208284031215611753578081fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461145f578182fd5b6000815180845261179a81602086016020860161196e565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516117e681601785016020880161196e565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161182381602884016020880161196e565b01602801949350505050565b6001600160a01b03831681526040602082015260006118516040830184611782565b949350505050565b604080825283519082018190526000906020906060840190828701845b8281101561189b5781516001600160a01b031684529284019290840190600101611876565b50505083810382850152845180825285830191830190845b818110156114e4578351835292840192918401916001016118b3565b60208152600061145f6020830184611782565b604051601f8201601f1916810167ffffffffffffffff8111828210171561190b5761190b6119cb565b604052919050565b600067ffffffffffffffff82111561192d5761192d6119cb565b5060051b60200190565b6000821982111561194a5761194a6119b5565b500190565b6000816000190483118215151615611969576119696119b5565b500290565b60005b83811015611989578181015183820152602001611971565b83811115611998576000848401525b50505050565b6000816119ad576119ad6119b5565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220065cc5a6c9d426a9ecd59581471e14c9c658f9d57988603340e2238a79059f9564736f6c63430008040033

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

00000000000000000000000087aa9f75a54858c32f189c3b60d12d754e7c7b4900000000000000000000000057bb1ff6376d8c0ad39cc2091d3065fdb2a28c120000000000000000000000000d5fb48134f42cace14e9242ffcdf2002d16a943

-----Decoded View---------------
Arg [0] : _router (address): 0x87AA9f75A54858c32F189C3B60D12d754E7c7b49
Arg [1] : _referrals (address): 0x57Bb1FF6376d8c0aD39cc2091D3065FdB2a28c12
Arg [2] : _points (address): 0x0d5FB48134f42CAcE14E9242FFCdF2002D16a943

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000087aa9f75a54858c32f189c3b60d12d754e7c7b49
Arg [1] : 00000000000000000000000057bb1ff6376d8c0ad39cc2091d3065fdb2a28c12
Arg [2] : 0000000000000000000000000d5fb48134f42cace14e9242ffcdf2002d16a943


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.