```\n/\*//////////////////////////////////////////////////////////////\n 4626 LOGIC\n//////////////////////////////////////////////////////////////\*/\n\n/\*\*\n \* @dev Converts `assets` to shares\n \* @param assets The amount of assets to convert\n \* @return shares - The amount of shares converted from assets\n \*/\nfunction convertToShares(uint256 assets) public view returns (uint256) {\n uint256 supply = liquidStakingToken.totalSupply(); // Saves an extra SLOAD if totalSupply is non-zero.\n\n return supply == 0 ? assets : assets \* supply / totalAssets();\n}\n\n/\*\*\n \* @dev Converts `shares` to assets\n \* @param shares The amount of shares to convert\n \* @return assets - The amount of assets converted from shares\n \*/\nfunction convertToAssets(uint256 shares) public view returns (uint256) {\n uint256 supply = liquidStakingToken.totalSupply(); // Saves an extra SLOAD if totalSupply is non-zero.\n\n return supply == 0 ? shares : shares \* totalAssets() / supply;\n}\n```\n