Skip to content

feat: add per-key curve slope supply milestones - #1211

Merged
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
teejaykay40-cloud:fix/issue-1173
Oct 29, 2026
Merged

Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
teejaykay40-cloud:fix/issue-1173

Conversation

@teejaykay40-cloud

Copy link
Copy Markdown
Contributor

Summary

  • Add an immutable per-key supply-to-slope schedule and apply each newly crossed tier after minting.
  • Persist the active index/slope and emit SupplyMilestoneUnlocked once per crossed tier.
  • Add regression coverage for activation, event data, and one-time configuration.

The repository already has get_current_milestone for the existing fee-reduction feature (#1076). This change exposes get_current_curve_slope_milestone to preserve that existing contract API.

Validation

  • git diff --check passed.
  • Rust tests and formatting could not run because this environment has no cargo, rustc, or rustfmt installed.

Closes #1173

@Chucks1093

Copy link
Copy Markdown
Member

⚠️ Merge Conflict Detected

This PR currently has a merge conflict and cannot be merged until it is resolved.

Please rebase or merge the latest changes from the base branch into your branch and push again.

@zeemscript

Copy link
Copy Markdown
Contributor

@Chucks1093 Synced with current main, formatted the Rust changes, and shortened the exported contract method to meet Soroban’s 32-character entrypoint limit. Also corrected the test setup and event assertions. Local validation: cargo fmt --all -- --check and cargo test -p creator-keys --test curve_slope_milestones passed (2 tests). Fresh GitHub verify check is queued; please review once it completes.

@Chucks1093

Copy link
Copy Markdown
Member

✅ PR Ready for Review

Due to a recent malware incident affecting our repositories, all PRs are required to pass automated security checks before being reviewed for merging.

This PR has passed all automated checks:

  • ✅ Security scan — no malicious code detected
  • ✅ No merge conflicts
  • ✅ CI checks passed

Next step: Please share this PR link in our Telegram group so a maintainer can review and merge it: https://t.me/c/accesslayerorg/8514

@Chucks1093
Chucks1093 merged commit ed96cbb into accesslayerorg:main Oct 29, 2026
1 check passed
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 bonding curve supply milestone unlock with graduated price step

3 participants