- Fixed recipient of aTokens

This commit is contained in:
eboado 2021-02-16 10:19:15 +01:00 committed by Lasse Herskind
parent f342ec1555
commit 51bd4ecee9

View File

@ -306,7 +306,7 @@ contract StaticAToken is ERC20 {
if (fromUnderlying) {
ASSET.safeTransferFrom(depositor, address(this), amount);
LENDING_POOL.deposit(address(ASSET), amount, recipient, referralCode);
LENDING_POOL.deposit(address(ASSET), amount, address(this), referralCode);
} else {
ATOKEN.safeTransferFrom(depositor, address(this), amount);
}