The Contribute function allow anyone interested in the campaign to contribute funds and the total fund is incremented with each contribution. Incase a large fund more than what can be contained by u64 is contributed, the maximum value that can be held by u64 ( 18,446,744,073,709,551,615) will be subtracted and only the remainder will be stored leading to loss of fund. This will distrupt the protocol but it is a meduim vunerality because the likelihood is low due to the large fund to be reached for this to occur
The affected code
Loss of fund
Manual review
The max value of u64 is: 18,446,744,073,709,551,615 or around 18.4 billion SOL, given that the total supply of SOL on Solana is 512.50M, the scenario when the `contribute` function will revert due to overflow is very very unlikely to happen. Therefore, this is informational finding.
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.