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 amount of tokens to be transferred to the contract
|
||||||
* @param permitSignature struct containing the permit signature
|
* @param permitSignature struct containing the permit signature
|
||||||
*/
|
*/
|
||||||
function _pullAToken(
|
function _pullATokenAndWithdraw(
|
||||||
address reserve,
|
address reserve,
|
||||||
address reserveAToken,
|
address reserveAToken,
|
||||||
address user,
|
address user,
|
||||||
|
|
|
@ -102,7 +102,7 @@ contract ParaSwapLiquiditySwapAdapter is BaseParaSwapSellAdapter {
|
||||||
amountToSwap = balance;
|
amountToSwap = balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
_pullAToken(
|
_pullATokenAndWithdraw(
|
||||||
assetToSwapFrom,
|
assetToSwapFrom,
|
||||||
aToken,
|
aToken,
|
||||||
msg.sender,
|
msg.sender,
|
||||||
|
@ -176,7 +176,7 @@ contract ParaSwapLiquiditySwapAdapter is BaseParaSwapSellAdapter {
|
||||||
IERC20(assetToSwapTo).safeApprove(address(LENDING_POOL), amountReceived);
|
IERC20(assetToSwapTo).safeApprove(address(LENDING_POOL), amountReceived);
|
||||||
LENDING_POOL.deposit(assetToSwapTo, amountReceived, initiator, 0);
|
LENDING_POOL.deposit(assetToSwapTo, amountReceived, initiator, 0);
|
||||||
|
|
||||||
_pullAToken(
|
_pullATokenAndWithdraw(
|
||||||
assetToSwapFrom,
|
assetToSwapFrom,
|
||||||
aToken,
|
aToken,
|
||||||
initiator,
|
initiator,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user