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
28cb41b8ca
commit
8352ada9e1
|
@ -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