feat(student): Add SP Investment Vault (attendance-based risk/reward investment system for Spurti Points) - #88
Open
rishisaini1403-ship-it wants to merge 5 commits into
Conversation
…estamps - Add env-gated hourly cron (INVESTMENT_RESOLVER_ENABLED) to close the lazy-resolution gap between maturity and credit - Add 3-level investment status (active / matured-awaiting-credit / resolved) with exact invested/matured/credited timestamps on history cards - Fix stale SP balance not refreshing after resolution - Fix negative 'matures in -N days' edge case on active card - Remove unreachable dead-code branches (cancelled status, active-in-history)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces the SP Investment Vault for Spurti.
The Investment Vault is a gamified, attendance-based investment system that allows students to voluntarily lock their Spurti Points for a fixed duration and earn bonus rewards upon successful completion of the investment period while satisfying the required attendance criteria.
The feature promotes:
Features
Investment Workflow
Student selects:
↓
Investment calculator displays:
↓
Confirmation modal
↓
SP is locked
↓
Attendance is evaluated during the investment period
↓
Successful completion:
OR
Failed completion:
Implemented Features
Why this feature?
The SP Investment Vault introduces a gamified risk vs reward mechanism into Spurti.
Students voluntarily invest their existing Spurti Points and are rewarded only if they satisfy the required attendance criteria during the investment period.
This feature encourages:
By combining gamification with delayed gratification and accountability, the Investment Vault motivates students to remain engaged and committed throughout their learning journey.
Screenshots