Rename _pullAToken function

Fixes MixBytes Comment 4.
This commit is contained in:
Jason Raymond Bell 2021-05-20 13:45:50 +01:00
parent fe05ceccd6
commit b13a01d8b8
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,