Contract 0xe7166183870B2d1109e6237af490D286cBd2D2DC

  Note: Our ETH balance display is temporarily unavailable. Please check back later.

Contract Overview

Balance:
Txn Hash Method
Block
From
To
Value
0xe7ea403a8cd77c5a3a987691714658438d131de2a64f0c1f87c2754a014fe2790x60806040143334232023-09-07 13:55:14225 days 15 hrs ago0xd866b2332d4383c1bf719732177e2d9109c99dbc IN  Create: Referrals0 ETH0.0000000113260.00001
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Referrals

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Referrals.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// external
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-4.4.1/proxy/Clones.sol";

// internal
import "../utils/proxy/solidity-0.8.0/ProxyReentrancyGuard.sol";
import "../utils/proxy/solidity-0.8.0/ProxyOwned.sol";
import "../utils/proxy/solidity-0.8.0/ProxyPausable.sol";
import "../utils/libraries/AddressSetLib.sol";

contract Referrals is Initializable, ProxyOwned, ProxyPausable, ProxyReentrancyGuard {
    uint private constant TWO_PERCENT = 2e16;

    mapping(address => bool) public whitelistedAddresses;
    mapping(address => address) public referrals;
    mapping(address => uint) public referralStarted;

    mapping(address => bool) public tradedBefore;

    mapping(address => address) public sportReferrals;
    mapping(address => uint) public sportReferralStarted;
    mapping(address => bool) public sportTradedBefore;
    address public sportsAMM;
    address public parlayAMM;

    uint public referrerFeeDefault;
    uint public referrerFeeSilver;
    uint public referrerFeeGold;

    mapping(address => bool) public silverAddresses;
    mapping(address => bool) public goldAddresses;

    function initialize(
        address _owner,
        address thalesAmm,
        address rangedAMM
    ) public initializer {
        setOwner(_owner);
        initNonReentrant();
        whitelistedAddresses[thalesAmm] = true;
        whitelistedAddresses[rangedAMM] = true;
    }

    /// @notice returns the referrer fee for the given referrer
    function getReferrerFee(address referrer) external view returns (uint) {
        return
            goldAddresses[referrer] ? referrerFeeGold : silverAddresses[referrer] ? referrerFeeSilver : referrerFeeDefault;
    }

    /// @notice set Referrer for the given addresser
    /// @param referrer he who refers
    /// @param referred he who is referred
    function setReferrer(address referrer, address referred) external {
        require(referrer != address(0) && referred != address(0), "Cant refer zero addresses");
        require(referrer != referred, "Cant refer to yourself");
        require(
            whitelistedAddresses[msg.sender] || owner == msg.sender,
            "Only whitelisted addresses or owner set referrers"
        );
        if (msg.sender == sportsAMM || msg.sender == parlayAMM) {
            sportReferrals[referred] = referrer;
            sportReferralStarted[referred] = block.timestamp;
            emit SportReferralAdded(referrer, referred, block.timestamp);
        } else {
            referrals[referred] = referrer;
            referralStarted[referred] = block.timestamp;
            emit ReferralAdded(referrer, referred, block.timestamp);
        }
    }

    /// @notice set Referral fees
    /// @param _referrerFeeDefault how much of a fee to pay to referrers
    /// @param _referrerFeeSilver how much of a fee to pay to silver referrers
    /// @param _referrerFeeGold how much of a fee to pay to gold referrers
    function setReferrerFees(
        uint _referrerFeeDefault,
        uint _referrerFeeSilver,
        uint _referrerFeeGold
    ) external onlyOwner {
        require(
            _referrerFeeDefault <= TWO_PERCENT && _referrerFeeSilver <= TWO_PERCENT && _referrerFeeGold <= TWO_PERCENT,
            "Maximum referrer fee exceeded"
        );
        referrerFeeDefault = _referrerFeeDefault;
        referrerFeeSilver = _referrerFeeSilver;
        referrerFeeGold = _referrerFeeGold;
        emit ReferrerTiersFeesSet(_referrerFeeDefault, _referrerFeeSilver, _referrerFeeGold);
    }

    /// @notice adding/removing silver address depending on a flag
    /// @param _silverAddress address that needed to be added as silver or removed from silver addresses
    /// @param _flag adding or removing from silver addresses (true: add, false: remove)
    function setSilverAddress(address _silverAddress, bool _flag) external onlyOwner {
        require(_silverAddress != address(0), "Can't set 0 address");
        silverAddresses[_silverAddress] = _flag;
        emit SetSilverAddress(_silverAddress, _flag);
    }

    /// @notice adding/removing gold address depending on a flag
    /// @param _goldAddress address that needed to be added as gold or removed from gold addresses
    /// @param _flag adding or removing from gold addresses (true: add, false: remove)
    function setGoldAddress(address _goldAddress, bool _flag) external onlyOwner {
        require(_goldAddress != address(0), "Can't set 0 address");
        goldAddresses[_goldAddress] = _flag;
        emit SetGoldAddress(_goldAddress, _flag);
    }

    /// @notice set address that can set referrals
    /// @param _address that can set referrals
    /// @param enabled whether the address can set referrals
    function setWhitelistedAddress(address _address, bool enabled) external onlyOwner {
        require(whitelistedAddresses[_address] != enabled, "Address already enabled/disabled");
        whitelistedAddresses[_address] = enabled;
        emit SetWhitelistedAddress(_address, enabled);
    }

    function setSportsAMM(address _sportsAMM, address _parlayAMM) external onlyOwner {
        if (!whitelistedAddresses[_sportsAMM]) {
            whitelistedAddresses[sportsAMM] = false;
            whitelistedAddresses[_sportsAMM] = true;
            sportsAMM = _sportsAMM;
            emit SetWhitelistedAddress(_sportsAMM, true);
        }
        if (!whitelistedAddresses[_parlayAMM]) {
            whitelistedAddresses[parlayAMM] = false;
            whitelistedAddresses[_parlayAMM] = true;
            parlayAMM = _parlayAMM;
            emit SetWhitelistedAddress(_parlayAMM, true);
        }
    }

    event SportReferralAdded(address referrer, address referred, uint timeStarted);
    event ReferralAdded(address referrer, address referred, uint timeStarted);
    event SetSilverAddress(address silverAddress, bool flag);
    event SetGoldAddress(address goldAddress, bool flag);
    event TradedBefore(address trader);
    event SportTradedBefore(address trader);
    event SetWhitelistedAddress(address whitelisted, bool enabled);
    event ReferrerTiersFeesSet(uint _referrerFeeDefault, uint _referrerFeeSilver, uint _referrerFeeGold);
}

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

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(IERC20Upgradeable 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 15 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    /**
     * @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 / b + (a % b == 0 ? 0 : 1);
    }
}

File 4 of 15 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

File 5 of 15 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

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

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 6 of 15 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 15 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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 15 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @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.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _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());
    }
    uint256[49] private __gap;
}

File 9 of 15 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/Clones.sol)

pragma solidity ^0.8.0;

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

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

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

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

File 10 of 15 : ProxyReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 aplied 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.
 */
contract ProxyReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;
    bool private _initialized;

    function initNonReentrant() public {
        require(!_initialized, "Already initialized");
        _initialized = true;
        _guardCounter = 1;
    }

    /**
     * @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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

File 11 of 15 : ProxyOwned.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Clone of syntetix contract without constructor
contract ProxyOwned {
    address public owner;
    address public nominatedOwner;
    bool private _initialized;
    bool private _transferredAtInit;

    function setOwner(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        require(!_initialized, "Already initialized, use nominateNewOwner");
        _initialized = true;
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    function transferOwnershipAtInit(address proxyAddress) external onlyOwner {
        require(proxyAddress != address(0), "Invalid address");
        require(!_transferredAtInit, "Already transferred");
        owner = proxyAddress;
        _transferredAtInit = true;
        emit OwnerChanged(owner, proxyAddress);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 12 of 15 : ProxyPausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Inheritance
import "./ProxyOwned.sol";

// Clone of syntetix contract without constructor

contract ProxyPausable is ProxyOwned {
    uint public lastPauseTime;
    bool public paused;

    

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}

File 13 of 15 : AddressSetLib.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library AddressSetLib {
    struct AddressSet {
        address[] elements;
        mapping(address => uint) indices;
    }

    function contains(AddressSet storage set, address candidate) internal view returns (bool) {
        if (set.elements.length == 0) {
            return false;
        }
        uint index = set.indices[candidate];
        return index != 0 || set.elements[0] == candidate;
    }

    function getPage(
        AddressSet storage set,
        uint index,
        uint pageSize
    ) internal view returns (address[] memory) {
        // NOTE: This implementation should be converted to slice operators if the compiler is updated to v0.6.0+
        uint endIndex = index + pageSize; // The check below that endIndex <= index handles overflow.

        // If the page extends past the end of the list, truncate it.
        if (endIndex > set.elements.length) {
            endIndex = set.elements.length;
        }
        if (endIndex <= index) {
            return new address[](0);
        }

        uint n = endIndex - index; // We already checked for negative overflow.
        address[] memory page = new address[](n);
        for (uint i; i < n; i++) {
            page[i] = set.elements[i + index];
        }
        return page;
    }

    function add(AddressSet storage set, address element) internal {
        // Adding to a set is an idempotent operation.
        if (!contains(set, element)) {
            set.indices[element] = set.elements.length;
            set.elements.push(element);
        }
    }

    function remove(AddressSet storage set, address element) internal {
        require(contains(set, element), "Element not in set.");
        // Replace the removed element with the last element of the list.
        uint index = set.indices[element];
        uint lastIndex = set.elements.length - 1; // We required that element is in the list, so it is not empty.
        if (index != lastIndex) {
            // No need to shift the last element if it is the one we want to delete.
            address shiftedElement = set.elements[lastIndex];
            set.elements[index] = shiftedElement;
            set.indices[shiftedElement] = index;
        }
        set.elements.pop();
        delete set.indices[element];
    }
}

File 14 of 15 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 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 15 of 15 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"address","name":"referred","type":"address"},{"indexed":false,"internalType":"uint256","name":"timeStarted","type":"uint256"}],"name":"ReferralAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_referrerFeeDefault","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_referrerFeeSilver","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_referrerFeeGold","type":"uint256"}],"name":"ReferrerTiersFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"goldAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"flag","type":"bool"}],"name":"SetGoldAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"silverAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"flag","type":"bool"}],"name":"SetSilverAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"whitelisted","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SetWhitelistedAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"address","name":"referred","type":"address"},{"indexed":false,"internalType":"uint256","name":"timeStarted","type":"uint256"}],"name":"SportReferralAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"}],"name":"SportTradedBefore","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"}],"name":"TradedBefore","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"}],"name":"getReferrerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"goldAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initNonReentrant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"thalesAmm","type":"address"},{"internalType":"address","name":"rangedAMM","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parlayAMM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referralStarted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referrals","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referrerFeeDefault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referrerFeeGold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referrerFeeSilver","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_goldAddress","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setGoldAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"},{"internalType":"address","name":"referred","type":"address"}],"name":"setReferrer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_referrerFeeDefault","type":"uint256"},{"internalType":"uint256","name":"_referrerFeeSilver","type":"uint256"},{"internalType":"uint256","name":"_referrerFeeGold","type":"uint256"}],"name":"setReferrerFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_silverAddress","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setSilverAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sportsAMM","type":"address"},{"internalType":"address","name":"_parlayAMM","type":"address"}],"name":"setSportsAMM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"silverAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sportReferralStarted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sportReferrals","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sportTradedBefore","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sportsAMM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tradedBefore","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50611385806100206000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80637b337a361161010f578063c0c53b8b116100a2578063c992528811610071578063c9925288146104a6578063d03fc26f146104b9578063ebc79772146104d9578063f64c411c146104e157600080fd5b8063c0c53b8b1461044a578063c3b83f5f1461045d578063c769435a14610470578063c7d1f5f11461049357600080fd5b80639ca423b3116100de5780639ca423b3146103db578063b853d43514610404578063bbddaca314610417578063c05db3101461042a57600080fd5b80637b337a36146103935780637d550e05146103a65780638da5cb5b146103b957806391b4ded9146103d257600080fd5b80632274d8d4116101875780635cfe17e8116101565780635cfe17e81461033c5780636887a86b1461034557806379ba5097146103685780637b1d73521461037057600080fd5b80632274d8d4146102f25780633d70db881461030957806353a47bb71461031c5780635c975abb1461032f57600080fd5b806313af4035116101c357806313af403514610278578063149dace81461028b5780631627540c146102cc57806316c38b3c146102df57600080fd5b80630662f6dc146101f557806306c933d81461022d5780630b3de37c1461025057806310cb734014610265575b600080fd5b61021861020336600461124c565b60126020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61021861023b36600461124c565b60066020526000908152604090205460ff1681565b61026361025e366004611324565b6104ea565b005b6102636102733660046112e1565b6105c9565b61026361028636600461124c565b610681565b6102b461029936600461124c565b600a602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610224565b6102636102da36600461124c565b6107bc565b6102636102ed36600461130a565b610812565b6102fb60115481565b604051908152602001610224565b61026361031736600461126d565b610885565b6001546102b4906001600160a01b031681565b6003546102189060ff1681565b6102fb600f5481565b61021861035336600461124c565b600c6020526000908152604090205460ff1681565b6102636109e1565b61021861037e36600461124c565b60136020526000908152604090205460ff1681565b6102636103a13660046112e1565b610ade565b600e546102b4906001600160a01b031681565b6000546102b4906201000090046001600160a01b031681565b6102fb60025481565b6102b46103e936600461124c565b6007602052600090815260409020546001600160a01b031681565b6102636104123660046112e1565b610bb1565b61026361042536600461126d565b610c61565b6102fb61043836600461124c565b600b6020526000908152604090205481565b61026361045836600461129f565b610ed0565b61026361046b36600461124c565b610fd5565b61021861047e36600461124c565b60096020526000908152604090205460ff1681565b6102fb6104a136600461124c565b6110ee565b600d546102b4906001600160a01b031681565b6102fb6104c736600461124c565b60086020526000908152604090205481565b610263611148565b6102fb60105481565b6104f26111a6565b66470de4df8200008311158015610510575066470de4df8200008211155b8015610523575066470de4df8200008111155b6105745760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d2072656665727265722066656520657863656564656400000060448201526064015b60405180910390fd5b600f8390556010829055601181905560408051848152602081018490529081018290527fc16eaf7f26022f1d955e27575d4784c973d59645333963e28e56ceff916a6d829060600160405180910390a1505050565b6105d16111a6565b6001600160a01b03821661061d5760405162461bcd60e51b815260206004820152601360248201527243616e2774207365742030206164647265737360681b604482015260640161056b565b6001600160a01b038216600081815260126020908152604091829020805460ff19168515159081179091558251938452908301527f145665d896627a58c0715766c06bf36d0c193d690f7efd434e789350d2451bba91015b60405180910390a15050565b6001600160a01b0381166106d75760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640161056b565b600154600160a01b900460ff16156107435760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b606482015260840161056b565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6107c46111a6565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016107b1565b61081a6111a6565b60035460ff161515811515141561082e5750565b6003805460ff191682151590811790915560ff161561084c57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016107b1565b61088d6111a6565b6001600160a01b03821660009081526006602052604090205460ff1661093757600d80546001600160a01b039081166000908152600660209081526040808320805460ff19908116909155938716808452928190208054909416600190811790945584546001600160a01b031916831790945583519182528101919091527f0270cfadfea61b39d84d9208acdcb9922a3410eb8614d4f82aeaed4141d9694b910160405180910390a15b6001600160a01b03811660009081526006602052604090205460ff166109dd57600e80546001600160a01b039081166000908152600660209081526040808320805460ff19908116909155938616808452928190208054909416600190811790945584546001600160a01b031916831790945583519182528101919091527f0270cfadfea61b39d84d9208acdcb9922a3410eb8614d4f82aeaed4141d9694b9101610675565b5050565b6001546001600160a01b03163314610a595760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b606482015260840161056b565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610ae66111a6565b6001600160a01b03821660009081526006602052604090205460ff1615158115151415610b555760405162461bcd60e51b815260206004820181905260248201527f4164647265737320616c726561647920656e61626c65642f64697361626c6564604482015260640161056b565b6001600160a01b038216600081815260066020908152604091829020805460ff19168515159081179091558251938452908301527f0270cfadfea61b39d84d9208acdcb9922a3410eb8614d4f82aeaed4141d9694b9101610675565b610bb96111a6565b6001600160a01b038216610c055760405162461bcd60e51b815260206004820152601360248201527243616e2774207365742030206164647265737360681b604482015260640161056b565b6001600160a01b038216600081815260136020908152604091829020805460ff19168515159081179091558251938452908301527fe0c560ea8fa1fdf16c8a8c33a51faf9469e2c715379de98f4874794c746b7ffe9101610675565b6001600160a01b03821615801590610c8157506001600160a01b03811615155b610ccd5760405162461bcd60e51b815260206004820152601960248201527f43616e74207265666572207a65726f2061646472657373657300000000000000604482015260640161056b565b806001600160a01b0316826001600160a01b03161415610d285760405162461bcd60e51b815260206004820152601660248201527521b0b73a103932b332b9103a37903cb7bab939b2b63360511b604482015260640161056b565b3360009081526006602052604090205460ff1680610d5657506000546201000090046001600160a01b031633145b610dbc5760405162461bcd60e51b815260206004820152603160248201527f4f6e6c792077686974656c697374656420616464726573736573206f72206f776044820152706e6572207365742072656665727265727360781b606482015260840161056b565b600d546001600160a01b0316331480610ddf5750600e546001600160a01b031633145b15610e5a576001600160a01b038181166000818152600a6020908152604080832080546001600160a01b0319169588169586179055600b82529182902042908190558251948552908401929092528201527fefe74415728e081d08907b61137db2800445cc2f8884b9200a100679f59b68bb90606001610675565b6001600160a01b03818116600081815260076020908152604080832080546001600160a01b0319169588169586179055600882529182902042908190558251948552908401929092528201527f3b54244fd9f24308e8af20c841d18d51e8bf31c6d418e821cbac24481460045690606001610675565b600054610100900460ff16610eeb5760005460ff1615610eef565b303b155b610f525760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161056b565b600054610100900460ff16158015610f74576000805461ffff19166101011790555b610f7d84610681565b610f85611148565b6001600160a01b038381166000908152600660205260408082208054600160ff1991821681179092559386168352912080549092161790558015610fcf576000805461ff00191690555b50505050565b610fdd6111a6565b6001600160a01b0381166110255760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161056b565b600154600160a81b900460ff16156110755760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b604482015260640161056b565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016107b1565b6001600160a01b03811660009081526013602052604081205460ff1661113e576001600160a01b03821660009081526012602052604090205460ff1661113657600f54611142565b601054611142565b6011545b92915050565b60055460ff16156111915760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015260640161056b565b6005805460ff19166001908117909155600455565b6000546201000090046001600160a01b0316331461121e5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b606482015260840161056b565b565b80356001600160a01b038116811461123757600080fd5b919050565b8035801515811461123757600080fd5b60006020828403121561125d578081fd5b61126682611220565b9392505050565b6000806040838503121561127f578081fd5b61128883611220565b915061129660208401611220565b90509250929050565b6000806000606084860312156112b3578081fd5b6112bc84611220565b92506112ca60208501611220565b91506112d860408501611220565b90509250925092565b600080604083850312156112f3578182fd5b6112fc83611220565b91506112966020840161123c565b60006020828403121561131b578081fd5b6112668261123c565b600080600060608486031215611338578283fd5b50508135936020830135935060409092013591905056fea2646970667358221220e7e5746ab7eb686441763dc01bac3fbf01ba3323ca27983fe572006e15621a6464736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80637b337a361161010f578063c0c53b8b116100a2578063c992528811610071578063c9925288146104a6578063d03fc26f146104b9578063ebc79772146104d9578063f64c411c146104e157600080fd5b8063c0c53b8b1461044a578063c3b83f5f1461045d578063c769435a14610470578063c7d1f5f11461049357600080fd5b80639ca423b3116100de5780639ca423b3146103db578063b853d43514610404578063bbddaca314610417578063c05db3101461042a57600080fd5b80637b337a36146103935780637d550e05146103a65780638da5cb5b146103b957806391b4ded9146103d257600080fd5b80632274d8d4116101875780635cfe17e8116101565780635cfe17e81461033c5780636887a86b1461034557806379ba5097146103685780637b1d73521461037057600080fd5b80632274d8d4146102f25780633d70db881461030957806353a47bb71461031c5780635c975abb1461032f57600080fd5b806313af4035116101c357806313af403514610278578063149dace81461028b5780631627540c146102cc57806316c38b3c146102df57600080fd5b80630662f6dc146101f557806306c933d81461022d5780630b3de37c1461025057806310cb734014610265575b600080fd5b61021861020336600461124c565b60126020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61021861023b36600461124c565b60066020526000908152604090205460ff1681565b61026361025e366004611324565b6104ea565b005b6102636102733660046112e1565b6105c9565b61026361028636600461124c565b610681565b6102b461029936600461124c565b600a602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610224565b6102636102da36600461124c565b6107bc565b6102636102ed36600461130a565b610812565b6102fb60115481565b604051908152602001610224565b61026361031736600461126d565b610885565b6001546102b4906001600160a01b031681565b6003546102189060ff1681565b6102fb600f5481565b61021861035336600461124c565b600c6020526000908152604090205460ff1681565b6102636109e1565b61021861037e36600461124c565b60136020526000908152604090205460ff1681565b6102636103a13660046112e1565b610ade565b600e546102b4906001600160a01b031681565b6000546102b4906201000090046001600160a01b031681565b6102fb60025481565b6102b46103e936600461124c565b6007602052600090815260409020546001600160a01b031681565b6102636104123660046112e1565b610bb1565b61026361042536600461126d565b610c61565b6102fb61043836600461124c565b600b6020526000908152604090205481565b61026361045836600461129f565b610ed0565b61026361046b36600461124c565b610fd5565b61021861047e36600461124c565b60096020526000908152604090205460ff1681565b6102fb6104a136600461124c565b6110ee565b600d546102b4906001600160a01b031681565b6102fb6104c736600461124c565b60086020526000908152604090205481565b610263611148565b6102fb60105481565b6104f26111a6565b66470de4df8200008311158015610510575066470de4df8200008211155b8015610523575066470de4df8200008111155b6105745760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d2072656665727265722066656520657863656564656400000060448201526064015b60405180910390fd5b600f8390556010829055601181905560408051848152602081018490529081018290527fc16eaf7f26022f1d955e27575d4784c973d59645333963e28e56ceff916a6d829060600160405180910390a1505050565b6105d16111a6565b6001600160a01b03821661061d5760405162461bcd60e51b815260206004820152601360248201527243616e2774207365742030206164647265737360681b604482015260640161056b565b6001600160a01b038216600081815260126020908152604091829020805460ff19168515159081179091558251938452908301527f145665d896627a58c0715766c06bf36d0c193d690f7efd434e789350d2451bba91015b60405180910390a15050565b6001600160a01b0381166106d75760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640161056b565b600154600160a01b900460ff16156107435760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b606482015260840161056b565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6107c46111a6565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016107b1565b61081a6111a6565b60035460ff161515811515141561082e5750565b6003805460ff191682151590811790915560ff161561084c57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016107b1565b61088d6111a6565b6001600160a01b03821660009081526006602052604090205460ff1661093757600d80546001600160a01b039081166000908152600660209081526040808320805460ff19908116909155938716808452928190208054909416600190811790945584546001600160a01b031916831790945583519182528101919091527f0270cfadfea61b39d84d9208acdcb9922a3410eb8614d4f82aeaed4141d9694b910160405180910390a15b6001600160a01b03811660009081526006602052604090205460ff166109dd57600e80546001600160a01b039081166000908152600660209081526040808320805460ff19908116909155938616808452928190208054909416600190811790945584546001600160a01b031916831790945583519182528101919091527f0270cfadfea61b39d84d9208acdcb9922a3410eb8614d4f82aeaed4141d9694b9101610675565b5050565b6001546001600160a01b03163314610a595760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b606482015260840161056b565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610ae66111a6565b6001600160a01b03821660009081526006602052604090205460ff1615158115151415610b555760405162461bcd60e51b815260206004820181905260248201527f4164647265737320616c726561647920656e61626c65642f64697361626c6564604482015260640161056b565b6001600160a01b038216600081815260066020908152604091829020805460ff19168515159081179091558251938452908301527f0270cfadfea61b39d84d9208acdcb9922a3410eb8614d4f82aeaed4141d9694b9101610675565b610bb96111a6565b6001600160a01b038216610c055760405162461bcd60e51b815260206004820152601360248201527243616e2774207365742030206164647265737360681b604482015260640161056b565b6001600160a01b038216600081815260136020908152604091829020805460ff19168515159081179091558251938452908301527fe0c560ea8fa1fdf16c8a8c33a51faf9469e2c715379de98f4874794c746b7ffe9101610675565b6001600160a01b03821615801590610c8157506001600160a01b03811615155b610ccd5760405162461bcd60e51b815260206004820152601960248201527f43616e74207265666572207a65726f2061646472657373657300000000000000604482015260640161056b565b806001600160a01b0316826001600160a01b03161415610d285760405162461bcd60e51b815260206004820152601660248201527521b0b73a103932b332b9103a37903cb7bab939b2b63360511b604482015260640161056b565b3360009081526006602052604090205460ff1680610d5657506000546201000090046001600160a01b031633145b610dbc5760405162461bcd60e51b815260206004820152603160248201527f4f6e6c792077686974656c697374656420616464726573736573206f72206f776044820152706e6572207365742072656665727265727360781b606482015260840161056b565b600d546001600160a01b0316331480610ddf5750600e546001600160a01b031633145b15610e5a576001600160a01b038181166000818152600a6020908152604080832080546001600160a01b0319169588169586179055600b82529182902042908190558251948552908401929092528201527fefe74415728e081d08907b61137db2800445cc2f8884b9200a100679f59b68bb90606001610675565b6001600160a01b03818116600081815260076020908152604080832080546001600160a01b0319169588169586179055600882529182902042908190558251948552908401929092528201527f3b54244fd9f24308e8af20c841d18d51e8bf31c6d418e821cbac24481460045690606001610675565b600054610100900460ff16610eeb5760005460ff1615610eef565b303b155b610f525760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161056b565b600054610100900460ff16158015610f74576000805461ffff19166101011790555b610f7d84610681565b610f85611148565b6001600160a01b038381166000908152600660205260408082208054600160ff1991821681179092559386168352912080549092161790558015610fcf576000805461ff00191690555b50505050565b610fdd6111a6565b6001600160a01b0381166110255760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161056b565b600154600160a81b900460ff16156110755760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b604482015260640161056b565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016107b1565b6001600160a01b03811660009081526013602052604081205460ff1661113e576001600160a01b03821660009081526012602052604090205460ff1661113657600f54611142565b601054611142565b6011545b92915050565b60055460ff16156111915760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015260640161056b565b6005805460ff19166001908117909155600455565b6000546201000090046001600160a01b0316331461121e5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b606482015260840161056b565b565b80356001600160a01b038116811461123757600080fd5b919050565b8035801515811461123757600080fd5b60006020828403121561125d578081fd5b61126682611220565b9392505050565b6000806040838503121561127f578081fd5b61128883611220565b915061129660208401611220565b90509250929050565b6000806000606084860312156112b3578081fd5b6112bc84611220565b92506112ca60208501611220565b91506112d860408501611220565b90509250925092565b600080604083850312156112f3578182fd5b6112fc83611220565b91506112966020840161123c565b60006020828403121561131b578081fd5b6112668261123c565b600080600060608486031215611338578283fd5b50508135936020830135935060409092013591905056fea2646970667358221220e7e5746ab7eb686441763dc01bac3fbf01ba3323ca27983fe572006e15621a6464736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading