import styles from "./PulseSidebar.module.scss";
import { PulseSidebarProps } from "./PulseSidebar.types";
// @TODO Create game tiers and add them to the sidebar
// labels: 500 USDT, P1
export const PulseSidebar: React.FC<PulseSidebarProps> = ({ className, isOpen, handleOpen, handleClose }) => {
const { t } = useTranslation(["common"]);
This issue is more complex than what the title describes:
Motivation
The original game design requires 10 USDT usdt.tether-token.near in a user's wallet to play only one game. As a new game and given that it runs under the NEAR Protocol, this 10 USDT fact is a big obstacle to onboard new users, because some of them don't even have a NEAR wallet.
This PR is tracking a new feature were a new user is created a "guest wallet" automatically and they can play up to 5 "free" games. These free games are really Rust contracts were the price of playing is 0.01 USDT. We transfer 0.05 USDT to a guest user wallet so they can play. This transfer must be limited to the user's device, so do not create more than 1 wallet per user.
Proposal and Solution
Once users are engaged with the game after having played for free, can we onboard them into paying for new games? How much would they be willing to pay?
Action items:
Create 3 or 4 Rust game factories, each factory creates a game with a set price, eg. 5, 10, 20, 100 USDT. To play, a user must transfer this amount of USDT to the current game
-- For this, only set the new USDT price in constants.rs, build and deploy the factories to testnet and mainnet
These factories must have their own NextJS page, so that when a user clicks the "create a new game" button, the button calls each corresponding factory contract
-- We can also do this by creating a Modal and display the different game price options
https://api.github.com/aufacicenta/pulsemarkets/blob/ee5fa9477ce33608924fe8c71a708e41300f1ed0/app/src/ui/pulse/sidebar/PulseSidebar.tsx#L12
This issue is more complex than what the title describes:
Motivation
The original game design requires 10 USDT
usdt.tether-token.near
in a user's wallet to play only one game. As a new game and given that it runs under the NEAR Protocol, this 10 USDT fact is a big obstacle to onboard new users, because some of them don't even have a NEAR wallet.This PR is tracking a new feature were a new user is created a "guest wallet" automatically and they can play up to 5 "free" games. These free games are really Rust contracts were the price of playing is 0.01 USDT. We transfer 0.05 USDT to a guest user wallet so they can play. This transfer must be limited to the user's device, so do not create more than 1 wallet per user.
Proposal and Solution
Once users are engaged with the game after having played for free, can we onboard them into paying for new games? How much would they be willing to pay?
Action items:
constants.rs
, build and deploy the factories to testnet and mainnet