8000 GitHub - jimgreen2013/cBadDebts
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jimgreen2013/cBadDebts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Source Code for my indpendent invetigation report of Compound Bad Debts

In order to verify the reason of the incident, we need to query lots of data through the Ethereum RPC api:

  • Financial state of bad debts accounts on Compound
  • parameters of Compound protocol, for example, collateral factor, lowerBoundAnchorRatio, upperBoundAnchorRatio, anchorPeriod, etc.
  • verify the oracle that was being used during the incident
  • price events(priceUpdate, priceGuarded) during the incident
  • Uniswap oracle data(observation) for TWAP analysis

Web3j is used for Ethereum RPC, the implementation details is as follow:

  • EvmService.java general Ethereum RPC
  • CompoundService Compound related functions
  • UniService Uniswap related functions
  • py foloder is code for plotting figures with matplot
    awk is also used for csv data processing which is really neat and cool!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0