Contract 0xE5660fe1A8b21316c5c73417B950181145B3e4eA

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x25d80d4dec7a41be48e2405b994a6b2f1d32b5bc9be6390101cb6e0da91253e0Record Referral120531492021-10-24 15:24:261 day 13 hrs agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000120025
0x4b130f0da6f40e8bbed1a93cd06ef4939bd37263afd68ba332bcae9c28a0550fRecord Referral113837932021-10-01 4:28:1725 days 47 mins agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000120025
0xd6c2efe8043d1653b0c9950e8bada63c0af2ef73ff82a84f8af05b5731135596Record Referral111421972021-09-22 17:27:0433 days 11 hrs agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000261725
0xc10ea631e808933a5e6af44b9b75f625ee4f5a42131653f931f2d06b173b7299Record Referral88107252021-07-02 17:28:55115 days 11 hrs agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000261665
0xb69181f8141803e2e2660a6b5af17420b98a8cda62d744a82c157aa02579d6e8Record Referral87817452021-07-01 17:03:34116 days 12 hrs agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000336725
0x77230ae3ff5c489792ed8d18fd448c1931fbe8053434da4501290f012e677c52Update Operator87811382021-07-01 16:32:49116 days 12 hrs agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000226205
0x1d1dfc20af7f11b103292e1d9ddc5963b5134528de8de8706a65a317504cbdaaUpdate Operator87260842021-06-29 18:14:31118 days 11 hrs agoPrivacySwap: Deployer IN  0xe5660fe1a8b21316c5c73417b950181145b3e4ea0 BNB0.000226205
0xc3c9212888ca217d3f16ed00600cbd33abaa8fb29c6dc41d827230d0f5b7d18b0x6080604087258842021-06-29 18:04:31118 days 11 hrs agoPrivacySwap: Deployer IN  Contract Creation0 BNB0.00358338
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PrvReferral

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-06-29
*/

// SPDX-License-Identifier: MIT


pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}




pragma solidity ^0.6.12;




/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IBEP20 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'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: decreased allowance below zero");
        _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(IBEP20 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, "SafeBEP20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed");
        }
    }
}



pragma solidity ^0.6.12;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

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


interface IPrvReferral {
    /**
     * @dev Record referral.
     */
    function recordReferral(address user, address referrer) external;

    /**
     * @dev Record referral commission.
     */
    function recordReferralCommission(address referrer, uint256 commission) external;

    /**
     * @dev Get the referrer address that referred the user.
     */
    function getReferrer(address user) external view returns (address);
}

abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}




pragma solidity ^0.6.0;

/**
 * @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.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


contract PrvReferral is IPrvReferral, Ownable {
    using SafeBEP20 for IBEP20;

    mapping(address => bool) public operators;
    mapping(address => address) public referrers; // user address => referrer address
    mapping(address => uint256) public referralsCount; // referrer address => referrals count
    mapping(address => uint256) public totalReferralCommissions; // referrer address => total referral commissions

    event ReferralRecorded(address indexed user, address indexed referrer);
    event ReferralCommissionRecorded(address indexed referrer, uint256 commission);
    event OperatorUpdated(address indexed operator, bool indexed status);

    modifier onlyOperator {
        require(operators[msg.sender], "Operator: caller is not the operator");
        _;
    }

    function recordReferral(address _user, address _referrer) public override onlyOperator {
        if (_user != address(0)
            && _referrer != address(0)
            && _user != _referrer
            && referrers[_user] == address(0)
        ) {
            referrers[_user] = _referrer;
            referralsCount[_referrer] += 1;
            emit ReferralRecorded(_user, _referrer);
        }
    }

    function recordReferralCommission(address _referrer, uint256 _commission) public override onlyOperator {
        if (_referrer != address(0) && _commission > 0) {
            totalReferralCommissions[_referrer] += _commission;
            emit ReferralCommissionRecorded(_referrer, _commission);
        }
    }

    // Get the referrer address that referred the user
    function getReferrer(address _user) public override view returns (address) {
        return referrers[_user];
    }

    // Update the status of the operator
    function updateOperator(address _operator, bool _status) external onlyOwner {
        operators[_operator] = _status;
        emit OperatorUpdated(_operator, _status);
    }

    // Owner can drain tokens that are sent here by mistake
    function drainBEP20Token(IBEP20 _token, uint256 _amount, address _to) external onlyOwner {
        _token.safeTransfer(_to, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"bool","name":"status","type":"bool"}],"name":"OperatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"commission","type":"uint256"}],"name":"ReferralCommissionRecorded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"}],"name":"ReferralRecorded","type":"event"},{"inputs":[{"internalType":"contract IBEP20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"drainBEP20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getReferrer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"recordReferral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"uint256","name":"_commission","type":"uint256"}],"name":"recordReferralCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referralsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referrers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalReferralCommissions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b610b918061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a6146101f157806379547628146101f95780638da5cb5b1461022f5780639ecfc6ea14610237578063dc1694b81461025d578063f2fde38b14610289576100b4565b80630c7f7b6b146100b957806313e7c9d8146100e95780634a3b68cc146101235780634a9fefc7146101655780636b366c661461018b5780636d44a3b2146101c3575b600080fd5b6100e7600480360360408110156100cf57600080fd5b506001600160a01b03813581169160200135166102af565b005b61010f600480360360208110156100ff57600080fd5b50356001600160a01b03166103d0565b604080519115158252519081900360200190f35b6101496004803603602081101561013957600080fd5b50356001600160a01b03166103e5565b604080516001600160a01b039092168252519081900360200190f35b6101496004803603602081101561017b57600080fd5b50356001600160a01b0316610400565b6101b1600480360360208110156101a157600080fd5b50356001600160a01b031661041e565b60408051918252519081900360200190f35b6100e7600480360360408110156101d957600080fd5b506001600160a01b0381351690602001351515610430565b6100e76104dc565b6100e76004803603606081101561020f57600080fd5b506001600160a01b0381358116916020810135916040909101351661057e565b6101496105ef565b6101b16004803603602081101561024d57600080fd5b50356001600160a01b03166105fe565b6100e76004803603604081101561027357600080fd5b506001600160a01b038135169060200135610610565b6100e76004803603602081101561029f57600080fd5b50356001600160a01b03166106d2565b3360009081526001602052604090205460ff166102fd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b386024913960400191505060405180910390fd5b6001600160a01b0382161580159061031d57506001600160a01b03811615155b801561033b5750806001600160a01b0316826001600160a01b031614155b801561035f57506001600160a01b0382811660009081526002602052604090205416155b156103cc576001600160a01b03828116600081815260026020908152604080832080546001600160a01b0319169587169586179055848352600390915280822080546001019055517ff61ccbe316daff56654abed758191f9a4dcac526d43747a50a2d545c0ca64d829190a35b5050565b60016020526000908152604090205460ff1681565b6002602052600090815260409020546001600160a01b031681565b6001600160a01b039081166000908152600260205260409020541690565b60036020526000908152604090205481565b6104386107ca565b6000546001600160a01b03908116911614610488576040805162461bcd60e51b81526020600482018190526024820152600080516020610b18833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260016020526040808220805460ff191685151590811790915590519092917f966c160e1c4dbc7df8d69af4ace01e9297c3cf016397b7914971f2fbfa32672d91a35050565b6104e46107ca565b6000546001600160a01b03908116911614610534576040805162461bcd60e51b81526020600482018190526024820152600080516020610b18833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6105866107ca565b6000546001600160a01b039081169116146105d6576040805162461bcd60e51b81526020600482018190526024820152600080516020610b18833981519152604482015290519081900360640190fd5b6105ea6001600160a01b03841682846107ce565b505050565b6000546001600160a01b031690565b60046020526000908152604090205481565b3360009081526001602052604090205460ff1661065e5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b386024913960400191505060405180910390fd5b6001600160a01b038216158015906106765750600081115b156103cc576001600160a01b038216600081815260046020908152604091829020805485019055815184815291517f91badd4ef769cf56b7db0b350b95c9fb6d973e6e37d28a51fed219cc7d53184f9281900390910190a25050565b6106da6107ca565b6000546001600160a01b0390811691161461072a576040805162461bcd60e51b81526020600482018190526024820152600080516020610b18833981519152604482015290519081900360640190fd5b6001600160a01b03811661076f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610af26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105ea9084906060610870826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108cc9092919063ffffffff16565b8051909150156105ea5780806020019051602081101561088f57600080fd5b50516105ea5760405162461bcd60e51b815260040180806020018281038252602a815260200180610ac8602a913960400191505060405180910390fd5b60606108db84846000856108e3565b949350505050565b60606108ee85610a8e565b61093f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061097e5780518252601f19909201916020918201910161095f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146109e0576040519150601f19603f3d011682016040523d82523d6000602084013e6109e5565b606091505b509150915081156109f95791506108db9050565b805115610a095780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a53578181015183820152602001610a3b565b50505050905090810190601f168015610a805780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108db57505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f72a2646970667358221220f9fd5f3ee442e18d1f2db27358d37a2ec0d83388f266f81080dbca636273924c64736f6c634300060c0033

Deployed ByteCode Sourcemap

21425:2166:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22231:416;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22231:416:0;;;;;;;;;;:::i;:::-;;21513:41;;;;;;;;;;;;;;;;-1:-1:-1;21513:41:0;-1:-1:-1;;;;;21513:41:0;;:::i;:::-;;;;;;;;;;;;;;;;;;21561:44;;;;;;;;;;;;;;;;-1:-1:-1;21561:44:0;-1:-1:-1;;;;;21561:44:0;;:::i;:::-;;;;-1:-1:-1;;;;;21561:44:0;;;;;;;;;;;;;;23035:117;;;;;;;;;;;;;;;;-1:-1:-1;23035:117:0;-1:-1:-1;;;;;23035:117:0;;:::i;21648:49::-;;;;;;;;;;;;;;;;-1:-1:-1;21648:49:0;-1:-1:-1;;;;;21648:49:0;;:::i;:::-;;;;;;;;;;;;;;;;23202:176;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23202:176:0;;;;;;;;;;:::i;20869:148::-;;;:::i;23447:141::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23447:141:0;;;;;;;;;;;;;;;;;:::i;20227:79::-;;;:::i;21743:59::-;;;;;;;;;;;;;;;;-1:-1:-1;21743:59:0;-1:-1:-1;;;;;21743:59:0;;:::i;22655:316::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22655:316:0;;;;;;;;:::i;21172:244::-;;;;;;;;;;;;;;;;-1:-1:-1;21172:244:0;-1:-1:-1;;;;;21172:244:0;;:::i;22231:416::-;22151:10;22141:21;;;;:9;:21;;;;;;;;22133:70;;;;-1:-1:-1;;;22133:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22333:19:0;::::1;::::0;;::::1;::::0;:59:::1;;-1:-1:-1::0;;;;;;22369:23:0;::::1;::::0;::::1;22333:59;:94;;;;;22418:9;-1:-1:-1::0;;;;;22409:18:0::1;:5;-1:-1:-1::0;;;;;22409:18:0::1;;;22333:94;:141;;;;-1:-1:-1::0;;;;;;22444:16:0;;::::1;22472:1;22444:16:::0;;;:9:::1;:16;::::0;;;;;::::1;:30:::0;22333:141:::1;22329:311;;;-1:-1:-1::0;;;;;22501:16:0;;::::1;;::::0;;;:9:::1;:16;::::0;;;;;;;:28;;-1:-1:-1;;;;;;22501:28:0::1;::::0;;::::1;::::0;;::::1;::::0;;22544:25;;;:14:::1;:25:::0;;;;;;:30;;-1:-1:-1;22544:30:0::1;::::0;;22594:34;::::1;::::0;22501:16;22594:34:::1;22329:311;22231:416:::0;;:::o;21513:41::-;;;;;;;;;;;;;;;:::o;21561:44::-;;;;;;;;;;;;-1:-1:-1;;;;;21561:44:0;;:::o;23035:117::-;-1:-1:-1;;;;;23128:16:0;;;23101:7;23128:16;;;:9;:16;;;;;;;;23035:117::o;21648:49::-;;;;;;;;;;;;;:::o;23202:176::-;20449:12;:10;:12::i;:::-;20439:6;;-1:-1:-1;;;;;20439:6:0;;;:22;;;20431:67;;;;;-1:-1:-1;;;20431:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20431:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23289:20:0;::::1;;::::0;;;:9:::1;:20;::::0;;;;;:30;;-1:-1:-1;;23289:30:0::1;::::0;::::1;;::::0;;::::1;::::0;;;23335:35;;23289:30;;:20;23335:35:::1;::::0;::::1;23202:176:::0;;:::o;20869:148::-;20449:12;:10;:12::i;:::-;20439:6;;-1:-1:-1;;;;;20439:6:0;;;:22;;;20431:67;;;;;-1:-1:-1;;;20431:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20431:67:0;;;;;;;;;;;;;;;20976:1:::1;20960:6:::0;;20939:40:::1;::::0;-1:-1:-1;;;;;20960:6:0;;::::1;::::0;20939:40:::1;::::0;20976:1;;20939:40:::1;21007:1;20990:19:::0;;-1:-1:-1;;;;;;20990:19:0::1;::::0;;20869:148::o;23447:141::-;20449:12;:10;:12::i;:::-;20439:6;;-1:-1:-1;;;;;20439:6:0;;;:22;;;20431:67;;;;;-1:-1:-1;;;20431:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20431:67:0;;;;;;;;;;;;;;;23547:33:::1;-1:-1:-1::0;;;;;23547:19:0;::::1;23567:3:::0;23572:7;23547:19:::1;:33::i;:::-;23447:141:::0;;;:::o;20227:79::-;20265:7;20292:6;-1:-1:-1;;;;;20292:6:0;20227:79;:::o;21743:59::-;;;;;;;;;;;;;:::o;22655:316::-;22151:10;22141:21;;;;:9;:21;;;;;;;;22133:70;;;;-1:-1:-1;;;22133:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22773:23:0;::::1;::::0;;::::1;::::0;:42:::1;;;22814:1;22800:11;:15;22773:42;22769:195;;;-1:-1:-1::0;;;;;22832:35:0;::::1;;::::0;;;:24:::1;:35;::::0;;;;;;;;:50;;;::::1;::::0;;22902;;;;;;;::::1;::::0;;;;;;;;::::1;22655:316:::0;;:::o;21172:244::-;20449:12;:10;:12::i;:::-;20439:6;;-1:-1:-1;;;;;20439:6:0;;;:22;;;20431:67;;;;;-1:-1:-1;;;20431:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20431:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;21261:22:0;::::1;21253:73;;;;-1:-1:-1::0;;;21253:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21363:6;::::0;;21342:38:::1;::::0;-1:-1:-1;;;;;21342:38:0;;::::1;::::0;21363:6;::::1;::::0;21342:38:::1;::::0;::::1;21391:6;:17:::0;;-1:-1:-1;;;;;;21391:17:0::1;-1:-1:-1::0;;;;;21391:17:0;;;::::1;::::0;;;::::1;::::0;;21172:244::o;18832:106::-;18920:10;18832:106;:::o;12124:177::-;12234:58;;;-1:-1:-1;;;;;12234:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12234:58:0;-1:-1:-1;;;12234:58:0;;;12207:86;;12227:5;;14853:23;14879:69;14907:4;14879:69;;;;;;;;;;;;;;;;;14887:5;-1:-1:-1;;;;;14879:27:0;;;:69;;;;;:::i;:::-;14963:17;;14853:95;;-1:-1:-1;14963:21:0;14959:224;;15105:10;15094:30;;;;;;;;;;;;;;;-1:-1:-1;15094:30:0;15086:85;;;;-1:-1:-1;;;15086:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3860:196;3963:12;3995:53;4018:6;4026:4;4032:1;4035:12;3995:22;:53::i;:::-;3988:60;3860:196;-1:-1:-1;;;;3860:196:0:o;5237:979::-;5367:12;5400:18;5411:6;5400:10;:18::i;:::-;5392:60;;;;;-1:-1:-1;;;5392:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5526:12;5540:23;5567:6;-1:-1:-1;;;;;5567:11:0;5587:8;5598:4;5567:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5567:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5525:78;;;;5618:7;5614:595;;;5649:10;-1:-1:-1;5642:17:0;;-1:-1:-1;5642:17:0;5614:595;5763:17;;:21;5759:439;;6026:10;6020:17;6087:15;6074:10;6070:2;6066:19;6059:44;5974:148;6169:12;6162:20;;-1:-1:-1;;;6162:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;745:619;805:4;1273:20;;1116:66;1313:23;;;;;;:42;;-1:-1:-1;;1340:15:0;;;1305:51;-1:-1:-1;;745:619:0:o

Swarm Source

ipfs://f9fd5f3ee442e18d1f2db27358d37a2ec0d83388f266f81080dbca636273924c
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.