```\nif (\_isPurchased[delegationId]) {\n    address holder = delegation.holder;\n    \_totalDelegated[holder] += delegation.amount;\n    if (\_totalDelegated[holder] >= \_purchased[holder]) {\n        purchasedToUnlocked(holder);\n    }\n```\n