View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012256 | Taler | documentation | public | 2026-11-21 10:27 | 2026-11-29 15:59 |
| Reporter | bot-oec [agent] | ||||
| Priority | normal | Severity | text | ||
| Status | new | ||||
| Summary | 0012256: KYC: a close request to another account is checked with the balance at the request, but the closing wires the balance at the closing | ||||
| Description | A close request to an account other than the reserve's origin is checked against the target's `CLOSE` rules when it is made, with the reserve's balance then. The closing, later, wires the balance the reserve has at that time (`post-reserves-RESERVE_PUB-close.rst`: "forces the reserve's current balance"), which may have grown by merges or recoups in between. Without a second check at the closing, the target receives more than the limit allowed. The documentation does not say which amount the request is checked with. **Proposed change:** state that the closing is checked again against the target's `CLOSE` rules with the amount it wires (`spec/withdraw.md` (E3)). **Found by:** the formalization of the Taler protocols; specifying close requests (`spec/withdraw.md` (E3)) against the limit check of `spec/kyc.md` (K2). | ||||
| Tags | No tags attached. | ||||
| related to | 0012252 | new | KYC: the API documentation does not state which account a rule counts for |
| Proposed patch, the documentation part (taler-docs master b3970cce): the rule spec/withdraw.md (E3) of the formalization states. The exchange checks only at the request; taler-exchange-closer would have to run the CLOSE check again with the amount it wires and, if it fails, leave the request pending until the account's KYC is done. That part of the fix is in the closer (iterate_unfinished_close_requests and the closing transaction) and is not written yet. diff --git a/core/exchange/post-reserves-RESERVE_PUB-close.rst b/core/exchange/post-reserves-RESERVE_PUB-close.rst index 592ee5a0..2c90fbee 100644 --- a/core/exchange/post-reserves-RESERVE_PUB-close.rst +++ b/core/exchange/post-reserves-RESERVE_PUB-close.rst @@ -7,6 +7,13 @@ the user's choosing if they performed the required KYC check and designated another target account. + The closing to another account is checked against that account's ``CLOSE`` + rules twice: at the request, with the balance at that time, and again when + the reserve is closed, with the amount then wired. The balance may have + grown in between (merges, recoups), and the request does not stop + withdrawals; if the second check fails, the closing waits for the + account's KYC. + **Request:** The request body must be a `ReserveCloseRequest` object. | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-21 10:27 | bot-oec | New Issue | |
| 2026-11-21 10:27 | bot-oec | Relationship added | related to 0012252 |
| 2026-11-21 10:27 | bot-oec | Implementer | => Alexis_Lafargue |
| 2026-11-21 10:27 | bot-oec | Reviewer | => mikolai |
| 2026-11-21 10:27 | bot-oec | Release signed by | => Antoine A |
| 2026-11-21 10:27 | bot-oec | Deployed by | => oec |
| 2026-11-21 10:27 | bot-oec | Verifier | => Amoui NGoran |
| 2026-11-21 10:27 | bot-oec | Communicator | => CM_7 |
| 2026-11-21 16:07 | oec | Implementer | Alexis_Lafargue => |
| 2026-11-21 16:07 | oec | Reviewer | mikolai => Christian Grothoff |
| 2026-11-21 16:07 | oec | Release signed by | Antoine A => Florian Dold |
| 2026-11-21 16:07 | oec | Deployed by | oec => Florian Dold |
| 2026-11-21 16:07 | oec | Verifier | Amoui NGoran => Florian Dold |
| 2026-11-21 22:43 | Christian Grothoff | Severity | major => text |
| 2026-11-21 23:39 | bot-oec | Note Added: 0030743 | |
| 2026-11-29 15:59 | Christian Grothoff | View Status | private => public |