Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 775 Bytes

OZ SafeERC20.md

File metadata and controls

17 lines (16 loc) · 775 Bytes

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.


Slide Screenshot

149.jpg


Slide Text

  • transfer/transferFrom/approve/increaseAllowance/decreaseAllowance
  • bool vs. revert vs. Nothing
  • safe* Wrappers -> Revert on Failure
  • using SafeERC20 for IERC20

References


Tags