When a player calls claimCut
before the pot is funded, their attempt would fail without knowing the reason behind it.
The vulnerability lies in the claimCut
function.
A player can call this function to claim their rewards before the pot is funded but it would lead to a failed transaction due to arithmetic underflow.
The vulnerability leads to failed attempts from users claiming from the pot without knowing the actual reason behind it.
Foundry, manual review
To mitigate this vulnerability, there should be a require
statement check at the beginning of the claimCut
function to check that the pot is funded before proceeding.
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.