Skip to content

Implement governance-controlled fee tier system #533

Description

@Levi-Ojukwu

Description:

The current contract uses a single global fee rate. A tiered system would allow different fees based on:

  • Invoice amount (higher amounts = lower fees)
  • Token type (stablecoins vs volatile tokens)
  • Risk level (payer reputation)

Implementation:

  1. Design fee tier storage and configuration
  2. Update fund_invoice to apply tiered fees
  3. Add governance controls for tier parameters
  4. Add comprehensive tests

Why it matters: Tiered fees are essential for competitive pricing and risk management.

Acceptance Criteria:

  • Design fee tier system
  • Implement fee calculation function
  • Add governance parameters for tier configuration
  • Update fund_invoice to use tiered fees
  • Add tests for various tier scenarios

Relevant Files: contracts/invoice_liquidity/src/lib.rs


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