Closed prateek105 closed 1 year ago
There's overlap with this change and Sherlock 41. Awaiting @mattcushman 's input on that.
I see Matt has opined on that in the comments. Might warrant further discussion.
LGTM, do we need to add a unit test for this?
I tried adding a unit test for this scenario but was unable to simulate because to simulate a significant difference between scaled and unscaled amount I will need to skip a lot of time and if I do that the accrueInterest
overflows. But we do have tests that cover this branch so it is part of code coverage already, for these reasons I think we can ignore a separate unit test for this.
Description
scaled
deposits instead ofunscaled
deposits.Purpose
Impact
settle
gas cost.Tasks