mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Use safeTransfer for rescueTokens
Fixes MixBytes Warning 3.
This commit is contained in:
parent
14e2ab47d9
commit
fe05ceccd6
|
@ -119,6 +119,6 @@ abstract contract BaseParaSwapAdapter is FlashLoanReceiverBase, Ownable {
|
||||||
* - Only callable by the owner
|
* - Only callable by the owner
|
||||||
*/
|
*/
|
||||||
function rescueTokens(IERC20 token) external onlyOwner {
|
function rescueTokens(IERC20 token) external onlyOwner {
|
||||||
token.transfer(owner(), token.balanceOf(address(this)));
|
token.safeTransfer(owner(), token.balanceOf(address(this)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user