Unlocking funds after slashing
The initial funds can be unlocked if 51+% of them are delegated. However if any portion of the funds are slashed, the rest of the funds will not be unlocked at the end of the delegation period.\\n```\\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
Consider slashed tokens as delegated, or include them in the calculation for process to unlock in `endingDelegatedToUnlocked`
```\\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