From 4e1e0c9d316c2347858d5ede42f446f23d583b51 Mon Sep 17 00:00:00 2001 From: nfel Date: Sun, 30 Aug 2026 20:38:55 +0330 Subject: [PATCH] docs: record redeem allocation cleanup --- REFACTORING-AUDIT.md | 1 + REFACTORING-TODO.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/REFACTORING-AUDIT.md b/REFACTORING-AUDIT.md index 60ac90b..6a5aab3 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -476,3 +476,4 @@ Migration order implied by the map: isolate shared infrastructure constructors ( - Removed the redundant `nationalIdToPayerID` wrapper and routed IPG payer-ID generation directly to `application/deposit.PayerID`; focused Wallet tests pass in `c710cdc`. - Discount amount calculation (percentage + static amount with max cap) now uses `application/discount.CalculateAmount`; wallet callers/tests route directly to the application policy. Focused Wallet tests pass in `ccff76e`. - Referral commission splitting and claimed/unclaimed aggregation now use `application/referral`; the old `core/walletImp` arithmetic implementation was removed and callers/tests route directly to application policies. Focused Wallet tests pass in `37612bf`. +- Redeem lot reconstruction, FIFO allocation, and ceiling-day profit calculation now use `application/redeem`; the old core implementation and internal result types were removed, with service/tests adapted to exported application allocations. Focused Wallet tests pass in `bd8d07d`. diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index d1da275..e6c2fbd 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -331,4 +331,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 2026-08-30 | W010 | `TODO` | `STARTED` | Added `application/cron.Retry`, `application/stream.IsNew`, stream external-deposit transaction policy, and dedicated `SetupCronRepository`/`SetupStreamRepository` paths. Focused Wallet tests pass in `db52f89`. Remaining process composition work remains. | | 2026-08-30 | W009 | `TODO` | `STARTED` | Added `application/walletlock` lock/release mutation policies with frozen/available balance tests; internal RPC retains transaction scope, ledger journaling, persistence, and error mapping. Focused Wallet tests pass in `382fd79`. Remaining internal-wallet operations stay at the service boundary. | | 2026-08-30 | W011 | `TODO` | `STARTED` | Added dedicated alert, market, internal-wallet, stream, cron, and wallet repository setup entry points; each mode now declares its bootstrap profile. Command/core tests pass in `cf13a58`. Dependency internals and superseded bootstrap cleanup remain. | -| 2026-08-30 | W012 | `TODO` | `STARTED` | Removed redundant market amount/agreement, IPG amount/payer-ID, and referral-commission shims; discount and referral arithmetic now live in application packages. Focused Wallet tests pass in `37612bf`. Remaining core implementation cleanup is pending. | +| 2026-08-30 | W012 | `TODO` | `STARTED` | Removed redundant market amount/agreement, IPG amount/payer-ID, referral-commission, and redeem-allocation implementations; discount, referral, and redeem arithmetic now live in application packages. Focused Wallet tests pass in `bd8d07d`. Remaining core implementation cleanup is pending. |