{
    "Function": "removeLiquidityOneCoin",
    "File": "contracts/libraries/CurveHelpers/CurveHelpers.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "ICurvePool"
    ],
    "Internal Calls": [
        "abi.encodeWithSelector()",
        "revert(string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [
        "call"
    ],
    "Code": "function removeLiquidityOneCoin(\n        ICurvePool pool,\n        uint256 amount,\n        address outputToken,\n        uint256 poolCoinAmount,\n        bytes4 signature\n    ) internal returns (bool success) {\n        for (uint256 i; i < poolCoinAmount; i++) {\n            if (outputToken == pool.coins(i)) {\n                (success, ) = address(pool).call(abi.encodeWithSelector(signature, amount, i, 0));\n                return success;\n            }\n        }\n        revert(\"CH: INVALID_OUTPUT_TOKEN\");\n    }"
}