SafeTransfer
provides minimalistic methods for safe transfers, e.g. ERC20 safeTransferFrom
FluidSafeTransferError
error FluidSafeTransferError(uint256 errorId_)
safeTransferFrom
function safeTransferFrom(address token_, address from_, address to_, uint256 amount_) internal
_Transfer amount_
oftoken*
fromfrom*
toto*
, spending the approval given by from*
to the
calling contract. Iftoken*
returns no value, non-reverting calls are assumed to be successful.
Minimally modified from Solmate SafeTransferLib (address as input param for token, Custom Error):
https://github.com/transmissions11/solmate/blob/50e15bb566f98b7174da9b0066126a4c3e75e0fd/src/utils/SafeTransferLib.sol#L31-L63*
safeTransfer
function safeTransfer(address token_, address to_, uint256 amount_) internal
_Transfer amount_
oftoken*
toto*
.
If token*
returns no value, non-reverting calls are assumed to be successful.
Minimally modified from Solmate SafeTransferLib (address as input param for token, Custom Error):
https://github.com/transmissions11/solmate/blob/50e15bb566f98b7174da9b0066126a4c3e75e0fd/src/utils/SafeTransferLib.sol#L65-L95*
safeTransferNative
function safeTransferNative(address to_, uint256 amount_) internal
Transfer amount_
ofnative token to
to`.
Minimally modified from Solmate SafeTransferLib (Custom Error):
https://github.com/transmissions11/solmate/blob/50e15bb566f98b7174da9b0066126a4c3e75e0fd/src/utils/SafeTransferLib.sol#L15-L25_