The Treasury::allocateFunds
function overwrites existing allocations instead of accumulating them, potentially leading to loss of previously allocated funds. This could cause inconsistencies in fund tracking and disrupt intended allocations.
The function updates _allocations[msg.sender][recipient]
by setting it directly to amount, replacing any previous value:
• If the function is called multiple times for the same recipient, previous allocations are lost, as there is no accumulation logic
Loss of allocation history, making fund tracking unreliable.
Manual Review
The function can be refactored to accumulate allocations:
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.