commit 7689f72ac5d2a9d854a4988bdda542c1465dc425
parent fb4c39aa79f4073b45400710fcdd6319f35474ed
Author: Florian Dold <florian@dold.me>
Date: Thu, 5 Jun 2025 11:42:16 +0200
-rst formatting
Diffstat:
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/design-documents/064-kyc-operation-algo.rst b/design-documents/064-kyc-operation-algo.rst
@@ -36,33 +36,33 @@ Steps for processing operation of type `op` and amount `amt`:
2. Attempt to make a request for `op` at the exchange. Set `last_op_attempt` to
the current time.
- * If the request succeeds, *halt*.
- * If `last_rule_gen` is not `null` (Note 2), proceed with step 4.
+ * If the request succeeds, *halt*.
+ * If `last_rule_gen` is not `null` (Note 2), proceed with step 4.
- * Proceed with step 3.
+ * Proceed with step 3.
3. Request the `/kyc-check/...` endpoint applicable for `op` (no long-polling!)
- * If the request returns `204 No Content`, proceed with step 2.
- * If the request returns `200 Ok` or a `202 Accepted`:
-
- * Set `last_rule_gen := response.rule_gen`
- * If the exposed limits do not deny `op`, set `last_check_success := now()` and proceed with step 2.
+ * If the request returns `204 No Content`, proceed with step 2.
+ * If the request returns `200 Ok` or a `202 Accepted`:
+
+ * Set `last_rule_gen := response.rule_gen`
+ * If the exposed limits do not deny `op`, set `last_check_success := now()` and proceed with step 2.
- * Proceed with the next step 4.
+ * Proceed with the next step 4.
4. Request the `/kyc-check/...` endpoint applicable for `op`
with long-polling for `min_rule` set to `last_rule_gen`.
- * If the request returns `200 Ok` or a `202 Accepted`:
+ * If the request returns `200 Ok` or a `202 Accepted`:
- * Set `last_rule_gen := response.rule_gen`
- * If the exposed limits
- do not deny `op`, set `last_check_success := now()` and proceed with step 2.
-
- * If if the `last_op_attempt` is `null` or is more than 10 minutes in the past,
- proceed with step 2. (See Note 1)
- * Proceed with step 4.
+ * Set `last_rule_gen := response.rule_gen`
+ * If the exposed limits
+ do not deny `op`, set `last_check_success := now()` and proceed with step 2.
+
+ * If if the `last_op_attempt` is `null` or is more than 10 minutes in the past,
+ proceed with step 2. (See Note 1)
+ * Proceed with step 4.
Notes: