diff --git a/contracts/protocol/tokenization/StaticAToken.sol b/contracts/protocol/tokenization/StaticAToken.sol index 5ee1af3c..3947f7d4 100644 --- a/contracts/protocol/tokenization/StaticAToken.sol +++ b/contracts/protocol/tokenization/StaticAToken.sol @@ -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); }