Skip to content

Commit b78c64c

Browse files
committed
Add comment for prepaid workspace recharge logic
Added a clarifying comment explaining the recharge process for prepaid workspaces, noting that limits should be reset even if no payment is due. This improves code readability and understanding of billing logic.
1 parent b0c8dae commit b78c64c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workers/paymaster/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ export default class PaymasterWorker extends Worker {
226226
*/
227227
if (!isTimeToPay) {
228228
/**
229+
* [USED FOR PREPAID WORKSPACES]
230+
* "Recharge" — to reset limits for the new billing period (month).
231+
* It should be done even for prepaid workspaces that do not need to pay anything today.
232+
*
229233
* If it is time to recharge workspace limits, but not time to pay
230234
* Start new month - recharge billing period events count and update last charge date
231235
*/

0 commit comments

Comments
 (0)