Unverified Commit 424ab2a0 by Ross Campbell Committed by GitHub

Update SafeERC20.sol (#2246)

tweak intro dev comment to reflect more typical use case, wrapping an `IERC20` reference for a deposit contract using others' ERC-20 tokens. I might be mistaken ~ but typically SafeERC20 won't be used in conjunction with ERC20 for OZ token deployments?
parent e2b97d67
...@@ -12,7 +12,7 @@ import "../../utils/Address.sol"; ...@@ -12,7 +12,7 @@ import "../../utils/Address.sol";
* contract returns false). Tokens that return no value (and instead revert or * contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be * throw on failure) are also supported, non-reverting calls are assumed to be
* successful. * successful.
* To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc. * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/ */
library SafeERC20 { library SafeERC20 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment