[Contract] — Volume-Based Dynamic Fee Tiers #1326 - #1491
Merged
Olowodarey merged 3 commits intoJul 28, 2026
Merged
Conversation
…ch-result-ingestion feat(matches): add external match result ingestion (Fixes Arena1X#1381)
Define fee tiers keyed on cumulative market volume thresholds in Config. Select the applicable tier at fee-charge time from the market's running volume. Snapshot the tier used on each trade in SwapRecord. Emit an event when a market crosses into a new fee tier.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@abimbolaalabi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Collaborator
|
@abimbolaalabi pls help too fix conflict |
Contributor
Author
|
@Olowodarey done! |
Collaborator
|
@abimbolaalabi pls fix build |
abimbolaalabi
force-pushed
the
fix/1326-volume-based-dynamic-fee-tiers
branch
from
July 28, 2026 14:32
43e1ad1 to
0879992
Compare
Contributor
Author
|
@Olowodarey please review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces volume-based dynamic fee tiers for the AMM swap fee, replacing the flat fee model. Markets with higher cumulative trading volume pay lower swap fees, rewarding active markets and attracting liquidity.
Related Issue
Closes #1326
Changes
Configuration
Fee Selection
Volume Tracking
Historical Audit Trail
Event Emission
Verification
All existing tests pass after updating three tests to reflect the new volume-based fee semantics:
\
cargo test --test liquidity_tests
✅ 144/144 passed
cargo test --test config_tests --test market_tests
✅ 18/18, 84/84 passed
cargo test --test prediction_tests --test cancel_refund_tests --test dispute_tests --test governance_tests
✅ 33/14/27/33 passed
\\
Acceptance Criteria