ebtc-protocol/ebtc

calculator function cleanup

Opened this issue · 0 comments

  • internal "calculation" functions should never read from storage (such as borrower, rather taking these as parameters)
  • _getNewCdpAmounts should not be called direcly by other "calculation" functions as this leads to duplicated calculations in the parent function. Pass in the vars from this calc