{
    "Function": "_estimateSendAndCallFee",
    "File": "contracts/OFT/OFTCoreV2.sol",
    "Parent Contracts": [
        "contracts/OFT/lzApp/NonblockingLzApp.sol",
        "contracts/OFT/lzApp/LzApp.sol",
        "contracts/OFT/interfaces/ILayerZeroUserApplicationConfig.sol",
        "contracts/OFT/interfaces/ILayerZeroReceiver.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [
        "ILayerZeroEndpoint"
    ],
    "Internal Calls": [
        "_ld2sd",
        "_encodeSendAndCallPayload"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes memory _payload, uint64 _dstGasForCall, bool _useZro, bytes memory _adapterParams) internal view virtual returns (uint nativeFee, uint zroFee) {\n        // mock the payload for sendAndCall()\n        bytes memory payload = _encodeSendAndCallPayload(msg.sender, _toAddress, _ld2sd(_amount), _payload, _dstGasForCall);\n        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);\n    }"
}