{
    "Function": "underlyingToSharesView",
    "File": "src/contracts/strategies/StrategyBase.sol",
    "Parent Contracts": [
        "src/contracts/interfaces/IStrategy.sol",
        "src/contracts/permissions/Pausable.sol",
        "src/contracts/interfaces/IPausable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_tokenBalance"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function underlyingToSharesView(uint256 amountUnderlying) public view virtual returns (uint256) {\n        uint256 tokenBalance = _tokenBalance();\n        if (tokenBalance == 0 || totalShares == 0) {\n            return amountUnderlying;\n        } else {\n            return (amountUnderlying * totalShares) / tokenBalance;\n        }\n    }"
}