Update docs
This commit is contained in:
@ -45,8 +45,8 @@ abstract contract ERC4626 is ERC20, IERC4626 {
|
||||
/**
|
||||
* @dev Attempts to fetch the asset decimals. A return value of false indicates that the attempt failed in some way.
|
||||
*/
|
||||
function _tryGetAssetDecimals(IERC20 asset_) private returns (bool, uint8) {
|
||||
(bool success, bytes memory encodedDecimals) = address(asset_).call(
|
||||
function _tryGetAssetDecimals(IERC20 asset_) private view returns (bool, uint8) {
|
||||
(bool success, bytes memory encodedDecimals) = address(asset_).staticcall(
|
||||
abi.encodeWithSelector(IERC20Metadata.decimals.selector)
|
||||
);
|
||||
if (success && encodedDecimals.length >= 32) {
|
||||
|
||||
Reference in New Issue
Block a user