We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741561e commit 3d9d218Copy full SHA for 3d9d218
src/interfaces/IERC4626.sol
@@ -3,5 +3,4 @@ pragma solidity ^0.8.0;
3
4
interface IERC4626 {
5
function convertToAssets(uint256) external view returns (uint256);
6
- function decimals() external view returns (uint256);
7
}
src/libraries/VaultLib.sol
@@ -15,12 +15,4 @@ library VaultLib {
15
16
return vault.convertToAssets(shares);
17
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
- }
26
0 commit comments