MATIC Price: $0.94 (-11.68%)
Gas: 296 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 Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1.25 MATIC0.00424477145.2
Place Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1.25 MATIC0.00344819118
Place Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1.25 MATIC0.0036097123.47620734
Place Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1 MATIC0.0065428223.9
Place Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1 MATIC0.0057392196.4
Place Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1.25 MATIC0.00408398139.7
Place Bet346870802022-10-23 4:49:08513 days ago1666500548IN
Polyflip: MATIC Coinflip Game
1 MATIC0.0016955758
Toggle Game Is L...346649422022-10-22 15:56:29513 days ago1666454189IN
Polyflip: MATIC Coinflip Game
0 MATIC0.0027299795.99054496
Place Bet346647282022-10-22 15:49:09513 days ago1666453749IN
Polyflip: MATIC Coinflip Game
1 MATIC0.05181897151
Place Bet346646912022-10-22 15:47:51513 days ago1666453671IN
Polyflip: MATIC Coinflip Game
1 MATIC0.05113262149
Place Bet346646632022-10-22 15:46:55513 days ago1666453615IN
Polyflip: MATIC Coinflip Game
1 MATIC0.0514758150
Place Bet346646362022-10-22 15:45:57513 days ago1666453557IN
Polyflip: MATIC Coinflip Game
1 MATIC0.04804408140
Place Bet346645902022-10-22 15:44:25513 days ago1666453465IN
Polyflip: MATIC Coinflip Game
1 MATIC0.0452987132
Place Bet346645612022-10-22 15:43:23513 days ago1666453403IN
Polyflip: MATIC Coinflip Game
1 MATIC0.05525069161
Place Bet346644812022-10-22 15:40:39513 days ago1666453239IN
Polyflip: MATIC Coinflip Game
1 MATIC0.05524876161
Place Bet346644482022-10-22 15:39:33513 days ago1666453173IN
Polyflip: MATIC Coinflip Game
1 MATIC0.05284848154
Place Bet346644382022-10-22 15:39:09513 days ago1666453149IN
Polyflip: MATIC Coinflip Game
1 MATIC0.04323967126
Place Bet346643182022-10-22 15:35:01513 days ago1666452901IN
Polyflip: MATIC Coinflip Game
2 MATIC0.04632822135
Place Bet346642892022-10-22 15:34:03513 days ago1666452843IN
Polyflip: MATIC Coinflip Game
2 MATIC0.05422117158
Place Bet346642472022-10-22 15:32:35513 days ago1666452755IN
Polyflip: MATIC Coinflip Game
2 MATIC0.04461236130
Place Bet346642142022-10-22 15:31:29513 days ago1666452689IN
Polyflip: MATIC Coinflip Game
1 MATIC0.04083604119
Place Bet346641592022-10-22 15:29:35513 days ago1666452575IN
Polyflip: MATIC Coinflip Game
1 MATIC0.04872872142
Place Bet346641262022-10-22 15:28:25513 days ago1666452505IN
Polyflip: MATIC Coinflip Game
1 MATIC0.04975994145
Place Bet346640962022-10-22 15:27:25513 days ago1666452445IN
Polyflip: MATIC Coinflip Game
1 MATIC0.04426918129
Place Bet346640662022-10-22 15:26:25513 days ago1666452385IN
Polyflip: MATIC Coinflip Game
1 MATIC0.05044628147
View all transactions

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
346647282022-10-22 15:49:09513 days ago1666453749
Polyflip: MATIC Coinflip Game
1 MATIC
346646912022-10-22 15:47:51513 days ago1666453671
Polyflip: MATIC Coinflip Game
1 MATIC
346646632022-10-22 15:46:55513 days ago1666453615
Polyflip: MATIC Coinflip Game
1 MATIC
346646362022-10-22 15:45:57513 days ago1666453557
Polyflip: MATIC Coinflip Game
1 MATIC
346645902022-10-22 15:44:25513 days ago1666453465
Polyflip: MATIC Coinflip Game
1 MATIC
346645612022-10-22 15:43:23513 days ago1666453403
Polyflip: MATIC Coinflip Game
1 MATIC
346644812022-10-22 15:40:39513 days ago1666453239
Polyflip: MATIC Coinflip Game
1 MATIC
346644482022-10-22 15:39:33513 days ago1666453173
Polyflip: MATIC Coinflip Game
1 MATIC
346644382022-10-22 15:39:09513 days ago1666453149
Polyflip: MATIC Coinflip Game
1 MATIC
346643182022-10-22 15:35:01513 days ago1666452901
Polyflip: MATIC Coinflip Game
2 MATIC
346642892022-10-22 15:34:03513 days ago1666452843
Polyflip: MATIC Coinflip Game
2 MATIC
346642472022-10-22 15:32:35513 days ago1666452755
Polyflip: MATIC Coinflip Game
2 MATIC
346642142022-10-22 15:31:29513 days ago1666452689
Polyflip: MATIC Coinflip Game
1 MATIC
346641592022-10-22 15:29:35513 days ago1666452575
Polyflip: MATIC Coinflip Game
1 MATIC
346641262022-10-22 15:28:25513 days ago1666452505
Polyflip: MATIC Coinflip Game
1 MATIC
346640962022-10-22 15:27:25513 days ago1666452445
Polyflip: MATIC Coinflip Game
1 MATIC
346640662022-10-22 15:26:25513 days ago1666452385
Polyflip: MATIC Coinflip Game
1 MATIC
346640382022-10-22 15:25:25513 days ago1666452325
Polyflip: MATIC Coinflip Game
1 MATIC
346640032022-10-22 15:24:15513 days ago1666452255
Polyflip: MATIC Coinflip Game
1 MATIC
346639732022-10-22 15:23:11513 days ago1666452191
Polyflip: MATIC Coinflip Game
1 MATIC
346639402022-10-22 15:22:05513 days ago1666452125
Polyflip: MATIC Coinflip Game
1 MATIC
346639052022-10-22 15:20:51513 days ago1666452051
Polyflip: MATIC Coinflip Game
1 MATIC
346638762022-10-22 15:19:53513 days ago1666451993
Polyflip: MATIC Coinflip Game
1 MATIC
346638372022-10-22 15:18:31513 days ago1666451911
Polyflip: MATIC Coinflip Game
1 MATIC
346638092022-10-22 15:17:35513 days ago1666451855
Polyflip: MATIC Coinflip Game
1 MATIC
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Coinflip

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

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

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;

    // Variables
    bool public gameIsLive;
    uint public minBetAmount = 1 ether;
    uint public maxBetAmount = 50 ether;
    uint public maxCoinsBettable = 4;
    uint public houseEdgeBP = 200;
    uint public nftHoldersRewardsBP = 7500;

    address public VRFManagerAddress;

    struct Bet {
        uint8 coins;
        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 coins, uint choice, bool isBonus, uint note);
    event BetSettled(uint indexed betId, address indexed player, uint amount, uint indexed coins, uint choice, uint outcome, uint winAmount);
    event BetRefunded(uint indexed betId, address indexed player, uint amount);

    // Setter
    function setMaxCoinsBettable(uint _maxCoinsBettable) external onlyOwner {
        maxCoinsBettable = _maxCoinsBettable;
    }

    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 coins) internal view returns (uint) {
        uint bettableAmount = amountToBettableAmountConverter(_amount);
        return bettableAmount * 2 ** coins;
    }

    // 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 Coinflip is ReentrancyGuard, Manager {
    function placeBet(uint betChoice, uint coins, uint bonus, uint note) external payable nonReentrant {
        require(gameIsLive, "Game is not live");
        require(coins > 0 && coins <= maxCoinsBettable, "Coins not within range");
        require(betChoice >= 0 && betChoice < 2 ** coins, "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 winnableAmount = amountToWinnableAmount(amount, coins);
        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, coins, betChoice, isBonus, note);   
        bets.push(Bet({
            coins: uint8(coins),
            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 coins = bet.coins;

        uint outcome = randomNumber % (2 ** coins);
        uint winnableAmount = amountToWinnableAmount(amount, coins);
        uint winAmount = choice == outcome ? winnableAmount : 0;

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

        house.settleBet(player, winnableAmount, winAmount > 0);
        emit BetSettled(betId, player, amount, coins, 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.coins);
        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":"coins","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":"coins","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":"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":"coins","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":"maxCoinsBettable","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":"coins","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":"_maxCoinsBettable","type":"uint256"}],"name":"setMaxCoinsBettable","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"}]

6080604052670de0b6b3a76400006004556802b5e3af16b1880000600555600460065560c8600755611d4c60085534801561003957600080fd5b5060016000556100483361004d565b61009f565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612b3c80620000af6000396000f3fe6080604052600436106101965760003560e01c8063a045a6fc116100e1578063cfaf17851161008a578063ed507d9811610064578063ed507d98146104f4578063f2fde38b14610514578063fa968eea14610534578063fde6adb11461054a57600080fd5b8063cfaf178514610472578063d414d0c214610492578063e1fdb4b4146104d457600080fd5b8063b68eee2a116100bb578063b68eee2a14610427578063bbd2e01e14610447578063cab11d5d1461045c57600080fd5b8063a045a6fc146103d2578063a585ec77146103e7578063b14c80091461040757600080fd5b80636c188593116101435780637cfbc7a51161011d5780637cfbc7a5146103715780637d14bca5146103915780638da5cb5b146103a757600080fd5b80636c1885931461031c578063715018a61461033c57806372da68d21461035157600080fd5b806322af00fa1161017457806322af00fa1461023857806356892a1c146102e6578063621999be146102fc57600080fd5b80630b96c58d1461019b5780630c55f5f1146101bd5780630e0284a414610214575b600080fd5b3480156101a757600080fd5b506101bb6101b63660046125b0565b61055d565b005b3480156101c957600080fd5b506009546101ea9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561022057600080fd5b5061022a60065481565b60405190815260200161020b565b34801561024457600080fd5b506102586102533660046125cb565b6106af565b6040805160ff909916895264ffffffffff97881660208a0152969095169587019590955274ffffffffffffffffffffffffffffffffffffffffff90921660608601526fffffffffffffffffffffffffffffffff90811660808601521660a084015273ffffffffffffffffffffffffffffffffffffffff90911660c0830152151560e08201526101000161020b565b3480156102f257600080fd5b5061022a60085481565b34801561030857600080fd5b5061022a6103173660046125e4565b610787565b34801561032857600080fd5b506101bb6103373660046125cb565b6107b8565b34801561034857600080fd5b506101bb6108cf565b34801561035d57600080fd5b506101bb61036c366004612635565b61095c565b34801561037d57600080fd5b506101bb61038c3660046125cb565b610aaa565b34801561039d57600080fd5b5061022a60075481565b3480156103b357600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166101ea565b3480156103de57600080fd5b506101bb610bc1565b3480156103f357600080fd5b506101bb6104023660046125b0565b610c8f565b34801561041357600080fd5b506101bb61042236600461271d565b610de6565b34801561043357600080fd5b506101bb6104423660046125cb565b610f84565b34801561045357600080fd5b50600a5461022a565b34801561046857600080fd5b5061022a60055481565b34801561047e57600080fd5b506101bb61048d3660046125cb565b61108f565b34801561049e57600080fd5b506003546104c49074010000000000000000000000000000000000000000900460ff1681565b604051901515815260200161020b565b3480156104e057600080fd5b506101bb6104ef3660046125cb565b611115565b34801561050057600080fd5b506101bb61050f3660046125cb565b611573565b34801561052057600080fd5b506101bb61052f3660046125b0565b6115f9565b34801561054057600080fd5b5061022a60045481565b6101bb610558366004612759565b611729565b60015473ffffffffffffffffffffffffffffffffffffffff1633146105e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035474010000000000000000000000000000000000000000900460ff1615610668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105da565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a81815481106106bf57600080fd5b600091825260209091206003909102018054600182015460029092015460ff808316945064ffffffffff6101008404811694660100000000000085049091169374ffffffffffffffffffffffffffffffffffffffffff6b01000000000000000000000090910416926fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304169173ffffffffffffffffffffffffffffffffffffffff8216917401000000000000000000000000000000000000000090041688565b600b60205281600052604060002081815481106107a357600080fd5b90600052602060002001600091509150505481565b60015473ffffffffffffffffffffffffffffffffffffffff163314610839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b60055481106108ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4d696e20616d6f756e74206d757374206265206c657373207468616e206d617860448201527f20616d6f756e740000000000000000000000000000000000000000000000000060648201526084016105da565b600455565b60015473ffffffffffffffffffffffffffffffffffffffff163314610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b61095a6000611dfc565b565b60095473ffffffffffffffffffffffffffffffffffffffff1633146109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f596f7520617265206e6f7420616c6c6f7765640000000000000000000000000060448201526064016105da565b6000828152600b6020908152604080832080548251818502810185019093528083529192909190830182828015610a3357602002820191906000526020600020905b815481526020019060010190808311610a1f575b5050505050905060005b8151811015610aa457620138805a11610a565750505050565b610a92828281518110610a6b57610a6b61278b565b6020026020010151848381518110610a8557610a8561278b565b6020026020010151611e73565b80610a9c816127e9565b915050610a3d565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610b2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b6004548111610bbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d617820616d6f756e74206d7573742062652067726561746572207468616e2060448201527f6d696e20616d6f756e740000000000000000000000000000000000000000000060648201526084016105da565b600555565b60015473ffffffffffffffffffffffffffffffffffffffff163314610c42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610d10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b60035474010000000000000000000000000000000000000000900460ff1615610d95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105da565b6003805473ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790915560098054909216179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610e67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef59190612822565b821115610f5e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f5769746864726177616c2065786365656473206c696d6974000000000000000060448201526064016105da565b610f7f73ffffffffffffffffffffffffffffffffffffffff82168484612183565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b60035474010000000000000000000000000000000000000000900460ff161561108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105da565b600755565b60015473ffffffffffffffffffffffffffffffffffffffff163314611110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b600855565b60026000541415611182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105da565b600260005560035474010000000000000000000000000000000000000000900460ff1661120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105da565b6000600a82815481106112205761122061278b565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff16806112b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f42657420646f6573206e6f74206578697374000000000000000000000000000060448201526064016105da565b600282015474010000000000000000000000000000000000000000900460ff1615611338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f42657420697320736574746c656420616c72656164790000000000000000000060448201526064016105da565b815461136c906b010000000000000000000000900474ffffffffffffffffffffffffffffffffffffffffff1661546061283b565b74ffffffffffffffffffffffffffffffffffffffffff1643116113eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f57616974206265666f72652072657175657374696e6720726566756e6400000060448201526064016105da565b81546000906113fe90839060ff16612210565b9050600061140b8361223d565b600285810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff811674010000000000000000000000000000000000000000179091556001870180546fffffffffffffffffffffffffffffffff85811670010000000000000000000000000000000002911617905590546040517f2363f42400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015260248101849052604481018690529293501690632363f42490606401600060405180830381600087803b1580156114fc57600080fd5b505af1158015611510573d6000803e3d6000fd5b50505050600284015460405182815273ffffffffffffffffffffffffffffffffffffffff9091169086907ff22517a5eae9f54be712c3150eca5ba925d233687b223c2ebf89272f12ee08659060200160405180910390a350506001600055505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146115f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b600655565b60015473ffffffffffffffffffffffffffffffffffffffff16331461167a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b73ffffffffffffffffffffffffffffffffffffffff811661171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105da565b61172681611dfc565b50565b60026000541415611796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105da565b600260005560035474010000000000000000000000000000000000000000900460ff1661181f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105da565b60008311801561183157506006548311155b611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f436f696e73206e6f742077697468696e2072616e67650000000000000000000060448201526064016105da565b6118a2836002612994565b841061190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f426574206d61736b206e6f7420696e2072616e6765000000000000000000000060448201526064016105da565b34600081611919575082905060015b600454821015801561192d57506005548211155b611993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f42657420616d6f756e74206e6f742077697468696e2072616e6765000000000060448201526064016105da565b600061199f8387612210565b905060006119ac8461223d565b905060006119c26119bd83876129a0565b612266565b6002546040517f519168c6000000000000000000000000000000000000000000000000000000008152336004820152602481018890528615156044820152606481018390526084810186905291925073ffffffffffffffffffffffffffffffffffffffff169063519168c690349060a4016000604051808303818588803b158015611a4c57600080fd5b505af1158015611a60573d6000803e3d6000fd5b5050600a54600354604080517f485ba9f00000000000000000000000000000000000000000000000000000000081529051929550600b94506000935073ffffffffffffffffffffffffffffffffffffffff9091169163485ba9f091600480820192602092909190829003018187875af1158015611ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b059190612822565b8152602080820192909252604090810160009081208054600181018255908252908390200183905580518881529182018c905286151590820152606081018890528990339083907f3bd652df8f45b552741e6ea953843d45e5cff0a6fde4ccbd7cd4e11acd759f3f9060800160405180910390a4600a6040518061010001604052808b60ff1681526020018c64ffffffffff168152602001600064ffffffffff1681526020014374ffffffffffffffffffffffffffffffffffffffffff168152602001886fffffffffffffffffffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548164ffffffffff021916908364ffffffffff16021790555060408201518160000160066101000a81548164ffffffffff021916908364ffffffffff160217905550606082015181600001600b6101000a81548174ffffffffffffffffffffffffffffffffffffffffff021916908374ffffffffffffffffffffffffffffffffffffffffff16021790555060808201518160010160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060a08201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060c08201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060e08201518160020160146101000a81548160ff0219169083151502179055505050505050505050600160008190555050505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026000541415611ee0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105da565b60026000908155600a805484908110611efb57611efb61278b565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff16801580611f535750600282015474010000000000000000000000000000000000000000900460ff1615156001145b15611f5f57505061217a565b600280830154835473ffffffffffffffffffffffffffffffffffffffff9091169164ffffffffff6101008304169160ff1690600090611f9f908390612994565b611fa990886129e6565b90506000611fb78684612210565b90506000828514611fc9576000611fcb565b815b600289810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560018a0180546fffffffffffffffffffffffffffffffff848116700100000000000000000000000000000000029116179055895464ffffffffff86166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff909116178a55546040517fe433939300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201869052831515604483015292935091169063e433939390606401600060405180830381600087803b1580156120f557600080fd5b505af1158015612109573d6000803e3d6000fd5b5050604080518a8152602081018990529081018690526060810184905286925073ffffffffffffffffffffffffffffffffffffffff891691508c907f23625847c1e986fe4d72725731bb8c052c5e3e26ca727151cf722e5e6e2ac9209060800160405180910390a450505050505050505b50506001600055565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f7f908490612279565b60008061221c8461223d565b9050612229836002612994565b61223390826129fa565b9150505b92915050565b600061271060075461271061225291906129a0565b61225c90846129fa565b6122379190612a37565b60006127106008548361225c91906129fa565b60006122db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166123859092919063ffffffff16565b805190915015610f7f57808060200190518101906122f99190612a4b565b610f7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105da565b6060612394848460008561239e565b90505b9392505050565b606082471015612430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105da565b73ffffffffffffffffffffffffffffffffffffffff85163b6124ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105da565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516124d79190612a99565b60006040518083038185875af1925050503d8060008114612514576040519150601f19603f3d011682016040523d82523d6000602084013e612519565b606091505b5091509150612529828286612534565b979650505050505050565b60608315612543575081612397565b8251156125535782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105da9190612ab5565b803573ffffffffffffffffffffffffffffffffffffffff811681146125ab57600080fd5b919050565b6000602082840312156125c257600080fd5b61239782612587565b6000602082840312156125dd57600080fd5b5035919050565b600080604083850312156125f757600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561264857600080fd5b8235915060208084013567ffffffffffffffff8082111561266857600080fd5b818601915086601f83011261267c57600080fd5b81358181111561268e5761268e612606565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811085821117156126d1576126d1612606565b6040529182528482019250838101850191898311156126ef57600080fd5b938501935b8285101561270d578435845293850193928501926126f4565b8096505050505050509250929050565b60008060006060848603121561273257600080fd5b61273b84612587565b92506020840135915061275060408501612587565b90509250925092565b6000806000806080858703121561276f57600080fd5b5050823594602084013594506040840135936060013592509050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561281b5761281b6127ba565b5060010190565b60006020828403121561283457600080fd5b5051919050565b600074ffffffffffffffffffffffffffffffffffffffffff80831681851680830382111561286b5761286b6127ba565b01949350505050565b600181815b808511156128cd57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156128b3576128b36127ba565b808516156128c057918102915b93841c9390800290612879565b509250929050565b6000826128e457506001612237565b816128f157506000612237565b816001811461290757600281146129115761292d565b6001915050612237565b60ff841115612922576129226127ba565b50506001821b612237565b5060208310610133831016604e8410600b8410161715612950575081810a612237565b61295a8383612874565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561298c5761298c6127ba565b029392505050565b600061239783836128d5565b6000828210156129b2576129b26127ba565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826129f5576129f56129b7565b500690565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612a3257612a326127ba565b500290565b600082612a4657612a466129b7565b500490565b600060208284031215612a5d57600080fd5b8151801515811461239757600080fd5b60005b83811015612a88578181015183820152602001612a70565b83811115610aa45750506000910152565b60008251612aab818460208701612a6d565b9190910192915050565b6020815260008251806020840152612ad4816040850160208701612a6d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220d7e3e37b23f6b1f79715f817d21040659a65e44215b4afeeb79a5bd5f7f0606164736f6c634300080b0033

Deployed Bytecode

0x6080604052600436106101965760003560e01c8063a045a6fc116100e1578063cfaf17851161008a578063ed507d9811610064578063ed507d98146104f4578063f2fde38b14610514578063fa968eea14610534578063fde6adb11461054a57600080fd5b8063cfaf178514610472578063d414d0c214610492578063e1fdb4b4146104d457600080fd5b8063b68eee2a116100bb578063b68eee2a14610427578063bbd2e01e14610447578063cab11d5d1461045c57600080fd5b8063a045a6fc146103d2578063a585ec77146103e7578063b14c80091461040757600080fd5b80636c188593116101435780637cfbc7a51161011d5780637cfbc7a5146103715780637d14bca5146103915780638da5cb5b146103a757600080fd5b80636c1885931461031c578063715018a61461033c57806372da68d21461035157600080fd5b806322af00fa1161017457806322af00fa1461023857806356892a1c146102e6578063621999be146102fc57600080fd5b80630b96c58d1461019b5780630c55f5f1146101bd5780630e0284a414610214575b600080fd5b3480156101a757600080fd5b506101bb6101b63660046125b0565b61055d565b005b3480156101c957600080fd5b506009546101ea9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561022057600080fd5b5061022a60065481565b60405190815260200161020b565b34801561024457600080fd5b506102586102533660046125cb565b6106af565b6040805160ff909916895264ffffffffff97881660208a0152969095169587019590955274ffffffffffffffffffffffffffffffffffffffffff90921660608601526fffffffffffffffffffffffffffffffff90811660808601521660a084015273ffffffffffffffffffffffffffffffffffffffff90911660c0830152151560e08201526101000161020b565b3480156102f257600080fd5b5061022a60085481565b34801561030857600080fd5b5061022a6103173660046125e4565b610787565b34801561032857600080fd5b506101bb6103373660046125cb565b6107b8565b34801561034857600080fd5b506101bb6108cf565b34801561035d57600080fd5b506101bb61036c366004612635565b61095c565b34801561037d57600080fd5b506101bb61038c3660046125cb565b610aaa565b34801561039d57600080fd5b5061022a60075481565b3480156103b357600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166101ea565b3480156103de57600080fd5b506101bb610bc1565b3480156103f357600080fd5b506101bb6104023660046125b0565b610c8f565b34801561041357600080fd5b506101bb61042236600461271d565b610de6565b34801561043357600080fd5b506101bb6104423660046125cb565b610f84565b34801561045357600080fd5b50600a5461022a565b34801561046857600080fd5b5061022a60055481565b34801561047e57600080fd5b506101bb61048d3660046125cb565b61108f565b34801561049e57600080fd5b506003546104c49074010000000000000000000000000000000000000000900460ff1681565b604051901515815260200161020b565b3480156104e057600080fd5b506101bb6104ef3660046125cb565b611115565b34801561050057600080fd5b506101bb61050f3660046125cb565b611573565b34801561052057600080fd5b506101bb61052f3660046125b0565b6115f9565b34801561054057600080fd5b5061022a60045481565b6101bb610558366004612759565b611729565b60015473ffffffffffffffffffffffffffffffffffffffff1633146105e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035474010000000000000000000000000000000000000000900460ff1615610668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105da565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a81815481106106bf57600080fd5b600091825260209091206003909102018054600182015460029092015460ff808316945064ffffffffff6101008404811694660100000000000085049091169374ffffffffffffffffffffffffffffffffffffffffff6b01000000000000000000000090910416926fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304169173ffffffffffffffffffffffffffffffffffffffff8216917401000000000000000000000000000000000000000090041688565b600b60205281600052604060002081815481106107a357600080fd5b90600052602060002001600091509150505481565b60015473ffffffffffffffffffffffffffffffffffffffff163314610839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b60055481106108ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4d696e20616d6f756e74206d757374206265206c657373207468616e206d617860448201527f20616d6f756e740000000000000000000000000000000000000000000000000060648201526084016105da565b600455565b60015473ffffffffffffffffffffffffffffffffffffffff163314610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b61095a6000611dfc565b565b60095473ffffffffffffffffffffffffffffffffffffffff1633146109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f596f7520617265206e6f7420616c6c6f7765640000000000000000000000000060448201526064016105da565b6000828152600b6020908152604080832080548251818502810185019093528083529192909190830182828015610a3357602002820191906000526020600020905b815481526020019060010190808311610a1f575b5050505050905060005b8151811015610aa457620138805a11610a565750505050565b610a92828281518110610a6b57610a6b61278b565b6020026020010151848381518110610a8557610a8561278b565b6020026020010151611e73565b80610a9c816127e9565b915050610a3d565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610b2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b6004548111610bbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d617820616d6f756e74206d7573742062652067726561746572207468616e2060448201527f6d696e20616d6f756e740000000000000000000000000000000000000000000060648201526084016105da565b600555565b60015473ffffffffffffffffffffffffffffffffffffffff163314610c42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610d10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b60035474010000000000000000000000000000000000000000900460ff1615610d95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105da565b6003805473ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790915560098054909216179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610e67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef59190612822565b821115610f5e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f5769746864726177616c2065786365656473206c696d6974000000000000000060448201526064016105da565b610f7f73ffffffffffffffffffffffffffffffffffffffff82168484612183565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b60035474010000000000000000000000000000000000000000900460ff161561108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4265747320696e2070656e64696e67000000000000000000000000000000000060448201526064016105da565b600755565b60015473ffffffffffffffffffffffffffffffffffffffff163314611110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b600855565b60026000541415611182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105da565b600260005560035474010000000000000000000000000000000000000000900460ff1661120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105da565b6000600a82815481106112205761122061278b565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff16806112b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f42657420646f6573206e6f74206578697374000000000000000000000000000060448201526064016105da565b600282015474010000000000000000000000000000000000000000900460ff1615611338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f42657420697320736574746c656420616c72656164790000000000000000000060448201526064016105da565b815461136c906b010000000000000000000000900474ffffffffffffffffffffffffffffffffffffffffff1661546061283b565b74ffffffffffffffffffffffffffffffffffffffffff1643116113eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f57616974206265666f72652072657175657374696e6720726566756e6400000060448201526064016105da565b81546000906113fe90839060ff16612210565b9050600061140b8361223d565b600285810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff811674010000000000000000000000000000000000000000179091556001870180546fffffffffffffffffffffffffffffffff85811670010000000000000000000000000000000002911617905590546040517f2363f42400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015260248101849052604481018690529293501690632363f42490606401600060405180830381600087803b1580156114fc57600080fd5b505af1158015611510573d6000803e3d6000fd5b50505050600284015460405182815273ffffffffffffffffffffffffffffffffffffffff9091169086907ff22517a5eae9f54be712c3150eca5ba925d233687b223c2ebf89272f12ee08659060200160405180910390a350506001600055505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146115f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b600655565b60015473ffffffffffffffffffffffffffffffffffffffff16331461167a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105da565b73ffffffffffffffffffffffffffffffffffffffff811661171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105da565b61172681611dfc565b50565b60026000541415611796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105da565b600260005560035474010000000000000000000000000000000000000000900460ff1661181f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f47616d65206973206e6f74206c6976650000000000000000000000000000000060448201526064016105da565b60008311801561183157506006548311155b611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f436f696e73206e6f742077697468696e2072616e67650000000000000000000060448201526064016105da565b6118a2836002612994565b841061190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f426574206d61736b206e6f7420696e2072616e6765000000000000000000000060448201526064016105da565b34600081611919575082905060015b600454821015801561192d57506005548211155b611993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f42657420616d6f756e74206e6f742077697468696e2072616e6765000000000060448201526064016105da565b600061199f8387612210565b905060006119ac8461223d565b905060006119c26119bd83876129a0565b612266565b6002546040517f519168c6000000000000000000000000000000000000000000000000000000008152336004820152602481018890528615156044820152606481018390526084810186905291925073ffffffffffffffffffffffffffffffffffffffff169063519168c690349060a4016000604051808303818588803b158015611a4c57600080fd5b505af1158015611a60573d6000803e3d6000fd5b5050600a54600354604080517f485ba9f00000000000000000000000000000000000000000000000000000000081529051929550600b94506000935073ffffffffffffffffffffffffffffffffffffffff9091169163485ba9f091600480820192602092909190829003018187875af1158015611ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b059190612822565b8152602080820192909252604090810160009081208054600181018255908252908390200183905580518881529182018c905286151590820152606081018890528990339083907f3bd652df8f45b552741e6ea953843d45e5cff0a6fde4ccbd7cd4e11acd759f3f9060800160405180910390a4600a6040518061010001604052808b60ff1681526020018c64ffffffffff168152602001600064ffffffffff1681526020014374ffffffffffffffffffffffffffffffffffffffffff168152602001886fffffffffffffffffffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548164ffffffffff021916908364ffffffffff16021790555060408201518160000160066101000a81548164ffffffffff021916908364ffffffffff160217905550606082015181600001600b6101000a81548174ffffffffffffffffffffffffffffffffffffffffff021916908374ffffffffffffffffffffffffffffffffffffffffff16021790555060808201518160010160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060a08201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060c08201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060e08201518160020160146101000a81548160ff0219169083151502179055505050505050505050600160008190555050505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026000541415611ee0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105da565b60026000908155600a805484908110611efb57611efb61278b565b6000918252602090912060039091020160018101549091506fffffffffffffffffffffffffffffffff16801580611f535750600282015474010000000000000000000000000000000000000000900460ff1615156001145b15611f5f57505061217a565b600280830154835473ffffffffffffffffffffffffffffffffffffffff9091169164ffffffffff6101008304169160ff1690600090611f9f908390612994565b611fa990886129e6565b90506000611fb78684612210565b90506000828514611fc9576000611fcb565b815b600289810180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560018a0180546fffffffffffffffffffffffffffffffff848116700100000000000000000000000000000000029116179055895464ffffffffff86166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff909116178a55546040517fe433939300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201869052831515604483015292935091169063e433939390606401600060405180830381600087803b1580156120f557600080fd5b505af1158015612109573d6000803e3d6000fd5b5050604080518a8152602081018990529081018690526060810184905286925073ffffffffffffffffffffffffffffffffffffffff891691508c907f23625847c1e986fe4d72725731bb8c052c5e3e26ca727151cf722e5e6e2ac9209060800160405180910390a450505050505050505b50506001600055565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f7f908490612279565b60008061221c8461223d565b9050612229836002612994565b61223390826129fa565b9150505b92915050565b600061271060075461271061225291906129a0565b61225c90846129fa565b6122379190612a37565b60006127106008548361225c91906129fa565b60006122db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166123859092919063ffffffff16565b805190915015610f7f57808060200190518101906122f99190612a4b565b610f7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105da565b6060612394848460008561239e565b90505b9392505050565b606082471015612430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105da565b73ffffffffffffffffffffffffffffffffffffffff85163b6124ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105da565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516124d79190612a99565b60006040518083038185875af1925050503d8060008114612514576040519150601f19603f3d011682016040523d82523d6000602084013e612519565b606091505b5091509150612529828286612534565b979650505050505050565b60608315612543575081612397565b8251156125535782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105da9190612ab5565b803573ffffffffffffffffffffffffffffffffffffffff811681146125ab57600080fd5b919050565b6000602082840312156125c257600080fd5b61239782612587565b6000602082840312156125dd57600080fd5b5035919050565b600080604083850312156125f757600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561264857600080fd5b8235915060208084013567ffffffffffffffff8082111561266857600080fd5b818601915086601f83011261267c57600080fd5b81358181111561268e5761268e612606565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811085821117156126d1576126d1612606565b6040529182528482019250838101850191898311156126ef57600080fd5b938501935b8285101561270d578435845293850193928501926126f4565b8096505050505050509250929050565b60008060006060848603121561273257600080fd5b61273b84612587565b92506020840135915061275060408501612587565b90509250925092565b6000806000806080858703121561276f57600080fd5b5050823594602084013594506040840135936060013592509050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561281b5761281b6127ba565b5060010190565b60006020828403121561283457600080fd5b5051919050565b600074ffffffffffffffffffffffffffffffffffffffffff80831681851680830382111561286b5761286b6127ba565b01949350505050565b600181815b808511156128cd57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156128b3576128b36127ba565b808516156128c057918102915b93841c9390800290612879565b509250929050565b6000826128e457506001612237565b816128f157506000612237565b816001811461290757600281146129115761292d565b6001915050612237565b60ff841115612922576129226127ba565b50506001821b612237565b5060208310610133831016604e8410600b8410161715612950575081810a612237565b61295a8383612874565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561298c5761298c6127ba565b029392505050565b600061239783836128d5565b6000828210156129b2576129b26127ba565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826129f5576129f56129b7565b500690565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612a3257612a326127ba565b500290565b600082612a4657612a466129b7565b500490565b600060208284031215612a5d57600080fd5b8151801515811461239757600080fd5b60005b83811015612a88578181015183820152602001612a70565b83811115610aa45750506000910152565b60008251612aab818460208701612a6d565b9190910192915050565b6020815260008251806020840152612ad4816040850160208701612a6d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220d7e3e37b23f6b1f79715f817d21040659a65e44215b4afeeb79a5bd5f7f0606164736f6c634300080b0033

Deployed Bytecode Sourcemap

22289:3816:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21598:163;;;;;;;;;;-1:-1:-1;21598:163:0;;;;;:::i;:::-;;:::i;:::-;;19091:32;;;;;;;;;;-1:-1:-1;19091:32:0;;;;;;;;;;;582:42:1;570:55;;;552:74;;540:2;525:18;19091:32:0;;;;;;;;18969;;;;;;;;;;;;;;;;;;;783:25:1;;;771:2;756:18;18969:32:0;637:177:1;19368:17:0;;;;;;;;;;-1:-1:-1;19368:17:0;;;;;:::i;:::-;;:::i;:::-;;;;1363:4:1;1351:17;;;1333:36;;1388:12;1436:15;;;1431:2;1416:18;;1409:43;1488:15;;;;1468:18;;;1461:43;;;;1552:44;1540:57;;;1535:2;1520:18;;1513:85;1617:34;1688:15;;;1682:3;1667:19;;1660:44;1741:15;1735:3;1720:19;;1713:44;1806:42;1794:55;;;1788:3;1773:19;;1766:84;1894:14;1887:22;1881:3;1866:19;;1859:51;1320:3;1305:19;19368:17:0;1004:912:1;19044:38:0;;;;;;;;;;;;;;;;19392:40;;;;;;;;;;-1:-1:-1;19392:40:0;;;;;:::i;:::-;;:::i;20189:202::-;;;;;;;;;;-1:-1:-1;20189:202:0;;;;;:::i;:::-;;:::i;1370:103::-;;;;;;;;;;;;;:::i;23817:671::-;;;;;;;;;;-1:-1:-1;23817:671:0;;;;;:::i;:::-;;:::i;20399:205::-;;;;;;;;;;-1:-1:-1;20399:205:0;;;;;:::i;:::-;;:::i;19008:29::-;;;;;;;;;;;;;;;;719:87;;;;;;;;;;-1:-1:-1;792:6:0;;;;719:87;;20932:90;;;;;;;;;;;;;:::i;21769:217::-;;;;;;;;;;-1:-1:-1;21769:217:0;;;;;:::i;:::-;;:::i;21994:288::-;;;;;;;;;;-1:-1:-1;21994:288:0;;;;;:::i;:::-;;:::i;20612:165::-;;;;;;;;;;-1:-1:-1;20612:165:0;;;;;:::i;:::-;;:::i;19565:88::-;;;;;;;;;;-1:-1:-1;19634:4:0;:11;19565:88;;18927:35;;;;;;;;;;;;;;;;20785:139;;;;;;;;;;-1:-1:-1;20785:139:0;;;;;:::i;:::-;;:::i;18857:22::-;;;;;;;;;;-1:-1:-1;18857:22:0;;;;;;;;;;;;;;4108:14:1;;4101:22;4083:41;;4071:2;4056:18;18857:22:0;3943:187:1;25317:785:0;;;;;;;;;;-1:-1:-1;25317:785:0;;;;;:::i;:::-;;:::i;20054:127::-;;;;;;;;;;-1:-1:-1;20054:127:0;;;;;:::i;:::-;;:::i;1628:201::-;;;;;;;;;;-1:-1:-1;1628:201:0;;;;;:::i;:::-;;:::i;18886:34::-;;;;;;;;;;;;;;;;22342:1467;;;;;;:::i;:::-;;:::i;21598:163::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;;;;;;;;;21679:10:::1;::::0;;;::::1;;;:19;21671:47;;;::::0;::::1;::::0;;5088:2:1;21671:47:0::1;::::0;::::1;5070:21:1::0;5127:2;5107:18;;;5100:30;5166:17;5146:18;;;5139:45;5201:18;;21671:47:0::1;4886:339:1::0;21671:47:0::1;21729:5;:24:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;21598:163::o;19368:17::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19368:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;19392:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;20189:202::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;20288:12:::1;;20272:13;:28;20264:80;;;::::0;::::1;::::0;;5432:2:1;20264:80:0::1;::::0;::::1;5414:21:1::0;5471:2;5451:18;;;5444:30;5510:34;5490:18;;;5483:62;5581:9;5561:18;;;5554:37;5608:19;;20264:80:0::1;5230:403:1::0;20264:80:0::1;20355:12;:28:::0;20189:202::o;1370:103::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;1435:30:::1;1462:1;1435:18;:30::i;:::-;1370:103::o:0;23817:671::-;19482:17;;:31;:17;19503:10;19482:31;19474:63;;;;;;;5840:2:1;19474:63:0;;;5822:21:1;5879:2;5859:18;;;5852:30;5918:21;5898:18;;;5891:49;5957:18;;19474:63:0;5638:343:1;19474:63:0;23921:27:::1;23951:17:::0;;;:6:::1;:17;::::0;;;;;;;23921:47;;;;;;::::1;::::0;;;;;;;;;;;;23951:17;;23921:47;;::::1;23951:17:::0;23921:47;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23979:6;23996:485;24012:13;:20;24008:1;:24;23996:485;;;24290:5;24277:9;:18;24273:65;;24316:7;;23817:671:::0;;:::o;24273:65::-:1;24422:47;24433:13;24447:1;24433:16;;;;;;;;:::i;:::-;;;;;;;24451:14;24466:1;24451:17;;;;;;;;:::i;:::-;;;;;;;24422:10;:47::i;:::-;24034:3:::0;::::1;::::0;::::1;:::i;:::-;;;;23996:485;;;23910:578;;23817:671:::0;;:::o;20399:205::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;20498:12:::1;;20482:13;:28;20474:83;;;::::0;::::1;::::0;;6766:2:1;20474:83:0::1;::::0;::::1;6748:21:1::0;6805:2;6785:18;;;6778:30;6844:34;6824:18;;;6817:62;6915:12;6895:18;;;6888:40;6945:19;;20474:83:0::1;6564:406:1::0;20474:83:0::1;20568:12;:28:::0;20399:205::o;20932:90::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;21004:10:::1;::::0;;20990:24;;::::1;21004:10:::0;;;;::::1;;;21003:11;20990:24:::0;;::::1;;::::0;;20932:90::o;21769:217::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;21855:10:::1;::::0;;;::::1;;;:19;21847:47;;;::::0;::::1;::::0;;5088:2:1;21847:47:0::1;::::0;::::1;5070:21:1::0;5127:2;5107:18;;;5100:30;5166:17;5146:18;;;5139:45;5201:18;;21847:47:0::1;4886:339:1::0;21847:47:0::1;21905:10;:34:::0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;21950:17:::1;:28:::0;;;;::::1;;::::0;;21769:217::o;21994:288::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;22141:38:::1;::::0;;;;22173:4:::1;22141:38;::::0;::::1;552:74:1::0;22141:23:0::1;::::0;::::1;::::0;::::1;::::0;525:18:1;;22141:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22123:14;:56;;22115:93;;;::::0;::::1;::::0;;7366:2:1;22115:93:0::1;::::0;::::1;7348:21:1::0;7405:2;7385:18;;;7378:30;7444:26;7424:18;;;7417:54;7488:18;;22115:93:0::1;7164:348:1::0;22115:93:0::1;22219:55;:26;::::0;::::1;22246:11:::0;22259:14;22219:26:::1;:55::i;:::-;21994:288:::0;;;:::o;20612:165::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;20693:10:::1;::::0;;;::::1;;;:19;20685:47;;;::::0;::::1;::::0;;5088:2:1;20685:47:0::1;::::0;::::1;5070:21:1::0;5127:2;5107:18;;;5100:30;5166:17;5146:18;;;5139:45;5201:18;;20685:47:0::1;4886:339:1::0;20685:47:0::1;20743:11;:26:::0;20612:165::o;20785:139::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;20874:19:::1;:42:::0;20785:139::o;25317:785::-;17345:1;17943:7;;:19;;17935:63;;;;;;;7719:2:1;17935:63:0;;;7701:21:1;7758:2;7738:18;;;7731:30;7797:33;7777:18;;;7770:61;7848:18;;17935:63:0;7517:355:1;17935:63:0;17345:1;18076:7;:18;25389:10:::1;::::0;;;::::1;;;25381:39;;;::::0;::::1;::::0;;8079:2:1;25381:39:0::1;::::0;::::1;8061:21:1::0;8118:2;8098:18;;;8091:30;8157:18;8137;;;8130:46;8193:18;;25381:39:0::1;7877:340:1::0;25381:39:0::1;25439:15;25457:4;25462:5;25457:11;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;25493:10;::::0;::::1;::::0;25457:11;;-1:-1:-1;25493:10:0::1;;::::0;25516:41:::1;;;::::0;::::1;::::0;;8424:2:1;25516:41:0::1;::::0;::::1;8406:21:1::0;8463:2;8443:18;;;8436:30;8502:20;8482:18;;;8475:48;8540:18;;25516:41:0::1;8222:342:1::0;25516:41:0::1;25576:13;::::0;::::1;::::0;;;::::1;;;:22;25568:57;;;::::0;::::1;::::0;;8771:2:1;25568:57:0::1;::::0;::::1;8753:21:1::0;8810:2;8790:18;;;8783:30;8849:24;8829:18;;;8822:52;8891:18;;25568:57:0::1;8569:346:1::0;25568:57:0::1;25659:20:::0;;:28:::1;::::0;:20;;::::1;;;25682:5;25659:28;:::i;:::-;25644:43;;:12;:43;25636:85;;;::::0;::::1;::::0;;9390:2:1;25636:85:0::1;::::0;::::1;9372:21:1::0;9429:2;9409:18;;;9402:30;9468:31;9448:18;;;9441:59;9517:18;;25636:85:0::1;9188:353:1::0;25636:85:0::1;25787:9:::0;;25734:19:::1;::::0;25756:41:::1;::::0;25779:6;;25787:9:::1;;25756:22;:41::i;:::-;25734:63;;25808:17;25828:39;25860:6;25828:31;:39::i;:::-;25888:13;::::0;;::::1;:20:::0;;;;::::1;::::0;::::1;::::0;;;-1:-1:-1;25919:13:0;::::1;:37:::0;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;;::::0;;25977:5;;:57:::1;::::0;;;;:5:::1;25993:10:::0;;;25977:57:::1;::::0;::::1;9748:74:1::0;9838:18;;;9831:34;;;9881:18;;;9874:34;;;25919:37:0;;-1:-1:-1;25977:5:0::1;::::0;:15:::1;::::0;9721:18:1;;25977:57:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;26069:10:0::1;::::0;::::1;::::0;26050:44:::1;::::0;783:25:1;;;26069:10:0::1;::::0;;::::1;::::0;26062:5;;26050:44:::1;::::0;771:2:1;756:18;26050:44:0::1;;;;;;;-1:-1:-1::0;;17301:1:0;18255:7;:22;-1:-1:-1;;;25317:785:0:o;20054:127::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;20137:16:::1;:36:::0;20054:127::o;1628:201::-;792:6;;939:23;792:6;173:10;939:23;931:68;;;;;;;4727:2:1;931:68:0;;;4709:21:1;;;4746:18;;;4739:30;4805:34;4785:18;;;4778:62;4857:18;;931:68:0;4525:356:1;931:68:0;1717:22:::1;::::0;::::1;1709:73;;;::::0;::::1;::::0;;10121:2:1;1709:73:0::1;::::0;::::1;10103:21:1::0;10160:2;10140:18;;;10133:30;10199:34;10179:18;;;10172:62;10270:8;10250:18;;;10243:36;10296:19;;1709:73:0::1;9919:402:1::0;1709:73:0::1;1793:28;1812:8;1793:18;:28::i;:::-;1628:201:::0;:::o;22342:1467::-;17345:1;17943:7;;:19;;17935:63;;;;;;;7719:2:1;17935:63:0;;;7701:21:1;7758:2;7738:18;;;7731:30;7797:33;7777:18;;;7770:61;7848:18;;17935:63:0;7517:355:1;17935:63:0;17345:1;18076:7;:18;22460:10:::1;::::0;;;::::1;;;22452:39;;;::::0;::::1;::::0;;8079:2:1;22452:39:0::1;::::0;::::1;8061:21:1::0;8118:2;8098:18;;;8091:30;8157:18;8137;;;8130:46;8193:18;;22452:39:0::1;7877:340:1::0;22452:39:0::1;22518:1;22510:5;:9;:38;;;;;22532:16;;22523:5;:25;;22510:38;22502:73;;;::::0;::::1;::::0;;10528:2:1;22502:73:0::1;::::0;::::1;10510:21:1::0;10567:2;10547:18;;;10540:30;10606:24;10586:18;;;10579:52;10648:18;;22502:73:0::1;10326:346:1::0;22502:73:0::1;22624:10;22629:5:::0;22624:1:::1;:10;:::i;:::-;22612:9;:22;22586:74;;;::::0;::::1;::::0;;12373:2:1;22586:74:0::1;::::0;::::1;12355:21:1::0;12412:2;12392:18;;;12385:30;12451:23;12431:18;;;12424:51;12492:18;;22586:74:0::1;12171:345:1::0;22586:74:0::1;22687:9;22673:11;22734::::0;22730:87:::1;;-1:-1:-1::0;22800:5:0;;-1:-1:-1;22772:4:0::1;22730:87;22845:12;;22835:6;:22;;:48;;;;;22871:12;;22861:6;:22;;22835:48;22827:88;;;::::0;::::1;::::0;;12723:2:1;22827:88:0::1;::::0;::::1;12705:21:1::0;12762:2;12742:18;;;12735:30;12801:29;12781:18;;;12774:57;12848:18;;22827:88:0::1;12521:351:1::0;22827:88:0::1;22928:19;22950:37;22973:6;22981:5;22950:22;:37::i;:::-;22928:59;;22998:19;23020:39;23052:6;23020:31;:39::i;:::-;22998:61:::0;-1:-1:-1;23070:27:0::1;23100:59;23135:23;22998:61:::0;23135:6;:23:::1;:::i;:::-;23100:34;:59::i;:::-;23180:5;::::0;:101:::1;::::0;;;;23213:10:::1;23180:101;::::0;::::1;13260:74:1::0;13350:18;;;13343:34;;;13420:14;;13413:22;13393:18;;;13386:50;13452:18;;;13445:34;;;13495:19;;;13488:35;;;23070:89:0;;-1:-1:-1;23180:5:0::1;;::::0;:14:::1;::::0;23202:9:::1;::::0;13232:19:1;;23180:101:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;23307:4:0::1;:11:::0;23336:10:::1;::::0;:34:::1;::::0;;;;;;;23307:11;;-1:-1:-1;23329:6:0::1;::::0;-1:-1:-1;23294:10:0::1;::::0;-1:-1:-1;23336:10:0::1;::::0;;::::1;::::0;:32:::1;::::0;:34:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;23294:10;23336;:34:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23329:42:::0;;::::1;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;23329:42:0;;;:54;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;23409:69;;13948:25:1;;;13989:18;;;13982:34;;;14059:14;;14052:22;14032:18;;;14025:50;14106:2;14091:18;;14084:34;;;23446:5:0;;23426:10:::1;::::0;23377:5;;23409:69:::1;::::0;13935:3:1;13920:19;23409:69:0::1;;;;;;;23492:4;23502:298;;;;;;;;23534:5;23502:298;;;;;;23570:9;23502:298;;;;;;23604:1;23502:298;;;;;;23646:12;23502:298;;;;;;23690:6;23502:298;;;;;;23723:1;23502:298;;;;;;23747:10;23502:298;;;;;;23783:5;23502:298;;;;::::0;23492:309:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22441:1368;;;;;;17301:1:::0;18255:7;:22;;;;22342:1467;;;;:::o;1989:191::-;2082:6;;;;2099:17;;;;;;;;;;;2132:40;;2082:6;;;2099:17;2082:6;;2132:40;;2063:16;;2132:40;2052:128;1989:191;:::o;24496:813::-;17345:1;17943:7;;:19;;17935:63;;;;;;;7719:2:1;17935:63:0;;;7701:21:1;7758:2;7738:18;;;7731:30;7797:33;7777:18;;;7770:61;7848:18;;17935:63:0;7517:355:1;17935:63:0;17345:1;18076:7;:18;;;24600:4:::1;:11:::0;;24605:5;;24600:11;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;24638:10;::::0;::::1;::::0;24600:11;;-1:-1:-1;24638:10:0::1;;24663:11:::0;;;:36:::1;;-1:-1:-1::0;24678:13:0::1;::::0;::::1;::::0;;;::::1;;;:21;;24695:4;24678:21;24663:36;24659:75;;;24716:7;;;;24659:75;24763:10;::::0;;::::1;::::0;24798;;24763::::1;::::0;;::::1;::::0;24798::::1;24763;24798::::0;::::1;;::::0;24832:9:::1;;::::0;24746:14:::1;::::0;24885:10:::1;::::0;24832:9;;24885:10:::1;:::i;:::-;24869:27;::::0;:12;:27:::1;:::i;:::-;24854:42;;24907:19;24929:37;24952:6;24960:5;24929:22;:37::i;:::-;24907:59;;24977:14;25004:7;24994:6;:17;:38;;25031:1;24994:38;;;25014:14;24994:38;25045:13;::::0;;::::1;:20:::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;25076:13:0;::::1;:34:::0;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;;::::0;;25121:29;;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;;::::0;;25163:5;:54:::1;::::0;;;;:5:::1;14649:55:1::0;;;25163:54:0::1;::::0;::::1;14631:74:1::0;14721:18;;;14714:34;;;25203:13:0;;;14764:18:1;;;14757:50;25076:34:0;;-1:-1:-1;25163:5:0;::::1;::::0;:15:::1;::::0;14604:18:1;;25163:54:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;25233:68:0::1;::::0;;15049:25:1;;;15105:2;15090:18;;15083:34;;;15133:18;;;15126:34;;;15191:2;15176:18;;15169:34;;;25267:5:0;;-1:-1:-1;25233:68:0::1;::::0;::::1;::::0;-1:-1:-1;25244:5:0;;25233:68:::1;::::0;15036:3:1;15021:19;25233:68:0::1;;;;;;;24571:738;;;;;;;;18107:1;-1:-1:-1::0;;17301:1:0;18255:7;:22;24496:813::o;13165:211::-;13309:58;;;15418:42:1;15406:55;;13309:58:0;;;15388:74:1;15478:18;;;;15471:34;;;13309:58:0;;;;;;;;;;15361:18:1;;;;13309:58:0;;;;;;;;;;13332:23;13309:58;;;13282:86;;13302:5;;13282:19;:86::i;21361:213::-;21442:4;21459:19;21481:40;21513:7;21481:31;:40::i;:::-;21459:62;-1:-1:-1;21556:10:0;21561:5;21556:1;:10;:::i;:::-;21539:27;;:14;:27;:::i;:::-;21532:34;;;21361:213;;;;;:::o;21049:146::-;21125:4;21182:5;21167:11;;21159:5;:19;;;;:::i;:::-;21149:30;;:6;:30;:::i;:::-;:38;;;;:::i;21203:150::-;21284:4;21340:5;21318:19;;21308:7;:29;;;;:::i;15738:716::-;16162:23;16188:69;16216:4;16188:69;;;;;;;;;;;;;;;;;16196:5;16188:27;;;;:69;;;;;:::i;:::-;16272:17;;16162:95;;-1:-1:-1;16272:21:0;16268:179;;16369:10;16358:30;;;;;;;;;;;;:::i;:::-;16350:85;;;;;;;16358:2:1;16350:85:0;;;16340:21:1;16397:2;16377:18;;;16370:30;16436:34;16416:18;;;16409:62;16507:12;16487:18;;;16480:40;16537:19;;16350:85:0;16156:406:1;5940:229:0;6077:12;6109:52;6131:6;6139:4;6145:1;6148:12;6109:21;:52::i;:::-;6102:59;;5940:229;;;;;;:::o;7060:510::-;7230:12;7288:5;7263:21;:30;;7255:81;;;;;;;16769:2:1;7255:81:0;;;16751:21:1;16808:2;16788:18;;;16781:30;16847:34;16827:18;;;16820:62;16918:8;16898:18;;;16891:36;16944:19;;7255:81:0;16567:402:1;7255:81:0;3490:19;;;;7347:60;;;;;;;17176:2:1;7347:60:0;;;17158:21:1;17215:2;17195:18;;;17188:30;17254:31;17234:18;;;17227:59;17303:18;;7347:60:0;16974:353:1;7347:60:0;7421:12;7435:23;7462:6;:11;;7481:5;7488:4;7462:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7420:73;;;;7511:51;7528:7;7537:10;7549:12;7511:16;:51::i;:::-;7504:58;7060:510;-1:-1:-1;;;;;;;7060:510:0:o;9746:712::-;9896:12;9925:7;9921:530;;;-1:-1:-1;9956:10:0;9949:17;;9921:530;10070:17;;:21;10066:374;;10268:10;10262:17;10329:15;10316:10;10312:2;10308:19;10301:44;10066:374;10411:12;10404: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;819:180::-;878:6;931:2;919:9;910:7;906:23;902:32;899:52;;;947:1;944;937:12;899:52;-1:-1:-1;970:23:1;;819:180;-1:-1:-1;819: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:385::-;4221:6;4229;4237;4245;4298:3;4286:9;4277:7;4273:23;4269:33;4266:53;;;4315:1;4312;4305:12;4266:53;-1:-1:-1;;4338:23:1;;;4408:2;4393:18;;4380:32;;-1:-1:-1;4459:2:1;4444:18;;4431:32;;4510:2;4495:18;4482:32;;-1:-1:-1;4135:385:1;-1:-1:-1;4135:385:1:o;5986:184::-;6038:77;6035:1;6028:88;6135:4;6132:1;6125:15;6159:4;6156:1;6149:15;6175:184;6227:77;6224:1;6217:88;6324:4;6321:1;6314:15;6348:4;6345:1;6338:15;6364:195;6403:3;6434:66;6427:5;6424:77;6421:103;;;6504:18;;:::i;:::-;-1:-1:-1;6551:1:1;6540:13;;6364:195::o;6975:184::-;7045:6;7098:2;7086:9;7077:7;7073:23;7069:32;7066:52;;;7114:1;7111;7104:12;7066:52;-1:-1:-1;7137:16:1;;6975:184;-1:-1:-1;6975:184:1:o;8920:263::-;8960:3;8988:44;9059:2;9056:1;9052:10;9089:2;9086:1;9082:10;9120:3;9116:2;9112:12;9107:3;9104:21;9101:47;;;9128:18;;:::i;:::-;9164:13;;8920:263;-1:-1:-1;;;;8920:263:1:o;10677:482::-;10766:1;10809:5;10766:1;10823:330;10844:7;10834:8;10831:21;10823:330;;;10963:4;10895:66;10891:77;10885:4;10882:87;10879:113;;;10972:18;;:::i;:::-;11022:7;11012:8;11008:22;11005:55;;;11042:16;;;;11005:55;11121:22;;;;11081:15;;;;10823:330;;;10827:3;10677:482;;;;;:::o;11164:866::-;11213:5;11243:8;11233:80;;-1:-1:-1;11284:1:1;11298:5;;11233:80;11332:4;11322:76;;-1:-1:-1;11369:1:1;11383:5;;11322:76;11414:4;11432:1;11427:59;;;;11500:1;11495:130;;;;11407:218;;11427:59;11457:1;11448:10;;11471:5;;;11495:130;11532:3;11522:8;11519:17;11516:43;;;11539:18;;:::i;:::-;-1:-1:-1;;11595:1:1;11581:16;;11610:5;;11407:218;;11709:2;11699:8;11696:16;11690:3;11684:4;11681:13;11677:36;11671:2;11661:8;11658:16;11653:2;11647:4;11644:12;11640:35;11637:77;11634:159;;;-1:-1:-1;11746:19:1;;;11778:5;;11634:159;11825:34;11850:8;11844:4;11825:34;:::i;:::-;11955:6;11887:66;11883:79;11874:7;11871:92;11868:118;;;11966:18;;:::i;:::-;12004:20;;11164:866;-1:-1:-1;;;11164:866:1:o;12035:131::-;12095:5;12124:36;12151:8;12145:4;12124:36;:::i;12877:125::-;12917:4;12945:1;12942;12939:8;12936:34;;;12950:18;;:::i;:::-;-1:-1:-1;12987:9:1;;12877:125::o;14129:184::-;14181:77;14178:1;14171:88;14278:4;14275:1;14268:15;14302:4;14299:1;14292:15;14318:112;14350:1;14376;14366:35;;14381:18;;:::i;:::-;-1:-1:-1;14415:9:1;;14318:112::o;15516:228::-;15556:7;15682:1;15614:66;15610:74;15607:1;15604:81;15599:1;15592:9;15585:17;15581:105;15578:131;;;15689:18;;:::i;:::-;-1:-1:-1;15729:9:1;;15516:228::o;15749:120::-;15789:1;15815;15805:35;;15820:18;;:::i;:::-;-1:-1:-1;15854:9:1;;15749:120::o;15874:277::-;15941:6;15994:2;15982:9;15973:7;15969:23;15965:32;15962:52;;;16010:1;16007;16000:12;15962:52;16042:9;16036:16;16095:5;16088:13;16081:21;16074:5;16071:32;16061:60;;16117:1;16114;16107:12;17332:258;17404:1;17414:113;17428:6;17425:1;17422:13;17414:113;;;17504:11;;;17498:18;17485:11;;;17478:39;17450:2;17443:10;17414:113;;;17545:6;17542:1;17539:13;17536:48;;;-1:-1:-1;;17580:1:1;17562:16;;17555:27;17332:258::o;17595:274::-;17724:3;17762:6;17756:13;17778:53;17824:6;17819:3;17812:4;17804:6;17800:17;17778:53;:::i;:::-;17847:16;;;;;17595:274;-1:-1:-1;;17595:274:1:o;17874:442::-;18023:2;18012:9;18005:21;17986:4;18055:6;18049:13;18098:6;18093:2;18082:9;18078:18;18071:34;18114:66;18173:6;18168:2;18157:9;18153:18;18148:2;18140:6;18136:15;18114:66;:::i;:::-;18232:2;18220:15;18237:66;18216:88;18201:104;;;;18307:2;18197:113;;17874:442;-1:-1:-1;;17874:442:1:o

Swarm Source

ipfs://d7e3e37b23f6b1f79715f817d21040659a65e44215b4afeeb79a5bd5f7f06061

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.