{
    "Function": "_safeWithdraw",
    "File": "contracts/NestedFactory.sol",
    "Parent Contracts": [
        "contracts/abstracts/MixinOperatorResolver.sol",
        "contracts/abstracts/OwnableProxyDelegation.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol",
        "contracts/interfaces/INestedFactory.sol"
    ],
    "High-Level Calls": [
        "IERC20",
        "IERC20",
        "NestedRecords",
        "NestedReserve"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _safeWithdraw(address _token, uint256 _nftId) private returns (uint256) {\n        uint256 holdingAmount = nestedRecords.getAssetHolding(_nftId, _token);\n        uint256 balanceBefore = IERC20(_token).balanceOf(address(this));\n        reserve.withdraw(IERC20(_token), holdingAmount);\n        return IERC20(_token).balanceOf(address(this)) - balanceBefore;\n    }"
}