{
    "Function": "pay",
    "File": "src/escrows/INVEscrow.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IXINV",
        "IERC20",
        "IERC20"
    ],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function pay(address recipient, uint amount) public {\n        require(msg.sender == market, \"ONLY MARKET\");\n        uint invBalance = token.balanceOf(address(this));\n        if(invBalance < amount) xINV.redeemUnderlying(amount - invBalance); // we do not check return value because next call will fail if this fails anyway\n        token.transfer(recipient, amount);\n    }"
}