Skip to content

[Optimization] Dynamic Tier-Based Fee Structure #132

@Cedarich

Description

@Cedarich

Label: optimization, finance
Complexity: 150 points
Description:
Replace the static fee_bps with a dynamic tier system. As the total volume handled by an escrow (or globally for a user) increases, the platform fee percentage should decrease.
Tasks:

  • Define fee tiers (e.g., 0-1000 XLM: 50bps, 1000-5000 XLM: 30bps).
  • Implement a calculate_tiered_fee helper function.
  • Update fee resolution logic to use tiers.

Metadata

Metadata

Assignees

Labels

SorobanSoroban-specificStellar WaveIssues in the Stellar wave programcontractSmart contract work (Soroban)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions