Description
get_user_tier exists and swaps use tiered fees; formalize a configurable fee-discount schedule so higher tiers pay proportionally lower fees.
Direction
- In
tiers.rs/fee_progression, define a tier→discount-bps table (admin-configurable).
- Apply the discount inside the swap fee computation; expose
get_effective_fee_bps(user, pair).
- Ensure discounts compose safely with the dynamic-fee suite (no negative/underflow fees).
Acceptance criteria
Description
get_user_tierexists and swaps use tiered fees; formalize a configurable fee-discount schedule so higher tiers pay proportionally lower fees.Direction
tiers.rs/fee_progression, define a tier→discount-bps table (admin-configurable).get_effective_fee_bps(user, pair).Acceptance criteria
get_effective_fee_bpsmatches the fee actually deducted in a swap.