The previousKingPayout is never initialised, it is set to zero only. The mechanism where the current player who claims the throne and provides a small percentage of the claimFee to the previous king is compromised. There is no such code that does this operation. And also amountToPot is also initialised incorrectly. It should be also deduct the amount from sentAmount that is to be paid to the previousKing ie: payToPreviousKing (below in the code).
Likelihood:
The likelihood is very high as in 100%, as the code is missing the following operation.
Impact:
The previousKingPayout is always zero, and the current player who claims the throne should provide a portion of its claimFee to the previous king that particular code is also not available. This will cause loss of money for the players who where kings at a point of time in the game.
Refactor the logic. Provide some portion of the claimFee to the previous king, currently that whole logic in the code is missing.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.