From 1bb53676f846455a5c7c2f6c6790adbeae4221a1 Mon Sep 17 00:00:00 2001 From: dianakocsis Date: Tue, 29 Oct 2024 12:05:56 -0400 Subject: [PATCH] erc20 -> address --- .../{SafeERC20Metadata.sol => SafeAddressMetadata.sol} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/libraries/{SafeERC20Metadata.sol => SafeAddressMetadata.sol} (98%) diff --git a/src/libraries/SafeERC20Metadata.sol b/src/libraries/SafeAddressMetadata.sol similarity index 98% rename from src/libraries/SafeERC20Metadata.sol rename to src/libraries/SafeAddressMetadata.sol index 1346a3f7..24e2b653 100644 --- a/src/libraries/SafeERC20Metadata.sol +++ b/src/libraries/SafeAddressMetadata.sol @@ -4,10 +4,10 @@ pragma solidity ^0.8.0; import {IERC20Metadata} from "openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import {AddressStringUtil} from "./AddressStringUtil.sol"; -/// @title SafeERC20Metadata +/// @title SafeAddressMetadata /// @notice can produce symbols and decimals from inconsistent or absent ERC20 implementations /// @dev Reference: https://github.com/Uniswap/solidity-lib/blob/master/contracts/libraries/SafeERC20Namer.sol -library SafeERC20Metadata { +library SafeAddressMetadata { /// @notice attempts to extract the token symbol. if it does not implement symbol, returns a symbol derived from the address /// @param addr The address /// @param nativeLabel The native label