Summary
Expose an endpoint that computes the effective dynamic fee rate for a given trade, factoring in base fee, volume-tier discount, protocol fee, and creator royalty.
Scope
- GET /keys/:keyId/fee?amount=&direction=buy|sell endpoint
- Fee components: base, volume tier, protocol, royalty returned individually
- Volume tier discount computed from wallet 30-day volume
- Effective rate and total fee in key units and USD returned
- Fee config cached from contract with 5-minute TTL
Acceptance Criteria
ETA
12 hours
Summary
Expose an endpoint that computes the effective dynamic fee rate for a given trade, factoring in base fee, volume-tier discount, protocol fee, and creator royalty.
Scope
Acceptance Criteria
ETA
12 hours