test(curve): integration tests for all three preset variants#429
Open
dextro172-ui wants to merge 42 commits into
Open
test(curve): integration tests for all three preset variants#429dextro172-ui wants to merge 42 commits into
dextro172-ui wants to merge 42 commits into
Conversation
Covers acceptance criteria: - Default Linear when preset omitted - Quadratic > Linear > Flat at same supply - Linear regression: matches base price at supply=0 - Buy/sell symmetry for all presets - Independent curves: no cross-contamination - Preset immutability: no update path - get_curve_preset rejects unregistered creators - CreatorDetailsView and batch view include preset Closes: accesslayerorg#403
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.
Closes: #403
Summary
Every creator currently uses the same bonding curve, which means the same price growth rate regardless of how they want to build their community. A creator who wants to reward early believers heavily needs a steep early curve. One who wants to stay accessible to late fans needs a flatter one. Letting creators choose a curve preset at registration makes the marketplace more expressive and gives each creator's keys a distinct character that matches their community strategy.
Testing
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspaceChecklist
creator-keysunit/integration tests for every changed contract behavior, including failure paths for new or reachableContractErrorvariantscargo fmt --all -- --check,cargo clippy --workspace --all-targets -- -D warnings, andcargo test --workspace, or explained exactly why a command was not rundocs/storage-key-invariants.md; any storage layout change includes a migration/backward-compatibility notedocs/contract-event-conventions.md, or documented the breaking change and versioning plan