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:
- Design fee tier storage and configuration
- Update
fund_invoice to apply tiered fees
- Add governance controls for tier parameters
- Add comprehensive tests
Why it matters: Tiered fees are essential for competitive pricing and risk management.
Acceptance Criteria:
Relevant Files: contracts/invoice_liquidity/src/lib.rs
Description:
The current contract uses a single global fee rate. A tiered system would allow different fees based on:
Implementation:
fund_invoiceto apply tiered feesWhy it matters: Tiered fees are essential for competitive pricing and risk management.
Acceptance Criteria:
fund_invoiceto use tiered feesRelevant Files:
contracts/invoice_liquidity/src/lib.rs