Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compound subgraph to v2 mainnet (#5)
* Fix the price oracle usd bug (scope) * Fix cETH to work with refactored contracts * Refactor cETH.ts and cECR20.ts into one file * Add eslint and prettier and apply * Lint comments * Add in market reserve factor * add in realized and unrealized values * Refactor creating CTokenInfo * Update mappings to work with all new schema fields * Reduce contract calls, mainly for balances * Refactor user creation into a reusable function * Refactor common CTokenstats updates into a reusable function * Fix decimals bug, add in market as a ctoken relationship field * Clean up schema comments * Fix cTokenStats decimal bugs and calculation bugs * Clean schema of js wrapper fields * Refactor markets out of helpers.ts * Fix market divide by decimals bugs * Refactor to update all markets upon any event * Rollback updating all markets at once. Add back all comptroller handlers * Remove calculating any balances. All to be done by js wrapper * Fix mappings to work with new graph-node verrsion * Add in transfers to be handled. Remove unneccessary updateMarket() calls * Fix transfer bug, and remove duplicate cTokenStats updates * Clean up comments * Change market updates to only run once per block * Add interest rate address, pre-commit hook, and update rates to be yearly * Fix negative cBalance bug. Fix cTokenContracts to not be users. Other small fixes * Update schema to have comments show up in playground * Rename many fields to be closer to the compound API naming * Fix duplicate Mint and Redeeem calculation bugs. Fix storedBorrowBalance bug
- Loading branch information