Skip to content

feat: implement scholarship fund contract and UI#445

Merged
Emeka000 merged 2 commits into
Healthy-Stellar:mainfrom
agnesadoga-creator:feature/283-scholarship-fund
Jun 1, 2026
Merged

feat: implement scholarship fund contract and UI#445
Emeka000 merged 2 commits into
Healthy-Stellar:mainfrom
agnesadoga-creator:feature/283-scholarship-fund

Conversation

@agnesadoga-creator

Copy link
Copy Markdown
Contributor

Deploys scholarship fund Soroban contract with deposit, withdraw, admin disbursement, on-chain balance tracking, and scholarship application UI.

Changes

  • contracts/scholarship-fund/src/lib.rs: ScholarshipFundContract with initialize, deposit, withdraw, disburse, get_stats, get_deposit
  • deposit(): anyone can fund the pool; per-depositor balance tracked separately
  • withdraw(): depositor reclaims own contribution (bounded by their deposit amount)
  • disburse(): admin-only; emits DISBURSE event with reason string
  • FundStats struct for admin balance display
  • 6 unit tests: deposit, withdraw, disburse, insufficient pool, non-admin, over-withdraw

Closes #283

agnesadoga-creator and others added 2 commits June 1, 2026 03:17
- ScholarshipFundContract: initialize, deposit, withdraw, disburse, get_stats, get_deposit
- deposit(): anyone can fund the pool; per-depositor balance tracked separately
- withdraw(): depositor reclaims own contribution (bounded by their deposit amount)
- disburse(): admin-only; reduces pool balance; emits DISBURSE event with reason
- 6 unit tests: deposit, withdraw, disburse, insufficient, non-admin, over-withdraw

Closes Healthy-Stellar#283
@Emeka000 Emeka000 merged commit fc5a164 into Healthy-Stellar:main Jun 1, 2026
0 of 5 checks passed
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