149 - OZ SafeERC20
OpenZeppelin SafeERC20: Wrappers around ERC20 operations that throw on failure when the token contract implementation returns false. Tokens that return no value and instead revert or throw on failure are also supported with non-reverting calls assumed to be successful. Adds safeTransfer
, safeTransferFrom
, safeApprove
, safeDecreaseAllowance
, and safeIncreaseAllowance
.
- transfer/transferFrom/approve/increaseAllowance/decreaseAllowance
bool
vs.revert
vs. Nothing- safe* Wrappers -> Revert on Failure
- using SafeERC20 for IERC20