mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Revert "Fixes the interest redirection bug on the aToken"
This reverts commit ab3198128a
.
This commit is contained in:
parent
ab3198128a
commit
64f6e7a276
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user