mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Rename _pullAToken function
Fixes MixBytes Comment 4.
This commit is contained in:
parent
fe05ceccd6
commit
b13a01d8b8
|
@ -76,7 +76,7 @@ abstract contract BaseParaSwapAdapter is FlashLoanReceiverBase, Ownable {
|
|||
* @param amount of tokens to be transferred to the contract
|
||||
* @param permitSignature struct containing the permit signature
|
||||
*/
|
||||
function _pullAToken(
|
||||
function _pullATokenAndWithdraw(
|
||||
address reserve,
|
||||
address reserveAToken,
|
||||
address user,
|
||||
|
|
|
@ -102,7 +102,7 @@ contract ParaSwapLiquiditySwapAdapter is BaseParaSwapSellAdapter {
|
|||
amountToSwap = balance;
|
||||
}
|
||||
|
||||
_pullAToken(
|
||||
_pullATokenAndWithdraw(
|
||||
assetToSwapFrom,
|
||||
aToken,
|
||||
msg.sender,
|
||||
|
@ -176,7 +176,7 @@ contract ParaSwapLiquiditySwapAdapter is BaseParaSwapSellAdapter {
|
|||
IERC20(assetToSwapTo).safeApprove(address(LENDING_POOL), amountReceived);
|
||||
LENDING_POOL.deposit(assetToSwapTo, amountReceived, initiator, 0);
|
||||
|
||||
_pullAToken(
|
||||
_pullATokenAndWithdraw(
|
||||
assetToSwapFrom,
|
||||
aToken,
|
||||
initiator,
|
||||
|
|
Loading…
Reference in New Issue
Block a user