mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-08-08 06:23:09 -04:00
Add KYC Ranks 0-3
This commit is contained in:
parent
9be5e01286
commit
1bf63d1f81
2 changed files with 44 additions and 34 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue