TransferHelper
Functionsβ
safeTransferβ
function safeTransfer(
address token,
address to,
uint256 value
) internalName
Type
Description
Last updated
Contains helper methods for interacting with ERC20 tokens that do not consistently return true/false
function safeTransfer(
address token,
address to,
uint256 value
) internalTransfers tokens from msg.sender to a recipient
Calls transfer on token contract, errors with TF if transfer fails
Parameters:β
token
address
The contract address of the token which will be transferred
to
address
The recipient of the transfer
value
uint256
The value of the transfer
Last updated