Skip to content

Add Protocol Fee Parameters and Accrual #94

@mikewheeleer

Description

@mikewheeleer

Add Configurable Protocol Fee on Escrow Operations

Description

Introduce basis-point or fixed fee parameters collected on funding or settlement, with explicit recipient and accounting so principal and yield math remain auditable.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/escrow-protocol-fees
  • Implement changes
  • Write contract: escrow/src/lib.rs
  • Write comprehensive tests: escrow/src/test.rs
  • Add documentation: README.md
  • Include Rust doc comments for fee caps and rounding
  • Validate assumptions to prevent fee bypass and arithmetic edge cases

Test and commit

  • Run tests
  • Cover edge cases
  • Include test output and security notes

Example commit message

feat(escrow): add configurable protocol fee accrual and settlement

Guidelines

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions