A prototype project to perfrom risk assessment for DeFi lending platforms.
Project description
DeFi Assessement (dass)
A prototype project to perform risk assessment on different DeFi lending platforms.
Overview
Installation
From local repository:
pip3 install .[cpu] # for tensorflow with cpu only
pip3 install .[gpu] # for tensorflow-gpu
From PyPI:
pip3 install DeFi-Assessment[cpu]
pip3 install DeFi-Assessment[gpu]
Usage
This project is packed into a command-line tool with 4 subcommand:
Usage: dass [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
data Collect raw data.
process Process the data related to smart contracts.
train Train models.
web Create a simple local website to view the result.
The workflow of the 4 commands should be:
data -> process -> train -> web
Data collection
data
command is used to collect data for training and assessment (prediction). All of the other three commands are dependent on it. Make sure to run this command at beginning.
To collect data for smart contracts, docs/platforms.csv
shoud be used. This file provides the github repository link for different smart contracts. And it also provide intermediary status for corresponding platforms.
Data process
process
command is aimed to process raw data. Currently, only sart contract data need to be processed after collection.
Model Training
train
command is simple. It trains 2 models. One for smart contracts and the other for financial risks.
Web Application
web
command builds a local web interface for users to directly view the result of assessement.
Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for DeFi_Assessment-0.1.2.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dbd8851eb71b262b61ee891dadd8ae37ca3f46c93bdd35df6c14bdaa458f7ff |
|
MD5 | 5c62bdc5dce5c187f998cb38881550b2 |
|
BLAKE2b-256 | e7f9815b152df920b988d3bda43ea73fbe545592a9d5aebfb92cd5fae166e341 |