Skip to content

Conversation

@Goodnessukaigwe
Copy link

closes #18

  • Accept list of (creator, amount) tuples
  • Validate admin authentication
  • Check sufficient balance in creator pool
  • Transfer USDC from treasury to creators
  • Update creator_fees balance
  • Emit CreatorRewardsDistributed event

Tests:

  • Happy path distributes correctly to multiple creators
  • Only admin can trigger (rejects non-admin)
  • Rejects if insufficient balance in pool
  • Event emitted correctly with total_amount and creator_count

- Accept list of (creator, amount) tuples
- Validate admin authentication
- Check sufficient balance in creator pool
- Transfer USDC from treasury to creators
- Update creator_fees balance
- Emit CreatorRewardsDistributed event

Tests:
- Happy path distributes correctly to multiple creators
- Only admin can trigger (rejects non-admin)
- Rejects if insufficient balance in pool
- Event emitted correctly with total_amount and creator_count
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.

Contract: Treasury.distribute_creator() Tier 5

1 participant