feat(pricing): get_tier_price alias + boundary hardening (#1) [0xcFDa9f32d292661740a6d0B4c00867E34c05c56D] - #118
Open
meridianmindx wants to merge 1 commit into
Open
Conversation
…exussyn#1) Match issue acceptance surface, clamp/validate call counts, expand Deno tests.
Author
|
Friendly bump: still mergeable (~5 days). Happy to tweak the alias/boundary hardening if you prefer a different shape. Base payout address is in the PR title. |
5 tasks
Author
|
Friendly bump — still open and ready. Can address review notes same day. |
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.
Summary
Closes #1 — completes the acceptance surface for the tiered pricing engine.
get_tier_price(call_count, priority_flag)alias required by the issuecallCount; clamp non-positive counts into free tierFiles
src/pricing/tier-engine.tsmigrations/add_tiered_pricing.sql(unchanged, already idempotent on main)tests/pricing.test.tsVerification
Wallet (Base USDC)
0xcFDa9f32d292661740a6d0B4c00867E34c05c56DMade with Cursor