Skip to content

Implement Settlement Contract Init and Access Control #45

@greatest0fallt1me

Description

@greatest0fallt1me

Description
Implement init for the revenue settlement contract: set admin/owner and optionally token address. Restrict receive_payment and distribute to authorized callers only.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Document who can receive payments (vault? backend?) and who can distribute

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/settlement-init-and-auth
  • Implement changes
    • Init(admin, token_address); receive_payment(amount) restricted; distribute restricted to admin or backend
    • Add tests for init and unauthorized calls
  • Test and commit
    • Run tests; include test output
  • Example commit message: feat: settlement init and access control

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours
  • Project details: #

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions