MATIC Price: $1.02 (-0.22%)
Gas: 86 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Place Bet348820262022-10-27 23:40:33490 days 2 hrs ago1666914033IN
Polyflip: MATIC Roulette Game
2 MATIC0.0028504298.24296101
Place Bet348820262022-10-27 23:40:33490 days 2 hrs ago1666914033IN
Polyflip: MATIC Roulette Game
2 MATIC0.00299069103.07758116
Place Bet348820262022-10-27 23:40:33490 days 2 hrs ago1666914033IN
Polyflip: MATIC Roulette Game
2 MATIC0.0012420242.80777085
Toggle Game Is L...346649342022-10-22 15:56:13495 days 10 hrs ago1666454173IN
Polyflip: MATIC Roulette Game
0 MATIC0.0027340995.99054496
Place Bet346616852022-10-22 14:04:31495 days 12 hrs ago1666447471IN
Polyflip: MATIC Roulette Game
336 MATIC0.04126063121
Place Bet346609472022-10-22 13:37:19495 days 12 hrs ago1666445839IN
Polyflip: MATIC Roulette Game
17 MATIC0.0531974156
Place Bet346602322022-10-22 13:10:33495 days 13 hrs ago1666444233IN
Polyflip: MATIC Roulette Game
17 MATIC0.04160309122
Place Bet346594482022-10-22 12:43:33495 days 13 hrs ago1666442613IN
Polyflip: MATIC Roulette Game
17 MATIC0.04329094126.9495729
Place Bet346578222022-10-22 11:47:41495 days 14 hrs ago1666439261IN
Polyflip: MATIC Roulette Game
30.5 MATIC0.0296677887
Place Bet346576132022-10-22 11:40:31495 days 14 hrs ago1666438831IN
Polyflip: MATIC Roulette Game
8 MATIC0.0279627382
Place Bet346558672022-10-22 10:38:18495 days 15 hrs ago1666435098IN
Polyflip: MATIC Roulette Game
10 MATIC0.0327345696
Place Bet346558352022-10-22 10:37:14495 days 15 hrs ago1666435034IN
Polyflip: MATIC Roulette Game
20 MATIC0.04966162145.64678785
Place Bet346558022022-10-22 10:36:04495 days 15 hrs ago1666434964IN
Polyflip: MATIC Roulette Game
20 MATIC0.03818897112
Place Bet346557682022-10-22 10:34:56495 days 15 hrs ago1666434896IN
Polyflip: MATIC Roulette Game
13.5 MATIC0.0340985100
Place Bet346557262022-10-22 10:33:28495 days 16 hrs ago1666434808IN
Polyflip: MATIC Roulette Game
7 MATIC0.04330357127
Place Bet346556952022-10-22 10:32:26495 days 16 hrs ago1666434746IN
Polyflip: MATIC Roulette Game
7 MATIC0.03477924102
Place Bet346556602022-10-22 10:31:12495 days 16 hrs ago1666434672IN
Polyflip: MATIC Roulette Game
3 MATIC0.04262012125
Place Bet346556162022-10-22 10:29:44495 days 16 hrs ago1666434584IN
Polyflip: MATIC Roulette Game
10 MATIC0.03750835110
Place Bet346555842022-10-22 10:28:36495 days 16 hrs ago1666434516IN
Polyflip: MATIC Roulette Game
10 MATIC0.04296259126
Place Bet346555492022-10-22 10:27:22495 days 16 hrs ago1666434442IN
Polyflip: MATIC Roulette Game
20 MATIC0.0340973100
Place Bet346555172022-10-22 10:26:18495 days 16 hrs ago1666434378IN
Polyflip: MATIC Roulette Game
10 MATIC0.03546244104
Place Bet346554802022-10-22 10:25:00495 days 16 hrs ago1666434300IN
Polyflip: MATIC Roulette Game
12 MATIC0.0337563299
Place Bet346554512022-10-22 10:24:02495 days 16 hrs ago1666434242IN
Polyflip: MATIC Roulette Game
3 MATIC0.03852859113
Place Bet346554122022-10-22 10:22:40495 days 16 hrs ago1666434160IN
Polyflip: MATIC Roulette Game
15 MATIC0.03443827101
Place Bet346553632022-10-22 10:21:02495 days 16 hrs ago1666434062IN
Polyflip: MATIC Roulette Game
5 MATIC0.0320525994
View all transactions

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
346616852022-10-22 14:04:31495 days 12 hrs ago1666447471
Polyflip: MATIC Roulette Game
336 MATIC
346609472022-10-22 13:37:19495 days 12 hrs ago1666445839
Polyflip: MATIC Roulette Game
17 MATIC
346602322022-10-22 13:10:33495 days 13 hrs ago1666444233
Polyflip: MATIC Roulette Game
17 MATIC
346594482022-10-22 12:43:33495 days 13 hrs ago1666442613
Polyflip: MATIC Roulette Game
17 MATIC
346578222022-10-22 11:47:41495 days 14 hrs ago1666439261
Polyflip: MATIC Roulette Game
30.5 MATIC
346576132022-10-22 11:40:31495 days 14 hrs ago1666438831
Polyflip: MATIC Roulette Game
8 MATIC
346558672022-10-22 10:38:18495 days 15 hrs ago1666435098
Polyflip: MATIC Roulette Game
10 MATIC
346558352022-10-22 10:37:14495 days 15 hrs ago1666435034
Polyflip: MATIC Roulette Game
20 MATIC
346558022022-10-22 10:36:04495 days 15 hrs ago1666434964
Polyflip: MATIC Roulette Game
20 MATIC
346557682022-10-22 10:34:56495 days 15 hrs ago1666434896
Polyflip: MATIC Roulette Game
13.5 MATIC
346557262022-10-22 10:33:28495 days 16 hrs ago1666434808
Polyflip: MATIC Roulette Game
7 MATIC
346556952022-10-22 10:32:26495 days 16 hrs ago1666434746
Polyflip: MATIC Roulette Game
7 MATIC
346556602022-10-22 10:31:12495 days 16 hrs ago1666434672
Polyflip: MATIC Roulette Game
3 MATIC
346556162022-10-22 10:29:44495 days 16 hrs ago1666434584
Polyflip: MATIC Roulette Game
10 MATIC
346555842022-10-22 10:28:36495 days 16 hrs ago1666434516
Polyflip: MATIC Roulette Game
10 MATIC
346555492022-10-22 10:27:22495 days 16 hrs ago1666434442
Polyflip: MATIC Roulette Game
20 MATIC
346555172022-10-22 10:26:18495 days 16 hrs ago1666434378
Polyflip: MATIC Roulette Game
10 MATIC
346554802022-10-22 10:25:00495 days 16 hrs ago1666434300
Polyflip: MATIC Roulette Game
12 MATIC
346554512022-10-22 10:24:02495 days 16 hrs ago1666434242
Polyflip: MATIC Roulette Game
3 MATIC
346554122022-10-22 10:22:40495 days 16 hrs ago1666434160
Polyflip: MATIC Roulette Game
15 MATIC
346553632022-10-22 10:21:02495 days 16 hrs ago1666434062
Polyflip: MATIC Roulette Game
5 MATIC
346553262022-10-22 10:19:41495 days 16 hrs ago1666433981
Polyflip: MATIC Roulette Game
10 MATIC
346552922022-10-22 10:18:29495 days 16 hrs ago1666433909
Polyflip: MATIC Roulette Game
5 MATIC
346552532022-10-22 10:17:11495 days 16 hrs ago1666433831
Polyflip: MATIC Roulette Game
5 MATIC
346552252022-10-22 10:16:11495 days 16 hrs ago1666433771
Polyflip: MATIC Roulette Game
5 MATIC
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Roulette

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-04-25
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

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

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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

interface IERC20 {
    /**
     * @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);

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

library SafeERC20 {
    using Address for address;

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

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

interface IGame {
    function settleBet(bytes32 requestId, uint256[] memory expandedValues) external;
}

interface IHouse {
    function placeBet(address player, uint amount, bool isBonus, uint nftHolderRewardsAmount, uint winnableAmount) payable external;
    function settleBet(address player, uint winnableAmount, bool win) external;
    function refundBet(address player, uint amount, uint winnableAmount) external;
}

interface IVRFManager {
    function sendRequestRandomness() external returns (bytes32);
}

abstract contract Manager is Ownable {
    using SafeERC20 for IERC20;
    IHouse house;
    IVRFManager VRFManager;
    
    uint constant public MODULO = 37;

    // Variables
    bool public gameIsLive;
    uint public minBetAmount = 1 ether;
    uint public maxBetAmount = 300 ether;
    uint public houseEdgeBP = 220;
    uint public nftHoldersRewardsBP = 0;

    address public VRFManagerAddress;

    struct Bet {
        uint8 rollUnder;
        uint40 choice;
        uint40 outcome;
        uint168 placeBlockNumber;
        uint128 amount;
        uint128 winAmount;
        address player;
        bool isSettled;
    }

    Bet[] public bets;
    mapping(bytes32 => uint[]) public betMap;

    modifier isVRFManager {
        require(VRFManagerAddress == msg.sender, "You are not allowed");
        _;
    }

    function betsLength() external view returns (uint) {
        return bets.length;
    }

    // Events
    event BetPlaced(uint indexed betId, address indexed player, uint amount, uint indexed rollUnder, uint choice, bool isBonus, uint note);
    event BetSettled(uint indexed betId, address indexed player, uint amount, uint indexed rollUnder, uint choice, uint outcome, uint winAmount);
    event BetRefunded(uint indexed betId, address indexed player, uint amount);

    // Setter
    function setMinBetAmount(uint _minBetAmount) external onlyOwner {
        require(_minBetAmount < maxBetAmount, "Min amount must be less than max amount");
        minBetAmount = _minBetAmount;
    }

    function setMaxBetAmount(uint _maxBetAmount) external onlyOwner {
        require(_maxBetAmount > minBetAmount, "Max amount must be greater than min amount");
        maxBetAmount = _maxBetAmount;
    }

    function setHouseEdgeBP(uint _houseEdgeBP) external onlyOwner {
        require(gameIsLive == false, "Bets in pending");
        houseEdgeBP = _houseEdgeBP;
    }

    function setNftHoldersRewardsBP(uint _nftHoldersRewardsBP) external onlyOwner {
        nftHoldersRewardsBP = _nftHoldersRewardsBP;
    }

    function toggleGameIsLive() external onlyOwner {
        gameIsLive = !gameIsLive;
    }

    // Converters
    function amountToBettableAmountConverter(uint amount) internal view returns(uint) {
        return amount * (10000 - houseEdgeBP) / 10000;
    }

    function amountToNftHoldersRewardsConverter(uint _amount) internal view returns (uint) {
        return _amount * nftHoldersRewardsBP / 10000;
    }

    function amountToWinnableAmount(uint _amount, uint rollUnder) internal view returns (uint) {
        require(0 < rollUnder && rollUnder <= MODULO, "Win probability out of range");
        uint bettableAmount = amountToBettableAmountConverter(_amount);
        return bettableAmount * MODULO / rollUnder;
    }

    // Methods
    function initializeHouse(address _address) external onlyOwner {
        require(gameIsLive == false, "Bets in pending");
        house = IHouse(_address);
    }

    function initializeVRFManager(address _address) external onlyOwner {
        require(gameIsLive == false, "Bets in pending");
        VRFManager = IVRFManager(_address);
        VRFManagerAddress = _address;
    }

    function withdrawCustomTokenFunds(address beneficiary, uint withdrawAmount, address token) external onlyOwner {
        require(withdrawAmount <= IERC20(token).balanceOf(address(this)), "Withdrawal exceeds limit");
        IERC20(token).safeTransfer(beneficiary, withdrawAmount);
    }
}

contract Roulette is ReentrancyGuard, Manager, IGame {
    uint constant POPCNT_MULT = 0x0000000000002000000000100000000008000000000400000000020000000001;
    uint constant POPCNT_MASK = 0x0001041041041041041041041041041041041041041041041041041041041041;
    uint constant POPCNT_MODULO = 0x3F;

    function placeBet(uint betChoice, uint bonus, uint note) external payable nonReentrant {
        require(gameIsLive, "Game is not live");
        require(betChoice > 0 && betChoice < 2 ** MODULO - 1, "Bet mask not in range");

        uint amount = msg.value;
        bool isBonus;
        if (amount == 0) {
            isBonus = true;
            amount = bonus;
        }
        require(amount >= minBetAmount && amount <= maxBetAmount, "Bet amount not within range");

        uint rollUnder = ((betChoice * POPCNT_MULT) & POPCNT_MASK) % POPCNT_MODULO;

        uint winnableAmount = amountToWinnableAmount(amount, rollUnder);
        uint bettableAmount = amountToBettableAmountConverter(amount);
        uint nftHolderRewardsAmount = amountToNftHoldersRewardsConverter(amount - bettableAmount);
        
        house.placeBet{value: msg.value}(msg.sender, amount, isBonus, nftHolderRewardsAmount, winnableAmount);
        
        uint betId = bets.length;
        betMap[VRFManager.sendRequestRandomness()].push(betId);

        emit BetPlaced(betId, msg.sender, amount, rollUnder, betChoice, isBonus, note);   
        bets.push(Bet({
            rollUnder: uint8(rollUnder),
            choice: uint40(betChoice),
            outcome: 0,
            placeBlockNumber: uint168(block.number),
            amount: uint128(amount),
            winAmount: 0,
            player: msg.sender,
            isSettled: false
        }));
    }

    function settleBet(bytes32 requestId, uint256[] memory expandedValues) external isVRFManager {
        uint[] memory pendingBetIds = betMap[requestId];
        uint i;
        for (i = 0; i < pendingBetIds.length; i++) {
            // The VRFManager is optimized to prevent this from happening, this check is just to make sure that if it happens the tx will not be reverted, if this result is true the bet will be refunded manually later
            if (gasleft() <= 80000) {
                return;
            }
            // The pendingbets are always <= than the expandedValues
            _settleBet(pendingBetIds[i], expandedValues[i]);
        }
    }

    function _settleBet(uint betId, uint256 randomNumber) private nonReentrant {
        Bet storage bet = bets[betId];

        uint amount = bet.amount;
        if (amount == 0 || bet.isSettled == true) {
            return;
        }

        address player = bet.player;
        uint choice = bet.choice;
        uint rollUnder = bet.rollUnder;

        uint outcome = randomNumber % MODULO;
        uint winnableAmount = amountToWinnableAmount(amount, rollUnder);
        uint winAmount = (2 ** outcome) & choice != 0 ? winnableAmount : 0;

        bet.isSettled = true;
        bet.winAmount = uint128(winAmount);
        bet.outcome = uint40(outcome);

        house.settleBet(player, winnableAmount, winAmount > 0);
        emit BetSettled(betId, player, amount, rollUnder, choice, outcome, winAmount);
    }

    function refundBet(uint betId) external nonReentrant {
        require(gameIsLive, "Game is not live");
        Bet storage bet = bets[betId];
        uint amount = bet.amount;

        require(amount > 0, "Bet does not exist");
        require(bet.isSettled == false, "Bet is settled already");
        require(block.number > bet.placeBlockNumber + 21600, "Wait before requesting refund");

        uint winnableAmount = amountToWinnableAmount(amount, bet.rollUnder);
        uint bettedAmount = amountToBettableAmountConverter(amount);
        
        bet.isSettled = true;
        bet.winAmount = uint128(bettedAmount);

        house.refundBet(bet.player, bettedAmount, winnableAmount);
        emit BetRefunded(betId, bet.player, bettedAmount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"betId","type":"uint256"},{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"rollUnder","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"choice","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isBonus","type":"bool"},{"indexed":false,"internalType":"uint256","name":"note","type":"uint256"}],"name":"BetPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"betId","type":"uint256"},{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BetRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"betId","type":"uint256"},{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"rollUnder","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"choice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"outcome","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"winAmount","type":"uint256"}],"name":"BetSettled","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":[],"name":"MODULO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRFManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"betMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bets","outputs":[{"internalType":"uint8","name":"rollUnder","type":"uint8"},{"internalType":"uint40","name":"choice","type":"uint40"},{"internalType":"uint40","name":"outcome","type":"uint40"},{"internalType":"uint168","name":"placeBlockNumber","type":"uint168"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint128","name":"winAmount","type":"uint128"},{"internalType":"address","name":"player","type":"address"},{"internalType":"bool","name":"isSettled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"betsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameIsLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"houseEdgeBP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"initializeHouse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"initializeVRFManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBetAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBetAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftHoldersRewardsBP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"betChoice","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"note","type":"uint256"}],"name":"placeBet","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"betId","type":"uint256"}],"name":"refundBet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_houseEdgeBP","type":"uint256"}],"name":"setHouseEdgeBP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBetAmount","type":"uint256"}],"name":"setMaxBetAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBetAmount","type":"uint256"}],"name":"setMinBetAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftHoldersRewardsBP","type":"uint256"}],"name":"setNftHoldersRewardsBP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256[]","name":"expandedValues","type":"uint256[]"}],"name":"settleBet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleGameIsLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawCustomTokenFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052670de0b6b3a7640000600455681043561a882930000060055560dc600655600060075534801561003357600080fd5b50600160005561004233610047565b610099565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612af080620000a96000396000f3fe60806040526004361061018b5760003560e01c8063a585ec77116100d6578063cfaf17851161007f578063e71c969711610059578063e71c9697146104e8578063f2fde38b146104fb578063fa968eea1461051b57600080fd5b8063cfaf178514610466578063d414d0c214610486578063e1fdb4b4146104c857600080fd5b8063b68eee2a116100b0578063b68eee2a1461041b578063bbd2e01e1461043b578063cab11d5d1461045057600080fd5b8063a585ec77146103c6578063a8586f7b146103e6578063b14c8009146103fb57600080fd5b8063715018a6116101385780637d14bca5116101125780637d14bca5146103705780638da5cb5b14610386578063a045a6fc146103b157600080fd5b8063715018a61461031b57806372da68d2146103305780637cfbc7a51461035057600080fd5b806356892a1c1161016957806356892a1c146102b7578063621999be146102db5780636c188593146102fb57600080fd5b80630b96c58d146101905780630c55f5f1146101b257806322af00fa14610209575b600080fd5b34801561019c57600080fd5b506101b06101ab36600461256a565b610531565b005b3480156101be57600080fd5b506008546101df9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561021557600080fd5b50610229610224366004612585565b610683565b6040805160ff909916895264ffffffffff97881660208a0152969095169587019590955274ffffffffffffffffffffffffffffffffffffffffff90921660608601526fffffffffffffffffffffffffffffffff90811660808601521660a084015273ffffffffffffffffffffffffffffffffffffffff90911660c0830152151560e082015261010001610200565b3480156102c357600080fd5b506102cd60075481565b604051908152602001610200565b3480156102e757600080fd5b506102cd6102f636600461259e565b61075b565b34801561030757600080fd5b506101b0610316366004612585565b61078c565b34801561032757600080fd5b506101b06108a3565b34801561033c57600080fd5b506101b061034b3660046125ef565b610930565b34801561035c57600080fd5b506101b061036b366004612585565b610a7e565b34801561037c57600080fd5b506102cd60065481565b34801561039257600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166101df565b3480156103bd57600080fd5b506101b0610b95565b3480156103d257600080fd5b506101b06103e136600461256a565b610c63565b3480156103f257600080fd5b506102cd602581565b34801561040757600080fd5b506101b06104163660046126d7565b610dba565b34801561042757600080fd5b506101b0610436366004612585565b610f58565b34801561044757600080fd5b506009546102cd565b34801561045c57600080fd5b506102cd60055481565b34801561047257600080fd5b506101b0610481366004612585565b611063565b34801561049257600080fd5b506003546104b89074010000000000000000000000000000000000000000900460ff1681565b6040519015158152602001610200565b3480156104d457600080fd5b506101b06104e3366004612585565b6110e9565b6101b06104f6366004612713565b611547565b34801561050757600080fd5b506101b061051636600461256a565b611c10565b34801561052757600080fd5b506102cd60045481565b60015473ffffffffffffffffffffffffffffffffffffffff1633146105b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035474010000000000000000000000000000000000000000900460ff161561063c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105ae565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6009818154811061069357600080fd5b600091825260209091206003909102018054600182015460029092015460ff808316945064ffffffffff6101008404811694660100000000000085049091169374ffffffffffffffffffffffffffffffffffffffffff6b01000000000000000000000090910416926fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304169173ffffffffffffffffffffffffffffffffffffffff8216917401000000000000000000000000000000000000000090041688565b600a602052816000526040600020818154811061077757600080fd5b90600052602060002001600091509150505481565b60015473ffffffffffffffffffffffffffffffffffffffff16331461080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b600554811061089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4d696e20616d6f756e74206d757374206265206c657373207468616e206d617860448201527f20616d6f756e740000000000000000000000000000000000000000000000000060648201526084016105ae565b600455565b60015473ffffffffffffffffffffffffffffffffffffffff163314610924576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b61092e6000611d40565b565b60085473ffffffffffffffffffffffffffffffffffffffff1633146109b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f596f7520617265206e6f7420616c6c6f7765640000000000000000000000000060448201526064016105ae565b6000828152600a6020908152604080832080548251818502810185019093528083529192909190830182828015610a0757602002820191906000526020600020905b8154815260200190600101908083116109f3575b5050505050905060005b8151811015610a7857620138805a11610a2a5750505050565b610a66828281518110610a3f57610a3f61273f565b6020026020010151848381518110610a5957610a5961273f565b6020026020010151611db7565b80610a708161279d565b915050610a11565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610aff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b6004548111610b90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d617820616d6f756e74206d7573742062652067726561746572207468616e2060448201527f6d696e20616d6f756e740000000000000000000000000000000000000000000060648201526084016105ae565b600555565b60015473ffffffffffffffffffffffffffffffffffffffff163314610c16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610ce4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b60035474010000000000000000000000000000000000000000900460ff1615610d69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105ae565b6003805473ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790915560088054909216179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610e3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec991906127d6565b821115610f32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f5769746864726177616c2065786365656473206c696d6974000000000000000060448201526064016105ae565b610f5373ffffffffffffffffffffffffffffffffffffffff821684846120c4565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610fd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b60035474010000000000000000000000000000000000000000900460ff161561105e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105ae565b600655565b60015473ffffffffffffffffffffffffffffffffffffffff1633146110e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b600755565b60026000541415611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ae565b600260005560035474010000000000000000000000000000000000000000900460ff166111df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105ae565b6000600982815481106111f4576111f461273f565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff1680611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f42657420646f6573206e6f74206578697374000000000000000000000000000060448201526064016105ae565b600282015474010000000000000000000000000000000000000000900460ff161561130c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f42657420697320736574746c656420616c72656164790000000000000000000060448201526064016105ae565b8154611340906b010000000000000000000000900474ffffffffffffffffffffffffffffffffffffffffff166154606127ef565b74ffffffffffffffffffffffffffffffffffffffffff1643116113bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f57616974206265666f72652072657175657374696e6720726566756e6400000060448201526064016105ae565b81546000906113d290839060ff16612151565b905060006113df836121f7565b600285810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff811674010000000000000000000000000000000000000000179091556001870180546fffffffffffffffffffffffffffffffff85811670010000000000000000000000000000000002911617905590546040517f2363f42400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015260248101849052604481018690529293501690632363f42490606401600060405180830381600087803b1580156114d057600080fd5b505af11580156114e4573d6000803e3d6000fd5b50505050600284015460405182815273ffffffffffffffffffffffffffffffffffffffff9091169086907ff22517a5eae9f54be712c3150eca5ba925d233687b223c2ebf89272f12ee08659060200160405180910390a350506001600055505050565b600260005414156115b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ae565b600260005560035474010000000000000000000000000000000000000000900460ff1661163d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105ae565b6000831180156116635750600161165660256002612948565b6116609190612954565b83105b6116c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f426574206d61736b206e6f7420696e2072616e6765000000000000000000000060448201526064016105ae565b346000816116d8575082905060015b60045482101580156116ec57506005548211155b611752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f42657420616d6f756e74206e6f742077697468696e2072616e6765000000000060448201526064016105ae565b6000603f7e0104104104104104104104104104104104104104104104104104104104104161179a7920000000001000000000080000000004000000000200000000018961296b565b166117a591906129d7565b905060006117b38483612151565b905060006117c0856121f7565b905060006117d66117d18388612954565b612220565b6002546040517f519168c6000000000000000000000000000000000000000000000000000000008152336004820152602481018990528715156044820152606481018390526084810186905291925073ffffffffffffffffffffffffffffffffffffffff169063519168c690349060a4016000604051808303818588803b15801561186057600080fd5b505af1158015611874573d6000803e3d6000fd5b5050600954600354604080517f485ba9f00000000000000000000000000000000000000000000000000000000081529051929550600a94506000935073ffffffffffffffffffffffffffffffffffffffff9091169163485ba9f091600480820192602092909190829003018187875af11580156118f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191991906127d6565b8152602080820192909252604090810160009081208054600181018255908252908390200183905580518981529182018c905287151590820152606081018990528590339083907f3bd652df8f45b552741e6ea953843d45e5cff0a6fde4ccbd7cd4e11acd759f3f9060800160405180910390a460096040518061010001604052808760ff1681526020018c64ffffffffff168152602001600064ffffffffff1681526020014374ffffffffffffffffffffffffffffffffffffffffff168152602001896fffffffffffffffffffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548164ffffffffff021916908364ffffffffff16021790555060408201518160000160066101000a81548164ffffffffff021916908364ffffffffff160217905550606082015181600001600b6101000a81548174ffffffffffffffffffffffffffffffffffffffffff021916908374ffffffffffffffffffffffffffffffffffffffffff16021790555060808201518160010160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060a08201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060c08201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060e08201518160020160146101000a81548160ff0219169083151502179055505050505050505050506001600081905550505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611c91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b73ffffffffffffffffffffffffffffffffffffffff8116611d34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105ae565b611d3d81611d40565b50565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026000541415611e24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ae565b600260009081556009805484908110611e3f57611e3f61273f565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff16801580611e975750600282015474010000000000000000000000000000000000000000900460ff1615156001145b15611ea35750506120bb565b6002820154825473ffffffffffffffffffffffffffffffffffffffff9091169064ffffffffff6101008204169060ff166000611ee06025886129d7565b90506000611eee8684612151565b9050600084611efe846002612948565b16611f0a576000611f0c565b815b600289810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560018a0180546fffffffffffffffffffffffffffffffff848116700100000000000000000000000000000000029116179055895464ffffffffff86166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff909116178a55546040517fe433939300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201869052831515604483015292935091169063e433939390606401600060405180830381600087803b15801561203657600080fd5b505af115801561204a573d6000803e3d6000fd5b5050604080518a8152602081018990529081018690526060810184905286925073ffffffffffffffffffffffffffffffffffffffff891691508c907f23625847c1e986fe4d72725731bb8c052c5e3e26ca727151cf722e5e6e2ac9209060800160405180910390a450505050505050505b50506001600055565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f53908490612233565b6000816000108015612164575060258211155b6121ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f57696e2070726f626162696c697479206f7574206f662072616e67650000000060448201526064016105ae565b60006121d5846121f7565b9050826121e360258361296b565b6121ed91906129eb565b9150505b92915050565b600061271060065461271061220c9190612954565b612216908461296b565b6121f191906129eb565b600061271060075483612216919061296b565b6000612295826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661233f9092919063ffffffff16565b805190915015610f5357808060200190518101906122b391906129ff565b610f53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105ae565b606061234e8484600085612358565b90505b9392505050565b6060824710156123ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105ae565b73ffffffffffffffffffffffffffffffffffffffff85163b612468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105ae565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516124919190612a4d565b60006040518083038185875af1925050503d80600081146124ce576040519150601f19603f3d011682016040523d82523d6000602084013e6124d3565b606091505b50915091506124e38282866124ee565b979650505050505050565b606083156124fd575081612351565b82511561250d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ae9190612a69565b803573ffffffffffffffffffffffffffffffffffffffff8116811461256557600080fd5b919050565b60006020828403121561257c57600080fd5b61235182612541565b60006020828403121561259757600080fd5b5035919050565b600080604083850312156125b157600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561260257600080fd5b8235915060208084013567ffffffffffffffff8082111561262257600080fd5b818601915086601f83011261263657600080fd5b813581811115612648576126486125c0565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561268b5761268b6125c0565b6040529182528482019250838101850191898311156126a957600080fd5b938501935b828510156126c7578435845293850193928501926126ae565b8096505050505050509250929050565b6000806000606084860312156126ec57600080fd5b6126f584612541565b92506020840135915061270a60408501612541565b90509250925092565b60008060006060848603121561272857600080fd5b505081359360208301359350604090920135919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156127cf576127cf61276e565b5060010190565b6000602082840312156127e857600080fd5b5051919050565b600074ffffffffffffffffffffffffffffffffffffffffff80831681851680830382111561281f5761281f61276e565b01949350505050565b600181815b8085111561288157817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156128675761286761276e565b8085161561287457918102915b93841c939080029061282d565b509250929050565b600082612898575060016121f1565b816128a5575060006121f1565b81600181146128bb57600281146128c5576128e1565b60019150506121f1565b60ff8411156128d6576128d661276e565b50506001821b6121f1565b5060208310610133831016604e8410600b8410161715612904575081810a6121f1565b61290e8383612828565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156129405761294061276e565b029392505050565b60006123518383612889565b6000828210156129665761296661276e565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129a3576129a361276e565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826129e6576129e66129a8565b500690565b6000826129fa576129fa6129a8565b500490565b600060208284031215612a1157600080fd5b8151801515811461235157600080fd5b60005b83811015612a3c578181015183820152602001612a24565b83811115610a785750506000910152565b60008251612a5f818460208701612a21565b9190910192915050565b6020815260008251806020840152612a88816040850160208701612a21565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122033a8c1ddf466524efc0e9788cc804bc94e2b913e33188b2bdf17e92f065cfa9664736f6c634300080b0033

Deployed Bytecode

0x60806040526004361061018b5760003560e01c8063a585ec77116100d6578063cfaf17851161007f578063e71c969711610059578063e71c9697146104e8578063f2fde38b146104fb578063fa968eea1461051b57600080fd5b8063cfaf178514610466578063d414d0c214610486578063e1fdb4b4146104c857600080fd5b8063b68eee2a116100b0578063b68eee2a1461041b578063bbd2e01e1461043b578063cab11d5d1461045057600080fd5b8063a585ec77146103c6578063a8586f7b146103e6578063b14c8009146103fb57600080fd5b8063715018a6116101385780637d14bca5116101125780637d14bca5146103705780638da5cb5b14610386578063a045a6fc146103b157600080fd5b8063715018a61461031b57806372da68d2146103305780637cfbc7a51461035057600080fd5b806356892a1c1161016957806356892a1c146102b7578063621999be146102db5780636c188593146102fb57600080fd5b80630b96c58d146101905780630c55f5f1146101b257806322af00fa14610209575b600080fd5b34801561019c57600080fd5b506101b06101ab36600461256a565b610531565b005b3480156101be57600080fd5b506008546101df9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561021557600080fd5b50610229610224366004612585565b610683565b6040805160ff909916895264ffffffffff97881660208a0152969095169587019590955274ffffffffffffffffffffffffffffffffffffffffff90921660608601526fffffffffffffffffffffffffffffffff90811660808601521660a084015273ffffffffffffffffffffffffffffffffffffffff90911660c0830152151560e082015261010001610200565b3480156102c357600080fd5b506102cd60075481565b604051908152602001610200565b3480156102e757600080fd5b506102cd6102f636600461259e565b61075b565b34801561030757600080fd5b506101b0610316366004612585565b61078c565b34801561032757600080fd5b506101b06108a3565b34801561033c57600080fd5b506101b061034b3660046125ef565b610930565b34801561035c57600080fd5b506101b061036b366004612585565b610a7e565b34801561037c57600080fd5b506102cd60065481565b34801561039257600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166101df565b3480156103bd57600080fd5b506101b0610b95565b3480156103d257600080fd5b506101b06103e136600461256a565b610c63565b3480156103f257600080fd5b506102cd602581565b34801561040757600080fd5b506101b06104163660046126d7565b610dba565b34801561042757600080fd5b506101b0610436366004612585565b610f58565b34801561044757600080fd5b506009546102cd565b34801561045c57600080fd5b506102cd60055481565b34801561047257600080fd5b506101b0610481366004612585565b611063565b34801561049257600080fd5b506003546104b89074010000000000000000000000000000000000000000900460ff1681565b6040519015158152602001610200565b3480156104d457600080fd5b506101b06104e3366004612585565b6110e9565b6101b06104f6366004612713565b611547565b34801561050757600080fd5b506101b061051636600461256a565b611c10565b34801561052757600080fd5b506102cd60045481565b60015473ffffffffffffffffffffffffffffffffffffffff1633146105b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035474010000000000000000000000000000000000000000900460ff161561063c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105ae565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6009818154811061069357600080fd5b600091825260209091206003909102018054600182015460029092015460ff808316945064ffffffffff6101008404811694660100000000000085049091169374ffffffffffffffffffffffffffffffffffffffffff6b01000000000000000000000090910416926fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304169173ffffffffffffffffffffffffffffffffffffffff8216917401000000000000000000000000000000000000000090041688565b600a602052816000526040600020818154811061077757600080fd5b90600052602060002001600091509150505481565b60015473ffffffffffffffffffffffffffffffffffffffff16331461080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b600554811061089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4d696e20616d6f756e74206d757374206265206c657373207468616e206d617860448201527f20616d6f756e740000000000000000000000000000000000000000000000000060648201526084016105ae565b600455565b60015473ffffffffffffffffffffffffffffffffffffffff163314610924576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b61092e6000611d40565b565b60085473ffffffffffffffffffffffffffffffffffffffff1633146109b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f596f7520617265206e6f7420616c6c6f7765640000000000000000000000000060448201526064016105ae565b6000828152600a6020908152604080832080548251818502810185019093528083529192909190830182828015610a0757602002820191906000526020600020905b8154815260200190600101908083116109f3575b5050505050905060005b8151811015610a7857620138805a11610a2a5750505050565b610a66828281518110610a3f57610a3f61273f565b6020026020010151848381518110610a5957610a5961273f565b6020026020010151611db7565b80610a708161279d565b915050610a11565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610aff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b6004548111610b90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d617820616d6f756e74206d7573742062652067726561746572207468616e2060448201527f6d696e20616d6f756e740000000000000000000000000000000000000000000060648201526084016105ae565b600555565b60015473ffffffffffffffffffffffffffffffffffffffff163314610c16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610ce4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b60035474010000000000000000000000000000000000000000900460ff1615610d69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105ae565b6003805473ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790915560088054909216179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610e3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec991906127d6565b821115610f32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f5769746864726177616c2065786365656473206c696d6974000000000000000060448201526064016105ae565b610f5373ffffffffffffffffffffffffffffffffffffffff821684846120c4565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610fd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b60035474010000000000000000000000000000000000000000900460ff161561105e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105ae565b600655565b60015473ffffffffffffffffffffffffffffffffffffffff1633146110e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b600755565b60026000541415611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ae565b600260005560035474010000000000000000000000000000000000000000900460ff166111df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105ae565b6000600982815481106111f4576111f461273f565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff1680611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f42657420646f6573206e6f74206578697374000000000000000000000000000060448201526064016105ae565b600282015474010000000000000000000000000000000000000000900460ff161561130c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f42657420697320736574746c656420616c72656164790000000000000000000060448201526064016105ae565b8154611340906b010000000000000000000000900474ffffffffffffffffffffffffffffffffffffffffff166154606127ef565b74ffffffffffffffffffffffffffffffffffffffffff1643116113bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f57616974206265666f72652072657175657374696e6720726566756e6400000060448201526064016105ae565b81546000906113d290839060ff16612151565b905060006113df836121f7565b600285810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff811674010000000000000000000000000000000000000000179091556001870180546fffffffffffffffffffffffffffffffff85811670010000000000000000000000000000000002911617905590546040517f2363f42400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015260248101849052604481018690529293501690632363f42490606401600060405180830381600087803b1580156114d057600080fd5b505af11580156114e4573d6000803e3d6000fd5b50505050600284015460405182815273ffffffffffffffffffffffffffffffffffffffff9091169086907ff22517a5eae9f54be712c3150eca5ba925d233687b223c2ebf89272f12ee08659060200160405180910390a350506001600055505050565b600260005414156115b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ae565b600260005560035474010000000000000000000000000000000000000000900460ff1661163d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105ae565b6000831180156116635750600161165660256002612948565b6116609190612954565b83105b6116c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f426574206d61736b206e6f7420696e2072616e6765000000000000000000000060448201526064016105ae565b346000816116d8575082905060015b60045482101580156116ec57506005548211155b611752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f42657420616d6f756e74206e6f742077697468696e2072616e6765000000000060448201526064016105ae565b6000603f7e0104104104104104104104104104104104104104104104104104104104104161179a7920000000001000000000080000000004000000000200000000018961296b565b166117a591906129d7565b905060006117b38483612151565b905060006117c0856121f7565b905060006117d66117d18388612954565b612220565b6002546040517f519168c6000000000000000000000000000000000000000000000000000000008152336004820152602481018990528715156044820152606481018390526084810186905291925073ffffffffffffffffffffffffffffffffffffffff169063519168c690349060a4016000604051808303818588803b15801561186057600080fd5b505af1158015611874573d6000803e3d6000fd5b5050600954600354604080517f485ba9f00000000000000000000000000000000000000000000000000000000081529051929550600a94506000935073ffffffffffffffffffffffffffffffffffffffff9091169163485ba9f091600480820192602092909190829003018187875af11580156118f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191991906127d6565b8152602080820192909252604090810160009081208054600181018255908252908390200183905580518981529182018c905287151590820152606081018990528590339083907f3bd652df8f45b552741e6ea953843d45e5cff0a6fde4ccbd7cd4e11acd759f3f9060800160405180910390a460096040518061010001604052808760ff1681526020018c64ffffffffff168152602001600064ffffffffff1681526020014374ffffffffffffffffffffffffffffffffffffffffff168152602001896fffffffffffffffffffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548164ffffffffff021916908364ffffffffff16021790555060408201518160000160066101000a81548164ffffffffff021916908364ffffffffff160217905550606082015181600001600b6101000a81548174ffffffffffffffffffffffffffffffffffffffffff021916908374ffffffffffffffffffffffffffffffffffffffffff16021790555060808201518160010160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060a08201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060c08201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060e08201518160020160146101000a81548160ff0219169083151502179055505050505050505050506001600081905550505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611c91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ae565b73ffffffffffffffffffffffffffffffffffffffff8116611d34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105ae565b611d3d81611d40565b50565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026000541415611e24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ae565b600260009081556009805484908110611e3f57611e3f61273f565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff16801580611e975750600282015474010000000000000000000000000000000000000000900460ff1615156001145b15611ea35750506120bb565b6002820154825473ffffffffffffffffffffffffffffffffffffffff9091169064ffffffffff6101008204169060ff166000611ee06025886129d7565b90506000611eee8684612151565b9050600084611efe846002612948565b16611f0a576000611f0c565b815b600289810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560018a0180546fffffffffffffffffffffffffffffffff848116700100000000000000000000000000000000029116179055895464ffffffffff86166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff909116178a55546040517fe433939300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201869052831515604483015292935091169063e433939390606401600060405180830381600087803b15801561203657600080fd5b505af115801561204a573d6000803e3d6000fd5b5050604080518a8152602081018990529081018690526060810184905286925073ffffffffffffffffffffffffffffffffffffffff891691508c907f23625847c1e986fe4d72725731bb8c052c5e3e26ca727151cf722e5e6e2ac9209060800160405180910390a450505050505050505b50506001600055565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f53908490612233565b6000816000108015612164575060258211155b6121ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f57696e2070726f626162696c697479206f7574206f662072616e67650000000060448201526064016105ae565b60006121d5846121f7565b9050826121e360258361296b565b6121ed91906129eb565b9150505b92915050565b600061271060065461271061220c9190612954565b612216908461296b565b6121f191906129eb565b600061271060075483612216919061296b565b6000612295826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661233f9092919063ffffffff16565b805190915015610f5357808060200190518101906122b391906129ff565b610f53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105ae565b606061234e8484600085612358565b90505b9392505050565b6060824710156123ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105ae565b73ffffffffffffffffffffffffffffffffffffffff85163b612468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105ae565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516124919190612a4d565b60006040518083038185875af1925050503d80600081146124ce576040519150601f19603f3d011682016040523d82523d6000602084013e6124d3565b606091505b50915091506124e38282866124ee565b979650505050505050565b606083156124fd575081612351565b82511561250d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ae9190612a69565b803573ffffffffffffffffffffffffffffffffffffffff8116811461256557600080fd5b919050565b60006020828403121561257c57600080fd5b61235182612541565b60006020828403121561259757600080fd5b5035919050565b600080604083850312156125b157600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561260257600080fd5b8235915060208084013567ffffffffffffffff8082111561262257600080fd5b818601915086601f83011261263657600080fd5b813581811115612648576126486125c0565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561268b5761268b6125c0565b6040529182528482019250838101850191898311156126a957600080fd5b938501935b828510156126c7578435845293850193928501926126ae565b8096505050505050509250929050565b6000806000606084860312156126ec57600080fd5b6126f584612541565b92506020840135915061270a60408501612541565b90509250925092565b60008060006060848603121561272857600080fd5b505081359360208301359350604090920135919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156127cf576127cf61276e565b5060010190565b6000602082840312156127e857600080fd5b5051919050565b600074ffffffffffffffffffffffffffffffffffffffffff80831681851680830382111561281f5761281f61276e565b01949350505050565b600181815b8085111561288157817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156128675761286761276e565b8085161561287457918102915b93841c939080029061282d565b509250929050565b600082612898575060016121f1565b816128a5575060006121f1565b81600181146128bb57600281146128c5576128e1565b60019150506121f1565b60ff8411156128d6576128d661276e565b50506001821b6121f1565b5060208310610133831016604e8410600b8410161715612904575081810a6121f1565b61290e8383612828565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156129405761294061276e565b029392505050565b60006123518383612889565b6000828210156129665761296661276e565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129a3576129a361276e565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826129e6576129e66129a8565b500690565b6000826129fa576129fa6129a8565b500490565b600060208284031215612a1157600080fd5b8151801515811461235157600080fd5b60005b83811015612a3c578181015183820152602001612a24565b83811115610a785750506000910152565b60008251612a5f818460208701612a21565b9190910192915050565b6020815260008251806020840152612a88816040850160208701612a21565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122033a8c1ddf466524efc0e9788cc804bc94e2b913e33188b2bdf17e92f065cfa9664736f6c634300080b0033

Deployed Bytecode Sourcemap

22380:4088:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21689:163;;;;;;;;;;-1:-1:-1;21689:163:0;;;;;:::i;:::-;;:::i;:::-;;19205:32;;;;;;;;;;-1:-1:-1;19205:32:0;;;;;;;;;;;582:42:1;570:55;;;552:74;;540:2;525:18;19205:32:0;;;;;;;;19486:17;;;;;;;;;;-1:-1:-1;19486:17:0;;;;;:::i;:::-;;:::i;:::-;;;;1181:4:1;1169:17;;;1151:36;;1206:12;1254:15;;;1249:2;1234:18;;1227:43;1306:15;;;;1286:18;;;1279:43;;;;1370:44;1358:57;;;1353:2;1338:18;;1331:85;1435:34;1506:15;;;1500:3;1485:19;;1478:44;1559:15;1553:3;1538:19;;1531:44;1624:42;1612:55;;;1606:3;1591:19;;1584:84;1712:14;1705:22;1699:3;1684:19;;1677:51;1138:3;1123:19;19486:17:0;822:912:1;19161:35:0;;;;;;;;;;;;;;;;;;;1885:25:1;;;1873:2;1858:18;19161:35:0;1739:177:1;19510:40:0;;;;;;;;;;-1:-1:-1;19510:40:0;;;;;:::i;:::-;;:::i;20180:202::-;;;;;;;;;;-1:-1:-1;20180:202:0;;;;;:::i;:::-;;:::i;3201:103::-;;;;;;;;;;;;;:::i;24171:671::-;;;;;;;;;;-1:-1:-1;24171:671:0;;;;;:::i;:::-;;:::i;20390:205::-;;;;;;;;;;-1:-1:-1;20390:205:0;;;;;:::i;:::-;;:::i;19125:29::-;;;;;;;;;;;;;;;;2550:87;;;;;;;;;;-1:-1:-1;2623:6:0;;;;2550:87;;20923:90;;;;;;;;;;;;;:::i;21860:217::-;;;;;;;;;;-1:-1:-1;21860:217:0;;;;;:::i;:::-;;:::i;18953:32::-;;;;;;;;;;;;18983:2;18953:32;;22085:288;;;;;;;;;;-1:-1:-1;22085:288:0;;;;;:::i;:::-;;:::i;20603:165::-;;;;;;;;;;-1:-1:-1;20603:165:0;;;;;:::i;:::-;;:::i;19683:88::-;;;;;;;;;;-1:-1:-1;19752:4:0;:11;19683:88;;19082:36;;;;;;;;;;;;;;;;20776:139;;;;;;;;;;-1:-1:-1;20776:139:0;;;;;:::i;:::-;;:::i;19012:22::-;;;;;;;;;;-1:-1:-1;19012:22:0;;;;;;;;;;;;;;4108:14:1;;4101:22;4083:41;;4071:2;4056:18;19012:22:0;3943:187:1;25692:773:0;;;;;;;;;;-1:-1:-1;25692:773:0;;;;;:::i;:::-;;:::i;22685:1478::-;;;;;;:::i;:::-;;:::i;3459:201::-;;;;;;;;;;-1:-1:-1;3459:201:0;;;;;:::i;:::-;;:::i;19041:34::-;;;;;;;;;;;;;;;;21689:163;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;;;;;;;;;21770:10:::1;::::0;;;::::1;;;:19;21762:47;;;::::0;::::1;::::0;;5019:2:1;21762:47:0::1;::::0;::::1;5001:21:1::0;5058:2;5038:18;;;5031:30;5097:17;5077:18;;;5070:45;5132:18;;21762:47:0::1;4817:339:1::0;21762:47:0::1;21820:5;:24:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;21689:163::o;19486:17::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19486:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;19510:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;20180:202::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;20279:12:::1;;20263:13;:28;20255:80;;;::::0;::::1;::::0;;5363:2:1;20255:80:0::1;::::0;::::1;5345:21:1::0;5402:2;5382:18;;;5375:30;5441:34;5421:18;;;5414:62;5512:9;5492:18;;;5485:37;5539:19;;20255:80:0::1;5161:403:1::0;20255:80:0::1;20346:12;:28:::0;20180:202::o;3201:103::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;3266:30:::1;3293:1;3266:18;:30::i;:::-;3201:103::o:0;24171:671::-;19600:17;;:31;:17;19621:10;19600:31;19592:63;;;;;;;5771:2:1;19592:63:0;;;5753:21:1;5810:2;5790:18;;;5783:30;5849:21;5829:18;;;5822:49;5888:18;;19592:63:0;5569:343:1;19592:63:0;24275:27:::1;24305:17:::0;;;:6:::1;:17;::::0;;;;;;;24275:47;;;;;;::::1;::::0;;;;;;;;;;;;24305:17;;24275:47;;::::1;24305:17:::0;24275:47;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24333:6;24350:485;24366:13;:20;24362:1;:24;24350:485;;;24644:5;24631:9;:18;24627:65;;24670:7;;24171:671:::0;;:::o;24627:65::-:1;24776:47;24787:13;24801:1;24787:16;;;;;;;;:::i;:::-;;;;;;;24805:14;24820:1;24805:17;;;;;;;;:::i;:::-;;;;;;;24776:10;:47::i;:::-;24388:3:::0;::::1;::::0;::::1;:::i;:::-;;;;24350:485;;;24264:578;;24171:671:::0;;:::o;20390:205::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;20489:12:::1;;20473:13;:28;20465:83;;;::::0;::::1;::::0;;6697:2:1;20465:83:0::1;::::0;::::1;6679:21:1::0;6736:2;6716:18;;;6709:30;6775:34;6755:18;;;6748:62;6846:12;6826:18;;;6819:40;6876:19;;20465:83:0::1;6495:406:1::0;20465:83:0::1;20559:12;:28:::0;20390:205::o;20923:90::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;20995:10:::1;::::0;;20981:24;;::::1;20995:10:::0;;;;::::1;;;20994:11;20981:24:::0;;::::1;;::::0;;20923:90::o;21860:217::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;21946:10:::1;::::0;;;::::1;;;:19;21938:47;;;::::0;::::1;::::0;;5019:2:1;21938:47:0::1;::::0;::::1;5001:21:1::0;5058:2;5038:18;;;5031:30;5097:17;5077:18;;;5070:45;5132:18;;21938:47:0::1;4817:339:1::0;21938:47:0::1;21996:10;:34:::0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;22041:17:::1;:28:::0;;;;::::1;;::::0;;21860:217::o;22085:288::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;22232:38:::1;::::0;;;;22264:4:::1;22232:38;::::0;::::1;552:74:1::0;22232:23:0::1;::::0;::::1;::::0;::::1;::::0;525:18:1;;22232:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22214:14;:56;;22206:93;;;::::0;::::1;::::0;;7297:2:1;22206:93:0::1;::::0;::::1;7279:21:1::0;7336:2;7316:18;;;7309:30;7375:26;7355:18;;;7348:54;7419:18;;22206:93:0::1;7095:348:1::0;22206:93:0::1;22310:55;:26;::::0;::::1;22337:11:::0;22350:14;22310:26:::1;:55::i;:::-;22085:288:::0;;;:::o;20603:165::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;20684:10:::1;::::0;;;::::1;;;:19;20676:47;;;::::0;::::1;::::0;;5019:2:1;20676:47:0::1;::::0;::::1;5001:21:1::0;5058:2;5038:18;;;5031:30;5097:17;5077:18;;;5070:45;5132:18;;20676:47:0::1;4817:339:1::0;20676:47:0::1;20734:11;:26:::0;20603:165::o;20776:139::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;20865:19:::1;:42:::0;20776:139::o;25692:773::-;944:1;1542:7;;:19;;1534:63;;;;;;;7650:2:1;1534:63:0;;;7632:21:1;7689:2;7669:18;;;7662:30;7728:33;7708:18;;;7701:61;7779:18;;1534:63:0;7448:355:1;1534:63:0;944:1;1675:7;:18;25764:10:::1;::::0;;;::::1;;;25756:39;;;::::0;::::1;::::0;;8010:2:1;25756:39:0::1;::::0;::::1;7992:21:1::0;8049:2;8029:18;;;8022:30;8088:18;8068;;;8061:46;8124:18;;25756:39:0::1;7808:340:1::0;25756:39:0::1;25806:15;25824:4;25829:5;25824:11;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;25860:10;::::0;::::1;::::0;25824:11;;-1:-1:-1;25860:10:0::1;;::::0;25883:41:::1;;;::::0;::::1;::::0;;8355:2:1;25883:41:0::1;::::0;::::1;8337:21:1::0;8394:2;8374:18;;;8367:30;8433:20;8413:18;;;8406:48;8471:18;;25883:41:0::1;8153:342:1::0;25883:41:0::1;25943:13;::::0;::::1;::::0;;;::::1;;;:22;25935:57;;;::::0;::::1;::::0;;8702:2:1;25935:57:0::1;::::0;::::1;8684:21:1::0;8741:2;8721:18;;;8714:30;8780:24;8760:18;;;8753:52;8822:18;;25935:57:0::1;8500:346:1::0;25935:57:0::1;26026:20:::0;;:28:::1;::::0;:20;;::::1;;;26049:5;26026:28;:::i;:::-;26011:43;;:12;:43;26003:85;;;::::0;::::1;::::0;;9321:2:1;26003:85:0::1;::::0;::::1;9303:21:1::0;9360:2;9340:18;;;9333:30;9399:31;9379:18;;;9372:59;9448:18;;26003:85:0::1;9119:353:1::0;26003:85:0::1;26154:13:::0;;26101:19:::1;::::0;26123:45:::1;::::0;26146:6;;26154:13:::1;;26123:22;:45::i;:::-;26101:67;;26179:17;26199:39;26231:6;26199:31;:39::i;:::-;26259:13;::::0;;::::1;:20:::0;;;;::::1;::::0;::::1;::::0;;;-1:-1:-1;26290:13:0;::::1;:37:::0;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;;::::0;;26340:5;;:57:::1;::::0;;;;:5:::1;26356:10:::0;;;26340:57:::1;::::0;::::1;9679:74:1::0;9769:18;;;9762:34;;;9812:18;;;9805:34;;;26290:37:0;;-1:-1:-1;26340:5:0::1;::::0;:15:::1;::::0;9652:18:1;;26340:57:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;26432:10:0::1;::::0;::::1;::::0;26413:44:::1;::::0;1885:25:1;;;26432:10:0::1;::::0;;::::1;::::0;26425:5;;26413:44:::1;::::0;1873:2:1;1858:18;26413:44:0::1;;;;;;;-1:-1:-1::0;;900:1:0;1854:7;:22;-1:-1:-1;;;25692:773:0:o;22685:1478::-;944:1;1542:7;;:19;;1534:63;;;;;;;7650:2:1;1534:63:0;;;7632:21:1;7689:2;7669:18;;;7662:30;7728:33;7708:18;;;7701:61;7779:18;;1534:63:0;7448:355:1;1534:63:0;944:1;1675:7;:18;22791:10:::1;::::0;;;::::1;;;22783:39;;;::::0;::::1;::::0;;8010:2:1;22783:39:0::1;::::0;::::1;7992:21:1::0;8049:2;8029:18;;;8022:30;8088:18;8068;;;8061:46;8124:18;;22783:39:0::1;7808:340:1::0;22783:39:0::1;22853:1;22841:9;:13;:44;;;;-1:-1:-1::0;22884:1:0::1;22870:11;18983:2;22870:1;:11;:::i;:::-;:15;;;;:::i;:::-;22858:9;:27;22841:44;22833:78;;;::::0;::::1;::::0;;11676:2:1;22833:78:0::1;::::0;::::1;11658:21:1::0;11715:2;11695:18;;;11688:30;11754:23;11734:18;;;11727:51;11795:18;;22833:78:0::1;11474:345:1::0;22833:78:0::1;22938:9;22924:11;22985::::0;22981:87:::1;;-1:-1:-1::0;23051:5:0;;-1:-1:-1;23023:4:0::1;22981:87;23096:12;;23086:6;:22;;:48;;;;;23122:12;;23112:6;:22;;23086:48;23078:88;;;::::0;::::1;::::0;;12026:2:1;23078:88:0::1;::::0;::::1;12008:21:1::0;12065:2;12045:18;;;12038:30;12104:29;12084:18;;;12077:57;12151:18;;23078:88:0::1;11824:351:1::0;23078:88:0::1;23179:14;22672:4;22569:66;23198:23;22468:66;23198:9:::0;:23:::1;:::i;:::-;23197:39;23196:57;;;;:::i;:::-;23179:74;;23266:19;23288:41;23311:6;23319:9;23288:22;:41::i;:::-;23266:63;;23340:19;23362:39;23394:6;23362:31;:39::i;:::-;23340:61:::0;-1:-1:-1;23412:27:0::1;23442:59;23477:23;23340:61:::0;23477:6;:23:::1;:::i;:::-;23442:34;:59::i;:::-;23522:5;::::0;:101:::1;::::0;;;;23555:10:::1;23522:101;::::0;::::1;12972:74:1::0;13062:18;;;13055:34;;;13132:14;;13125:22;13105:18;;;13098:50;13164:18;;;13157:34;;;13207:19;;;13200:35;;;23412:89:0;;-1:-1:-1;23522:5:0::1;;::::0;:14:::1;::::0;23544:9:::1;::::0;12944:19:1;;23522:101:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;23657:4:0::1;:11:::0;23686:10:::1;::::0;:34:::1;::::0;;;;;;;23657:11;;-1:-1:-1;23679:6:0::1;::::0;-1:-1:-1;23644:10:0::1;::::0;-1:-1:-1;23686:10:0::1;::::0;;::::1;::::0;:32:::1;::::0;:34:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;23644:10;23686;:34:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23679:42:::0;;::::1;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;23679:42:0;;;:54;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;23751:73;;13660:25:1;;;13701:18;;;13694:34;;;13771:14;;13764:22;13744:18;;;13737:50;13818:2;13803:18;;13796:34;;;23788:9:0;;23768:10:::1;::::0;23727:5;;23751:73:::1;::::0;13647:3:1;13632:19;23751:73:0::1;;;;;;;23838:4;23848:306;;;;;;;;23884:9;23848:306;;;;;;23924:9;23848:306;;;;;;23958:1;23848:306;;;;;;24000:12;23848:306;;;;;;24044:6;23848:306;;;;;;24077:1;23848:306;;;;;;24101:10;23848:306;;;;;;24137:5;23848:306;;;;::::0;23838:317:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22772:1391;;;;;;;900:1:::0;1854:7;:22;;;;22685:1478;;;:::o;3459:201::-;2623:6;;2770:23;2623:6;2004:10;2770:23;2762:68;;;;;;;4658:2:1;2762:68:0;;;4640:21:1;;;4677:18;;;4670:30;4736:34;4716:18;;;4709:62;4788:18;;2762:68:0;4456:356:1;2762:68:0;3548:22:::1;::::0;::::1;3540:73;;;::::0;::::1;::::0;;14043:2:1;3540:73:0::1;::::0;::::1;14025:21:1::0;14082:2;14062:18;;;14055:30;14121:34;14101:18;;;14094:62;14192:8;14172:18;;;14165:36;14218:19;;3540:73:0::1;13841:402:1::0;3540:73:0::1;3624:28;3643:8;3624:18;:28::i;:::-;3459:201:::0;:::o;3820:191::-;3913:6;;;;3930:17;;;;;;;;;;;3963:40;;3913:6;;;3930:17;3913:6;;3963:40;;3894:16;;3963:40;3883:128;3820:191;:::o;24850:834::-;944:1;1542:7;;:19;;1534:63;;;;;;;7650:2:1;1534:63:0;;;7632:21:1;7689:2;7669:18;;;7662:30;7728:33;7708:18;;;7701:61;7779:18;;1534:63:0;7448:355:1;1534:63:0;944:1;1675:7;:18;;;24954:4:::1;:11:::0;;24959:5;;24954:11;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;24992:10;::::0;::::1;::::0;24954:11;;-1:-1:-1;24992:10:0::1;;25017:11:::0;;;:36:::1;;-1:-1:-1::0;25032:13:0::1;::::0;::::1;::::0;;;::::1;;;:21;;25049:4;25032:21;25017:36;25013:75;;;25070:7;;;;25013:75;25117:10;::::0;::::1;::::0;25152;;25117::::1;::::0;;::::1;::::0;25152::::1;25117;25152::::0;::::1;;::::0;25190:13:::1;;25100:14;25231:21;18983:2;25231:12:::0;:21:::1;:::i;:::-;25216:36;;25263:19;25285:41;25308:6;25316:9;25285:22;:41::i;:::-;25263:63:::0;-1:-1:-1;25337:14:0::1;25371:6:::0;25355:12:::1;25360:7:::0;25355:1:::1;:12;:::i;:::-;25354:23;:49;;25402:1;25354:49;;;25385:14;25354:49;25416:13;::::0;;::::1;:20:::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;25447:13:0;::::1;:34:::0;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;;::::0;;25492:29;;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;;::::0;;25534:5;:54:::1;::::0;;;;:5:::1;14462:55:1::0;;;25534:54:0::1;::::0;::::1;14444:74:1::0;14534:18;;;14527:34;;;25574:13:0;;;14577:18:1;;;14570:50;25447:34:0;;-1:-1:-1;25534:5:0;::::1;::::0;:15:::1;::::0;14417:18:1;;25534:54:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;25604:72:0::1;::::0;;14862:25:1;;;14918:2;14903:18;;14896:34;;;14946:18;;;14939:34;;;15004:2;14989:18;;14982:34;;;25638:9:0;;-1:-1:-1;25604:72:0::1;::::0;::::1;::::0;-1:-1:-1;25615:5:0;;25604:72:::1;::::0;14849:3:1;14834:19;25604:72:0::1;;;;;;;24925:759;;;;;;;;1706:1;-1:-1:-1::0;;900:1:0;1854:7;:22;24850:834::o;14996:211::-;15140:58;;;15231:42:1;15219:55;;15140:58:0;;;15201:74:1;15291:18;;;;15284:34;;;15140:58:0;;;;;;;;;;15174:18:1;;;;15140:58:0;;;;;;;;;;15163:23;15140:58;;;15113:86;;15133:5;;15113:19;:86::i;21352:313::-;21437:4;21466:9;21462:1;:13;:36;;;;;18983:2;21479:9;:19;;21462:36;21454:77;;;;;;;15531:2:1;21454:77:0;;;15513:21:1;15570:2;15550:18;;;15543:30;15609;15589:18;;;15582:58;15657:18;;21454:77:0;15329:352:1;21454:77:0;21542:19;21564:40;21596:7;21564:31;:40::i;:::-;21542:62;-1:-1:-1;21648:9:0;21622:23;18983:2;21542:62;21622:23;:::i;:::-;:35;;;;:::i;:::-;21615:42;;;21352:313;;;;;:::o;21040:146::-;21116:4;21173:5;21158:11;;21150:5;:19;;;;:::i;:::-;21140:30;;:6;:30;:::i;:::-;:38;;;;:::i;21194:150::-;21275:4;21331:5;21309:19;;21299:7;:29;;;;:::i;17569:716::-;17993:23;18019:69;18047:4;18019:69;;;;;;;;;;;;;;;;;18027:5;18019:27;;;;:69;;;;;:::i;:::-;18103:17;;17993:95;;-1:-1:-1;18103:21:0;18099:179;;18200:10;18189:30;;;;;;;;;;;;:::i;:::-;18181:85;;;;;;;16295:2:1;18181:85:0;;;16277:21:1;16334:2;16314:18;;;16307:30;16373:34;16353:18;;;16346:62;16444:12;16424:18;;;16417:40;16474:19;;18181:85:0;16093:406:1;7771:229:0;7908:12;7940:52;7962:6;7970:4;7976:1;7979:12;7940:21;:52::i;:::-;7933:59;;7771:229;;;;;;:::o;8891:510::-;9061:12;9119:5;9094:21;:30;;9086:81;;;;;;;16706:2:1;9086:81:0;;;16688:21:1;16745:2;16725:18;;;16718:30;16784:34;16764:18;;;16757:62;16855:8;16835:18;;;16828:36;16881:19;;9086:81:0;16504:402:1;9086:81:0;5321:19;;;;9178:60;;;;;;;17113:2:1;9178:60:0;;;17095:21:1;17152:2;17132:18;;;17125:30;17191:31;17171:18;;;17164:59;17240:18;;9178:60:0;16911:353:1;9178:60:0;9252:12;9266:23;9293:6;:11;;9312:5;9319:4;9293:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9251:73;;;;9342:51;9359:7;9368:10;9380:12;9342:16;:51::i;:::-;9335:58;8891:510;-1:-1:-1;;;;;;;8891:510:0:o;11577:712::-;11727:12;11756:7;11752:530;;;-1:-1:-1;11787:10:0;11780:17;;11752:530;11901:17;;:21;11897:374;;12099:10;12093:17;12160:15;12147:10;12143:2;12139:19;12132:44;11897:374;12242:12;12235:20;;;;;;;;;;;:::i;14:196:1:-;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;637:180::-;696:6;749:2;737:9;728:7;724:23;720:32;717:52;;;765:1;762;755:12;717:52;-1:-1:-1;788:23:1;;637:180;-1:-1:-1;637:180:1:o;1921:248::-;1989:6;1997;2050:2;2038:9;2029:7;2025:23;2021:32;2018:52;;;2066:1;2063;2056:12;2018:52;-1:-1:-1;;2089:23:1;;;2159:2;2144:18;;;2131:32;;-1:-1:-1;1921:248:1:o;2174:184::-;2226:77;2223:1;2216:88;2323:4;2320:1;2313:15;2347:4;2344:1;2337:15;2363:1242;2456:6;2464;2517:2;2505:9;2496:7;2492:23;2488:32;2485:52;;;2533:1;2530;2523:12;2485:52;2569:9;2556:23;2546:33;;2598:2;2651;2640:9;2636:18;2623:32;2674:18;2715:2;2707:6;2704:14;2701:34;;;2731:1;2728;2721:12;2701:34;2769:6;2758:9;2754:22;2744:32;;2814:7;2807:4;2803:2;2799:13;2795:27;2785:55;;2836:1;2833;2826:12;2785:55;2872:2;2859:16;2894:2;2890;2887:10;2884:36;;;2900:18;;:::i;:::-;2946:2;2943:1;2939:10;2978:2;2972:9;3037:66;3032:2;3028;3024:11;3020:84;3012:6;3008:97;3155:6;3143:10;3140:22;3135:2;3123:10;3120:18;3117:46;3114:72;;;3166:18;;:::i;:::-;3202:2;3195:22;3252:18;;;3286:15;;;;-1:-1:-1;3328:11:1;;;3324:20;;;3356:19;;;3353:39;;;3388:1;3385;3378:12;3353:39;3412:11;;;;3432:142;3448:6;3443:3;3440:15;3432:142;;;3514:17;;3502:30;;3465:12;;;;3552;;;;3432:142;;;3593:6;3583:16;;;;;;;;2363:1242;;;;;:::o;3610:328::-;3687:6;3695;3703;3756:2;3744:9;3735:7;3731:23;3727:32;3724:52;;;3772:1;3769;3762:12;3724:52;3795:29;3814:9;3795:29;:::i;:::-;3785:39;;3871:2;3860:9;3856:18;3843:32;3833:42;;3894:38;3928:2;3917:9;3913:18;3894:38;:::i;:::-;3884:48;;3610:328;;;;;:::o;4135:316::-;4212:6;4220;4228;4281:2;4269:9;4260:7;4256:23;4252:32;4249:52;;;4297:1;4294;4287:12;4249:52;-1:-1:-1;;4320:23:1;;;4390:2;4375:18;;4362:32;;-1:-1:-1;4441:2:1;4426:18;;;4413:32;;4135:316;-1:-1:-1;4135:316:1:o;5917:184::-;5969:77;5966:1;5959:88;6066:4;6063:1;6056:15;6090:4;6087:1;6080:15;6106:184;6158:77;6155:1;6148:88;6255:4;6252:1;6245:15;6279:4;6276:1;6269:15;6295:195;6334:3;6365:66;6358:5;6355:77;6352:103;;;6435:18;;:::i;:::-;-1:-1:-1;6482:1:1;6471:13;;6295:195::o;6906:184::-;6976:6;7029:2;7017:9;7008:7;7004:23;7000:32;6997:52;;;7045:1;7042;7035:12;6997:52;-1:-1:-1;7068:16:1;;6906:184;-1:-1:-1;6906:184:1:o;8851:263::-;8891:3;8919:44;8990:2;8987:1;8983:10;9020:2;9017:1;9013:10;9051:3;9047:2;9043:12;9038:3;9035:21;9032:47;;;9059:18;;:::i;:::-;9095:13;;8851:263;-1:-1:-1;;;;8851:263:1:o;9850:482::-;9939:1;9982:5;9939:1;9996:330;10017:7;10007:8;10004:21;9996:330;;;10136:4;10068:66;10064:77;10058:4;10055:87;10052:113;;;10145:18;;:::i;:::-;10195:7;10185:8;10181:22;10178:55;;;10215:16;;;;10178:55;10294:22;;;;10254:15;;;;9996:330;;;10000:3;9850:482;;;;;:::o;10337:866::-;10386:5;10416:8;10406:80;;-1:-1:-1;10457:1:1;10471:5;;10406:80;10505:4;10495:76;;-1:-1:-1;10542:1:1;10556:5;;10495:76;10587:4;10605:1;10600:59;;;;10673:1;10668:130;;;;10580:218;;10600:59;10630:1;10621:10;;10644:5;;;10668:130;10705:3;10695:8;10692:17;10689:43;;;10712:18;;:::i;:::-;-1:-1:-1;;10768:1:1;10754:16;;10783:5;;10580:218;;10882:2;10872:8;10869:16;10863:3;10857:4;10854:13;10850:36;10844:2;10834:8;10831:16;10826:2;10820:4;10817:12;10813:35;10810:77;10807:159;;;-1:-1:-1;10919:19:1;;;10951:5;;10807:159;10998:34;11023:8;11017:4;10998:34;:::i;:::-;11128:6;11060:66;11056:79;11047:7;11044:92;11041:118;;;11139:18;;:::i;:::-;11177:20;;10337:866;-1:-1:-1;;;10337:866:1:o;11208:131::-;11268:5;11297:36;11324:8;11318:4;11297:36;:::i;11344:125::-;11384:4;11412:1;11409;11406:8;11403:34;;;11417:18;;:::i;:::-;-1:-1:-1;11454:9:1;;11344:125::o;12180:228::-;12220:7;12346:1;12278:66;12274:74;12271:1;12268:81;12263:1;12256:9;12249:17;12245:105;12242:131;;;12353:18;;:::i;:::-;-1:-1:-1;12393:9:1;;12180:228::o;12413:184::-;12465:77;12462:1;12455:88;12562:4;12559:1;12552:15;12586:4;12583:1;12576:15;12602:112;12634:1;12660;12650:35;;12665:18;;:::i;:::-;-1:-1:-1;12699:9:1;;12602:112::o;15686:120::-;15726:1;15752;15742:35;;15757:18;;:::i;:::-;-1:-1:-1;15791:9:1;;15686:120::o;15811:277::-;15878:6;15931:2;15919:9;15910:7;15906:23;15902:32;15899:52;;;15947:1;15944;15937:12;15899:52;15979:9;15973:16;16032:5;16025:13;16018:21;16011:5;16008:32;15998:60;;16054:1;16051;16044:12;17269:258;17341:1;17351:113;17365:6;17362:1;17359:13;17351:113;;;17441:11;;;17435:18;17422:11;;;17415:39;17387:2;17380:10;17351:113;;;17482:6;17479:1;17476:13;17473:48;;;-1:-1:-1;;17517:1:1;17499:16;;17492:27;17269:258::o;17532:274::-;17661:3;17699:6;17693:13;17715:53;17761:6;17756:3;17749:4;17741:6;17737:17;17715:53;:::i;:::-;17784:16;;;;;17532:274;-1:-1:-1;;17532:274:1:o;17811:442::-;17960:2;17949:9;17942:21;17923:4;17992:6;17986:13;18035:6;18030:2;18019:9;18015:18;18008:34;18051:66;18110:6;18105:2;18094:9;18090:18;18085:2;18077:6;18073:15;18051:66;:::i;:::-;18169:2;18157:15;18174:66;18153:88;18138:104;;;;18244:2;18134:113;;17811:442;-1:-1:-1;;17811:442:1:o

Swarm Source

ipfs://33a8c1ddf466524efc0e9788cc804bc94e2b913e33188b2bdf17e92f065cfa96

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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