Skip to content

Missions groups target price calculator systems #191

Open
DevLJSP wants to merge 4 commits intooutpoot:mainfrom
DevLJSP:missions-groups-target-price-calculator
Open

Missions groups target price calculator systems #191
DevLJSP wants to merge 4 commits intooutpoot:mainfrom
DevLJSP:missions-groups-target-price-calculator

Conversation

@DevLJSP
Copy link
Copy Markdown

@DevLJSP DevLJSP commented Mar 7, 2026

What's new

(FACEDEV - You can change somethings if you dont like it).

Groups

Users can now create groups, pool funds in a shared treasury, and distribute them to members.

Limits

  • A user can own at most 2 groups
  • A user can be a member of at most 50 groups (including ones they own)
  • Each group holds at most 50 members

Creating a group

Costs $150,000 deducted from the creator's balance. The creator is automatically added as owner. Name must be 3–50 characters, description is optional (max 200 characters).

Treasury

The owner can deposit funds into the group treasury at any time. From there, they can either send a specific amount to a single member, or split an amount evenly across all non-owner members at once. Any remainder from uneven splits stays in the treasury.

On disbanding, the remaining treasury balance is returned to the owner before the group is deleted.

Transfer limits

  • Single transfers: capped at $1,000,000,000 per operation
  • Bulk transfers (send to all): capped at $1,000,000,000, rate-limited to one call per 10 seconds per group
  • Individual transfers: rate-limited to one call per 3 seconds per group

User profiles

Group memberships are now visible on public profiles. The groups section shows every group the user belongs to, with their role (owner or member) and the current member count. Clicking a group card navigates to the group page.


Daily missions — daily rewards with missions

With +18 missions, with 8 random chosed daily missions

Prestige multipliers (rewards are low): ** 0: 1.0,
1: 1.04,
2: 1.22,
3: 2.0,
4: 6.4,
5: 42.0,**

Target price calculator

Choose the target price and calculate how much you need to buy/sell to reach that price.


Admin — group moderation

Admins have a new Manage groups entry in the sidebar dropdown. It leads to /admin/groups, where admins can:

  • Browse all groups with owner info (username + email), member count, treasury balance, and creation date
  • Search groups by name (debounced)
  • Disband any group — treasury balance is returned to the owner first

The disband action shows a confirmation modal with a summary of the group before proceeding.

RUN npx drizzle-kit push TO APPLY DATABASE CHANGES

All admin endpoints re-verify admin status against the database on every request rather than trusting session claims alone.

Images:
image
image
image
image
image
image
image

@DevLJSP
Copy link
Copy Markdown
Author

DevLJSP commented Mar 8, 2026

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants