https://github.com/jeiwan/titan-finance-analysis
Analysis of the TITAN fall
https://github.com/jeiwan/titan-finance-analysis
Last synced: 5 days ago
JSON representation
Analysis of the TITAN fall
- Host: GitHub
- URL: https://github.com/jeiwan/titan-finance-analysis
- Owner: Jeiwan
- Created: 2021-06-20T14:22:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-22T11:45:13.000Z (almost 4 years ago)
- Last Synced: 2025-05-14T22:42:48.734Z (about 1 month ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Analysis of the TITAN fall
Read blog post:
[Analysis of the TITAN fall](https://jeiwan.net/posts/analysis-titan-fall/)### Usage
1. Install dependencies first:
```shell
$ yarn
```
1. I've committed full data (`data.json`), so you don't neeed to re-download it.
Run this to print full data:```shell
$ node print.js
```Run this to see simulated arbitraging profits with ERC increased by 15%:
```shell
$ node simulate_ecr.js
```Run this to see full historical metrics explaining why Iron Finance failed (you need to have `matplotlib` installed):
```shell
$ python3 historical_cr.py
```1. If you want to re-download all the data, go to [moralis.io](https://moralis.io), register, find a speedy Polygon
node, and copy a mainnet archive node URL. Set it to `ARCHIVE_NODE_URL` env. variable. Then run:
```shell
$ node index.js
$ node historical_cr.js
```