Skip to content

Jeiwan/titan-finance-analysis

Repository files navigation

Analysis of the TITAN fall

Read blog post:
Analysis of the TITAN fall

Usage

  1. Install dependencies first:

    $ yarn
  2. 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 matplotlib installed):

    $ python3 historical_cr.py
  3. 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_URL env. variable. Then run:

    $ node index.js
    $ node historical_cr.js

About

Analysis of the TITAN fall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published