{"release_id":"01a1998d-9802-0000-b0f7-33a23307f4ed","chunk_id":"01a1998d-9909-70b0-a262-fd0d42d02a89","file":"CIkMR2Zi.mjs","mappings":"qTAWO,MAAMA,EAAyB,GAIzBC,EAAiB,IAGjBC,EAAoB,KAAK,KAAM,GAA8C,EAGnF,SAASC,EAAcC,EAAwB,CACrD,OAAO,KAAK,IAAI,EAAG,KAAK,MAAMA,GAAU,CAAC,CAAC,EAAI,EAC/C,CAGO,SAASC,EAAUD,EAAwB,CACjD,MAAO,KAAKD,EAAcC,CAAM,EAAI,KAAK,QAAQ,CAAC,CAAC,EACpD","names":["PAYOUT_CENTS_PER_TOKEN","MIN_PAYOUT_USD","MIN_PAYOUT_TOKENS","tokensToCents","tokens","payoutUsd"],"sources":["../../../../../../src/lib/payout-rate.ts"],"sourcesContent":["/** What a creator's or rater's earned token pays out in cash. Client-safe\n *  (constants only), so every price setter, email and the cash-out itself read\n *  the same number: a dollar figure shown to a creator is the figure they get.\n *\n *  10¢ since 2026-10 (was 5¢). The token price of an album goes to its creator\n *  in full, but buyers pay 12.5¢ (the 400-token pack) to 20¢ (the 25-token pack)\n *  per token, 14.5¢ on average over the last 90 days, so in money a creator\n *  gets 50–80% of what a buyer paid, ~69% on average. That is what the copy may\n *  claim: dollars per unlock, never \"100%\". Don't go higher without looking at\n *  the cheapest token: a Plus member's 400-token pack (+25%) costs exactly 10¢,\n *  so above this a sale pays out more than it brought in, before card fees. */\nexport const PAYOUT_CENTS_PER_TOKEN = 10;\n\n/** Smallest cash-out, USD. Payouts go out by international bank transfer,\n *  whose fees make small amounts uneconomic. */\nexport const MIN_PAYOUT_USD = 100;\n\n/** The minimum in earned tokens: 1,000 at 10¢. */\nexport const MIN_PAYOUT_TOKENS = Math.ceil((MIN_PAYOUT_USD * 100) / PAYOUT_CENTS_PER_TOKEN);\n\n/** Cash value of `tokens` earned tokens, in whole US cents. */\nexport function tokensToCents(tokens: number): number {\n\treturn Math.max(0, Math.floor(tokens || 0)) * PAYOUT_CENTS_PER_TOKEN;\n}\n\n/** \"$1.50\": what `tokens` earned tokens pay out. */\nexport function payoutUsd(tokens: number): string {\n\treturn `$${(tokensToCents(tokens) / 100).toFixed(2)}`;\n}\n"],"version":3}