{
    "Function": "callOnOFTReceived",
    "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": [
        "IOFTReceiverV2"
    ],
    "Internal Calls": [
        "_msgSender",
        "require(bool,string)",
        "_transferFrom"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function callOnOFTReceived(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes32 _from, address _to, uint _amount, bytes calldata _payload, uint _gasForCall) public virtual {\n        require(_msgSender() == address(this), \"OFTCore: caller must be OFTCore\");\n\n        // send\n        _amount = _transferFrom(address(this), _to, _amount);\n        emit ReceiveFromChain(_srcChainId, _to, _amount);\n\n        // call\n        IOFTReceiverV2(_to).onOFTReceived{gas: _gasForCall}(_srcChainId, _srcAddress, _nonce, _from, _amount, _payload);\n    }"
}