Add KYC Ranks 0-3

This commit is contained in:
pluja 2021-09-10 20:30:19 +02:00
parent 9be5e01286
commit 1bf63d1f81
2 changed files with 44 additions and 34 deletions

View file

@ -20,30 +20,36 @@ def compute_score():
data = yaml.load(exchanges) data = yaml.load(exchanges)
for exchange in data['exchanges']: for exchange in data['exchanges']:
score = 0 score = 0
if not exchange['may-kyc']: if exchange['kyc-type'] == 0:
score += 2.25 score += 2.25
if not exchange['custodial']: elif exchange['kyc-type'] == 1:
score += 1.0 score += 1.5
if not exchange['registration']: elif exchange['kyc-type'] == 2:
score += 0.75 score += 0.5
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: 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) exchanges.seek(0)
yaml.dump(data, exchanges) yaml.dump(data, exchanges)
exchanges.truncate() exchanges.truncate()

View file

@ -165,19 +165,23 @@
</article> </article>
<article class="message long-description"> <article class="message long-description">
{% if exchange['may-kyc'] %} {% if exchange['kyc-type'] == 0 %}
<div class="message-header yellow"> <div class="message-header green">
<p><i class="fas fa-theater-masks"></i> May KYC</p> {% else %}
<div class="message-header yellow">
{% endif %}
<p><i class="fas fa-theater-masks"></i> {{exchange['kyc-type']}} / 3 KYC</p>
</div> </div>
{%else%}
<div class="message-header green">
<p><i class="fas fa-user-ninja"></i> No KYC</p>
</div>
{%endif%}
<div class="message-body"> <div class="message-body">
{% if exchange['may-kyc'] %} This exchange may request a KYC verification {% if exchange['kyc-type'] == 0 %}
if it finds your movements suspicious. {%else%} The exchange ToS do not No KYC. The exchange ToS do not mention that it will ever request the user for a KYC verification.
mention requiring KYC verifications at all. {%endif%} {% 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 %}
</div> </div>
</article> </article>