Note: At the judges request here, this downgraded issue from the same warden has been included in this report for completeness.
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/2376d9af792584e3d15ec9c32578daa33bb56b43/src/loan/SurplusGuildMinter.sol#L216-L290
Slashed stakers will lose their GUILD tokens but will still receive CREDIT tokens once more because creditReward is not zeroed like guildReward in SurplusGuildMinter::getRewards(). That will eventually create bad debt in the system as all the stakers for this term will be slashed and their rewards have to be lost, but this is not the case for the CREDIT tokens.
We can see in the getRewards() function that _profitIndex is updated in ProfitManager.claimRewards() which will increase deltaIndex and despite the user being slashed he will still receive the CREDIT tokens that he would have if he hadnt been slashed:
SurplusGuildMinter#L244-L264
Consider setting creditReward to 0 when user passed is staked in order to not transfer any CREDIT tokens to him when he is slashed:
Context
TrungOre (judge) decreased severity to Low
