The levels page is at /admin/levels. Levels define the tier system that users progress through by making deposits. Each level controls what tasks users see, how much they earn per task, and how many sets they can complete per day.
The Level type
interface Level {
id: number;
name: string;
price: number;
commission_rate: number;
tasks_per_set: number;
sets_per_day: number;
description: string;
badge_color: string;
}
Field reference
| Field | Effect |
|---|
name | Display name shown on the user’s profile and badge (e.g. “VIP 1 Platinum”) |
price | Minimum deposit required to activate this tier, in USD |
commission_rate | Decimal yield percentage applied per task (e.g. 0.0045 = 0.45% per task) |
tasks_per_set | Number of tasks a user must complete to finish one set |
sets_per_day | Maximum number of sets a user can complete in a 24-hour window |
description | Optional text shown on the level card in the admin view |
badge_color | Hex color string used for the level badge and card accent (e.g. #7c3aed) |
How commission_rate works
For each task a user completes, their profit is incremented by:
earned = task_item_price × commission_rate
A higher commission_rate means users earn more per task, which affects the total daily yield at the level.
How tasks_per_set and sets_per_day interact
Max daily tasks = tasks_per_set × sets_per_day
For example, a level with tasks_per_set: 40 and sets_per_day: 3 allows a user to complete 120 tasks per day across 3 separate sets. Once a user completes all sets for the day, no more tasks are available until the daily reset.
Changing tasks_per_set or sets_per_day on a level takes effect immediately for all users currently assigned to that level. This includes users mid-set. If you reduce tasks_per_set on a live level, users who are past the new task count in their current set may experience unexpected behavior. Make level configuration changes during low-activity periods.
Creating a new level
Click Add Tier to expand the creation form. Fill in all fields, then click Activate Tier.
New levels default to commission_rate: 0.0045, tasks_per_set: 40, and sets_per_day: 3. Adjust these to match your intended tier structure before saving.
Editing an existing level
Click the Edit (pencil) icon on any level card. The card switches to an inline edit form. All fields are editable. Click Save to persist changes or Cancel to discard them.
Deleting a level
Click the Trash icon on any level card and confirm the prompt. Deleting a level does not automatically reassign users — users whose level_id matches the deleted level will have an orphaned reference. Reassign those users before or after deleting.
Badge color
Each level card renders with a glow effect using badge_color. Use a hex value. The color picker in the edit form includes both a visual picker and a hex input field that stay in sync.