{
    "Function": "passThruGate",
    "File": "contracts/FixedPricePassThruGate.sol",
    "Parent Contracts": [
        "interfaces/IPriceGate.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [
        "call"
    ],
    "Code": "function passThruGate(uint index, address) override external payable {\n        Gate memory gate = gates[index];\n        require(msg.value >= gate.ethCost, 'Please send more ETH');\n\n        // pass thru ether\n        if (msg.value > 0) {\n            // use .call so we can send to contracts, for example gnosis safe, re-entrance is not a threat here\n            (bool sent, bytes memory data) = gate.beneficiary.call{value: gate.ethCost}(\"\");\n            require(sent, 'ETH transfer failed');\n        }\n    }"
}