S Price: $0.490689 (+0.67%)

Token

Banana Points (BPT)

Overview

Max Total Supply

25,051.39 BPT

Holders

0

Total Transfers

-

Market

Price

$0.00 @ 0.000000 S

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
DiceGame

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : DiceGame.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.19;
import "@openzeppelin/contracts/access/Ownable.sol";
import { TransferHelper } from "./libraries/TransferHelper.sol";

contract DiceGame is Ownable {
    using TransferHelper for address;

    struct GameRound {
        bool fulfilled; // whether the request has been successfully fulfilled
        address user;
        uint256 totalBet;
        uint256 totalWinnings;
        uint256[] betAmts;
        uint256[] diceRollResult;
    }

    uint256 public constant WIN69_MULTIPLIER = 10;
    uint256 public constant CALLBACK_GAS = 200000;
    uint256 public constant MAX_NUM_WORDS = 3;
    uint256 public constant DELIMITER = 1e18;
    uint8 public constant decimals = 18;
    string public constant name = "Banana Points";
    string public constant symbol = "BPT";

    uint256 public immutable gamePeriod;
    address public coin;
    address public immutable V3Deployer;
    address public immutable gameRngWallet;

    uint256 public sellCoinLimit = 1e24;
    /// @notice Timestamp when the geme ower
    uint256 public endTime;
    /// @notice Initial rate of tokens per coin
    uint256 public initialTokenRate;
    uint256 public sellTokenRate;

    uint256 public gameId;
    uint256 public lastFulfilledGameId;

    // The total supply of points in existence
    uint256 public totalSupply;
    // Maps an address to their current balance
    mapping(address => uint256) private userBalances;
    // Maps a game ID to its round information
    mapping(uint256 => GameRound) private gameRounds; /* gameId --> GameRound */
    // Maps an address to their game IDs
    mapping(address => uint256[]) public userGameIds;

    constructor(address _gameRngWalletAddress, uint _gamePeriod, address _V3Deployer) {
        gameRngWallet = _gameRngWalletAddress;
        if (_gameRngWalletAddress == address(0) || _V3Deployer == address(0)) revert ZeroValue();
        if (_gamePeriod < 2 hours || _gamePeriod > 180 days) revert GamePeriod();
        gamePeriod = _gamePeriod;

        V3Deployer = _V3Deployer;
        transferOwnership(_V3Deployer);
    }

    event MintPoints(address recipient, uint256 pointsAmount);
    event BurnPoints(address from, uint256 pointsAmount);
    event Redeem(address user, uint256 amount);
    event PurchasePoints(address user, uint256 paymentAmount);
    event SellPoints(address user, uint256 paymentAmount, uint256 pointsAmount);
    event Bet(uint256 gameId, address user, uint256 totalBetAmt);

    error AmountOfEthSentIsTooSmall(uint256 sent, uint256 minimum);
    error InvalidGameId(uint256 id);
    error InvaliddiceRollResult(uint256 id);
    error GamePeriod();
    error ZeroValue();
    error NotEnoughCoinBalance(uint256 want, uint256 have);
    error SellCoinLimitReached();
    error Forbidden();

    // Modifiers
    modifier shouldGameIsNotOver() {
        require(gameNotOver(), "game over");
        _;
    }

    modifier shouldGameIsOver() {
        require(gameOver(), "game is NOT over");
        _;
    }

    /// @notice Receive ETH and forward to `sponsorWallet`.
    receive() external payable {
        (bool success, ) = gameRngWallet.call{ value: msg.value }("");
        require(success);
    }

    /**
     * @notice Starts a new game with specific parameters Airnode details, initial token rate, etc.
     * non-zero initial token rate, and game not already started (initialTokenRate == 0).
     * @param _initialTokenRate The initial rate used within the game logic, set at the start and never changed afterward.
     * @param _coin address of Coin token for this Game
     * @custom:modifier onlyOwner Restricts the function's execution to the contract's owner.
     */
    function startGame(uint _initialTokenRate, address _coin) external payable onlyOwner {
        // Ensure the initial token rate is not already set
        require(initialTokenRate == 0, "o-o");
        if (_coin == address(0)) revert ZeroValue();
        // Initialize the initial token rate and calculate the end time based on the current timestamp
        initialTokenRate = _initialTokenRate;
        sellTokenRate = _initialTokenRate;
        coin = _coin;
        endTime = block.timestamp + gamePeriod;
        if (msg.value > 0) {
            (bool success, ) = gameRngWallet.call{ value: msg.value }("");
            require(success);
        }
    }

    /// @notice Retrieves the balance of a given account
    /// @dev Returns the current balance stored in `userBalances`
    /// @param account The address of the user whose balance we want to retrieve
    /// @return The balance of the user
    function balanceOf(address account) public view returns (uint256) {
        return userBalances[account];
    }

    /// @notice Retrieves info of particular game id
    /// @param _gameId game number/id
    /// @return gameInfo GameRound struct
    function getGameRoundInfo(uint256 _gameId) public view returns (GameRound memory gameInfo) {
        gameInfo = gameRounds[_gameId];
    }

    /// @notice Retrieves the list of game IDs associated with a given user
    /// @dev Fetches the array of game IDs from `userGameIds` using `.values()`
    /// @param user The address of the user whose game IDs we want to retrieve
    /// @return ids An array of game IDs that the user participated in
    function getUserGameIds(address user) public view returns (uint256[] memory ids) {
        ids = userGameIds[user];
    }

    /// @notice Retrieves the number of games a user has participated in
    /// @dev Calculates the length of the user's game IDs set
    /// @param user The address of the user whose number of games we want to know
    /// @return num The number of games the user has participated in
    function getUserGamesNumber(address user) public view returns (uint256 num) {
        num = userGameIds[user].length;
    }

    // @notice Retrieves the last game information for a given user
    /// @dev Fetches the last game ID and corresponding round info from `userGameIds` and `gameRounds`
    /// @param user The address of the user whose last game information we want to retrieve
    /// @return id The ID of the last game the user participated in
    /// @return round The GameRound struct containing the details of the game round
    function getUserLastGameInfo(
        address user
    ) public view returns (uint256 id, GameRound memory round) {
        uint256 length = userGameIds[user].length;
        if (length > 0) {
            id = userGameIds[user][length - 1];
            round = gameRounds[id];
        }
    }

    /// @notice Determines whether the game is still ongoing or not
    /// @dev Compares the current block timestamp against `endTime`; also ensures that the game has started by requiring `_endTime` to be non-zero
    /// @return Whether the current time is before the game's end time (`true`) or after (`false`)
    function gameNotOver() public view returns (bool) {
        uint256 _endTime = endTime;
        _checkZero(_endTime);
        return block.timestamp < _endTime;
    }

    /**
     * @notice Checks if the game has been concluded based on the time limit.
     * @dev Returns true if the current block timestamp exceeds the end time of the game by 10 minutes.
     *      This implies a grace period of 10 minutes after the official end time before declaring the game over.
     *      The function requires that `endTime` is set and the game has started, otherwise it reverts with an error message.
     *
     * @return A boolean value indicating whether the game is over (true) or not (false).
     */
    function gameOver() public view returns (bool) {
        uint256 _endTime = endTime;
        _checkZero(_endTime);
        return (block.timestamp > _endTime && gameId == lastFulfilledGameId);
    }

    struct GameState {
        uint256 gameId;
        uint256 betNumber;
    }

    /// @dev This function returns the state of games that have not yet been fulfilled.
    /// It constructs an array of `GameState` structures representing each unfulfilled game's
    /// ID and the count of bets placed in that game round.
    /// The function only includes games with IDs greater than `lastFulfilledGameId`.
    /// @return state An array of `GameState` structs for each unfulfilled game.
    function getGameState() public view returns (GameState[] memory state) {
        if (gameId > lastFulfilledGameId) {
            uint256 requests = gameId - lastFulfilledGameId;
            state = new GameState[](requests);
            uint256 index;
            while (lastFulfilledGameId + index < gameId) {
                uint256 id = lastFulfilledGameId + index + 1;
                state[index].gameId = id;
                state[index].betNumber = gameRounds[id].betAmts.length;
                index++;
            }
        }
    }

    /// @notice Allows a user to place a bet on a dice roll(s), record the bet details, and request randomness
    /// @dev Transfers the required ETH to sponsor wallet and creates a new game round with provided bets
    /// @param betAmts An array of amounts representing individual bets for each roll of the dice
    /// @return gameId A unique identifier generated for the game round
    function bet(uint256[] memory betAmts) external payable shouldGameIsNotOver returns (uint256) {
        {
            (uint256 id, GameRound memory round) = getUserLastGameInfo(msg.sender);
            require(round.fulfilled || id == 0, "last round not fulfilled");
        }
        // Check if the number of dice rolls is within the permitted range
        uint256 numWords = betAmts.length;
        require(numWords > 0 && numWords <= MAX_NUM_WORDS, "invalid betAmts");
        // Calculate the total bet amount from the array of bets
        uint256 totalBetAmt;
        for (uint i; i < numWords; ) {
            // Each bet amount must be greater than zero
            _checkZero(betAmts[i]);
            unchecked {
                totalBetAmt += betAmts[i];
                ++i;
            }
        }
        // Ensure the user has enough points to cover their total bet
        // It is possible to resend a bid for the same balance,
        // so this check is also added to the callback function
        require(totalBetAmt <= balanceOf(msg.sender), "points are not enough");
        // user needs to send ether with the transaction
        // user must send enough ether for the callback
        // otherwise the transaction will fail
        uint256 minimumSend = tx.gasprice * CALLBACK_GAS;
        if (msg.value < minimumSend) {
            revert AmountOfEthSentIsTooSmall(msg.value, minimumSend);
        }
        _burnPoints(msg.sender, totalBetAmt);

        unchecked {
            ++gameId;
        }
        uint256 _gameId = gameId;

        // Record the game round details in the contract state
        gameRounds[_gameId] = GameRound({
            fulfilled: false,
            user: msg.sender,
            totalBet: totalBetAmt,
            totalWinnings: 0,
            betAmts: betAmts,
            diceRollResult: new uint256[](betAmts.length)
        });

        // Associate the game ID with the user's address
        userGameIds[msg.sender].push(_gameId);

        emit Bet(_gameId, msg.sender, totalBetAmt);
        // Transfer the received Ether to the sponsor's wallet to cover the callback transaction costs
        (bool success, ) = gameRngWallet.call{ value: msg.value }("");
        require(success);
        return _gameId;
    }

    struct RandomData {
        uint256 id;
        uint256[] rn;
    }

    /**
     * @notice Fulfills the generation of random words if gas requirement is met
     * @dev Processes each `RandomData` entries until either all are processed or minimum remaining gas is not met
     * @param minRemainingGas The minimum amount of gas that must be left for the function to continue processing
     * @param randomData An array of `RandomData` structs containing the IDs and random number arrays to process
     * Requirements:
     * - Only callable by the `gameRngWallet`.
     * - Will stop processing if the remaining gas is less than `minRemainingGas`.
     * Emits a `RandomWordsFulfilled` event upon successful processing of an entry.
     * Uses the `_fulfillRandomWords` internal function to process each entry.
     */
    function fulfillRandomWords(uint256 minRemainingGas, RandomData[] memory randomData) external {
        require(msg.sender == gameRngWallet, "invalid caller");
        for (uint256 i; i < randomData.length; ) {
            if (gasleft() < minRemainingGas) {
                break;
            }
            _fulfillRandomWords(randomData[i].id, randomData[i].rn);
            unchecked {
                ++i;
            }
        }
    }

    /// @notice Records the result of dice rolls, updates the game round, and handles payouts
    /// @dev Requires the caller to be the designated AirnodeRrp address and checks if the round can be fulfilled
    /// @param _gameId The unique identifier of the game round that the dice roll results correspond to
    /// @param _randomWords The array of random numbers provided by off-chain QRNG service
    ///  Using the QRNG service is free, meaning there is no subscription fee to pay.
    /// There is a gas cost incurred on-chain when Airnode places the random number on-chain in response to a request,
    /// which the requester needs to pay for.
    function _fulfillRandomWords(uint256 _gameId, uint256[] memory _randomWords) private {
        unchecked {
            ++lastFulfilledGameId;
        }
        // Retrieve the game round using the _gameId
        GameRound storage round = gameRounds[_gameId];
        uint256 totalBet = round.totalBet;
        if (_gameId != lastFulfilledGameId || totalBet == 0) {
            revert InvalidGameId(_gameId);
        }

        uint256 length = _randomWords.length;
        if (length != round.diceRollResult.length) {
            revert InvaliddiceRollResult(_gameId);
        }
        // Mark the round as fulfilled
        round.fulfilled = true;
        uint256 totalWinnings;

        uint256 bitDice;
        bool double3;
        for (uint i; i < length; ) {
            // Get the dice number between 1 and 6
            uint256 num = (_randomWords[i] % 6) + 1;
            // Calculate winnings based on even dice numbers
            if (num % 2 == 0) {
                totalWinnings += round.betAmts[i] * 2;
            }
            // Special logic for determining 33
            if (num == 3 && !double3 && bitDice & (1 << num) == (1 << num)) {
                double3 = true;
            }
            bitDice |= (1 << num);
            round.diceRollResult[i] = num;
            unchecked {
                ++i;
            }
        }
        // Special logic for determining winnings if the special 69 condition is met
        // or if the special 666 condition is met
        // or if the special repdigit condition is met
        if (length == 3) {
            //Repdigit
            if ((bitDice & (bitDice - 1)) == 0) {
                totalWinnings = 0;
                if (bitDice == 64) {
                    // 666
                    uint256 balance = balanceOf(round.user);
                    totalBet += balance;
                    _burnPoints(round.user, balance);
                }
            } else if ((bitDice == 72 && !double3) || bitDice == 112) {
                // 69
                totalWinnings = totalBet * WIN69_MULTIPLIER;
            }
        }
        if (totalWinnings > 0) {
            round.totalWinnings = totalWinnings;
            _mintPoints(round.user, totalWinnings);
        }
    }

    /**
     * @notice Allows users to purchase a specified amount of points.
     * @param desiredAmountOut The exact amount of points the user wants to purchase.
     */
    function purchasePoints(uint256 desiredAmountOut) external shouldGameIsNotOver {
        uint256 paymentAmount = calculatePaymentAmount(desiredAmountOut, true);
        coin.safeTransferFrom(msg.sender, address(this), paymentAmount);
        _mintPoints(msg.sender, desiredAmountOut);
        emit PurchasePoints(msg.sender, paymentAmount);
    }
    /**
     * @notice Allows users to sell a specified amount of points.
     * @param _amount The exact amount of points the user wants to sell. _amount must be for example - 100 points  ( 100e18)
     */
    function sellPoints(uint256 _amount) external shouldGameIsNotOver {
        uint256 paymentAmount = calculatePaymentAmount(_amount, false);
        uint coinBalance = coin.getBalance();
        if (paymentAmount > coinBalance) revert NotEnoughCoinBalance(paymentAmount, coinBalance);
        if (coinBalance - paymentAmount < sellCoinLimit) revert SellCoinLimitReached();
        if (paymentAmount > 0) {
            _burnPoints(msg.sender, _amount);
            coin.safeTransfer(msg.sender, paymentAmount);
            emit SellPoints(msg.sender, paymentAmount, _amount);
        } else {
            revert ZeroValue();
        }
    }

    /**
     * @notice Calculates the payment amount required for purchasing a specific amount of points.
     * @param desiredPointsAmount The desired amount of points.
     * @param isBuy Boolean indicating if this is a buy operation (true) or sell operation (false)
     * @return paymentAmount The corresponding amount of payment currency that can be purchased/sold for the specified points.
     */
    function calculatePaymentAmount(
        uint256 desiredPointsAmount,
        bool isBuy
    ) public view returns (uint256 paymentAmount) {
        uint256 tokenRate = isBuy ? initialTokenRate : sellTokenRate;
        if (tokenRate == 0) revert ZeroValue();
        uint256 intermediate = desiredPointsAmount * DELIMITER;
        paymentAmount = intermediate / tokenRate;
        // Round up only for buying
        if (isBuy && (paymentAmount == 0 || intermediate % tokenRate > 0)) {
            paymentAmount += 1;
        }
    }

    /**
     * @notice Calculates the points amount a user receives for a given coin amount.
     * @param paymentAmount Amount of the payment currency (e.g., ETH) used to purchase tokens.
     * @param isBuy Boolean indicating if this is a buy operation (true) or sell operation (false)
     * @return pointsAmount The resulting amount of tokens that can be purchased/sold for the specified `paymentAmount`.
     */
    function calculatePointsAmount(
        uint256 paymentAmount,
        bool isBuy
    ) public view returns (uint256 pointsAmount) {
        uint256 rate = isBuy ? initialTokenRate : sellTokenRate;
        if (rate == 0) revert ZeroValue();
        pointsAmount = (paymentAmount * rate) / DELIMITER;
    }

    function sendLiquidity()
        external
        shouldGameIsOver
        onlyOwner
        returns (uint amount, uint totalPTS)
    {
        amount = coin.getBalance();
        coin.safeTransfer(V3Deployer, amount);
        totalPTS = totalSupply;
    }

    function setSellTokenRate(uint256 _sellTokenRate, uint256 _sellCoinLimit) external onlyOwner {
        sellTokenRate = _sellTokenRate;
        sellCoinLimit = _sellCoinLimit;
    }

    /// @notice Redeem points for tokens.
    /// @dev Burns points from the redeemer's balance and mints equivalent tokens.
    ///      Emits a Redeem event upon success.
    ///      Requires the game to be over.
    ///      Requires the Token to have been set and the caller to have a non-zero point balance.
    function redeem() external shouldGameIsOver {
        uint256 amount = balanceOf(msg.sender);
        _checkZero(amount);
        _burnPoints(msg.sender, amount);
        (bool success, ) = V3Deployer.call(
            abi.encodeWithSignature("redeem(address,uint256)", msg.sender, amount)
        );
        require(success);
        emit Redeem(msg.sender, amount);
    }

    /// @notice Mints points and assigns them to a specified account
    /// @dev Increments `userBalances` and `totalSupply` by the given `amount`
    /// @param to The address of the recipient to whom points are to be minted
    /// @param amount The quantity of points to be minted
    function _mintPoints(address to, uint256 amount) private {
        _checkZero(amount);
        userBalances[to] += amount;
        totalSupply += amount;
        emit MintPoints(to, amount);
    }

    /// @notice Burns points from a specified account's balance
    /// @dev Decrements `userBalances` and `totalSupply` by the given `amount`
    /// @param from The address from which points are to be burned
    /// @param amount The quantity of points to be burned
    function _burnPoints(address from, uint256 amount) private {
        _checkZero(amount);
        userBalances[from] -= amount;
        totalSupply -= amount;
        emit BurnPoints(from, amount);
    }

    function _checkZero(uint256 amount) private pure {
        require(amount > 0, "is zero");
    }
}

File 2 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

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

File 3 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

File 4 of 5 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 5 of 5 : TransferHelper.sol
// SPDX-License-Identifier: GPL-2.0-or-later
// https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/TransferHelper.sol
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(address token, address from, address to, uint256 value) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BP-STF");
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(address token, address to, uint256 value) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, value)
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BP-ST");
    }

    function getBalance(address token) internal view returns (uint256 balance) {
        bytes memory callData = abi.encodeWithSelector(IERC20.balanceOf.selector, address(this));
        (bool success, bytes memory data) = token.staticcall(callData);
        require(success && data.length >= 32);
        balance = abi.decode(data, (uint256));
    }

    function getBalanceOf(address token, address target) internal view returns (uint256 balance) {
        bytes memory callData = abi.encodeWithSelector(IERC20.balanceOf.selector, target);
        (bool success, bytes memory data) = token.staticcall(callData);
        require(success && data.length >= 32);
        balance = abi.decode(data, (uint256));
    }

    function safeApprove(address token, address spender, uint256 amount) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.approve.selector, spender, amount)
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BP-SA");
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_gameRngWalletAddress","type":"address"},{"internalType":"uint256","name":"_gamePeriod","type":"uint256"},{"internalType":"address","name":"_V3Deployer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"sent","type":"uint256"},{"internalType":"uint256","name":"minimum","type":"uint256"}],"name":"AmountOfEthSentIsTooSmall","type":"error"},{"inputs":[],"name":"Forbidden","type":"error"},{"inputs":[],"name":"GamePeriod","type":"error"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"InvalidGameId","type":"error"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"InvaliddiceRollResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"want","type":"uint256"},{"internalType":"uint256","name":"have","type":"uint256"}],"name":"NotEnoughCoinBalance","type":"error"},{"inputs":[],"name":"SellCoinLimitReached","type":"error"},{"inputs":[],"name":"ZeroValue","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gameId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalBetAmt","type":"uint256"}],"name":"Bet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"pointsAmount","type":"uint256"}],"name":"BurnPoints","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"pointsAmount","type":"uint256"}],"name":"MintPoints","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"PurchasePoints","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pointsAmount","type":"uint256"}],"name":"SellPoints","type":"event"},{"inputs":[],"name":"CALLBACK_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELIMITER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NUM_WORDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"V3Deployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WIN69_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"betAmts","type":"uint256[]"}],"name":"bet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"desiredPointsAmount","type":"uint256"},{"internalType":"bool","name":"isBuy","type":"bool"}],"name":"calculatePaymentAmount","outputs":[{"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"internalType":"bool","name":"isBuy","type":"bool"}],"name":"calculatePointsAmount","outputs":[{"internalType":"uint256","name":"pointsAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minRemainingGas","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256[]","name":"rn","type":"uint256[]"}],"internalType":"struct DiceGame.RandomData[]","name":"randomData","type":"tuple[]"}],"name":"fulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gameId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameNotOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gamePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameRngWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gameId","type":"uint256"}],"name":"getGameRoundInfo","outputs":[{"components":[{"internalType":"bool","name":"fulfilled","type":"bool"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"totalBet","type":"uint256"},{"internalType":"uint256","name":"totalWinnings","type":"uint256"},{"internalType":"uint256[]","name":"betAmts","type":"uint256[]"},{"internalType":"uint256[]","name":"diceRollResult","type":"uint256[]"}],"internalType":"struct DiceGame.GameRound","name":"gameInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGameState","outputs":[{"components":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"uint256","name":"betNumber","type":"uint256"}],"internalType":"struct DiceGame.GameState[]","name":"state","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserGameIds","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserGamesNumber","outputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserLastGameInfo","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"bool","name":"fulfilled","type":"bool"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"totalBet","type":"uint256"},{"internalType":"uint256","name":"totalWinnings","type":"uint256"},{"internalType":"uint256[]","name":"betAmts","type":"uint256[]"},{"internalType":"uint256[]","name":"diceRollResult","type":"uint256[]"}],"internalType":"struct DiceGame.GameRound","name":"round","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialTokenRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFulfilledGameId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"desiredAmountOut","type":"uint256"}],"name":"purchasePoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellCoinLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sellPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTokenRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sendLiquidity","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"totalPTS","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellTokenRate","type":"uint256"},{"internalType":"uint256","name":"_sellCoinLimit","type":"uint256"}],"name":"setSellTokenRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_initialTokenRate","type":"uint256"},{"internalType":"address","name":"_coin","type":"address"}],"name":"startGame","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userGameIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e034620001fc57601f6200237c38819003918201601f191683019291906001600160401b0384118385101762000201578160609284926040968752833981010312620001fc57620000518162000217565b62000063836020840151930162000217565b916200006f336200022c565b69d3c21bcecceda100000060025560c08290526001600160a01b03918216158015620001f1575b620001e057611c2081108015620001d3575b620001c2576080528160a052338160005416036200017f578116156200012c57620000d3906200022c565b516121089081620002748239608051818181610ebf015261150b015260a051818181610c12015281816117af01526117f8015260c0518181816029015281816104910152818161094c0152818161104a01526115420152f35b815162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6064835162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b835163c8e9ad0d60e01b8152600490fd5b5062ed4e008111620000a8565b8351637c946ed760e01b8152600490fd5b508183161562000096565b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001fc57565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a356fe608060408181526004908136101561005d575b505050361561002057600080fd5b600080808080347f00000000000000000000000000000000000000000000000000000000000000005af1610052611c08565b501561005a57005b80fd5b600092833560e01c90816306fdde0314611941575080630a68ed3e1461191e5780630cbf2014146118ff57806311df9995146118d65780631727f795146118b757806318160ddd146118985780631afb75561461182757806325de6036146117e35780632fc925541461176d578063313ce567146117515780633197cbb6146117325780633c56256b146116f357806340d6bb82146116d757806348ab7c99146115ae578063621cc08d146114ad5780636ee3374b1461148e57806370a082311461144b578063715018a6146113f15780637708d837146113c85780638538928514610fc257806388704c7514610fa45780638da5cb5b14610f7c578063937dfdc114610f5757806395d89b4114610f1c5780639779ea4614610efe578063995f567914610ee2578063ae46631314610ea7578063b0a6330114610e11578063b7d0628b14610c9f578063bdb337d114610c79578063be040fb014610b91578063c2884c0a14610b59578063c75a01031461097b578063cbf99dd114610937578063d3be4fe3146108e1578063d7c81b55146108c2578063e9d0bade146107e2578063f2fde38b1461071f578063f6b0692a146106c95763fecb03b103610012576020928360031936011261005a5767ffffffffffffffff9280358481116106c55761024c9036908301611b24565b61026260035461025b81611f81565b4210611e0a565b61026b33611cfd565b5115908115916106bc575b5015610679578051918215158061066e575b1561063957839284905b80821061060d575050338452600987528484205483116105d25762030d40803a02903a8204143a1517156105bf578034106105a257506102d28333611f26565b60018060065401968760065583516102e981611b0c565b906102f6895192836119d4565b808252610305601f1991611b0c565b01368b8301378751610316816119b8565b878152898b808301338152600a8c8501928b845260608601948d8652608087019b8c5260a087019788528d52528b8b20935115159060ff855491610100600160a81b03905160081b169216906affffffffffffffffffffff60a81b161717835551858301555160028201556003810195519586519084821161058f57680100000000000000009788831161057c578d908b8484805492828255838310610549575b5050505090889493929101908b528d87818d20918d905b85821061052957505050505050019051805192831161051657858311610516578a9082548484558085106104ec575b500190875289872083885b8481106104da575050505050338552600b8852858520918254938410156104c7575086610461847fca49f418dd97ad76b84ed6fb8e915ecccb519c5379cf6a4a455c2be7618fda2f969461047a94606097018155611b82565b90919082549060031b91821b91600019901b1916179055565b845190868252338883015285820152a180808080347f00000000000000000000000000000000000000000000000000000000000000005af16104ba611c08565b501561005a575051908152f35b634e487b7160e01b865260419052602485fd5b8c845194019381840155018490610408565b838a528585848c2092830192015b8281106105085750506103fd565b8b81558e94508791016104fa565b634e487b7160e01b885260418552602488fd5b90919293809596975051940193818401550190878f928a969594936103ce565b808c93928792522092830192015b82811061056857505084848e6103b7565b90919293508d815501908f92918990610557565b634e487b7160e01b8b526041885260248bfd5b634e487b7160e01b8a526041875260248afd5b60449250855191633ce6d0ef60e21b835234908301526024820152fd5b634e487b7160e01b855260118252602485fd5b845162461bcd60e51b815290810187905260156024820152740e0ded2dce8e640c2e4ca40dcdee840cadcdeeaced605b1b6044820152606490fd5b909360019061062561061f8787611df6565b51611f81565b61062f8686611df6565b5101940190610292565b845162461bcd60e51b8152908101879052600f60248201526e696e76616c696420626574416d747360881b6044820152606490fd5b506003831115610288565b835162461bcd60e51b8152808301879052601860248201527f6c61737420726f756e64206e6f742066756c66696c6c656400000000000000006044820152606490fd5b90501538610276565b8280fd5b83823461071b57602036600319011261071b57610717916107049082906001600160a01b036106f6611a63565b168152600b60205220611c9f565b9051918291602083526020830190611a79565b0390f35b5080fd5b5090346106c55760203660031901126106c55761073a611a63565b90610743611bb0565b6001600160a01b0391821692831561079057505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b5082903461071b576107f336611a3f565b90929080156108b9578454935b84156108a957670de0b6b3a7640000908181029181830414901517156108965761082a8582611e62565b948261086e575b5050610842575b6020838351908152f35b60018392930180921161085b5750602092509083610838565b634e487b7160e01b815260118452602490fd5b85159250908215610883575b50508580610831565b61088d9250611e42565b1515858061087a565b634e487b7160e01b835260118652602483fd5b8351637c946ed760e01b81528690fd5b60055493610800565b83823461071b578160031936011261071b576020906006549051908152f35b83823461071b578060031936011261071b576108fb611a63565b6001600160a01b03168252600b6020528082208054602435939084101561005a575060209261092991611b82565b91905490519160031b1c8152f35b83823461071b578160031936011261071b57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346106c55760203660031901126106c557813561099e60035461025b81611f81565b8254928315610b4b57670de0b6b3a7640000808302908382041483151715610b38576109ca8582611e62565b948515918215610b25575b5050610b00575b60018060a01b0360015416835160208101906323b872dd60e01b82523360248201523060448201528660648201526064815260a0810181811067ffffffffffffffff821117610aed57865251879283929083905af1610a39611c08565b81610abe575b5015610a92575091610a8c91610a767fb68479619550fd129cc13fd5926e396b807828988fd8d73efebc02c26a4471869433611eab565b5133815260208101919091529081906040820190565b0390a180f35b606490602084519162461bcd60e51b83528201526006602482015265212816a9aa2360d11b6044820152fd5b8051801592508215610ad3575b505038610a3f565b610ae69250602080918301019101611fb7565b3880610acb565b634e487b7160e01b895260418552602489fd5b9260018101809111610b1257926109dc565b634e487b7160e01b855260118452602485fd5b610b2f9250611e42565b151538806109d5565b634e487b7160e01b865260118252602486fd5b8251637c946ed760e01b8152fd5b83823461071b57602036600319011261071b5760209181906001600160a01b03610b81611a63565b168152600b845220549051908152f35b83823461071b578160031936011261071b57610bb3610bae611dd5565b611e6c565b33825260096020528082205490610bc982611f81565b610bd38233611f26565b80516301e9a69560e41b60208201908152336024830152604482018490528491829190610c0d81606481015b03601f1981018352826119d4565b5190827f00000000000000000000000000000000000000000000000000000000000000005af1610c3b611c08565b50156106c5575133815260208101919091527f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6908060408101610a8c565b83823461071b578160031936011261071b57602090610c96611dd5565b90519015158152f35b50346106c557826003193601126106c55760609160065490600754808311610d12575b5050815160208082528451818301819052919586958686019590830194505b838210610cee5786860387f35b84518051875283015186840152879650948501949382019360019190910190610ce1565b90919350610d238185969496611cf0565b90610d2d82611b0c565b91610d3a875193846119d4565b808352610d49601f1991611b0c565b01845b818110610def57505081845b86610d638285611c48565b1015610de057610d738184611c48565b90600191828101809111610dcd5780610d8c8388611df6565b515287526020600a815260038a8920015490610da88388611df6565b5101526000198114610dba5701610d58565b634e487b7160e01b875260118652602487fd5b634e487b7160e01b885260118752602488fd5b50945050505091388080610cc2565b6020908851610dfd81611986565b878152828881830152828701015201610d4c565b50346106c55760203660031901126106c557610e908161071794610e33611c6b565b5084358152600a6020522092825193610e4b856119b8565b805460ff81161515865260081c6001600160a01b0316602086015260018101548486015260028101546060860152610e8560038201611c9f565b608086015201611c9f565b60a083015251918291602083526020830190611aad565b83823461071b578160031936011261071b57602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b83823461071b578160031936011261071b5760209051600a8152f35b83823461071b578160031936011261071b576020905162030d408152f35b83823461071b578160031936011261071b57805161071791610f3d82611986565b600382526210941560ea1b602083015251918291826119f6565b50346106c55736600319011261071b57610f6f611bb0565b3560055560243560025580f35b83823461071b578160031936011261071b57905490516001600160a01b039091168152602090f35b5090346106c557826003193601126106c55760209250549051908152f35b5091903461071b578260031936011261071b5780359160249384359167ffffffffffffffff9586841161071b573660238501121561071b57838501359361100885611b0c565b94611015855196876119d4565b808652602098838a88019260051b840101923684116113c457848101925b84841061136457506001600160a01b0396935050507f00000000000000000000000000000000000000000000000000000000000000008516330390506113325782979695975b855181101561132657865a10611326576110938187611df6565b515190886110a18289611df6565b51015191600192600784815401809155828852600a808d52868920938685015492811480159061131e575b61130957908392918f945194860190815486036112ef5750855460ff1916881786558a9485948592835b838110611221575050509e9f9d9e600314611140575b505050508781611124575b5050500196959796611079565b828260026111389501555460081c16611eab565b388087611117565b92939192600019850185811161120f5785166111ab575050508588921461116d575b505b3880808061110c565b6111a59089845460081c1661119f6111988260018060a01b0316600052600960205260406000205490565b8093611c48565b50611f26565b38611162565b90929193604881149182611206575b5081156111fb575b506111cf575b5050611164565b9080925081029181830414901517156111e95738806111c8565b634e487b7160e01b875260118a528587fd5b6070915014386111c2565b159150386111ba565b634e487b7160e01b8c5260118f528a8cfd5b600661122d8285611df6565b5106978c8901988981116112d657908d8093926002918291081561129a575b5060038a1480611292575b80611285575b61127b575b61127590838b1b17996104618386611b82565b016110f6565b9195508591611262565b50828a1b8082161461125d565b508615611257565b91928c6112ae8560039e949e809301611b82565b9054911b1c80911b9281840414901517156112d6578d92916112cf91611c48565b993861124c565b5050505050508f8b60118c92634e487b7160e01b835252fd5b90508f9150899250885191630b75137d60e41b8352820152fd5b8e899189519163e8302cbd60e01b8352820152fd5b5082156110cc565b50505094505050505080f35b600e606492898893519362461bcd60e51b85528401528201526d34b73b30b634b21031b0b63632b960911b6044820152fd5b83358381116113c05782018860231982360301126113c05788519061138882611986565b87810135825260448101358581116113bc57916113ad8f94928a869536920101611b24565b83820152815201930192611033565b8980fd5b8780fd5b8580fd5b83823461071b578160031936011261071b576003546020916113e982611f81565b519042108152f35b833461005a578060031936011261005a5761140a611bb0565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b83823461071b57602036600319011261071b5760209061148761146c611a63565b6001600160a01b031660009081526009602052604090205490565b9051908152f35b83823461071b578160031936011261071b576020906005549051908152f35b5090816003193601126106c5576024356001600160a01b03811692823592918490036115aa576114db611bb0565b815461158157831561157457508190556005556bffffffffffffffffffffffff60a01b60015416176001556115307f000000000000000000000000000000000000000000000000000000000000000042611c48565b6003553461153b5780f35b80808080347f00000000000000000000000000000000000000000000000000000000000000005af161156b611c08565b501561005a5780f35b51637c946ed760e01b8152fd5b906020606492519162461bcd60e51b835282015260036024820152626f2d6f60e81b6044820152fd5b8480fd5b50346106c55760203660031901126106c5578135906115d260035461025b81611f81565b60055480156116c757670de0b6b3a76400008084029084820414841517156116b457906115fe91611e62565b60015490936001600160a01b0391611617908316612084565b808611611697578561162891611cf0565b60025411611689578415610b4b57509183916116777f717bbde5df09caa1ed568eaefec6a85e6c49cdc3491f44e0355d04b8a87597a39560609561166c8533611f26565b339060015416611fcf565b8051923384526020840152820152a180f35b82516303968d2760e21b8152fd5b8351630b8d61af60e11b8152918201869052602482015260449150fd5b634e487b7160e01b865260118552602486fd5b8151637c946ed760e01b81528490fd5b83823461071b578160031936011261071b576020905160038152f35b50823461005a57602036600319011261005a575061071761171a611715611a63565b611cfd565b83929192519384938452806020850152830190611aad565b83823461071b578160031936011261071b576020906003549051908152f35b83823461071b578160031936011261071b576020905160128152f35b50823461005a578060031936011261005a575061178b610bae611dd5565b611793611bb0565b6001546001600160a01b03166117d46117ab82612084565b80927f000000000000000000000000000000000000000000000000000000000000000090611fcf565b60085482519182526020820152f35b83823461071b578160031936011261071b57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50913461005a5761183736611a3f565b9092901561188f578054925b83156118805783810293818504149015171561186d57602083670de0b6b3a7640000865191048152f35b634e487b7160e01b825260119052602490fd5b508351637c946ed760e01b8152fd5b60055492611843565b83823461071b578160031936011261071b576020906008549051908152f35b83823461071b578160031936011261071b576020906002549051908152f35b83823461071b578160031936011261071b5760015490516001600160a01b039091168152602090f35b83823461071b578160031936011261071b576020906007549051908152f35b83823461071b578160031936011261071b5760209051670de0b6b3a76400008152f35b925050346106c557826003193601126106c557610717925061196282611986565b600d82526c42616e616e6120506f696e747360981b602083015251918291826119f6565b6040810190811067ffffffffffffffff8211176119a257604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff8211176119a257604052565b90601f8019910116810190811067ffffffffffffffff8211176119a257604052565b6020808252825181830181905290939260005b828110611a2b57505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611a09565b6040906003190112611a5e57600435906024358015158103611a5e5790565b600080fd5b600435906001600160a01b0382168203611a5e57565b90815180825260208080930193019160005b828110611a99575050505090565b835185529381019392810192600101611a8b565b611b099181511515815260018060a01b036020830151166020820152604082015160408201526060820151606082015260a0611af8608084015160c0608085015260c0840190611a79565b9201519060a0818403910152611a79565b90565b67ffffffffffffffff81116119a25760051b60200190565b81601f82011215611a5e57803591611b3b83611b0c565b92611b4960405194856119d4565b808452602092838086019260051b820101928311611a5e578301905b828210611b73575050505090565b81358152908301908301611b65565b8054821015611b9a5760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b6000546001600160a01b03163303611bc457565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d15611c43573d9067ffffffffffffffff82116119a25760405191611c37601f8201601f1916602001846119d4565b82523d6000602084013e565b606090565b91908201809211611c5557565b634e487b7160e01b600052601160045260246000fd5b60405190611c78826119b8565b606060a0836000815260006020820152600060408201526000838201528260808201520152565b9060405191828154918282526020928383019160005283600020936000905b828210611cd657505050611cd4925003836119d4565b565b855484526001958601958895509381019390910190611cbe565b91908203918211611c5557565b6000916000611d0a611c6b565b6001600160a01b039384168252600b6020526040822080549194919081611d32575b50505050565b919394509194506000198201918211611dc1576040611d56611db293600493611b82565b90549060031b1c95868152600a6020522060405193611d74856119b8565b815460ff81161515865260081c1660208501526001810154604085015260028101546060850152611da760038201611c9f565b608085015201611c9f565b60a08201529038808080611d2c565b634e487b7160e01b85526011600452602485fd5b600354611de181611f81565b421180611deb5790565b506006546007541490565b8051821015611b9a5760209160051b010190565b15611e1157565b60405162461bcd60e51b815260206004820152600960248201526833b0b6b29037bb32b960b91b6044820152606490fd5b8115611e4c570690565b634e487b7160e01b600052601260045260246000fd5b8115611e4c570490565b15611e7357565b60405162461bcd60e51b815260206004820152601060248201526f33b0b6b29034b9902727aa1037bb32b960811b6044820152606490fd5b907f6ff849a3868dd59429d6eeae1c7cd02119b80ab215230e999e9b927df856447091611ed782611f81565b60018060a01b03811660005260096020526040600020611ef8838254611c48565b9055611f0682600854611c48565b600855604080516001600160a01b039290921682526020820192909252a1565b907fa813766a77a805e8fc44fa2d6436a1c6a84d38d443c1238f20ed0424bcd5878591611f5282611f81565b60018060a01b03811660005260096020526040600020611f73838254611cf0565b9055611f0682600854611cf0565b15611f8857565b60405162461bcd60e51b81526020600482015260076024820152666973207a65726f60c81b6044820152606490fd5b90816020910312611a5e57518015158103611a5e5790565b60405163a9059cbb60e01b602082019081526001600160a01b0390931660248201526044810193909352600092839290839061200e8160648101610bff565b51925af161201a611c08565b81612055575b501561202857565b60405162461bcd60e51b815260206004820152600560248201526410940b54d560da1b6044820152606490fd5b805180159250821561206a575b505038612020565b61207d9250602080918301019101611fb7565b3880612062565b60405160208101906370a0823160e01b8252306024820152602481526060810181811067ffffffffffffffff8211176119a2576040526000928392839251915afa906120ce611c08565b91806120ef575b1561005a5760208280518101031261005a57506020015190565b506020825110156120d556fea164736f6c6343000813000a00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c00000000000000000000000000000000000000000000000000000000000d2f00000000000000000000000000f764aa6a9250b7332af371b1380d2e6a3ea39c95

Deployed Bytecode

0x608060408181526004908136101561005d575b505050361561002057600080fd5b600080808080347f00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c5af1610052611c08565b501561005a57005b80fd5b600092833560e01c90816306fdde0314611941575080630a68ed3e1461191e5780630cbf2014146118ff57806311df9995146118d65780631727f795146118b757806318160ddd146118985780631afb75561461182757806325de6036146117e35780632fc925541461176d578063313ce567146117515780633197cbb6146117325780633c56256b146116f357806340d6bb82146116d757806348ab7c99146115ae578063621cc08d146114ad5780636ee3374b1461148e57806370a082311461144b578063715018a6146113f15780637708d837146113c85780638538928514610fc257806388704c7514610fa45780638da5cb5b14610f7c578063937dfdc114610f5757806395d89b4114610f1c5780639779ea4614610efe578063995f567914610ee2578063ae46631314610ea7578063b0a6330114610e11578063b7d0628b14610c9f578063bdb337d114610c79578063be040fb014610b91578063c2884c0a14610b59578063c75a01031461097b578063cbf99dd114610937578063d3be4fe3146108e1578063d7c81b55146108c2578063e9d0bade146107e2578063f2fde38b1461071f578063f6b0692a146106c95763fecb03b103610012576020928360031936011261005a5767ffffffffffffffff9280358481116106c55761024c9036908301611b24565b61026260035461025b81611f81565b4210611e0a565b61026b33611cfd565b5115908115916106bc575b5015610679578051918215158061066e575b1561063957839284905b80821061060d575050338452600987528484205483116105d25762030d40803a02903a8204143a1517156105bf578034106105a257506102d28333611f26565b60018060065401968760065583516102e981611b0c565b906102f6895192836119d4565b808252610305601f1991611b0c565b01368b8301378751610316816119b8565b878152898b808301338152600a8c8501928b845260608601948d8652608087019b8c5260a087019788528d52528b8b20935115159060ff855491610100600160a81b03905160081b169216906affffffffffffffffffffff60a81b161717835551858301555160028201556003810195519586519084821161058f57680100000000000000009788831161057c578d908b8484805492828255838310610549575b5050505090889493929101908b528d87818d20918d905b85821061052957505050505050019051805192831161051657858311610516578a9082548484558085106104ec575b500190875289872083885b8481106104da575050505050338552600b8852858520918254938410156104c7575086610461847fca49f418dd97ad76b84ed6fb8e915ecccb519c5379cf6a4a455c2be7618fda2f969461047a94606097018155611b82565b90919082549060031b91821b91600019901b1916179055565b845190868252338883015285820152a180808080347f00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c5af16104ba611c08565b501561005a575051908152f35b634e487b7160e01b865260419052602485fd5b8c845194019381840155018490610408565b838a528585848c2092830192015b8281106105085750506103fd565b8b81558e94508791016104fa565b634e487b7160e01b885260418552602488fd5b90919293809596975051940193818401550190878f928a969594936103ce565b808c93928792522092830192015b82811061056857505084848e6103b7565b90919293508d815501908f92918990610557565b634e487b7160e01b8b526041885260248bfd5b634e487b7160e01b8a526041875260248afd5b60449250855191633ce6d0ef60e21b835234908301526024820152fd5b634e487b7160e01b855260118252602485fd5b845162461bcd60e51b815290810187905260156024820152740e0ded2dce8e640c2e4ca40dcdee840cadcdeeaced605b1b6044820152606490fd5b909360019061062561061f8787611df6565b51611f81565b61062f8686611df6565b5101940190610292565b845162461bcd60e51b8152908101879052600f60248201526e696e76616c696420626574416d747360881b6044820152606490fd5b506003831115610288565b835162461bcd60e51b8152808301879052601860248201527f6c61737420726f756e64206e6f742066756c66696c6c656400000000000000006044820152606490fd5b90501538610276565b8280fd5b83823461071b57602036600319011261071b57610717916107049082906001600160a01b036106f6611a63565b168152600b60205220611c9f565b9051918291602083526020830190611a79565b0390f35b5080fd5b5090346106c55760203660031901126106c55761073a611a63565b90610743611bb0565b6001600160a01b0391821692831561079057505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b5082903461071b576107f336611a3f565b90929080156108b9578454935b84156108a957670de0b6b3a7640000908181029181830414901517156108965761082a8582611e62565b948261086e575b5050610842575b6020838351908152f35b60018392930180921161085b5750602092509083610838565b634e487b7160e01b815260118452602490fd5b85159250908215610883575b50508580610831565b61088d9250611e42565b1515858061087a565b634e487b7160e01b835260118652602483fd5b8351637c946ed760e01b81528690fd5b60055493610800565b83823461071b578160031936011261071b576020906006549051908152f35b83823461071b578060031936011261071b576108fb611a63565b6001600160a01b03168252600b6020528082208054602435939084101561005a575060209261092991611b82565b91905490519160031b1c8152f35b83823461071b578160031936011261071b57517f00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c6001600160a01b03168152602090f35b50346106c55760203660031901126106c557813561099e60035461025b81611f81565b8254928315610b4b57670de0b6b3a7640000808302908382041483151715610b38576109ca8582611e62565b948515918215610b25575b5050610b00575b60018060a01b0360015416835160208101906323b872dd60e01b82523360248201523060448201528660648201526064815260a0810181811067ffffffffffffffff821117610aed57865251879283929083905af1610a39611c08565b81610abe575b5015610a92575091610a8c91610a767fb68479619550fd129cc13fd5926e396b807828988fd8d73efebc02c26a4471869433611eab565b5133815260208101919091529081906040820190565b0390a180f35b606490602084519162461bcd60e51b83528201526006602482015265212816a9aa2360d11b6044820152fd5b8051801592508215610ad3575b505038610a3f565b610ae69250602080918301019101611fb7565b3880610acb565b634e487b7160e01b895260418552602489fd5b9260018101809111610b1257926109dc565b634e487b7160e01b855260118452602485fd5b610b2f9250611e42565b151538806109d5565b634e487b7160e01b865260118252602486fd5b8251637c946ed760e01b8152fd5b83823461071b57602036600319011261071b5760209181906001600160a01b03610b81611a63565b168152600b845220549051908152f35b83823461071b578160031936011261071b57610bb3610bae611dd5565b611e6c565b33825260096020528082205490610bc982611f81565b610bd38233611f26565b80516301e9a69560e41b60208201908152336024830152604482018490528491829190610c0d81606481015b03601f1981018352826119d4565b5190827f000000000000000000000000f764aa6a9250b7332af371b1380d2e6a3ea39c955af1610c3b611c08565b50156106c5575133815260208101919091527f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6908060408101610a8c565b83823461071b578160031936011261071b57602090610c96611dd5565b90519015158152f35b50346106c557826003193601126106c55760609160065490600754808311610d12575b5050815160208082528451818301819052919586958686019590830194505b838210610cee5786860387f35b84518051875283015186840152879650948501949382019360019190910190610ce1565b90919350610d238185969496611cf0565b90610d2d82611b0c565b91610d3a875193846119d4565b808352610d49601f1991611b0c565b01845b818110610def57505081845b86610d638285611c48565b1015610de057610d738184611c48565b90600191828101809111610dcd5780610d8c8388611df6565b515287526020600a815260038a8920015490610da88388611df6565b5101526000198114610dba5701610d58565b634e487b7160e01b875260118652602487fd5b634e487b7160e01b885260118752602488fd5b50945050505091388080610cc2565b6020908851610dfd81611986565b878152828881830152828701015201610d4c565b50346106c55760203660031901126106c557610e908161071794610e33611c6b565b5084358152600a6020522092825193610e4b856119b8565b805460ff81161515865260081c6001600160a01b0316602086015260018101548486015260028101546060860152610e8560038201611c9f565b608086015201611c9f565b60a083015251918291602083526020830190611aad565b83823461071b578160031936011261071b57602090517f00000000000000000000000000000000000000000000000000000000000d2f008152f35b83823461071b578160031936011261071b5760209051600a8152f35b83823461071b578160031936011261071b576020905162030d408152f35b83823461071b578160031936011261071b57805161071791610f3d82611986565b600382526210941560ea1b602083015251918291826119f6565b50346106c55736600319011261071b57610f6f611bb0565b3560055560243560025580f35b83823461071b578160031936011261071b57905490516001600160a01b039091168152602090f35b5090346106c557826003193601126106c55760209250549051908152f35b5091903461071b578260031936011261071b5780359160249384359167ffffffffffffffff9586841161071b573660238501121561071b57838501359361100885611b0c565b94611015855196876119d4565b808652602098838a88019260051b840101923684116113c457848101925b84841061136457506001600160a01b0396935050507f00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c8516330390506113325782979695975b855181101561132657865a10611326576110938187611df6565b515190886110a18289611df6565b51015191600192600784815401809155828852600a808d52868920938685015492811480159061131e575b61130957908392918f945194860190815486036112ef5750855460ff1916881786558a9485948592835b838110611221575050509e9f9d9e600314611140575b505050508781611124575b5050500196959796611079565b828260026111389501555460081c16611eab565b388087611117565b92939192600019850185811161120f5785166111ab575050508588921461116d575b505b3880808061110c565b6111a59089845460081c1661119f6111988260018060a01b0316600052600960205260406000205490565b8093611c48565b50611f26565b38611162565b90929193604881149182611206575b5081156111fb575b506111cf575b5050611164565b9080925081029181830414901517156111e95738806111c8565b634e487b7160e01b875260118a528587fd5b6070915014386111c2565b159150386111ba565b634e487b7160e01b8c5260118f528a8cfd5b600661122d8285611df6565b5106978c8901988981116112d657908d8093926002918291081561129a575b5060038a1480611292575b80611285575b61127b575b61127590838b1b17996104618386611b82565b016110f6565b9195508591611262565b50828a1b8082161461125d565b508615611257565b91928c6112ae8560039e949e809301611b82565b9054911b1c80911b9281840414901517156112d6578d92916112cf91611c48565b993861124c565b5050505050508f8b60118c92634e487b7160e01b835252fd5b90508f9150899250885191630b75137d60e41b8352820152fd5b8e899189519163e8302cbd60e01b8352820152fd5b5082156110cc565b50505094505050505080f35b600e606492898893519362461bcd60e51b85528401528201526d34b73b30b634b21031b0b63632b960911b6044820152fd5b83358381116113c05782018860231982360301126113c05788519061138882611986565b87810135825260448101358581116113bc57916113ad8f94928a869536920101611b24565b83820152815201930192611033565b8980fd5b8780fd5b8580fd5b83823461071b578160031936011261071b576003546020916113e982611f81565b519042108152f35b833461005a578060031936011261005a5761140a611bb0565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b83823461071b57602036600319011261071b5760209061148761146c611a63565b6001600160a01b031660009081526009602052604090205490565b9051908152f35b83823461071b578160031936011261071b576020906005549051908152f35b5090816003193601126106c5576024356001600160a01b03811692823592918490036115aa576114db611bb0565b815461158157831561157457508190556005556bffffffffffffffffffffffff60a01b60015416176001556115307f00000000000000000000000000000000000000000000000000000000000d2f0042611c48565b6003553461153b5780f35b80808080347f00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c5af161156b611c08565b501561005a5780f35b51637c946ed760e01b8152fd5b906020606492519162461bcd60e51b835282015260036024820152626f2d6f60e81b6044820152fd5b8480fd5b50346106c55760203660031901126106c5578135906115d260035461025b81611f81565b60055480156116c757670de0b6b3a76400008084029084820414841517156116b457906115fe91611e62565b60015490936001600160a01b0391611617908316612084565b808611611697578561162891611cf0565b60025411611689578415610b4b57509183916116777f717bbde5df09caa1ed568eaefec6a85e6c49cdc3491f44e0355d04b8a87597a39560609561166c8533611f26565b339060015416611fcf565b8051923384526020840152820152a180f35b82516303968d2760e21b8152fd5b8351630b8d61af60e11b8152918201869052602482015260449150fd5b634e487b7160e01b865260118552602486fd5b8151637c946ed760e01b81528490fd5b83823461071b578160031936011261071b576020905160038152f35b50823461005a57602036600319011261005a575061071761171a611715611a63565b611cfd565b83929192519384938452806020850152830190611aad565b83823461071b578160031936011261071b576020906003549051908152f35b83823461071b578160031936011261071b576020905160128152f35b50823461005a578060031936011261005a575061178b610bae611dd5565b611793611bb0565b6001546001600160a01b03166117d46117ab82612084565b80927f000000000000000000000000f764aa6a9250b7332af371b1380d2e6a3ea39c9590611fcf565b60085482519182526020820152f35b83823461071b578160031936011261071b57517f000000000000000000000000f764aa6a9250b7332af371b1380d2e6a3ea39c956001600160a01b03168152602090f35b50913461005a5761183736611a3f565b9092901561188f578054925b83156118805783810293818504149015171561186d57602083670de0b6b3a7640000865191048152f35b634e487b7160e01b825260119052602490fd5b508351637c946ed760e01b8152fd5b60055492611843565b83823461071b578160031936011261071b576020906008549051908152f35b83823461071b578160031936011261071b576020906002549051908152f35b83823461071b578160031936011261071b5760015490516001600160a01b039091168152602090f35b83823461071b578160031936011261071b576020906007549051908152f35b83823461071b578160031936011261071b5760209051670de0b6b3a76400008152f35b925050346106c557826003193601126106c557610717925061196282611986565b600d82526c42616e616e6120506f696e747360981b602083015251918291826119f6565b6040810190811067ffffffffffffffff8211176119a257604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff8211176119a257604052565b90601f8019910116810190811067ffffffffffffffff8211176119a257604052565b6020808252825181830181905290939260005b828110611a2b57505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611a09565b6040906003190112611a5e57600435906024358015158103611a5e5790565b600080fd5b600435906001600160a01b0382168203611a5e57565b90815180825260208080930193019160005b828110611a99575050505090565b835185529381019392810192600101611a8b565b611b099181511515815260018060a01b036020830151166020820152604082015160408201526060820151606082015260a0611af8608084015160c0608085015260c0840190611a79565b9201519060a0818403910152611a79565b90565b67ffffffffffffffff81116119a25760051b60200190565b81601f82011215611a5e57803591611b3b83611b0c565b92611b4960405194856119d4565b808452602092838086019260051b820101928311611a5e578301905b828210611b73575050505090565b81358152908301908301611b65565b8054821015611b9a5760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b6000546001600160a01b03163303611bc457565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d15611c43573d9067ffffffffffffffff82116119a25760405191611c37601f8201601f1916602001846119d4565b82523d6000602084013e565b606090565b91908201809211611c5557565b634e487b7160e01b600052601160045260246000fd5b60405190611c78826119b8565b606060a0836000815260006020820152600060408201526000838201528260808201520152565b9060405191828154918282526020928383019160005283600020936000905b828210611cd657505050611cd4925003836119d4565b565b855484526001958601958895509381019390910190611cbe565b91908203918211611c5557565b6000916000611d0a611c6b565b6001600160a01b039384168252600b6020526040822080549194919081611d32575b50505050565b919394509194506000198201918211611dc1576040611d56611db293600493611b82565b90549060031b1c95868152600a6020522060405193611d74856119b8565b815460ff81161515865260081c1660208501526001810154604085015260028101546060850152611da760038201611c9f565b608085015201611c9f565b60a08201529038808080611d2c565b634e487b7160e01b85526011600452602485fd5b600354611de181611f81565b421180611deb5790565b506006546007541490565b8051821015611b9a5760209160051b010190565b15611e1157565b60405162461bcd60e51b815260206004820152600960248201526833b0b6b29037bb32b960b91b6044820152606490fd5b8115611e4c570690565b634e487b7160e01b600052601260045260246000fd5b8115611e4c570490565b15611e7357565b60405162461bcd60e51b815260206004820152601060248201526f33b0b6b29034b9902727aa1037bb32b960811b6044820152606490fd5b907f6ff849a3868dd59429d6eeae1c7cd02119b80ab215230e999e9b927df856447091611ed782611f81565b60018060a01b03811660005260096020526040600020611ef8838254611c48565b9055611f0682600854611c48565b600855604080516001600160a01b039290921682526020820192909252a1565b907fa813766a77a805e8fc44fa2d6436a1c6a84d38d443c1238f20ed0424bcd5878591611f5282611f81565b60018060a01b03811660005260096020526040600020611f73838254611cf0565b9055611f0682600854611cf0565b15611f8857565b60405162461bcd60e51b81526020600482015260076024820152666973207a65726f60c81b6044820152606490fd5b90816020910312611a5e57518015158103611a5e5790565b60405163a9059cbb60e01b602082019081526001600160a01b0390931660248201526044810193909352600092839290839061200e8160648101610bff565b51925af161201a611c08565b81612055575b501561202857565b60405162461bcd60e51b815260206004820152600560248201526410940b54d560da1b6044820152606490fd5b805180159250821561206a575b505038612020565b61207d9250602080918301019101611fb7565b3880612062565b60405160208101906370a0823160e01b8252306024820152602481526060810181811067ffffffffffffffff8211176119a2576040526000928392839251915afa906120ce611c08565b91806120ef575b1561005a5760208280518101031261005a57506020015190565b506020825110156120d556fea164736f6c6343000813000a

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

00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c00000000000000000000000000000000000000000000000000000000000d2f00000000000000000000000000f764aa6a9250b7332af371b1380d2e6a3ea39c95

-----Decoded View---------------
Arg [0] : _gameRngWalletAddress (address): 0x63795e0f9223Ec4BFeF5fBE3dbf9331F1C57cC5c
Arg [1] : _gamePeriod (uint256): 864000
Arg [2] : _V3Deployer (address): 0xF764aA6a9250b7332af371B1380D2e6A3ea39c95

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000063795e0f9223ec4bfef5fbe3dbf9331f1c57cc5c
Arg [1] : 00000000000000000000000000000000000000000000000000000000000d2f00
Arg [2] : 000000000000000000000000f764aa6a9250b7332af371b1380d2e6a3ea39c95


[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.