Repository navigation
feat: add volume-based fee discount tiers for high-volume traders - #1202
AkpakaProsper wants to merge 2 commits into
Conversation
7e2d5ec to
120ed2c
Compare
4f13a58 to
0a4d55e
Compare
0a4d55e to
331aa08
Compare
331aa08 to
bc39820
Compare
bc39820 to
7cb1614
Compare
7cb1614 to
fb8140c
Compare
|
Warning Possible malicious code: please review before merging. An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch. Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file. @AkpakaProsper: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine might be compromised. Please undo these changes in this pull request, and don't open or run other projects on that machine until you've checked it. Flagged files at commit
Only merge once you're confident these files are safe. ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network. |
Overview
This PR adds a volume-based fee discount system to the creator-keys bonding curve. It tracks each wallet's rolling 30-day trading volume, assigns a discount tier (bronze/silver/gold) at admin-configurable thresholds, exposes the current tier and discount in basis points via
get_discount(wallet), and emits aVolumeDiscountTierChangedevent whenever a wallet transitions between tiers.Related Issue
Changes
📈 Volume Discount Tiers
[MODIFY]
creator-keys/src/dynamic_fees.rsget_discount(wallet)returns the current tier and discount in bps.[MODIFY]
creator-keys/src/events.rsVolumeDiscountTierChangedevent, emitted on tier transitions.Verification Results
dynamic_fees.rsget_discountreturns correct tier and bpsVolumeDiscountTierChangedevent emitted on tier changeevents.rsand emitted on transitionCloses #1038