From 51bd4ecee93416271956bc89f1a3455552675fb2 Mon Sep 17 00:00:00 2001 From: eboado Date: Tue, 16 Feb 2021 10:19:15 +0100 Subject: [PATCH] - Fixed recipient of aTokens --- contracts/protocol/tokenization/StaticAToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }