```\nfunction didAllocate(\n    uint8 subjectType,\n    uint256 subject,\n    uint256 stakeAmount,\n    uint256 sharesAmount,\n    address staker\n) external onlyRole(ALLOCATOR\_CONTRACT\_ROLE) {\n    bool delegated = getSubjectTypeAgency(subjectType) == SubjectStakeAgency.DELEGATED;\n    if (delegated) {\n        uint8 delegatorType = getDelegatorSubjectType(subjectType);\n        uint256 shareId = FortaStakingUtils.subjectToActive(delegatorType, subject);\n        DelegatedAccRewards storage s = \_rewardsAccumulators[shareId];\n        s.delegated.addRate(stakeAmount);\n```\n