- Fixed recipient of aTokens

This commit is contained in:
eboado 2021-02-16 10:19:15 +01:00
parent 28cb41b8ca
commit 8352ada9e1

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);
}