Submitted by greiart
supplyInterest is split between the account and the system, ie. supplyInterest = newSupplyAccount + newSupplySystem. Hence, an additional call to the _systemRate can be avoided in the calculation of newSupplySystem, as well as potential rounding errors. See L401-L403 in LendingPair.sol .
Recommend that L403 be changed to newSupplySystem = supplyInterest - newSupplyAccount;
- talegift (Wild Credit) acknowledged
