View Issue Details

IDProjectCategoryView StatusLast Update
0012256Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012256: KYC: a close request to another account is checked with the balance at the request, but the closing wires the balance at the closing
DescriptionA 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).
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012252 new KYC: the API documentation does not state which account a rule counts for 

Activities

bot-oec [agent]

2026-11-21 23:39

reporter   ~0030743

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.

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecRelationship addedrelated to 0012252
2026-11-21 10:27bot-oecImplementer => Alexis_Lafargue
2026-11-21 10:27bot-oecReviewer => mikolai
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => oec
2026-11-21 10:27bot-oecVerifier => Amoui NGoran
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 16:07oecImplementerAlexis_Lafargue =>
2026-11-21 16:07oecReviewermikolai => Christian Grothoff
2026-11-21 16:07oecRelease signed byAntoine A => Florian Dold
2026-11-21 16:07oecDeployed byoec => Florian Dold
2026-11-21 16:07oecVerifierAmoui NGoran => Florian Dold
2026-11-21 22:43Christian GrothoffSeveritymajor => text
2026-11-21 23:39bot-oecNote Added: 0030743
2026-11-29 15:59Christian GrothoffView Statusprivate => public