feat: scorechain address analysis

This commit is contained in:
Rafael Taranto 2024-04-30 17:18:36 +01:00
parent 5ae9b76c3b
commit 501da5f54a
15 changed files with 158 additions and 308 deletions

View file

@ -82,7 +82,7 @@ function customerHistory (customerId, thresholdDays) {
FROM cash_out_txs txOut
WHERE txOut.customer_id = $1
AND txOut.created > now() - interval $2
AND (error_code IS NULL OR error_code NOT IN ('operatorCancel', 'scoreThresholdReached', 'ciphertraceError'))
AND (error_code IS NULL OR error_code NOT IN ('operatorCancel', 'scoreThresholdReached', 'walletScoringError', 'ciphertraceError'))
AND fiat > 0
) ch WHERE NOT ch.expired ORDER BY ch.created`