ETH Price: $2,277.02 (+1.97%)

Contract

0x8FE623962F78D21647d6B21d171b6192Edf04E93
 

Overview

ETH Balance

0.0004 ETH

Eth Value

$0.91 (@ $2,277.02/ETH)
Transaction Hash
Method
Block
From
To
Withdraw165060812023-01-28 15:02:23588 days ago1674918143IN
0x8FE62396...2Edf04E93
0 ETH0.0005469817.69305984
Bet164713272023-01-23 18:34:11593 days ago1674498851IN
0x8FE62396...2Edf04E93
0.1 ETH0.0045791637.77905538
Bet164713192023-01-23 18:32:35593 days ago1674498755IN
0x8FE62396...2Edf04E93
0.1 ETH0.004769739.35106209
Bet162104972022-12-18 8:51:59629 days ago1671353519IN
0x8FE62396...2Edf04E93
0.05 ETH0.0017656614.56713298
Transfer162104942022-12-18 8:51:23629 days ago1671353483IN
0x8FE62396...2Edf04E93
0.3 ETH0.0002885513.70495433
Set Contract Set...162104922022-12-18 8:50:59629 days ago1671353459IN
0x8FE62396...2Edf04E93
0 ETH0.0006230314.37115655
Bet160505422022-11-26 0:20:59652 days ago1669422059IN
0x8FE62396...2Edf04E93
0.12 ETH0.0012867510.61597374
Bet160504872022-11-26 0:09:59652 days ago1669421399IN
0x8FE62396...2Edf04E93
0.16 ETH0.0014660612.09535848
Bet160144692022-11-20 23:20:47657 days ago1668986447IN
0x8FE62396...2Edf04E93
0.03 ETH0.0015813813.04675913
Bet160094532022-11-20 6:31:35657 days ago1668925895IN
0x8FE62396...2Edf04E93
0.03 ETH0.0015974913.17967337
Bet160019052022-11-19 5:14:47658 days ago1668834887IN
0x8FE62396...2Edf04E93
0.03 ETH0.0015898213.11325861
Bet160009922022-11-19 2:11:23658 days ago1668823883IN
0x8FE62396...2Edf04E93
0.03 ETH0.0015894913.11051623
Withdraw159895062022-11-17 11:40:47660 days ago1668685247IN
0x8FE62396...2Edf04E93
0 ETH0.0003856312.47404639
Bet159470672022-11-11 13:27:35666 days ago1668173255IN
0x8FE62396...2Edf04E93
0.03 ETH0.0025720221.21470518
Bet159420672022-11-10 20:40:59667 days ago1668112859IN
0x8FE62396...2Edf04E93
0.03 ETH0.0024658820.34407315
Bet159372792022-11-10 4:37:35667 days ago1668055055IN
0x8FE62396...2Edf04E93
0.03 ETH0.002779822.93397371
Withdraw159341412022-11-09 18:05:47668 days ago1668017147IN
0x8FE62396...2Edf04E93
0 ETH0.01655442535.48211107
Bet159176442022-11-07 10:47:47670 days ago1667818067IN
0x8FE62396...2Edf04E93
0.08 ETH0.0015063612.42783356
Bet159176372022-11-07 10:46:23670 days ago1667817983IN
0x8FE62396...2Edf04E93
0.03 ETH0.0015071712.43451364
Withdraw159168172022-11-07 8:01:23670 days ago1667808083IN
0x8FE62396...2Edf04E93
0 ETH0.0004302213.91643825
Withdraw159127772022-11-06 18:29:59671 days ago1667759399IN
0x8FE62396...2Edf04E93
0 ETH0.0005899519.08324607
Withdraw159058882022-11-05 19:25:59672 days ago1667676359IN
0x8FE62396...2Edf04E93
0 ETH0.0003499711.32042196
Bet159043682022-11-05 14:19:23672 days ago1667657963IN
0x8FE62396...2Edf04E93
0.03 ETH0.0014261111.765767
Bet159043632022-11-05 14:18:23672 days ago1667657903IN
0x8FE62396...2Edf04E93
0.03 ETH0.0015895813.11442891
Bet159010502022-11-05 3:12:23672 days ago1667617943IN
0x8FE62396...2Edf04E93
0.03 ETH0.001743114.38099971
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
165060812023-01-28 15:02:23588 days ago1674918143
0x8FE62396...2Edf04E93
0.266 ETH
164713232023-01-23 18:33:23593 days ago1674498803
0x8FE62396...2Edf04E93
0.1965 ETH
162105012022-12-18 8:52:47629 days ago1671353567
0x8FE62396...2Edf04E93
0.09825 ETH
160505462022-11-26 0:21:47652 days ago1669422107
0x8FE62396...2Edf04E93
0.2358 ETH
160504912022-11-26 0:10:47652 days ago1669421447
0x8FE62396...2Edf04E93
0.3144 ETH
160094572022-11-20 6:32:23657 days ago1668925943
0x8FE62396...2Edf04E93
0.05895 ETH
159895062022-11-17 11:40:47660 days ago1668685247
0x8FE62396...2Edf04E93
0.2 ETH
159420712022-11-10 20:41:47667 days ago1668112907
0x8FE62396...2Edf04E93
0.05895 ETH
159341412022-11-09 18:05:47668 days ago1668017147
0x8FE62396...2Edf04E93
0.5 ETH
159176482022-11-07 10:48:35670 days ago1667818115
0x8FE62396...2Edf04E93
0.1572 ETH
159168172022-11-07 8:01:23670 days ago1667808083
0x8FE62396...2Edf04E93
0.1 ETH
159127772022-11-06 18:29:59671 days ago1667759399
0x8FE62396...2Edf04E93
1 ETH
159058882022-11-05 19:25:59672 days ago1667676359
0x8FE62396...2Edf04E93
0.5 ETH
159010482022-11-05 3:11:59672 days ago1667617919
0x8FE62396...2Edf04E93
0.05895 ETH
159010412022-11-05 3:10:23672 days ago1667617823
0x8FE62396...2Edf04E93
0.05895 ETH
159009942022-11-05 3:00:59672 days ago1667617259
0x8FE62396...2Edf04E93
0.05895 ETH
159009842022-11-05 2:58:59672 days ago1667617139
0x8FE62396...2Edf04E93
0.05895 ETH
159009092022-11-05 2:43:59672 days ago1667616239
0x8FE62396...2Edf04E93
0.05895 ETH
158991112022-11-04 20:42:23673 days ago1667594543
0x8FE62396...2Edf04E93
0.05895 ETH
158817102022-11-02 10:21:59675 days ago1667384519
0x8FE62396...2Edf04E93
0.05895 ETH
158806812022-11-02 6:55:11675 days ago1667372111
0x8FE62396...2Edf04E93
0.05895 ETH
158798382022-11-02 4:05:59675 days ago1667361959
0x8FE62396...2Edf04E93
0.01965 ETH
158798312022-11-02 4:04:35675 days ago1667361875
0x8FE62396...2Edf04E93
0.01965 ETH
158798102022-11-02 4:00:23675 days ago1667361623
0x8FE62396...2Edf04E93
0.01965 ETH
158797932022-11-02 3:56:59675 days ago1667361419
0x8FE62396...2Edf04E93
0.01965 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CoinFlip

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-11-01
*/

// File: @chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol


pragma solidity ^0.8.4;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

// File: @chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol


pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

// File: @chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol


pragma solidity ^0.8.0;

interface LinkTokenInterface {
  function allowance(address owner, address spender) external view returns (uint256 remaining);

  function approve(address spender, uint256 value) external returns (bool success);

  function balanceOf(address owner) external view returns (uint256 balance);

  function decimals() external view returns (uint8 decimalPlaces);

  function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

  function increaseApproval(address spender, uint256 subtractedValue) external;

  function name() external view returns (string memory tokenName);

  function symbol() external view returns (string memory tokenSymbol);

  function totalSupply() external view returns (uint256 totalTokensIssued);

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

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  ) external returns (bool success);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool success);
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

// File: contracts/ETHGame.sol


pragma solidity 0.8.12;





contract CoinFlip is Ownable, VRFConsumerBaseV2 {
    VRFCoordinatorV2Interface COORDINATOR;
    LinkTokenInterface LINKTOKEN;

    /* Storage:
     ***********/

    address constant vrfCoordinator = 0x271682DEB8C4E0901D1a1550aD2e64D568E69909;
    address constant link_token_contract = 0x514910771AF9Ca656af840dff83E8264EcF986CA;

    uint16 constant requestConfirmations = 3;
    uint32 private callbackGasLimit = 120000;
    uint64 private subscriptionId;
    uint128 private commissionPercentage = 0.035 ether; //0.035%

    bytes32 private keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef;
    
    uint private minBetAmount = 0.01 ether;
    uint private maxBetAmount = 0.2 ether;

    uint public pendingCommission = 0 ether;


    struct Data {
        uint256 betAmount;
        address playerAddress;
        bool betOngoing;
        uint8 betChoice;
    }

    mapping(uint256 => Data) public data; //to check who is the sender of a pending bet by Id

    /* Events:
     *********/

    event NewIdRequest(address player, uint betAmount, uint8 choice, uint256 requestId);
    event BetResult(address player, bool victory, uint amountBet, uint8 choice, uint256 requestId);

    /* Constructor:
     **************/

    constructor(uint64 _subscriptionId) payable VRFConsumerBaseV2(vrfCoordinator) {
        COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
        LINKTOKEN = LinkTokenInterface(link_token_contract);
        subscriptionId = _subscriptionId;
    }

    /* Modifiers:
     ************/

    modifier betConditions() {
        require(msg.value >= minBetAmount, "Insuffisant amount, please increase your bet!");
        require(msg.value <= maxBetAmount, "Can't bet more than MAX bet amount.");
        require((msg.value * 2) <= address(this).balance, "Contract does not have enough balance");
        _;
    }

    /* Functions:
     *************/

    function bet(uint8 _betChoice) external payable betConditions {
        require(_betChoice == 0 || _betChoice == 1, "Must be either 0 or 1");

        uint256 requestId = requestRandomWords();

        data[requestId] = Data({
            playerAddress: msg.sender,
            betChoice: _betChoice,
            betOngoing: true,
            betAmount: msg.value
        });
        
        emit NewIdRequest(msg.sender, msg.value, _betChoice, requestId);
    }

    /// @notice Assumes the subscription is funded sufficiently.
    function requestRandomWords() private returns (uint256) {
        return COORDINATOR.requestRandomWords(keyHash, subscriptionId, requestConfirmations, callbackGasLimit, 1);
    }

    function fulfillRandomWords(uint256 _requestId, uint256[] memory _randomWords) internal override {
        uint8 randomResult = uint8(_randomWords[0] % 2);
        checkResult(randomResult, _requestId);
    }

    function checkResult(uint8 _randomResult, uint256 _requestId) private returns (bool) {
        Data memory obj = data[_requestId];
        require(obj.playerAddress != address(0),"What?");

        bool win = false;

        if (obj.betChoice == _randomResult) {
            win = true;
            uint betCommission = ((obj.betAmount * commissionPercentage) / 1 ether);
            pendingCommission += betCommission;

            require(payable(obj.playerAddress).send( (obj.betAmount * 2) - betCommission ));
        }

        emit BetResult(obj.playerAddress, win, obj.betAmount, obj.betChoice, _requestId);

        delete (data[_requestId]);

        return win;
    }

    //VIEW FUNCTIONS

    function getInformations() public view returns (uint, uint)
    {
        return(minBetAmount, maxBetAmount);
    }

    // OWNER FUNCTIONS

    function setCommission(uint128 _val) external onlyOwner
    {
        commissionPercentage = _val;
    }

    function setContractSettings(bytes32 _gasLane, uint32 _callBackGasLimit, uint64 _subscriptionId, uint _minBet, uint _maxBet) external onlyOwner {
        keyHash = _gasLane;
        callbackGasLimit = _callBackGasLimit;
        subscriptionId = _subscriptionId;
        minBetAmount = _minBet;
        maxBetAmount = _maxBet;
    }
    function withdrawCommission(address _address) external onlyOwner
    {
        require(payable(_address).send(pendingCommission));
        pendingCommission = 0;
    }
    function withdraw(uint amount) external onlyOwner {
        require(payable(msg.sender).send(amount));
    }

    receive() external payable{

    } 
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"_subscriptionId","type":"uint64"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"bool","name":"victory","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amountBet","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"choice","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"BetResult","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"betAmount","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"choice","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"NewIdRequest","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"},{"inputs":[{"internalType":"uint8","name":"_betChoice","type":"uint8"}],"name":"bet","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"data","outputs":[{"internalType":"uint256","name":"betAmount","type":"uint256"},{"internalType":"address","name":"playerAddress","type":"address"},{"internalType":"bool","name":"betOngoing","type":"bool"},{"internalType":"uint8","name":"betChoice","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInformations","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingCommission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_val","type":"uint128"}],"name":"setCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_gasLane","type":"bytes32"},{"internalType":"uint32","name":"_callBackGasLimit","type":"uint32"},{"internalType":"uint64","name":"_subscriptionId","type":"uint64"},{"internalType":"uint256","name":"_minBet","type":"uint256"},{"internalType":"uint256","name":"_maxBet","type":"uint256"}],"name":"setContractSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"withdrawCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040526201d4c0600260146101000a81548163ffffffff021916908363ffffffff160217905550667c585087238000600360006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055507f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef60001b600455662386f26fc100006005556702c68af0bb140000600655600060075560405162001e3e38038062001e3e8339818101604052810190620000d091906200032a565b73271682deb8c4e0901d1a1550ad2e64d568e6990962000105620000f96200021460201b60201c565b6200021c60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505073271682deb8c4e0901d1a1550ad2e64d568e69909600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073514910771af9ca656af840dff83e8264ecf986ca600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550506200035c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600067ffffffffffffffff82169050919050565b6200030481620002e5565b81146200031057600080fd5b50565b6000815190506200032481620002f9565b92915050565b600060208284031215620003435762000342620002e0565b5b6000620003538482850162000313565b91505092915050565b608051611abf6200037f6000396000818161036501526103b90152611abf6000f3fe6080604052600436106100ab5760003560e01c8063715018a611610064578063715018a6146101b05780638da5cb5b146101c7578063d0821b0e146101f2578063f01daef11461020e578063f0ba844014610239578063f2fde38b14610279576100b2565b806316c58d04146100b757806319521d4a146100e05780631fe543e314610109578063271d2154146101325780632e1a7d4d1461015b5780633c5e310b14610184576100b2565b366100b257005b600080fd5b3480156100c357600080fd5b506100de60048036038101906100d99190610dfb565b6102a2565b005b3480156100ec57600080fd5b5061010760048036038101906101029190610f10565b6102f5565b005b34801561011557600080fd5b50610130600480360381019061012b91906110e4565b610363565b005b34801561013e57600080fd5b5061015960048036038101906101549190611188565b610423565b005b34801561016757600080fd5b50610182600480360381019061017d91906111b5565b610467565b005b34801561019057600080fd5b506101996104b0565b6040516101a79291906111f1565b60405180910390f35b3480156101bc57600080fd5b506101c56104c1565b005b3480156101d357600080fd5b506101dc6104d5565b6040516101e99190611229565b60405180910390f35b61020c6004803603810190610207919061127d565b6104fe565b005b34801561021a57600080fd5b5061022361075d565b60405161023091906112aa565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b91906111b5565b610763565b60405161027094939291906112ef565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190610dfb565b6107cd565b005b6102aa610851565b8073ffffffffffffffffffffffffffffffffffffffff166108fc6007549081150290604051600060405180830381858888f193505050506102ea57600080fd5b600060078190555050565b6102fd610851565b8460048190555083600260146101000a81548163ffffffff021916908363ffffffff16021790555082600260186101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555081600581905550806006819055505050505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461041557337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f400000000000000000000000000000000000000000000000000000000815260040161040c929190611334565b60405180910390fd5b61041f82826108cf565b5050565b61042b610851565b80600360006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050565b61046f610851565b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050506104ad57600080fd5b50565b600080600554600654915091509091565b6104c9610851565b6104d3600061090b565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600554341015610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053a906113e0565b60405180910390fd5b600654341115610588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057f90611472565b60405180910390fd5b4760023461059691906114c1565b11156105d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ce9061158d565b60405180910390fd5b60008160ff1614806105ec575060018160ff16145b61062b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610622906115f9565b60405180910390fd5b60006106356109cf565b905060405180608001604052803481526020013373ffffffffffffffffffffffffffffffffffffffff1681526020016001151581526020018360ff16815250600860008381526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160010160146101000a81548160ff02191690831515021790555060608201518160010160156101000a81548160ff021916908360ff1602179055509050507f30fd42e2a59d6a8b5702e7cc510a217c129071b809478e72dc89d3daedcd9739333484846040516107519493929190611619565b60405180910390a15050565b60075481565b60086020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160149054906101000a900460ff16908060010160159054906101000a900460ff16905084565b6107d5610851565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c906116d0565b60405180910390fd5b61084e8161090b565b50565b610859610aa8565b73ffffffffffffffffffffffffffffffffffffffff166108776104d5565b73ffffffffffffffffffffffffffffffffffffffff16146108cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c49061173c565b60405180910390fd5b565b60006002826000815181106108e7576108e661175c565b5b60200260200101516108f991906117ba565b90506109058184610ab0565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600454600260189054906101000a900467ffffffffffffffff166003600260149054906101000a900463ffffffff1660016040518663ffffffff1660e01b8152600401610a6095949392919061187a565b6020604051808303816000875af1158015610a7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa391906118e2565b905090565b600033905090565b60008060086000848152602001908152602001600020604051806080016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160149054906101000a900460ff161515151581526020016001820160159054906101000a900460ff1660ff1660ff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816020015173ffffffffffffffffffffffffffffffffffffffff161415610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd69061195b565b60405180910390fd5b60008460ff16826060015160ff161415610cc657600190506000670de0b6b3a7640000600360009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168460000151610c4291906114c1565b610c4c919061197b565b90508060076000828254610c6091906119ac565b92505081905550826020015173ffffffffffffffffffffffffffffffffffffffff166108fc8260028660000151610c9791906114c1565b610ca19190611a02565b9081150290604051600060405180830381858888f19350505050610cc457600080fd5b505b7fc6460791be6900ecabb03d901b0e5e1bf4bd27126757a5b8f8a7c4b3abab1f658260200151828460000151856060015188604051610d09959493929190611a36565b60405180910390a1600860008581526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160146101000a81549060ff02191690556001820160156101000a81549060ff02191690555050809250505092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610dc882610d9d565b9050919050565b610dd881610dbd565b8114610de357600080fd5b50565b600081359050610df581610dcf565b92915050565b600060208284031215610e1157610e10610d93565b5b6000610e1f84828501610de6565b91505092915050565b6000819050919050565b610e3b81610e28565b8114610e4657600080fd5b50565b600081359050610e5881610e32565b92915050565b600063ffffffff82169050919050565b610e7781610e5e565b8114610e8257600080fd5b50565b600081359050610e9481610e6e565b92915050565b600067ffffffffffffffff82169050919050565b610eb781610e9a565b8114610ec257600080fd5b50565b600081359050610ed481610eae565b92915050565b6000819050919050565b610eed81610eda565b8114610ef857600080fd5b50565b600081359050610f0a81610ee4565b92915050565b600080600080600060a08688031215610f2c57610f2b610d93565b5b6000610f3a88828901610e49565b9550506020610f4b88828901610e85565b9450506040610f5c88828901610ec5565b9350506060610f6d88828901610efb565b9250506080610f7e88828901610efb565b9150509295509295909350565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610fd982610f90565b810181811067ffffffffffffffff82111715610ff857610ff7610fa1565b5b80604052505050565b600061100b610d89565b90506110178282610fd0565b919050565b600067ffffffffffffffff82111561103757611036610fa1565b5b602082029050602081019050919050565b600080fd5b600061106061105b8461101c565b611001565b9050808382526020820190506020840283018581111561108357611082611048565b5b835b818110156110ac57806110988882610efb565b845260208401935050602081019050611085565b5050509392505050565b600082601f8301126110cb576110ca610f8b565b5b81356110db84826020860161104d565b91505092915050565b600080604083850312156110fb576110fa610d93565b5b600061110985828601610efb565b925050602083013567ffffffffffffffff81111561112a57611129610d98565b5b611136858286016110b6565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61116581611140565b811461117057600080fd5b50565b6000813590506111828161115c565b92915050565b60006020828403121561119e5761119d610d93565b5b60006111ac84828501611173565b91505092915050565b6000602082840312156111cb576111ca610d93565b5b60006111d984828501610efb565b91505092915050565b6111eb81610eda565b82525050565b600060408201905061120660008301856111e2565b61121360208301846111e2565b9392505050565b61122381610dbd565b82525050565b600060208201905061123e600083018461121a565b92915050565b600060ff82169050919050565b61125a81611244565b811461126557600080fd5b50565b60008135905061127781611251565b92915050565b60006020828403121561129357611292610d93565b5b60006112a184828501611268565b91505092915050565b60006020820190506112bf60008301846111e2565b92915050565b60008115159050919050565b6112da816112c5565b82525050565b6112e981611244565b82525050565b600060808201905061130460008301876111e2565b611311602083018661121a565b61131e60408301856112d1565b61132b60608301846112e0565b95945050505050565b6000604082019050611349600083018561121a565b611356602083018461121a565b9392505050565b600082825260208201905092915050565b7f496e737566666973616e7420616d6f756e742c20706c6561736520696e63726560008201527f61736520796f7572206265742100000000000000000000000000000000000000602082015250565b60006113ca602d8361135d565b91506113d58261136e565b604082019050919050565b600060208201905081810360008301526113f9816113bd565b9050919050565b7f43616e277420626574206d6f7265207468616e204d41582062657420616d6f7560008201527f6e742e0000000000000000000000000000000000000000000000000000000000602082015250565b600061145c60238361135d565b915061146782611400565b604082019050919050565b6000602082019050818103600083015261148b8161144f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006114cc82610eda565b91506114d783610eda565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156115105761150f611492565b5b828202905092915050565b7f436f6e747261637420646f6573206e6f74206861766520656e6f75676820626160008201527f6c616e6365000000000000000000000000000000000000000000000000000000602082015250565b600061157760258361135d565b91506115828261151b565b604082019050919050565b600060208201905081810360008301526115a68161156a565b9050919050565b7f4d757374206265206569746865722030206f7220310000000000000000000000600082015250565b60006115e360158361135d565b91506115ee826115ad565b602082019050919050565b60006020820190508181036000830152611612816115d6565b9050919050565b600060808201905061162e600083018761121a565b61163b60208301866111e2565b61164860408301856112e0565b61165560608301846111e2565b95945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116ba60268361135d565b91506116c58261165e565b604082019050919050565b600060208201905081810360008301526116e9816116ad565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061172660208361135d565b9150611731826116f0565b602082019050919050565b6000602082019050818103600083015261175581611719565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006117c582610eda565b91506117d083610eda565b9250826117e0576117df61178b565b5b828206905092915050565b6117f481610e28565b82525050565b61180381610e9a565b82525050565b600061ffff82169050919050565b61182081611809565b82525050565b61182f81610e5e565b82525050565b6000819050919050565b6000819050919050565b600061186461185f61185a84611835565b61183f565b610e5e565b9050919050565b61187481611849565b82525050565b600060a08201905061188f60008301886117eb565b61189c60208301876117fa565b6118a96040830186611817565b6118b66060830185611826565b6118c3608083018461186b565b9695505050505050565b6000815190506118dc81610ee4565b92915050565b6000602082840312156118f8576118f7610d93565b5b6000611906848285016118cd565b91505092915050565b7f576861743f000000000000000000000000000000000000000000000000000000600082015250565b600061194560058361135d565b91506119508261190f565b602082019050919050565b6000602082019050818103600083015261197481611938565b9050919050565b600061198682610eda565b915061199183610eda565b9250826119a1576119a061178b565b5b828204905092915050565b60006119b782610eda565b91506119c283610eda565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156119f7576119f6611492565b5b828201905092915050565b6000611a0d82610eda565b9150611a1883610eda565b925082821015611a2b57611a2a611492565b5b828203905092915050565b600060a082019050611a4b600083018861121a565b611a5860208301876112d1565b611a6560408301866111e2565b611a7260608301856112e0565b611a7f60808301846111e2565b969550505050505056fea2646970667358221220f8e4bc57f577c587ee51b40279a6061b6f97107d4e1a815a23e45a04c4e0c8a364736f6c634300080c003300000000000000000000000000000000000000000000000000000000000001f5

Deployed Bytecode

0x6080604052600436106100ab5760003560e01c8063715018a611610064578063715018a6146101b05780638da5cb5b146101c7578063d0821b0e146101f2578063f01daef11461020e578063f0ba844014610239578063f2fde38b14610279576100b2565b806316c58d04146100b757806319521d4a146100e05780631fe543e314610109578063271d2154146101325780632e1a7d4d1461015b5780633c5e310b14610184576100b2565b366100b257005b600080fd5b3480156100c357600080fd5b506100de60048036038101906100d99190610dfb565b6102a2565b005b3480156100ec57600080fd5b5061010760048036038101906101029190610f10565b6102f5565b005b34801561011557600080fd5b50610130600480360381019061012b91906110e4565b610363565b005b34801561013e57600080fd5b5061015960048036038101906101549190611188565b610423565b005b34801561016757600080fd5b50610182600480360381019061017d91906111b5565b610467565b005b34801561019057600080fd5b506101996104b0565b6040516101a79291906111f1565b60405180910390f35b3480156101bc57600080fd5b506101c56104c1565b005b3480156101d357600080fd5b506101dc6104d5565b6040516101e99190611229565b60405180910390f35b61020c6004803603810190610207919061127d565b6104fe565b005b34801561021a57600080fd5b5061022361075d565b60405161023091906112aa565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b91906111b5565b610763565b60405161027094939291906112ef565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190610dfb565b6107cd565b005b6102aa610851565b8073ffffffffffffffffffffffffffffffffffffffff166108fc6007549081150290604051600060405180830381858888f193505050506102ea57600080fd5b600060078190555050565b6102fd610851565b8460048190555083600260146101000a81548163ffffffff021916908363ffffffff16021790555082600260186101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555081600581905550806006819055505050505050565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461041557337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f400000000000000000000000000000000000000000000000000000000815260040161040c929190611334565b60405180910390fd5b61041f82826108cf565b5050565b61042b610851565b80600360006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050565b61046f610851565b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050506104ad57600080fd5b50565b600080600554600654915091509091565b6104c9610851565b6104d3600061090b565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600554341015610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053a906113e0565b60405180910390fd5b600654341115610588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057f90611472565b60405180910390fd5b4760023461059691906114c1565b11156105d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ce9061158d565b60405180910390fd5b60008160ff1614806105ec575060018160ff16145b61062b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610622906115f9565b60405180910390fd5b60006106356109cf565b905060405180608001604052803481526020013373ffffffffffffffffffffffffffffffffffffffff1681526020016001151581526020018360ff16815250600860008381526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160010160146101000a81548160ff02191690831515021790555060608201518160010160156101000a81548160ff021916908360ff1602179055509050507f30fd42e2a59d6a8b5702e7cc510a217c129071b809478e72dc89d3daedcd9739333484846040516107519493929190611619565b60405180910390a15050565b60075481565b60086020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160149054906101000a900460ff16908060010160159054906101000a900460ff16905084565b6107d5610851565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c906116d0565b60405180910390fd5b61084e8161090b565b50565b610859610aa8565b73ffffffffffffffffffffffffffffffffffffffff166108776104d5565b73ffffffffffffffffffffffffffffffffffffffff16146108cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c49061173c565b60405180910390fd5b565b60006002826000815181106108e7576108e661175c565b5b60200260200101516108f991906117ba565b90506109058184610ab0565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600454600260189054906101000a900467ffffffffffffffff166003600260149054906101000a900463ffffffff1660016040518663ffffffff1660e01b8152600401610a6095949392919061187a565b6020604051808303816000875af1158015610a7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa391906118e2565b905090565b600033905090565b60008060086000848152602001908152602001600020604051806080016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160149054906101000a900460ff161515151581526020016001820160159054906101000a900460ff1660ff1660ff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816020015173ffffffffffffffffffffffffffffffffffffffff161415610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd69061195b565b60405180910390fd5b60008460ff16826060015160ff161415610cc657600190506000670de0b6b3a7640000600360009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168460000151610c4291906114c1565b610c4c919061197b565b90508060076000828254610c6091906119ac565b92505081905550826020015173ffffffffffffffffffffffffffffffffffffffff166108fc8260028660000151610c9791906114c1565b610ca19190611a02565b9081150290604051600060405180830381858888f19350505050610cc457600080fd5b505b7fc6460791be6900ecabb03d901b0e5e1bf4bd27126757a5b8f8a7c4b3abab1f658260200151828460000151856060015188604051610d09959493929190611a36565b60405180910390a1600860008581526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160146101000a81549060ff02191690556001820160156101000a81549060ff02191690555050809250505092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610dc882610d9d565b9050919050565b610dd881610dbd565b8114610de357600080fd5b50565b600081359050610df581610dcf565b92915050565b600060208284031215610e1157610e10610d93565b5b6000610e1f84828501610de6565b91505092915050565b6000819050919050565b610e3b81610e28565b8114610e4657600080fd5b50565b600081359050610e5881610e32565b92915050565b600063ffffffff82169050919050565b610e7781610e5e565b8114610e8257600080fd5b50565b600081359050610e9481610e6e565b92915050565b600067ffffffffffffffff82169050919050565b610eb781610e9a565b8114610ec257600080fd5b50565b600081359050610ed481610eae565b92915050565b6000819050919050565b610eed81610eda565b8114610ef857600080fd5b50565b600081359050610f0a81610ee4565b92915050565b600080600080600060a08688031215610f2c57610f2b610d93565b5b6000610f3a88828901610e49565b9550506020610f4b88828901610e85565b9450506040610f5c88828901610ec5565b9350506060610f6d88828901610efb565b9250506080610f7e88828901610efb565b9150509295509295909350565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610fd982610f90565b810181811067ffffffffffffffff82111715610ff857610ff7610fa1565b5b80604052505050565b600061100b610d89565b90506110178282610fd0565b919050565b600067ffffffffffffffff82111561103757611036610fa1565b5b602082029050602081019050919050565b600080fd5b600061106061105b8461101c565b611001565b9050808382526020820190506020840283018581111561108357611082611048565b5b835b818110156110ac57806110988882610efb565b845260208401935050602081019050611085565b5050509392505050565b600082601f8301126110cb576110ca610f8b565b5b81356110db84826020860161104d565b91505092915050565b600080604083850312156110fb576110fa610d93565b5b600061110985828601610efb565b925050602083013567ffffffffffffffff81111561112a57611129610d98565b5b611136858286016110b6565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61116581611140565b811461117057600080fd5b50565b6000813590506111828161115c565b92915050565b60006020828403121561119e5761119d610d93565b5b60006111ac84828501611173565b91505092915050565b6000602082840312156111cb576111ca610d93565b5b60006111d984828501610efb565b91505092915050565b6111eb81610eda565b82525050565b600060408201905061120660008301856111e2565b61121360208301846111e2565b9392505050565b61122381610dbd565b82525050565b600060208201905061123e600083018461121a565b92915050565b600060ff82169050919050565b61125a81611244565b811461126557600080fd5b50565b60008135905061127781611251565b92915050565b60006020828403121561129357611292610d93565b5b60006112a184828501611268565b91505092915050565b60006020820190506112bf60008301846111e2565b92915050565b60008115159050919050565b6112da816112c5565b82525050565b6112e981611244565b82525050565b600060808201905061130460008301876111e2565b611311602083018661121a565b61131e60408301856112d1565b61132b60608301846112e0565b95945050505050565b6000604082019050611349600083018561121a565b611356602083018461121a565b9392505050565b600082825260208201905092915050565b7f496e737566666973616e7420616d6f756e742c20706c6561736520696e63726560008201527f61736520796f7572206265742100000000000000000000000000000000000000602082015250565b60006113ca602d8361135d565b91506113d58261136e565b604082019050919050565b600060208201905081810360008301526113f9816113bd565b9050919050565b7f43616e277420626574206d6f7265207468616e204d41582062657420616d6f7560008201527f6e742e0000000000000000000000000000000000000000000000000000000000602082015250565b600061145c60238361135d565b915061146782611400565b604082019050919050565b6000602082019050818103600083015261148b8161144f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006114cc82610eda565b91506114d783610eda565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156115105761150f611492565b5b828202905092915050565b7f436f6e747261637420646f6573206e6f74206861766520656e6f75676820626160008201527f6c616e6365000000000000000000000000000000000000000000000000000000602082015250565b600061157760258361135d565b91506115828261151b565b604082019050919050565b600060208201905081810360008301526115a68161156a565b9050919050565b7f4d757374206265206569746865722030206f7220310000000000000000000000600082015250565b60006115e360158361135d565b91506115ee826115ad565b602082019050919050565b60006020820190508181036000830152611612816115d6565b9050919050565b600060808201905061162e600083018761121a565b61163b60208301866111e2565b61164860408301856112e0565b61165560608301846111e2565b95945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116ba60268361135d565b91506116c58261165e565b604082019050919050565b600060208201905081810360008301526116e9816116ad565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061172660208361135d565b9150611731826116f0565b602082019050919050565b6000602082019050818103600083015261175581611719565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006117c582610eda565b91506117d083610eda565b9250826117e0576117df61178b565b5b828206905092915050565b6117f481610e28565b82525050565b61180381610e9a565b82525050565b600061ffff82169050919050565b61182081611809565b82525050565b61182f81610e5e565b82525050565b6000819050919050565b6000819050919050565b600061186461185f61185a84611835565b61183f565b610e5e565b9050919050565b61187481611849565b82525050565b600060a08201905061188f60008301886117eb565b61189c60208301876117fa565b6118a96040830186611817565b6118b66060830185611826565b6118c3608083018461186b565b9695505050505050565b6000815190506118dc81610ee4565b92915050565b6000602082840312156118f8576118f7610d93565b5b6000611906848285016118cd565b91505092915050565b7f576861743f000000000000000000000000000000000000000000000000000000600082015250565b600061194560058361135d565b91506119508261190f565b602082019050919050565b6000602082019050818103600083015261197481611938565b9050919050565b600061198682610eda565b915061199183610eda565b9250826119a1576119a061178b565b5b828204905092915050565b60006119b782610eda565b91506119c283610eda565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156119f7576119f6611492565b5b828201905092915050565b6000611a0d82610eda565b9150611a1883610eda565b925082821015611a2b57611a2a611492565b5b828203905092915050565b600060a082019050611a4b600083018861121a565b611a5860208301876112d1565b611a6560408301866111e2565b611a7260608301856112e0565b611a7f60808301846111e2565b969550505050505056fea2646970667358221220f8e4bc57f577c587ee51b40279a6061b6f97107d4e1a815a23e45a04c4e0c8a364736f6c634300080c0033

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

00000000000000000000000000000000000000000000000000000000000001f5

-----Decoded View---------------
Arg [0] : _subscriptionId (uint64): 501

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f5


Deployed Bytecode Sourcemap

16933:4611:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21209:171;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;20866:337;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;6777:261;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;20751:107;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;21386:110;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;20599:118;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;16045:103;;;;;;;;;;;;;:::i;:::-;;15397:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;18914:476;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;17674:39;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;17864:36;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;16303:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;21209:171;15283:13;:11;:13::i;:::-;21306:8:::1;21298:22;;:41;21321:17;;21298:41;;;;;;;;;;;;;;;;;;;;;;;21290:50;;;::::0;::::1;;21371:1;21351:17;:21;;;;21209:171:::0;:::o;20866:337::-;15283:13;:11;:13::i;:::-;21031:8:::1;21021:7;:18;;;;21069:17;21050:16;;:36;;;;;;;;;;;;;;;;;;21114:15;21097:14;;:32;;;;;;;;;;;;;;;;;;21155:7;21140:12;:22;;;;21188:7;21173:12;:22;;;;20866:337:::0;;;;;:::o;6777:261::-;6891:14;6877:28;;:10;:28;;;6873:111;;6949:10;6961:14;6923:53;;;;;;;;;;;;:::i;:::-;;;;;;;;6873:111;6990:42;7009:9;7020:11;6990:18;:42::i;:::-;6777:261;;:::o;20751:107::-;15283:13;:11;:13::i;:::-;20846:4:::1;20823:20;;:27;;;;;;;;;;;;;;;;;;20751:107:::0;:::o;21386:110::-;15283:13;:11;:13::i;:::-;21463:10:::1;21455:24;;:32;21480:6;21455:32;;;;;;;;;;;;;;;;;;;;;;;21447:41;;;::::0;::::1;;21386:110:::0;:::o;20599:118::-;20647:4;20653;20682:12;;20696;;20675:34;;;;20599:118;;:::o;16045:103::-;15283:13;:11;:13::i;:::-;16110:30:::1;16137:1;16110:18;:30::i;:::-;16045:103::o:0;15397:87::-;15443:7;15470:6;;;;;;;;;;;15463:13;;15397:87;:::o;18914:476::-;18597:12;;18584:9;:25;;18576:83;;;;;;;;;;;;:::i;:::-;;;;;;;;;18691:12;;18678:9;:25;;18670:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;18781:21;18775:1;18763:9;:13;;;;:::i;:::-;18762:40;;18754:90;;;;;;;;;;;;:::i;:::-;;;;;;;;;19009:1:::1;18995:10;:15;;;:34;;;;19028:1;19014:10;:15;;;18995:34;18987:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;19068:17;19088:20;:18;:20::i;:::-;19068:40;;19139:159;;;;;;;;19277:9;19139:159;;;;19174:10;19139:159;;;;;;19247:4;19139:159;;;;;;19210:10;19139:159;;;;::::0;19121:4:::1;:15;19126:9;19121:15;;;;;;;;;;;:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19324:58;19337:10;19349:9;19360:10;19372:9;19324:58;;;;;;;;;:::i;:::-;;;;;;;;18976:414;18914:476:::0;:::o;17674:39::-;;;;:::o;17864:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;16303:201::-;15283:13;:11;:13::i;:::-;16412:1:::1;16392:22;;:8;:22;;;;16384:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;16468:28;16487:8;16468:18;:28::i;:::-;16303:201:::0;:::o;15562:132::-;15637:12;:10;:12::i;:::-;15626:23;;:7;:5;:7::i;:::-;:23;;;15618:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;15562:132::o;19652:211::-;19760:18;19805:1;19787:12;19800:1;19787:15;;;;;;;;:::i;:::-;;;;;;;;:19;;;;:::i;:::-;19760:47;;19818:37;19830:12;19844:10;19818:11;:37::i;:::-;;19749:114;19652:211;;:::o;16664:191::-;16738:16;16757:6;;;;;;;;;;;16738:25;;16783:8;16774:6;;:17;;;;;;;;;;;;;;;;;;16838:8;16807:40;;16828:8;16807:40;;;;;;;;;;;;16727:128;16664:191;:::o;19464:180::-;19511:7;19538:11;;;;;;;;;;;:30;;;19569:7;;19578:14;;;;;;;;;;;17319:1;19616:16;;;;;;;;;;;19634:1;19538:98;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;19531:105;;19464:180;:::o;13948:98::-;14001:7;14028:10;14021:17;;13948:98;:::o;19871:696::-;19950:4;19967:15;19985:4;:16;19990:10;19985:16;;;;;;;;;;;19967:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20049:1;20020:31;;:3;:17;;;:31;;;;20012:48;;;;;;;;;;;;:::i;:::-;;;;;;;;;20073:8;20123:13;20106:30;;:3;:13;;;:30;;;20102:304;;;20159:4;20153:10;;20178:18;20241:7;20217:20;;;;;;;;;;;20201:36;;:3;:13;;;:36;;;;:::i;:::-;20200:48;;;;:::i;:::-;20178:71;;20285:13;20264:17;;:34;;;;;;;:::i;:::-;;;;;;;;20331:3;:17;;;20323:31;;:70;20378:13;20373:1;20357:3;:13;;;:17;;;;:::i;:::-;20356:35;;;;:::i;:::-;20323:70;;;;;;;;;;;;;;;;;;;;;;;20315:79;;;;;;20138:268;20102:304;20423:75;20433:3;:17;;;20452:3;20457;:13;;;20472:3;:13;;;20487:10;20423:75;;;;;;;;;;:::i;:::-;;;;;;;;20519:4;:16;20524:10;20519:16;;;;;;;;;;;;20511:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20556:3;20549:10;;;;19871:696;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:77::-;1213:7;1242:5;1231:16;;1176:77;;;:::o;1259:122::-;1332:24;1350:5;1332:24;:::i;:::-;1325:5;1322:35;1312:63;;1371:1;1368;1361:12;1312:63;1259:122;:::o;1387:139::-;1433:5;1471:6;1458:20;1449:29;;1487:33;1514:5;1487:33;:::i;:::-;1387:139;;;;:::o;1532:93::-;1568:7;1608:10;1601:5;1597:22;1586:33;;1532:93;;;:::o;1631:120::-;1703:23;1720:5;1703:23;:::i;:::-;1696:5;1693:34;1683:62;;1741:1;1738;1731:12;1683:62;1631:120;:::o;1757:137::-;1802:5;1840:6;1827:20;1818:29;;1856:32;1882:5;1856:32;:::i;:::-;1757:137;;;;:::o;1900:101::-;1936:7;1976:18;1969:5;1965:30;1954:41;;1900:101;;;:::o;2007:120::-;2079:23;2096:5;2079:23;:::i;:::-;2072:5;2069:34;2059:62;;2117:1;2114;2107:12;2059:62;2007:120;:::o;2133:137::-;2178:5;2216:6;2203:20;2194:29;;2232:32;2258:5;2232:32;:::i;:::-;2133:137;;;;:::o;2276:77::-;2313:7;2342:5;2331:16;;2276:77;;;:::o;2359:122::-;2432:24;2450:5;2432:24;:::i;:::-;2425:5;2422:35;2412:63;;2471:1;2468;2461:12;2412:63;2359:122;:::o;2487:139::-;2533:5;2571:6;2558:20;2549:29;;2587:33;2614:5;2587:33;:::i;:::-;2487:139;;;;:::o;2632:907::-;2725:6;2733;2741;2749;2757;2806:3;2794:9;2785:7;2781:23;2777:33;2774:120;;;2813:79;;:::i;:::-;2774:120;2933:1;2958:53;3003:7;2994:6;2983:9;2979:22;2958:53;:::i;:::-;2948:63;;2904:117;3060:2;3086:52;3130:7;3121:6;3110:9;3106:22;3086:52;:::i;:::-;3076:62;;3031:117;3187:2;3213:52;3257:7;3248:6;3237:9;3233:22;3213:52;:::i;:::-;3203:62;;3158:117;3314:2;3340:53;3385:7;3376:6;3365:9;3361:22;3340:53;:::i;:::-;3330:63;;3285:118;3442:3;3469:53;3514:7;3505:6;3494:9;3490:22;3469:53;:::i;:::-;3459:63;;3413:119;2632:907;;;;;;;;:::o;3545:117::-;3654:1;3651;3644:12;3668:102;3709:6;3760:2;3756:7;3751:2;3744:5;3740:14;3736:28;3726:38;;3668:102;;;:::o;3776:180::-;3824:77;3821:1;3814:88;3921:4;3918:1;3911:15;3945:4;3942:1;3935:15;3962:281;4045:27;4067:4;4045:27;:::i;:::-;4037:6;4033:40;4175:6;4163:10;4160:22;4139:18;4127:10;4124:34;4121:62;4118:88;;;4186:18;;:::i;:::-;4118:88;4226:10;4222:2;4215:22;4005:238;3962:281;;:::o;4249:129::-;4283:6;4310:20;;:::i;:::-;4300:30;;4339:33;4367:4;4359:6;4339:33;:::i;:::-;4249:129;;;:::o;4384:311::-;4461:4;4551:18;4543:6;4540:30;4537:56;;;4573:18;;:::i;:::-;4537:56;4623:4;4615:6;4611:17;4603:25;;4683:4;4677;4673:15;4665:23;;4384:311;;;:::o;4701:117::-;4810:1;4807;4800:12;4841:710;4937:5;4962:81;4978:64;5035:6;4978:64;:::i;:::-;4962:81;:::i;:::-;4953:90;;5063:5;5092:6;5085:5;5078:21;5126:4;5119:5;5115:16;5108:23;;5179:4;5171:6;5167:17;5159:6;5155:30;5208:3;5200:6;5197:15;5194:122;;;5227:79;;:::i;:::-;5194:122;5342:6;5325:220;5359:6;5354:3;5351:15;5325:220;;;5434:3;5463:37;5496:3;5484:10;5463:37;:::i;:::-;5458:3;5451:50;5530:4;5525:3;5521:14;5514:21;;5401:144;5385:4;5380:3;5376:14;5369:21;;5325:220;;;5329:21;4943:608;;4841:710;;;;;:::o;5574:370::-;5645:5;5694:3;5687:4;5679:6;5675:17;5671:27;5661:122;;5702:79;;:::i;:::-;5661:122;5819:6;5806:20;5844:94;5934:3;5926:6;5919:4;5911:6;5907:17;5844:94;:::i;:::-;5835:103;;5651:293;5574:370;;;;:::o;5950:684::-;6043:6;6051;6100:2;6088:9;6079:7;6075:23;6071:32;6068:119;;;6106:79;;:::i;:::-;6068:119;6226:1;6251:53;6296:7;6287:6;6276:9;6272:22;6251:53;:::i;:::-;6241:63;;6197:117;6381:2;6370:9;6366:18;6353:32;6412:18;6404:6;6401:30;6398:117;;;6434:79;;:::i;:::-;6398:117;6539:78;6609:7;6600:6;6589:9;6585:22;6539:78;:::i;:::-;6529:88;;6324:303;5950:684;;;;;:::o;6640:118::-;6677:7;6717:34;6710:5;6706:46;6695:57;;6640:118;;;:::o;6764:122::-;6837:24;6855:5;6837:24;:::i;:::-;6830:5;6827:35;6817:63;;6876:1;6873;6866:12;6817:63;6764:122;:::o;6892:139::-;6938:5;6976:6;6963:20;6954:29;;6992:33;7019:5;6992:33;:::i;:::-;6892:139;;;;:::o;7037:329::-;7096:6;7145:2;7133:9;7124:7;7120:23;7116:32;7113:119;;;7151:79;;:::i;:::-;7113:119;7271:1;7296:53;7341:7;7332:6;7321:9;7317:22;7296:53;:::i;:::-;7286:63;;7242:117;7037:329;;;;:::o;7372:::-;7431:6;7480:2;7468:9;7459:7;7455:23;7451:32;7448:119;;;7486:79;;:::i;:::-;7448:119;7606:1;7631:53;7676:7;7667:6;7656:9;7652:22;7631:53;:::i;:::-;7621:63;;7577:117;7372:329;;;;:::o;7707:118::-;7794:24;7812:5;7794:24;:::i;:::-;7789:3;7782:37;7707:118;;:::o;7831:332::-;7952:4;7990:2;7979:9;7975:18;7967:26;;8003:71;8071:1;8060:9;8056:17;8047:6;8003:71;:::i;:::-;8084:72;8152:2;8141:9;8137:18;8128:6;8084:72;:::i;:::-;7831:332;;;;;:::o;8169:118::-;8256:24;8274:5;8256:24;:::i;:::-;8251:3;8244:37;8169:118;;:::o;8293:222::-;8386:4;8424:2;8413:9;8409:18;8401:26;;8437:71;8505:1;8494:9;8490:17;8481:6;8437:71;:::i;:::-;8293:222;;;;:::o;8521:86::-;8556:7;8596:4;8589:5;8585:16;8574:27;;8521:86;;;:::o;8613:118::-;8684:22;8700:5;8684:22;:::i;:::-;8677:5;8674:33;8664:61;;8721:1;8718;8711:12;8664:61;8613:118;:::o;8737:135::-;8781:5;8819:6;8806:20;8797:29;;8835:31;8860:5;8835:31;:::i;:::-;8737:135;;;;:::o;8878:325::-;8935:6;8984:2;8972:9;8963:7;8959:23;8955:32;8952:119;;;8990:79;;:::i;:::-;8952:119;9110:1;9135:51;9178:7;9169:6;9158:9;9154:22;9135:51;:::i;:::-;9125:61;;9081:115;8878:325;;;;:::o;9209:222::-;9302:4;9340:2;9329:9;9325:18;9317:26;;9353:71;9421:1;9410:9;9406:17;9397:6;9353:71;:::i;:::-;9209:222;;;;:::o;9437:90::-;9471:7;9514:5;9507:13;9500:21;9489:32;;9437:90;;;:::o;9533:109::-;9614:21;9629:5;9614:21;:::i;:::-;9609:3;9602:34;9533:109;;:::o;9648:112::-;9731:22;9747:5;9731:22;:::i;:::-;9726:3;9719:35;9648:112;;:::o;9766:533::-;9933:4;9971:3;9960:9;9956:19;9948:27;;9985:71;10053:1;10042:9;10038:17;10029:6;9985:71;:::i;:::-;10066:72;10134:2;10123:9;10119:18;10110:6;10066:72;:::i;:::-;10148:66;10210:2;10199:9;10195:18;10186:6;10148:66;:::i;:::-;10224:68;10288:2;10277:9;10273:18;10264:6;10224:68;:::i;:::-;9766:533;;;;;;;:::o;10305:332::-;10426:4;10464:2;10453:9;10449:18;10441:26;;10477:71;10545:1;10534:9;10530:17;10521:6;10477:71;:::i;:::-;10558:72;10626:2;10615:9;10611:18;10602:6;10558:72;:::i;:::-;10305:332;;;;;:::o;10643:169::-;10727:11;10761:6;10756:3;10749:19;10801:4;10796:3;10792:14;10777:29;;10643:169;;;;:::o;10818:232::-;10958:34;10954:1;10946:6;10942:14;10935:58;11027:15;11022:2;11014:6;11010:15;11003:40;10818:232;:::o;11056:366::-;11198:3;11219:67;11283:2;11278:3;11219:67;:::i;:::-;11212:74;;11295:93;11384:3;11295:93;:::i;:::-;11413:2;11408:3;11404:12;11397:19;;11056:366;;;:::o;11428:419::-;11594:4;11632:2;11621:9;11617:18;11609:26;;11681:9;11675:4;11671:20;11667:1;11656:9;11652:17;11645:47;11709:131;11835:4;11709:131;:::i;:::-;11701:139;;11428:419;;;:::o;11853:222::-;11993:34;11989:1;11981:6;11977:14;11970:58;12062:5;12057:2;12049:6;12045:15;12038:30;11853:222;:::o;12081:366::-;12223:3;12244:67;12308:2;12303:3;12244:67;:::i;:::-;12237:74;;12320:93;12409:3;12320:93;:::i;:::-;12438:2;12433:3;12429:12;12422:19;;12081:366;;;:::o;12453:419::-;12619:4;12657:2;12646:9;12642:18;12634:26;;12706:9;12700:4;12696:20;12692:1;12681:9;12677:17;12670:47;12734:131;12860:4;12734:131;:::i;:::-;12726:139;;12453:419;;;:::o;12878:180::-;12926:77;12923:1;12916:88;13023:4;13020:1;13013:15;13047:4;13044:1;13037:15;13064:348;13104:7;13127:20;13145:1;13127:20;:::i;:::-;13122:25;;13161:20;13179:1;13161:20;:::i;:::-;13156:25;;13349:1;13281:66;13277:74;13274:1;13271:81;13266:1;13259:9;13252:17;13248:105;13245:131;;;13356:18;;:::i;:::-;13245:131;13404:1;13401;13397:9;13386:20;;13064:348;;;;:::o;13418:224::-;13558:34;13554:1;13546:6;13542:14;13535:58;13627:7;13622:2;13614:6;13610:15;13603:32;13418:224;:::o;13648:366::-;13790:3;13811:67;13875:2;13870:3;13811:67;:::i;:::-;13804:74;;13887:93;13976:3;13887:93;:::i;:::-;14005:2;14000:3;13996:12;13989:19;;13648:366;;;:::o;14020:419::-;14186:4;14224:2;14213:9;14209:18;14201:26;;14273:9;14267:4;14263:20;14259:1;14248:9;14244:17;14237:47;14301:131;14427:4;14301:131;:::i;:::-;14293:139;;14020:419;;;:::o;14445:171::-;14585:23;14581:1;14573:6;14569:14;14562:47;14445:171;:::o;14622:366::-;14764:3;14785:67;14849:2;14844:3;14785:67;:::i;:::-;14778:74;;14861:93;14950:3;14861:93;:::i;:::-;14979:2;14974:3;14970:12;14963:19;;14622:366;;;:::o;14994:419::-;15160:4;15198:2;15187:9;15183:18;15175:26;;15247:9;15241:4;15237:20;15233:1;15222:9;15218:17;15211:47;15275:131;15401:4;15275:131;:::i;:::-;15267:139;;14994:419;;;:::o;15419:545::-;15592:4;15630:3;15619:9;15615:19;15607:27;;15644:71;15712:1;15701:9;15697:17;15688:6;15644:71;:::i;:::-;15725:72;15793:2;15782:9;15778:18;15769:6;15725:72;:::i;:::-;15807:68;15871:2;15860:9;15856:18;15847:6;15807:68;:::i;:::-;15885:72;15953:2;15942:9;15938:18;15929:6;15885:72;:::i;:::-;15419:545;;;;;;;:::o;15970:225::-;16110:34;16106:1;16098:6;16094:14;16087:58;16179:8;16174:2;16166:6;16162:15;16155:33;15970:225;:::o;16201:366::-;16343:3;16364:67;16428:2;16423:3;16364:67;:::i;:::-;16357:74;;16440:93;16529:3;16440:93;:::i;:::-;16558:2;16553:3;16549:12;16542:19;;16201:366;;;:::o;16573:419::-;16739:4;16777:2;16766:9;16762:18;16754:26;;16826:9;16820:4;16816:20;16812:1;16801:9;16797:17;16790:47;16854:131;16980:4;16854:131;:::i;:::-;16846:139;;16573:419;;;:::o;16998:182::-;17138:34;17134:1;17126:6;17122:14;17115:58;16998:182;:::o;17186:366::-;17328:3;17349:67;17413:2;17408:3;17349:67;:::i;:::-;17342:74;;17425:93;17514:3;17425:93;:::i;:::-;17543:2;17538:3;17534:12;17527:19;;17186:366;;;:::o;17558:419::-;17724:4;17762:2;17751:9;17747:18;17739:26;;17811:9;17805:4;17801:20;17797:1;17786:9;17782:17;17775:47;17839:131;17965:4;17839:131;:::i;:::-;17831:139;;17558:419;;;:::o;17983:180::-;18031:77;18028:1;18021:88;18128:4;18125:1;18118:15;18152:4;18149:1;18142:15;18169:180;18217:77;18214:1;18207:88;18314:4;18311:1;18304:15;18338:4;18335:1;18328:15;18355:176;18387:1;18404:20;18422:1;18404:20;:::i;:::-;18399:25;;18438:20;18456:1;18438:20;:::i;:::-;18433:25;;18477:1;18467:35;;18482:18;;:::i;:::-;18467:35;18523:1;18520;18516:9;18511:14;;18355:176;;;;:::o;18537:118::-;18624:24;18642:5;18624:24;:::i;:::-;18619:3;18612:37;18537:118;;:::o;18661:115::-;18746:23;18763:5;18746:23;:::i;:::-;18741:3;18734:36;18661:115;;:::o;18782:89::-;18818:7;18858:6;18851:5;18847:18;18836:29;;18782:89;;;:::o;18877:115::-;18962:23;18979:5;18962:23;:::i;:::-;18957:3;18950:36;18877:115;;:::o;18998:::-;19083:23;19100:5;19083:23;:::i;:::-;19078:3;19071:36;18998:115;;:::o;19119:85::-;19164:7;19193:5;19182:16;;19119:85;;;:::o;19210:60::-;19238:3;19259:5;19252:12;;19210:60;;;:::o;19276:156::-;19333:9;19366:60;19383:42;19392:32;19418:5;19392:32;:::i;:::-;19383:42;:::i;:::-;19366:60;:::i;:::-;19353:73;;19276:156;;;:::o;19438:145::-;19532:44;19570:5;19532:44;:::i;:::-;19527:3;19520:57;19438:145;;:::o;19589:666::-;19795:4;19833:3;19822:9;19818:19;19810:27;;19847:71;19915:1;19904:9;19900:17;19891:6;19847:71;:::i;:::-;19928:70;19994:2;19983:9;19979:18;19970:6;19928:70;:::i;:::-;20008;20074:2;20063:9;20059:18;20050:6;20008:70;:::i;:::-;20088;20154:2;20143:9;20139:18;20130:6;20088:70;:::i;:::-;20168:80;20243:3;20232:9;20228:19;20219:6;20168:80;:::i;:::-;19589:666;;;;;;;;:::o;20261:143::-;20318:5;20349:6;20343:13;20334:22;;20365:33;20392:5;20365:33;:::i;:::-;20261:143;;;;:::o;20410:351::-;20480:6;20529:2;20517:9;20508:7;20504:23;20500:32;20497:119;;;20535:79;;:::i;:::-;20497:119;20655:1;20680:64;20736:7;20727:6;20716:9;20712:22;20680:64;:::i;:::-;20670:74;;20626:128;20410:351;;;;:::o;20767:155::-;20907:7;20903:1;20895:6;20891:14;20884:31;20767:155;:::o;20928:365::-;21070:3;21091:66;21155:1;21150:3;21091:66;:::i;:::-;21084:73;;21166:93;21255:3;21166:93;:::i;:::-;21284:2;21279:3;21275:12;21268:19;;20928:365;;;:::o;21299:419::-;21465:4;21503:2;21492:9;21488:18;21480:26;;21552:9;21546:4;21542:20;21538:1;21527:9;21523:17;21516:47;21580:131;21706:4;21580:131;:::i;:::-;21572:139;;21299:419;;;:::o;21724:185::-;21764:1;21781:20;21799:1;21781:20;:::i;:::-;21776:25;;21815:20;21833:1;21815:20;:::i;:::-;21810:25;;21854:1;21844:35;;21859:18;;:::i;:::-;21844:35;21901:1;21898;21894:9;21889:14;;21724:185;;;;:::o;21915:305::-;21955:3;21974:20;21992:1;21974:20;:::i;:::-;21969:25;;22008:20;22026:1;22008:20;:::i;:::-;22003:25;;22162:1;22094:66;22090:74;22087:1;22084:81;22081:107;;;22168:18;;:::i;:::-;22081:107;22212:1;22209;22205:9;22198:16;;21915:305;;;;:::o;22226:191::-;22266:4;22286:20;22304:1;22286:20;:::i;:::-;22281:25;;22320:20;22338:1;22320:20;:::i;:::-;22315:25;;22359:1;22356;22353:8;22350:34;;;22364:18;;:::i;:::-;22350:34;22409:1;22406;22402:9;22394:17;;22226:191;;;;:::o;22423:644::-;22618:4;22656:3;22645:9;22641:19;22633:27;;22670:71;22738:1;22727:9;22723:17;22714:6;22670:71;:::i;:::-;22751:66;22813:2;22802:9;22798:18;22789:6;22751:66;:::i;:::-;22827:72;22895:2;22884:9;22880:18;22871:6;22827:72;:::i;:::-;22909:68;22973:2;22962:9;22958:18;22949:6;22909:68;:::i;:::-;22987:73;23055:3;23044:9;23040:19;23031:6;22987:73;:::i;:::-;22423:644;;;;;;;;:::o

Swarm Source

ipfs://f8e4bc57f577c587ee51b40279a6061b6f97107d4e1a815a23e45a04c4e0c8a3

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.