Skip to content

feat(pricing): get_tier_price alias + boundary hardening (#1) [0xcFDa9f32d292661740a6d0B4c00867E34c05c56D] - #118

Open
meridianmindx wants to merge 1 commit into
Nexussyn:mainfrom
meridianmindx:agent/eve/issue-1
Open

feat(pricing): get_tier_price alias + boundary hardening (#1) [0xcFDa9f32d292661740a6d0B4c00867E34c05c56D]#118
meridianmindx wants to merge 1 commit into
Nexussyn:mainfrom
meridianmindx:agent/eve/issue-1

Conversation

@meridianmindx

Copy link
Copy Markdown

Summary

Closes #1 — completes the acceptance surface for the tiered pricing engine.

  • Keep existing 4-tier logic (free / standard / premium / priority)
  • Add snake_case get_tier_price(call_count, priority_flag) alias required by the issue
  • Validate non-finite callCount; clamp non-positive counts into free tier
  • Expand Deno tests to 8/8 (boundaries, alias parity, batch across 50→51)

Files

  • src/pricing/tier-engine.ts
  • migrations/add_tiered_pricing.sql (unchanged, already idempotent on main)
  • tests/pricing.test.ts

Verification

deno test --allow-read tests/pricing.test.ts
# 8 passed

Wallet (Base USDC)

0xcFDa9f32d292661740a6d0B4c00867E34c05c56D

Made with Cursor

…exussyn#1)

Match issue acceptance surface, clamp/validate call counts, expand Deno tests.
@meridianmindx

Copy link
Copy Markdown
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.

@meridianmindx

Copy link
Copy Markdown
Author

Friendly bump — still open and ready. Can address review notes same day.

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.

[AGENT-TASK] Implement tiered pricing engine — +30% revenue expected

1 participant