aufacicenta / pulsemarkets

pulsemarkets-v2-web.vercel.app
1 stars 3 forks source link

Create game tiers and add them to the sidebar #195

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/aufacicenta/pulsemarkets/blob/ee5fa9477ce33608924fe8c71a708e41300f1ed0/app/src/ui/pulse/sidebar/PulseSidebar.tsx#L12


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:

Udit-takkar commented 1 year ago

@netpoe I can work on this issue

netpoe commented 1 year ago

@Udit-takkar let's complete #200 first. Otherwise the new factories will be deployed with the old contract code.