Skip to content

Fee Router v2 (Per-Asset + Per-Role + Collector Rotation) #305

@Cedarich

Description

@Cedarich

Status: Open (Wave 4 – financial)
Labels: Contract, Financial, Admin, wave4
Complexity: High (200 points)
Summary
Upgrade fee handling to support per-asset fees, optional arbiter fees, and rotating the fee collector address without disrupting existing escrows.
Tasks

  • Extend fee config to include per-asset fee bps and optional role splits.
  • Implement fee routing logic that handles XLM + SAC tokens consistently.
  • Add admin entry point to rotate collector address safely.
  • Add tests for fee calculation and routing across asset types.
    Acceptance Criteria
  • Fees are always deducted exactly as configured and never exceed expected bounds.
  • Collector rotation affects new payouts without breaking old escrows.
  • Tests cover XLM and SAC scenarios.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions