{
    "Function": "removeForMember",
    "File": "contracts/Pool.sol",
    "Parent Contracts": [
        "contracts/interfaces/iBEP20.sol"
    ],
    "High-Level Calls": [
        "iBEP20",
        "iUTILS",
        "iDAO",
        "iBEP20",
        "iUTILS",
        "iDAO"
    ],
    "Internal Calls": [
        "_burn",
        "balanceOf",
        "_DAO",
        "_DAO",
        "_decrementPoolBalances"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function removeForMember(address member) public returns (uint outputBase, uint outputToken) {\n        uint256 _actualInputUnits = balanceOf(address(this)); // Get the received LP units amount\n        outputBase = iUTILS(_DAO().UTILS()).calcLiquidityHoldings(_actualInputUnits, BASE, address(this)); // Get the SPARTA value of LP units\n        outputToken = iUTILS(_DAO().UTILS()).calcLiquidityHoldings(_actualInputUnits, TOKEN, address(this)); // Get the TOKEN value of LP units\n        _decrementPoolBalances(outputBase, outputToken); // Update recorded BASE and TOKEN amounts\n        _burn(address(this), _actualInputUnits); // Burn the LP tokens\n        iBEP20(BASE).transfer(member, outputBase); // Transfer the SPARTA to user\n        iBEP20(TOKEN).transfer(member, outputToken); // Transfer the TOKENs to user\n        emit RemoveLiquidity(member, outputBase, outputToken, _actualInputUnits);\n        return (outputBase, outputToken);\n    }"
}