Skip to content

Commit 3d9d218

Browse files
committed
fix: prune unused getDecimals
1 parent 741561e commit 3d9d218

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/interfaces/IERC4626.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ pragma solidity ^0.8.0;
33

44
interface IERC4626 {
55
function convertToAssets(uint256) external view returns (uint256);
6-
function decimals() external view returns (uint256);
76
}

src/libraries/VaultLib.sol

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,4 @@ library VaultLib {
1515

1616
return vault.convertToAssets(shares);
1717
}
18-
19-
/// @dev Returns the number of decimals of a `vault`, seen as an ERC20.
20-
/// @dev When `vault` is the address zero, returns 0.
21-
function getDecimals(IERC4626 vault) internal view returns (uint256) {
22-
if (address(vault) == address(0)) return 0;
23-
24-
return vault.decimals();
25-
}
2618
}

0 commit comments

Comments
 (0)