The updateDistribution
function in the PriorityPool
contract lacks validation checks for the _merkleRoot
and _ipfsHash
parameters. This allows for the possibility of setting these values to zero, which can disrupt the distribution of staking tokens and potentially lead to unfair token allocation.
The updateDistribution
function does not include checks to ensure that _merkleRoot
and _ipfsHash
are non-zero values.
Without a valid Merkle root and IPFS hash, the distribution process is compromised. Users cannot claim their tokens.
The contract may require emergency intervention to correct the distribution data, leading to downtime and operational inefficiencies.
Manual review
Add validation checks to ensure that _merkleRoot
and _ipfsHash
are non-zero before updating the state.
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.