```\nfunction getStakingPoolIdOfMaker(address makerAddress)\n    public\n    view\n    returns (bytes32)\n{\n    IStructs.MakerPoolJoinStatus memory poolJoinStatus = \_poolJoinedByMakerAddress[makerAddress];\n    if (poolJoinStatus.confirmed) {\n        return poolJoinStatus.poolId;\n    } else {\n        return NIL\_POOL\_ID;\n    }\n}\n```\n