Use safeTransfer for rescueTokens

Fixes MixBytes Warning 3.
This commit is contained in:
Jason Raymond Bell 2021-05-20 13:40:55 +01:00
parent 14e2ab47d9
commit fe05ceccd6

View File

@ -119,6 +119,6 @@ abstract contract BaseParaSwapAdapter is FlashLoanReceiverBase, Ownable {
* - Only callable by the owner
*/
function rescueTokens(IERC20 token) external onlyOwner {
token.transfer(owner(), token.balanceOf(address(this)));
token.safeTransfer(owner(), token.balanceOf(address(this)));
}
}