{
    "Function": "setReferred",
    "File": "contracts/Referrals.sol",
    "Parent Contracts": [
        "contracts/interfaces/IReferrals.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "onlyProtocol"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function setReferred(address _referredTrader, bytes32 _hash) external onlyProtocol {\n        if (_referred[_referredTrader] != bytes32(0)) {\n            return;\n        }\n        if (_referredTrader == _referral[_hash]) {\n            return;\n        }\n        _referred[_referredTrader] = _hash;\n        emit Referred(_referredTrader, _hash);\n    }"
}