From 8352ada9e1e9b16993f69205ceee97f2e765af18 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); }