diff options
Diffstat (limited to 'contrib/auditor-report.tex.j2')
-rw-r--r-- | contrib/auditor-report.tex.j2 | 114 |
1 files changed, 85 insertions, 29 deletions
diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2 index d40dc0c8f..bb645520f 100644 --- a/contrib/auditor-report.tex.j2 +++ b/contrib/auditor-report.tex.j2 @@ -1,5 +1,5 @@ % This file is part of TALER -% Copyright (C) 2016--2019 Taler Systems SA +% Copyright (C) 2016--2023 Taler Systems SA % % TALER is free software; you can redistribute it and/or modify it under the % terms of the GNU Affero General Public License as published by the Free Software @@ -88,12 +88,18 @@ In that time, the auditors processed the following table ranges: & {{ reserves.end_ppr_reserve_in_serial_id }} \\ \hline Reserves Out (withdraw) & {{ reserves.start_ppr_reserve_out_serial_id }} & {{ reserves.end_ppr_reserve_out_serial_id }} \\ \hline - Reserves Recoup & {{ reserves.start_ppr_reserve_recoup_serial_id }} + Reserves Recoup & {{ reserves.start_ppr_reserve_recoup_serial_id }} & {{ reserves.end_ppr_reserve_recoup_serial_id }} \\ \hline Reserves Close & {{ reserves.start_ppr_reserve_close_serial_id }} & {{ reserves.end_ppr_reserve_close_serial_id }} \\ \hline Aggregation & {{ aggregation.start_ppa_wire_out_serial_id }} & {{ aggregation.end_ppa_wire_out_serial_id }} \\ \hline + Aggregation (wire) & {{ wire.start_pp_last_aggregation_serial_id }} + & {{ wire.end_pp_last_aggregation_serial_id }} \\ \hline + Deposits (wire) & {{ wire.start_pp_last_batch_deposit_id }} + & {{ wire.end_pp_last_batch_deposit_id }} \\ \hline + Reserves Close (wire) & {{ wire.start_pp_reserve_close_id }} + & {{ wire.end_pp_reserve_close_id }} \\ \hline Coin withdraw & {{ coins.start_ppc_withdraw_serial_id }} & {{ coins.end_ppc_withdraw_serial_id }} \\ \hline Coin deposit & {{ coins.start_ppc_deposit_serial_id }} @@ -102,9 +108,9 @@ In that time, the auditors processed the following table ranges: & {{ coins.end_ppc_melt_serial_id }} \\ \hline Coin refund & {{ coins.start_ppc_refund_serial_id }} & {{ coins.end_ppc_refund_serial_id }} \\ \hline - Coin recoup & {{ coins.start_ppc_recoup_serial_id }} + Coin recoup & {{ coins.start_ppc_recoup_serial_id }} & {{ coins.end_ppc_recoup_serial_id }} \\ \hline - Coin recoup refresh & {{ coins.start_ppc_recoup_refresh_serial_id }} + Coin recoup refresh & {{ coins.start_ppc_recoup_refresh_serial_id }} & {{ coins.end_ppc_recoup_refresh_serial_id }} \\ \end{tabular} \end{center} @@ -206,51 +212,101 @@ load. Small amounts of lag can occur in normal operation. The total amount the exchange currently lags behind in deposits is {\bf {{ wire.total_amount_lag }}}. -Note that some lag is perfectly normal, as tiny amounts that are too small to be wired -are deferred beyond the due date, hoping that additional transfers will push them above -the tiny threshold. Below, we report {\em non-tiny} wire transfers that are lagging behind. +Note that some lag is perfectly normal, as tiny amounts that are too small to +be wired are deferred beyond the due date, hoping that additional transfers +will push them above the tiny threshold. Below, we report {\em non-tiny} wire +transfers that are lagging behind. % Table generation tested by testcase #1 in test-auditor.sh {% if wire.lag_details|length() == 0 %} {\bf No non-tiny wire transfers that are lagging behind detected.} {% else %} - \begin{longtable}{l|r|r|c} - {\bf Deadline} & {\bf Amount} & {\bf Row} & {\bf Claimed done} \\ - \multicolumn{4}{l}{\bf Coin} \\ - \multicolumn{4}{l}{\bf Target account} \\ \hline \hline + \begin{longtable}{l|r|r} + {\bf Deadline} & {\bf Amount} & {\bf Target account} \\ \hline \hline \endfirsthead - {\bf Deadline} & {\bf Amount} & {\bf Row} & {\bf Claimed done} \\ - \multicolumn{4}{l}{\bf Coin} \\ - \multicolumn{4}{l}{\bf Target account} \\ \hline \hline + {\bf Deadline} & {\bf Amount} & {\bf Target account} \\ \hline \hline \endhead \hline \hline - {\bf Deadline} & {\bf Amount} & {\bf Row} & {\bf Claimed done} \\ - \multicolumn{4}{l}{\bf Coin} \\ - \multicolumn{4}{l}{\bf Target account} \\ + {\bf Deadline} & {\bf Amount} & {\bf Target account} \\ \endfoot \hline \hline - {\bf Deadline} & {\bf Amount} & {\bf Row} & {\bf Claimed done} \\ - \multicolumn{4}{l}{\bf Coin} \\ - \multicolumn{4}{l}{\bf Target account} \\ + {\bf Deadline} & {\bf Amount} & {\bf Target account} \\ \caption{Lagging non-tiny transactions.} \label{table:lag} \endlastfoot {% for item in wire.lag_details %} {{ item.deadline }} & + {{ item.total_amount }} & + {\tt + {% if 'account' in item %} + {{ item.account }} + {% endif %} + } \\ \hline +{% endfor %} + \end{longtable} +{% endif %} + + + +{% if wire.lag_kyc_details|length() == 0 %} + {\bf No KYC-blocked non-tiny wire transfers that are lagging behind detected.} +{% else %} + \begin{longtable}{l|r|c|r} + {\bf Deadline} & {\bf Amount} & {\bf Requirement} & {\bf Target account} \\ \hline \hline +\endfirsthead + {\bf Deadline} & {\bf Amount} & {\bf Requirement} & {\bf Target account} \\ \hline \hline +\endhead + \hline \hline + {\bf Deadline} & {\bf Amount} & {\bf Requirement} & {\bf Target account} \\ +\endfoot + \hline \hline + {\bf Deadline} & {\bf Amount} & {\bf Requirement} & {\bf Target account} \\ + \caption{Lagging non-tiny transactions due to missing KYC data.} + \label{table:lag} +\endlastfoot +{% for item in wire.lag_kyc_details %} + {{ item.deadline }} & {{ item.amount }} & - {{ item.row }} & -{% if 'claimed_done' in item %} - {{ item.claimed_done }} + {{ item.kyc_pending }} & + {\tt + {% if 'account' in item %} + {{ item.account }} + {% endif %} + } \\ \hline +{% endfor %} + \end{longtable} +{% endif %} + + +{% if wire.lag_aml_details|length() == 0 %} + {\bf No non-tiny wire transfers that are lagging behind due to AML detected.} {% else %} - N/A -{% endif %} \\ -\nopagebreak - \multicolumn{4}{l}{ {\tt \small {{ item.coin_pub }} } } \\ + \begin{longtable}{l|r|r} + {\bf Deadline} & {\bf Amount}/{\bf Limit} & {\bf AML status} \\ + \multicolumn{3}{l}{\bf Target account} \\ \hline \hline +\endfirsthead + {\bf Deadline} & {\bf Amount}/{\bf Limit} & {\bf AML status} \\ + \multicolumn{4}{l}{\bf Target account} \\ \hline \hline +\endhead + \hline \hline + {\bf Deadline} & {\bf Amount}/{\bf Limit} & {\bf AML status} \\ + \multicolumn{4}{l}{\bf Target account} \\ +\endfoot + \hline \hline + {\bf Deadline} & {\bf Amount}/{\bf Limit} & {\bf AML status} \\ + \multicolumn{4}{l}{\bf Target account} \\ + \caption{Lagging non-tiny transactions due to AML decisions.} + \label{table:lag} +\endlastfoot +{% for item in wire.lag_aml_details %} + {{ item.deadline }} & + {{ item.amount }}/{{ item.aml_limit }} & + {{ item.aml_status }} & \nopagebreak \multicolumn{4}{l}{ {\tt - {% if 'payto_uri' in item.account %} - {{ item.account.payto_uri }} + {% if 'account' in item %} + {{ item.account }} {% endif %} } } \\ \hline {% endfor %} |