Skip to content

Commit 3e329ac

Browse files
committed
ads: random minimum credits
1 parent e747996 commit 3e329ac

File tree

1 file changed

+1
-1
lines changed
  • web/src/app/api/v1/ads/impression

1 file changed

+1
-1
lines changed

web/src/app/api/v1/ads/impression/_post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export async function postAdImpression(params: {
226226
// Payout is in dollars, credits are 1:1 with cents, so multiply by 100
227227
const userShareDollars = payout * AD_REVENUE_SHARE
228228
const creditsToGrant = Math.max(
229-
MINIMUM_CREDITS_GRANTED,
229+
MINIMUM_CREDITS_GRANTED + Math.floor(3 * Math.random()),
230230
Math.floor(userShareDollars * 100),
231231
)
232232

0 commit comments

Comments
 (0)