From 1bf63d1f8140960e329172f5e496793465bd83f7 Mon Sep 17 00:00:00 2001 From: pluja Date: Fri, 10 Sep 2021 20:30:19 +0200 Subject: [PATCH] Add KYC Ranks 0-3 --- automated-checks.py | 52 +++++++++++++++++++++++------------------ templates/exchange.html | 26 ++++++++++++--------- 2 files changed, 44 insertions(+), 34 deletions(-) diff --git a/automated-checks.py b/automated-checks.py index 22bd569..1e1aee8 100644 --- a/automated-checks.py +++ b/automated-checks.py @@ -20,30 +20,36 @@ def compute_score(): data = yaml.load(exchanges) for exchange in data['exchanges']: score = 0 - if not exchange['may-kyc']: - score += 2.25 - if not exchange['custodial']: - score += 1.0 - if not exchange['registration']: - score += 0.75 - if not exchange['personal-info']: - score += 2.5 - if exchange['kyc-check']: - score += 1.75 - if exchange['p2p']: - score += 1.25 - if exchange['open-source']: - score += 0.25 - if exchange['tor']: - score += 0.25 - if score < 7 and exchange['verified']: - score += 1 - if score < 6 and exchange['refunds']: - score += 1 - if score > 10: - exchange['score'] = 10.0 + if exchange['kyc-type'] == 0: + score += 2.25 + elif exchange['kyc-type'] == 1: + score += 1.5 + elif exchange['kyc-type'] == 2: + score += 0.5 else: - exchange['score'] = score+exchange['score-boost'] + score += 0 + if not exchange['custodial']: + score += 1.0 + if not exchange['registration']: + score += 0.75 + if not exchange['personal-info']: + score += 2.5 + if exchange['kyc-check']: + score += 1.75 + if exchange['p2p']: + score += 1.25 + if exchange['open-source']: + score += 0.25 + if exchange['tor']: + score += 0.25 + if score < 7 and exchange['verified']: + score += 1 + if score < 6 and exchange['refunds']: + score += 1 + if score > 10: + exchange['score'] = 10.0 + else: + exchange['score'] = score+exchange['score-boost'] exchanges.seek(0) yaml.dump(data, exchanges) exchanges.truncate() diff --git a/templates/exchange.html b/templates/exchange.html index dbbf2fa..bcdee77 100644 --- a/templates/exchange.html +++ b/templates/exchange.html @@ -165,19 +165,23 @@
- {% if exchange['may-kyc'] %} -
-

May KYC

+ {% if exchange['kyc-type'] == 0 %} +
+ {% else %} +
+ {% endif %} +

{{exchange['kyc-type']}} / 3 KYC

- {%else%} -
-

No KYC

-
- {%endif%}
- {% if exchange['may-kyc'] %} This exchange may request a KYC verification - if it finds your movements suspicious. {%else%} The exchange ToS do not - mention requiring KYC verifications at all. {%endif%} + {% if exchange['kyc-type'] == 0 %} + No KYC. The exchange ToS do not mention that it will ever request the user for a KYC verification. + {% elif exchange['kyc-type'] == 1 %} + KYC is rare. The platform does not mention KYC/AML procedures as such, but the service has the right to share acquired data with representatives of the authorities and block funds or reject transactions. + {% elif exchange['kyc-type'] == 2 %} + The exchange may request KYC. Although KYC is not mandatory, the exchange reserves the right to require KYC for a certain user at a certain moment and may block funds. May be that a transaction is detected as suspicious or any other reason. + {% elif exchange['kyc-type'] == 3 %} + KYC is mandatory in order to use some features. Also, a non-KYCed user can be asked to verify their identity at any time or any moment for any reason. + {% endif %}