Read blog post:
Analysis of the TITAN fall
-
Install dependencies first:
$ yarn
-
I've committed full data (
data.json), so you don't neeed to re-download it.
Run this to print full data:$ node print.js
Run this to see simulated arbitraging profits with ERC increased by 15%:
$ node simulate_ecr.js
Run this to see full historical metrics explaining why Iron Finance failed (you need to have
matplotlibinstalled):$ python3 historical_cr.py
-
If you want to re-download all the data, go to moralis.io, register, find a speedy Polygon node, and copy a mainnet archive node URL. Set it to
ARCHIVE_NODE_URLenv. variable. Then run:$ node index.js $ node historical_cr.js