SafeTransferLib
Author: Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
Safe ETH and ERC20 transfer library that gracefully handles missing return values.
Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
Functions
safeTransferETH
function safeTransferETH(address to, uint256 amount) internal;
safeTransferFrom
function safeTransferFrom(ERC20 token, address from, address to, uint256 amount) internal;
safeTransfer
function safeTransfer(ERC20 token, address to, uint256 amount) internal;
safeApprove
function safeApprove(ERC20 token, address to, uint256 amount) internal;