Revert "Fixes the interest redirection bug on the aToken"

This reverts commit ab3198128a.
This commit is contained in:
The3D 2020-07-14 14:50:31 +02:00
parent ab3198128a
commit 64f6e7a276

View File

@ -482,7 +482,8 @@ contract AToken is ERC20 {
address targetOfRedirectionAddress = interestRedirectionAddresses[redirectionAddress]; address targetOfRedirectionAddress = interestRedirectionAddresses[redirectionAddress];
if (targetOfRedirectionAddress != address(0)) { if (targetOfRedirectionAddress != address(0)) {
cumulateBalanceInternal(targetOfRedirectionAddress); redirectedBalances[targetOfRedirectionAddress] = redirectedBalances[targetOfRedirectionAddress]
.add(balanceIncrease);
} }
emit RedirectedBalanceUpdated( emit RedirectedBalanceUpdated(