aave / aave-utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor formatUserSummary

defispartan opened this issue · comments

1.) Break logic in generate-raw-summary and generate-raw-reserve down further.

  • Separate files for formatting the ReserveData, ComputedUserReserve, and summary fields to reduce complexity and required parameters for each file

2.) Remove any modifications to ReserveData in format-user-reserve, should all be handled in previous steps

3.) Unit test

  • calculate-rewards
  • calculate-supplies
  • generate-raw-user-reserve *once finished
  • generate-raw-user-summary *once finished
  • format-user-reserve *once finished
  • format-user-summary