Skip to content

feat(traders): implement fee discount tier indexing and discount lookup API (#1030) - #1042

Open
yodakkak wants to merge 1 commit into
accesslayerorg:mainfrom
yodakkak:feat/fee-discount-tier-indexing-1030
Open

yodakkak wants to merge 1 commit into
accesslayerorg:mainfrom
yodakkak:feat/fee-discount-tier-indexing-1030

Conversation

@yodakkak

Copy link
Copy Markdown

Closes #1030

Summary

  • Added GET /api/v1/traders/:wallet/discount (src/modules/traders/trader-discount.routes.ts) returning the wallet's current tier, discount bps, and 30-day rolling trading volume cached with a 5-minute TTL.
  • Added indexVolumeDiscountTierChangedEvent in src/modules/traders/trader-discount.service.ts with idempotent event deduplication and automatic cache refresh.
  • Included discountTier in the dynamic fee breakdown response (src/modules/keys/key-dynamic-fee.service.ts).
  • Added unit tests in src/modules/traders/trader-discount.service.test.ts.

Payout Wallet (Stellar / USDC): GD3TVG3SLNQMK7VS7772FZPNM5LTH24NR5NSWMURN2CXEJUDA4V2XONU
EVM Wallet: 0x59622Fe8f9b438eF1CD5dB4e91f1230fe6239AC9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement fee discount tier indexing and discount lookup API

1 participant