From 57defd5686845851ddd391f88d5f559753f318ef Mon Sep 17 00:00:00 2001 From: nfel Date: Sun, 30 Aug 2026 19:27:07 +0330 Subject: [PATCH] docs: record settled deposit extraction --- 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 c7cb009..8a0facc 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -412,4 +412,5 @@ Migration order implied by the map: isolate shared infrastructure constructors ( - `WithdrawIRTInit` continues to own the gRPC/payment flow but delegates amount policy through the application package; full Wallet tests pass in `16ebd2d`. - IPG Toman/Rial conversion, positivity, rounding, and exactness checks now live in `application/deposit`; the gRPC/payment flow delegates through wrappers and remains response-compatible. Full Wallet tests pass in `a565ce0`. - Transfer display-to-raw amount conversion and positive/exactness validation now live in `application/transfer`; the gRPC service retains protocol-specific error mapping. Full Wallet tests pass in `1e5b977`. +- Settled IPG deposits now use `application/deposit.RawSettlementAmount` for Rial→Toman→raw conversion, retaining exactness checks before Stellar transfer. Full Wallet tests pass in `08c2d7b`. - Deposit/payment idempotency, transaction persistence, queue publication, and failure orchestration remain for subsequent W006 increments. diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index a856a55..5614c30 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -325,4 +325,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 2026-08-30 | A009 | `TODO` | `DONE` | Removed Auth's commented/dead wallet federation client; Auth tests pass with writable cache in `508a239`. | | 2026-08-30 | W013 | `TODO` | `STARTED` | Removed automatic federation creation and federation lookup from wallet initialization; new wallet records no longer receive a federation assignment; full Wallet tests pass in `97dd9d9`. Remaining schema/API/transaction-field cleanup is pending. | | 2026-08-30 | W013 | `STARTED` | `DONE` | Removed federation persistence/model code, wallet and transaction federation fields, federation protobuf messages, stale API route/docs, and remaining runtime references; regenerated Wallet contracts for Wallet/Auth/API; Wallet, Auth, and API tests pass. Wallet `a38501d`/`7ae90cc`, Auth `446e875`, API `c450264`/`c2c076c`. | -| 2026-08-30 | W006 | `TODO` | `STARTED` | Added `application/withdrawal`, `application/deposit`, and `application/transfer`; routed IRT reconciliation, IPG Toman/Rial conversion, and transfer raw-amount validation through application policies; full Wallet tests pass in `1e5b977`. Transaction persistence, idempotency, queues, and failure orchestration remain. | +| 2026-08-30 | W006 | `TODO` | `STARTED` | Added `application/withdrawal`, `application/deposit`, and `application/transfer`; routed IRT reconciliation, IPG Toman/Rial conversion, settled deposit raw-unit calculation, and transfer raw-amount validation through application policies; full Wallet tests pass in `08c2d7b`. Transaction persistence, idempotency, queues, and failure orchestration remain. |