## Goal Implement immutable credit ledger operations for admin grants and gateway usage charges. ## Acceptance Criteria - [ ] Credit grants always insert a ledger row. - [ ] Usage charges calculate input and output microcredits with integer math. - [ ] Wallet balance updates happen inside a database transaction. - [ ] No balance mutation is possible without a ledger row.
Goal
Implement immutable credit ledger operations for admin grants and gateway usage charges.
Acceptance Criteria