{
    "Function": "_getV2Quote",
    "File": "src/LBQuoter.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "BinHelper",
        "Math512Bits",
        "Math512Bits",
        "BinHelper"
    ],
    "Internal Calls": [],
    "Library Calls": [
        "getPriceFromId",
        "getPriceFromId",
        "shiftDivRoundDown",
        "mulShiftRoundDown"
    ],
    "Low-Level Calls": [],
    "Code": "function _getV2Quote(\n        uint256 _amount,\n        uint256 _activeId,\n        uint256 _binStep,\n        bool _swapForY\n    ) internal pure returns (uint256 quote) {\n        if (_swapForY) {\n            quote = BinHelper.getPriceFromId(_activeId, _binStep).mulShiftRoundDown(_amount, Constants.SCALE_OFFSET);\n        } else {\n            quote = _amount.shiftDivRoundDown(Constants.SCALE_OFFSET, BinHelper.getPriceFromId(_activeId, _binStep));\n        }\n    }"
}