Skip to content

feat: implement dynamic protocol fee discounts based on creator execu… - #1029

Open
Chrisbankz0 wants to merge 1 commit into
SoroLabs:mainfrom
Chrisbankz0:feat/826-dynamic-protocol-fee-discounts
Open

feat: implement dynamic protocol fee discounts based on creator execu…#1029
Chrisbankz0 wants to merge 1 commit into
SoroLabs:mainfrom
Chrisbankz0:feat/826-dynamic-protocol-fee-discounts

Conversation

@Chrisbankz0

Copy link
Copy Markdown

#closes
#826

Summary

Implements volume-based protocol execution fee discounts for high-volume task creators.

Related Issue

Type of Change

  • Feature
  • Bug fix
  • Refactor
  • Documentation

Changes Made

  • Added persistent per-creator successful execution counters.
  • Added a 10% discount after 100 executions.
  • Added a 25% discount after 1,000 executions.
  • Added the FeeDiscountTierUpdated event for tier progression.
  • Added get_creator_execution_count for counter inspection.
  • Ensured failed executions do not increment creator counters.
  • Added tests for discount tiers and creator counter isolation.
  • Appended the new storage key to preserve existing Soroban storage indexes.

Validation

  • Editor diagnostics report no errors.
  • git diff --check
  • cargo test
  • cargo fmt --all
  • Manual verification completed

Rust tests could not run locally because the Windows environment does not have the MSVC linker (link.exe) installed. The tests should be run after installing Visual Studio Build Tools with the C++ workload.

Recommended commands:

cd contract
cargo fmt --all
cargo test test_creator_execution_fee_discount_tiers
cargo test test_creator_execution_counts_are_isolated
cargo test

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 24, 2026

Copy link
Copy Markdown

@Chrisbankz0 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! 🚀

Learn more about application limits

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.

1 participant