Skip to content

Commit be6d3ce

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@6c1599db57447800c47e6f0adb9082c7497dece5
1 parent bff0cd0 commit be6d3ce

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

bun.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/src/constants/freebuff-topups.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ export const AD_PLACEMENT_CPC_REPRICE_MAX_MOVE_BPS = 2_500
8888
/** Thin samples are reported, but never allowed to move money automatically. */
8989
export const AD_PLACEMENT_CPC_REPRICE_MIN_CLICKS = 50
9090

91+
/**
92+
* The lowest price a single geo-adjusted click may bill, after the country
93+
* multiplier is applied.
94+
*
95+
* DISTINCT from `AD_PLACEMENT_CPC_FLOOR_CENTS`, and the two are not
96+
* interchangeable. That one is the minimum a CAMPAIGN may be priced at -- the
97+
* rate-card minimum an operator sets and the repricer clamps to. This one is
98+
* the minimum a single CLICK may bill at once the campaign's base rate has
99+
* been scaled down for a low-conversion country. A campaign based at $4.50
100+
* clears the campaign floor comfortably while individual clicks from the
101+
* limited tier settle here.
102+
*
103+
* Keeping them separate is why geo pricing needs no migration:
104+
* `ck_ad_placement_campaign_cpc_floor` still guards the base rate, unchanged.
105+
*/
106+
export const AD_PLACEMENT_CPC_GEO_FLOOR_CENTS = 50
107+
91108
/**
92109
* There is deliberately NO `normalizeTopUpCents`.
93110
*

0 commit comments

Comments
 (0)