mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
- Fixed recipient of aTokens
This commit is contained in:
parent
f342ec1555
commit
51bd4ecee9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user