Skip to content

Commit 7d38618

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@69fe931a82e57e40b5a9e4dd96d1a2397d3d9bb0
1 parent 88e05db commit 7d38618

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

common/src/types/freebuff-session.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ export interface FreebuffFreebucksWindow {
159159
* because the distinction is ours to keep rather than the user's to track:
160160
* EARNED ones (bounties, referrals, grants) stay until they are spent, while a
161161
* plan's monthly bonus is an allowance for its period and any of it left over
162-
* is retired at the roll (`FREEBUCKS_BONUS_EXPIRY_REASON`). Wallet spending is
163-
* attributed to the expiring half first, so a user who spends is always
162+
* is retired when another period’s bonus is credited, including on upgrade
163+
* (`FREEBUCKS_BONUS_EXPIRY_REASON`). Subscription end alone does not retire it.
164+
* Wallet spending is attributed to the expiring half first, so a user who spends is always
164165
* treated as having spent the money that was about to go.
165166
*
166167
* Drawn on only once the daily pool
@@ -172,7 +173,8 @@ export interface FreebuffFreebucksWallet {
172173
balance: number
173174
/** Freebucks the plan credits here once per billing period (0 on free). */
174175
monthlyBonus: number
175-
/** ISO instant the next plan bonus lands; absent without a plan. */
176+
/** Current period end: the next bonus is available then IF the plan renews.
177+
* Still present when cancellation is scheduled; absent without a live plan. */
176178
nextBonusAt?: string
177179
}
178180

0 commit comments

Comments
 (0)